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.
Thoughts on delays...
Re: Thoughts on delays...
Cat; the other white meat.
-
bradleystach
- Posts: 26
- Joined: 26 May 2018
- Location: Riverton, UT
Re: Thoughts on delays...
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.
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.
Re: Thoughts on delays...
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!
As the 65C22 counts down you can start with 160 what sounds reasonable.
Don't forget to post your results!
Re: Thoughts on delays...
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.
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.
Bill
Re: Thoughts on delays...
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!
So full steam ahead!
Cat; the other white meat.