USIC Tx FIFO not working properly

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi.

Successfully set up USIC1.1 and data is nicely output:ed using TBUFx.

TCSR.FLEMD=0
TCSR.WLEMD=1
SCTR.FLE=63


Writing;

TBUF[0x17] = 0x55;

Outputs 0x55 and then closes the frame as expected.

However, when I try and utilize the FIFO instead, the output data doesn't make sense.

I've allocated 16 slots and the data pointer seems to behave correctly. But the data is corrupt.

IN[0x17] = 0x55;

Yields something else entirely (looks like 0x10).

Do I need to set anything else? Flush before sending?

Any tips?
0 Likes
2 Replies
Not applicable
Adding some info;

First write at powerup is scrambled even without FIFO.

TBUF[07] = 0x55;
TBUF[07] = 0x55;
TBUF[17] = 0x55;

Results in 8 bits and 0x10... What going on here?
0 Likes
chismo
Employee
Employee
First like received
Hello,

Can you share your code or an extract of the relevant portion to help us better understand the issue?

Regards,
Min Wei
0 Likes