I've just got my shiny new MPC5668 dev board, but I can't get eSCI for RS232 output working right (or really at all). There's no example code for this device around, either.
I think it's an initialization thing; after reset, TDRE is high. I try to clear it, then send a character, but no character seems to get sent: I have my logic analyzer connected to the TX pin between the 5668 and the MAXIM RS232 chip on the dev board, and all that seems to happen is the pin goes low at reset, high when I switch the pad to function 1 (eSCI_A), and then stays there.
My code is attached, and should ideally just send one character over and over. However, it never seems to send the first one despite me putting it in the data register.
It should be sending 9600 baud, no parity, 8 data, 1 stop.
Thanks in advance for any help.