Tool/software: Code Composer Studio
Hi,
I've just started programming the TMS320F2812 and I was looking through the example file Example_281xSciFFDLB_int.c for programming the serial communication interface with FIFO buffers and interrupts. In the two functions scia_fifo_init() and scib_fifo_init() the communication is initialized by setting several registers. I don't understand why the FIFO transmit register SCIFFTX gets the value 0xC028. According to the reference guide (SPRU051D) an interrupt is generated when the status bits (TXFFST) are equal or less than the interrupt level bits (TXFFIL). I assume the status bits are updated dynamically depending on the number of words in the FIFO. However, in the case of the value 0xC028 the status bits are 00000 and the interrupt level bits are 01000, so the status bits are equal or less than the interrupt level bits. Does this mean that there are continuously interrupts, until there are 01000= 8 words in the FIFO buffer? Furthermore, I assume these are not software interrupts, but they are taken care of by the hardware. I would appreciate it if anybody could provide me with some answers. I didn't find too much information about this in the reference guide.
Best regards, Michiel van Rijnbach.