Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

help with uart

2003-11-18 by vidya srinivasan

i am trying to dump some data onto the serial port.(uart 0)
i have configured all the registers mentioned in the data sheet.
still there is not a single byte of data on the serial port
the reg values that i have configured b4 writing to UART0_THR are
UART0_FCR |= 0X07; //fifo

UART0_LCR = 0X83; //line control reg - 8data bits, no parity,1stop bit

UART0_IER = 0X05;
UART0_DLL = 0X41; // for a baud of 9600
UART0_DLM = 0X00;
GPIO_IODIR |= 0xfffffff0;
GPIO_IOCLR |= 0xff00;

PCB_PINSEL0 |= 0x5; /*select 0.0 as txd of uart0
PCB_PINSEL0 &= 0xfffffff5;

Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more. Download now.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.