Part Number: TMS320F28069M
Other Parts Discussed in Thread: DRV8301,
Hello,
I'm trying to add serial communications to an InstaSpin Lab (currently using Lab06a). This is a custom board, based on the DRV8301 EVM board. I would like to control the motor drive board, using an LCD.
I'm using the SLIP protocol, at 115.2 kBAUD, 8 bits, 1 STOP bit, no parity. I have it set up in the main loop, just polling the Rx port. When the motor control board receives a message from the LCD, it responds in kind.
This scheme worked in isolation (project was communication only), but I keep getting a "framing error", after incorporating it into the InstaSpin Lab. Apparently the TMS320F28069M is missing the STOP bit.
The STOP bit is indeed being sent (I had this working without InstaSpin involved). I suspect that an interrupt is cutting off reception.
I tried toggling a GPIO when the Main ISR starts and finishes, and found that the time spent in the interrupt is around 55us, followed by a 1.2 us idle time, not in the interrupt.
How am I supposed to fit anything in, if the Main ISR consumes so much time? The time to receive one byte is 69.4us at 115.2 kBAUD. Maybe I'm interpreting this wrong?
Thanks,
Dave