??? 07/31/08 22:13 Read: times Msg Score: 0 -1 Off-Topic +1 Good Question |
#157203 - 16550 UART Initialization Routine |
I'm having a little trouble trying to get my 16550 UART to Receive Characters. I can get it to transmit Bytes, but it will not receive bytes.
My Initialization Routine is as follows: LCR=0x80; // Set Baud Rate Divisor Latch to 1 DLM=0x00; // Set Baud Rate divider DLL=0x1b; LCR=0x03; // Set Divisor Latch to 1 and 8bit word length MCR=0x00; FCR=0x07; //Enable FIFOs and Reset the RX & TX FIFO. Set FIFO trigger level to 1 byte IER=0x0F; // Enable all Interrupts THR=0x30; // This transmits "0" ASCII character when I read the RBR register I always get 0x00 when I know I sent characters to the port. Any thoughts would be helpful. Thanks, Eric |
Topic | Author | Date |
16550 UART Initialization Routine | 01/01/70 00:00 | |
re | 01/01/70 00:00 | |
You might look in the early PC hardware manual | 01/01/70 00:00 | |
Check the value of LSR... | 01/01/70 00:00 | |
FIFO May Be Fooling You | 01/01/70 00:00 |