Previous Thread
Next Thread
Print Thread
Page 34 of 55 1 2 32 33 34 35 36 54 55
rfka01 #106285 07/03/16 08:42 AM
Joined: Aug 2015
Posts: 405
Senior Member
Offline
Senior Member
Joined: Aug 2015
Posts: 405
http://bitsavers.trailing-edge.com/pdf/n...Description.pdf for a start and then at some point split it out as separate device driver


Because I can
rfka01 #106286 07/03/16 10:19 AM
Joined: May 2004
Posts: 961
Likes: 23
D
Senior Member
Offline
Senior Member
D
Joined: May 2004
Posts: 961
Likes: 23
Sorry, I didn't see that you added the null-modem directory in the machine config, usually it's added as a slot device like '-rs232 null_modem'.

You can set the upd7201 control lines with device->cts_w() etc. To get the status, you need to hook up a callback in the machine config.

rfka01 #106288 07/03/16 01:03 PM
Joined: Jan 2012
Posts: 880
Likes: 10
C
Senior Member
Offline
Senior Member
C
Joined: Jan 2012
Posts: 880
Likes: 10
You need to call m1_r() in update_mpsc_irq() for the irqs to work properly.

rfka01 #106312 07/03/16 07:40 PM
Joined: Apr 2012
Posts: 191
B
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 191
Saved from the Shoutbox.

Code:
(...) the 7201 is externally clocked like the 8251, and you aren't doing that.

That's why there's the separate 8088 port to set the baud rate, because there's a completely separate baud rate generator 


Schematics of baud rate generator:
https://dl.dropboxusercontent.com/u/37819653/BANNISTER/BAUD_RATE_GENERATOR.jpg

Standard smc/com5016T dual baud rate generator, see vt100.c and vk100.c for examples where it is used (says LN)

@shattered: here ist the link to the latest source. The m1_r (IRQ acknowledge) fix Cracyc mentioned is missing...

https://dl.dropboxusercontent.com/u/37819653/BANNISTER/2016_07_02_Rainbow_CPP.txt

Thank you!

Last edited by Bavarese; 07/03/16 08:50 PM.
rfka01 #106326 07/03/16 09:40 PM
Joined: Apr 2012
Posts: 191
B
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 191
Shattered's partial fix from Sunday is at

https://gist.githubusercontent.com/shattered/37137526ff3ad171f0d38f8d19b6ce3c/raw/e5faa78250b14992d3c46dc4389bd16b7e954a3f/rainbow%2520haxx

Status: self test fails with "unsolicited interrupt" and "watchdog error" (16 = interrupts off).

Theory: serial redirection during self test fails.

Last edited by Bavarese; 07/03/16 09:41 PM.
rfka01 #106352 07/04/16 05:58 PM
Joined: Apr 2012
Posts: 191
B
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 191
The self test is bypassed by unmapping the MPSC and activating the handlers when everything is normal.

Now i can send data from the Rainbow to a Putty terminal. There is no transmission in the other direction, as far as i can see...

https://dl.dropboxusercontent.com/u/37819653/BANNISTER/2017_07_04_Rainbow_CPP.txt

Last edited by Bavarese; 07/04/16 06:01 PM.
rfka01 #106353 07/04/16 07:02 PM
Joined: May 2012
Posts: 554
Likes: 1
S
Senior Member
Offline
Senior Member
S
Joined: May 2012
Posts: 554
Likes: 1
flow control hack you've asked for -- https://gist.github.com/shattered/d48d429a20f7062473331eaff7377a51

z80dart driver has to be modified to set/reset RTS as appropriate.

rfka01 #106357 07/05/16 02:23 PM
Joined: Apr 2012
Posts: 191
B
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 191
Thanks.

I tried with (FDXB setting in SETUP) and without flow control (FDXA setting).

Without, i can transmit from Rainbow to terminal - but not in the other direction. Diagnosis: receive overrun error in z80dart_channel::receive_data (line 1079)...

With flow control, the Rainbow locks up (WAIT LED lights) until i set FDXA in SETUP again.

Hint: do not set FDXC. It is a mode with a secondary 1200 bps line on the same port.

Last edited by Bavarese; 07/05/16 02:32 PM.
rfka01 #106375 07/06/16 03:50 AM
Joined: Mar 2006
Posts: 1,072
Likes: 5
L
Very Senior Member
Offline
Very Senior Member
L
Joined: Mar 2006
Posts: 1,072
Likes: 5
Since we have the mcu dump for the older intel mcs-51 based LK201 which we do have full schematics for, would it make sense to make an 'lk201o' device, to make 100% sure we have a fully documented, emulated keyboard hookup?

LN


"When life gives you zombies... *CHA-CHIK!* ...you make zombie-ade!"
rfka01 #106382 07/06/16 09:49 AM
Joined: Apr 2012
Posts: 191
B
Senior Member
Offline
Senior Member
B
Joined: Apr 2012
Posts: 191
It would make sense. I hesitate to do so, for various reasons. One aspect is that i have to cut back my invest in MAME/MESS.

Last edited by Bavarese; 07/06/16 10:09 AM.
Page 34 of 55 1 2 32 33 34 35 36 54 55

Link Copied to Clipboard
Who's Online Now
1 members (Golden Child), 21 guests, and 2 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,086
Posts119,092
Members5,014
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com