ExtravDreams
New Member
I’m a little confused on using a TL16C550C UART. It has a programmable baud rate generator, which must be initialized. I understand that this is done by choosing the Divisor Latch Register (through use of A0-A2 inputs and the DLAB in the line control register), but how do I write to the register when it doesn’t yet know the proper baud rate? Is there a default setting? I’m using a 1.8432 MHz clock. The same goes of the Line Control Register settings (word length, stop length, parity)-is there a default?
Also, I’m a little unsure if I’ve connected all the handshaking pins together correctly. I’ve used a null modem connection, but I’m not sure what to do with a couple of connections. I’ve seen the DCD connected either to RTS, DTR, or disconnected. Also, I assume I just leave the RI disconnected?
`PC_____UART
DCD <-- ?
RxD <-- Sout
TxD --> Sin
DTR --> DSR
`SG --- Vss (ground)
DSR <-- DTR
RTS --> CTS
CTS <-- RTS
`RI <--
Thanks for your help,
Sebastian
Also, I’m a little unsure if I’ve connected all the handshaking pins together correctly. I’ve used a null modem connection, but I’m not sure what to do with a couple of connections. I’ve seen the DCD connected either to RTS, DTR, or disconnected. Also, I assume I just leave the RI disconnected?
`PC_____UART
DCD <-- ?
RxD <-- Sout
TxD --> Sin
DTR --> DSR
`SG --- Vss (ground)
DSR <-- DTR
RTS --> CTS
CTS <-- RTS
`RI <--
Thanks for your help,
Sebastian