Content originally posted in LPCWare by Skashkash on Mon Dec 10 06:16:39 MST 2012
The M0 chips I've been working with don't even have a FIFOLVL register so I can't test anything.
But, what does your uart init code look like? I assume you are enabling the FIFO in FCR?
I have had a little trouble dealing with the FIFO on some of the other chips. You can only tell if the FIFO is completely full or empty.
You may want to try writing 16 (or more chars) to the uart, and then try reading FIFOLVL. May also help to do these tests at very low baud rates to insure that the chars are not clocking out while you are reading the registers.