6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 5:21 pm

All times are UTC




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Mon Feb 11, 2019 2:18 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
Thanks for the suggestions everyone.

And thanks Bill for the offer.

Right now I'm at a stand-still. I've run into an issue with my board. Nothing seems to work on it. I've had to pull the ROM socket because it no longer holds a chip.

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 21, 2019 10:30 pm 
Offline

Joined: Sat May 26, 2018 1:00 am
Posts: 26
Location: Riverton, UT
GARTHWILSON wrote:
GaBuZoMeu wrote:
Assuming° you are using the regular 1.8432 MHz clock for your 6551 and no external RxC than that pin (5 on DIL) reflects 16x RxC. Feeding this into PB6 of a VIA and use the pulse counting mode you can even generate an interrupt (out of the VIA) that would occur after transmission is done.

EDIT(1): with 1.8432 MHz the RxC should not exceed 115.2 kHz which can safely counted by a 1 or more MHz driven 6522.

This looks to be the best idea yet! From the VIA's data sheet, you write to the T2 low-byte latch, and that value gets transferred to the low-byte counter when you write to the high byte. For each byte, store the byte in the 51's transmit data register, then store the desired value (0 in this case, with STZ) to the high byte of the T2 counter to re-start the counter and to re-enable its interrupt. If the number of bits per frame remains constant, or if you just want to use the maximum for everything, the T2 low-byte latch value will be the same for all bit rates. Thanks, GaBuZoMeu!

Edit: Pin 5 is for 16x the bit rate, and 16 times 115.2kbps is 1.8432MHz. 9600bps is the fastest standard RS-232 speed a '22 running at 1MHz would be able to dependably count.


Would it be possible to use a couple of flip-flops to divide the RxC output to cover at least to 19200 baud. I have just gotten a 65C02 running on a breadboard at 1Mhz with a 65C51 (with bug) and a 65C22. I'm using the software delay loop and it's working great, but was thinking about giving this a try. Would you set the counter to 16 * 10 bits (start bit + 8 data bits + stop bit) so say 160 without FF divider or 40 with divider?


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 21, 2019 10:42 pm 
Offline
User avatar

Joined: Wed Mar 01, 2017 8:54 pm
Posts: 660
Location: North-Germany
If you run your 65C51 @ 19200 bd and the 65C22 @ 1 MHz then no divider is required. One lazy way to figure out the correct counter preset would be to start with something large and reduce it until character transmission starts to show errors :)

As the 65C22 counts down you can start with 160 what sounds reasonable.


Don't forget to post your results!


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 21, 2019 11:56 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1007
Location: Canada
cbmeeks wrote:
Thanks for the suggestions everyone.

And thanks Bill for the offer.

Right now I'm at a stand-still. I've run into an issue with my board. Nothing seems to work on it. I've had to pull the ROM socket because it no longer holds a chip.


Do you want the 65C51? These ones require no delay loops and work as designed. I don't even use handshaking. Polled by a CPU running at up to 20mHz and run at 19,200 baud. I have noticed the odd framing error in using them, but it does not seem to be related to the CPU speed because the errors happen at 1.8mHz too. Might just be my poling routine. But ti's not enough to be a bother.

_________________
Bill


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 22, 2019 2:13 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
Actually, I got my board working again. I've made it work with the 65C51 that I have. I also bought a genuine 6551 and it seems to work well too.

So full steam ahead! :-D

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Fri Mar 22, 2019 7:43 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1007
Location: Canada
Awesome!

_________________
Bill


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: