Running bare metal software on MC56F800-EVK with CW11.1 and DSC Quickstart 2.7.
Two questions:
(1) When reading uart in buffered mode and using ioctl(SCI0, SCI_GET_RX_CHARS_READY, NULL) to determine how many chars are in read buffer, the ioctl always returns 1 (even when there is no input). Why?
(2) When reading uart in non-buffered mode, there appears to be no ioctl call to determine if a char is in the read data register. There appears to be no way to determine if a char has been received. Am I wrong?
I got the SCI successfully running without using buffered IO. i am using non-buffered but with the TX and RX FIFOs enabled. By carefully reading the tech manual, I was able to setup the TX FIFO full count and the RX FIFO empty count flags such that I am able to TX and RX very efficiently. Consider this support item closed.