cancel
Showing results for 
Search instead for 
Did you mean: 

Read number of bytes in UART Buffer & DTF not setting after a tx

kevin239955_st
Associate II
Posted on June 16, 2016 at 14:44

Using an SPC564X, I'm trying to read how many bytes are in the BDRM (when in 4 byte buffer mode) on linflex3. I know it is possible on linflexd 0/1 using FIFO mode, but that isn't available on linflex2-9. The reason I need this is incase a message which isn't 4 byte aligned is received.

Also, would there be any reason the tx completed interrupt (cause by DTF) wouldn't fire after sending a byte? I'm finding a situation where I'll set TXEN in UARTCR, load my byte into the BDRL and after a few interrupts servicing in this same way it stops firing. At this point the TXEN field is still 1, but the DTF is 0.

Thanks
1 REPLY 1
procolo
Senior
Posted on June 20, 2016 at 11:04

Hi,

are you using SPC5studio or another development tool? 

In any case, it could be useful if you send your code for linflex so we can check if it's all ok. Also, could you speficy which z4 core based platform are you using?

Regards,

Procolo