Description: 2. UART program design and circuit simulation using UART1 to output the character " An ARM7 Example LPC2138 By IMU 2011-04-20 23:55:07" First, initialize the serial port 0 on request, using PINSEL0 register setting the UART0 initialize interfaces P0.0, P0.1. Use U0LCR set the baud rate, data length is defined as 8 data bits, through Fpclk operations, use U0DLM register setting divider register high byte register settings using U0DLL divider register low byte. Controller settings using the control register U0CLR communication mode, the completion of the initialization settings for UART0. Second byte of data to the serial port settings. Using Transmit Holding Register U0THR, line status register U0LSR control data sent in the definition of good data to be displayed, the use of while-if loop control data sent.
To Search:
File list (Check if you may need any files):
UART
....\Config.h
....\LPC2138.H
....\LPCUart.h
....\Last Loaded UART.DBK
....\Startup.lst
....\Startup.o
....\Startup.s
....\Target.c
....\Target.h
....\UART.DSN
....\UART.Opt
....\UART.PWI
....\UART.Uv2
....\UART.axf
....\UART.hex
....\UART.htm
....\UART.lnp
....\UART.map
....\UART.plg
....\UART.sct
....\UART.tra
....\UART_Opt.Bak
....\UART_Target 1.dep
....\UART_Uv2.Bak
....\main.C
....\main.crf
....\main.d
....\main.i
....\main.o
....\main.txt