--- In lpc2000@yahoogroups.com, "Bill Knight" <BillK@t...> wrote:
> You might want to check my contribution to the files section on
Yahoo.
> The descriptively titled 'UT040322A.zip', contains an interrupt or
> polled (your choice) UART driver, non-interrupt system timer, and a
> blinky lights program. It may be of help to you.
>
> Regards
> -Bill Knight
> the ARM Patch
Hey Bill,
I took a close look at the 'UT040322A.zip' files and I noticed
something in the UART initializer ("uart0Init" in uart.c) that I
need your clarification on.
;void uart0Init(uint16_t baud, uint8_t mode, uint8_t fmode)
;{
;......
;......
; // set the number of characters and other
; // user specified operating parameters
; U0LCR = (mode & ~ULCR_DLAB_ENABLE);
; U0FCR = fmode;
There are defines for bits 4 & 5 of fmode that I think corresponds
to TxFIFOs (interpreting the header files). But I thought writing
1's to the UART FCR [5:3] shouldn't be done (stated in the lpc21xx
manual)...unless u really know what u are doing. I can't find any
documentation in the manual for setting TxFIFO levels but that piece
of code seems to suggest otherwise. Could u explain what the
Reserved bits ( 3, 4 & 5) in U0FCR [5:3] are for?
Thanks.
LeightonMessage
Re: TX FIFO
2004-07-30 by Leighton Rowe
Attachments
- No local attachments were found for this message.