6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 2:30 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Sep 14, 2005 6:34 pm 
Offline

Joined: Wed Sep 14, 2005 6:28 pm
Posts: 3
I've mananged to hookup a 16C450 UART to my C64. I can read/write registers and the chip seems to respond.

My schematic is here:
http://www.54.org/condev/c64uart.png

However, I cannot seem to get it to transmit the THR (Transmit Hold Register).
The default registers are set up for 2400 baud (DLAB MSB=0, LSB=0x30), 5 data bits, 1 stop bit, no parity.

I used an oscilloscope to see if the 1.8432mhz crystal is oscillating (which it was). Now I'm stuck at this point.

Any suggestions?


Top
 Profile  
Reply with quote  
PostPosted: Wed Sep 14, 2005 7:25 pm 
Offline

Joined: Sat Jan 04, 2003 10:03 pm
Posts: 1706
I am not familiar with the 16C5x0 series of UARTs. Is the chip reporting that it even CAN transmit? If it's configured to recognize hardware handshaking, make sure that the CTS (Clear to Send) signal is asserted.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Sep 15, 2005 5:31 pm 
Offline

Joined: Wed Sep 14, 2005 6:28 pm
Posts: 3
From my understanding (after reading the data sheet), 8250/16450/16550 UARTs leave CTS/RTS DTS/DTR up to the programmer. Before writing to the THR (transmit hold register), you should check the MSR (modem status register), to see if CTS is in the correct state before writing.

I do believe the 6850 UART (Motorola), does indeed need CTS in the correct state to transmit.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Sep 16, 2005 7:03 am 
Offline

Joined: Wed Sep 14, 2005 6:28 pm
Posts: 3
Solved the problem.
The crystal was not oscillating reliably, replaced it with an oscillator and all is well.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 30 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: