Writing drivers for an SC16IS752 dual UART, need some help

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by skyjumper on Sat Mar 21 13:16:34 MST 2015
Hi All...

Like the subject says, I'm writing some serial drivers for an SC16IS752 dual UART and having some trouble.

To send data, my application utilizes a ring buffer where data to be sent goes. The serial ISR is supposed to read data from the ring buffer and send it to the UART's THR. As the TX FIFO empties, the interrupt is triggered so the ISR can go get more data from the ring buffer and give it to the UART.

All well and good, but how do I generate the first interrupt to get the entire thing started? The data sheet does not seem to tell me how to force the UART to generate an interrupt.