Part Number: TMS320F2812
I´d like to know whether the Transmission Acknowledge register (CANTA) must be cleared by the CPU before starting a new transmission or not.
My software does not use interrupts and performs the piece of code bellow before starting a new transmission on mailbox 0.
ECanaShadow.CANTA.all = ECanaRegs.CANTA.all;
ECanaShadow.CANTA.all |= 1;
ECanaRegs.CANTA.all = ECanaShadow.CANTA.all;
do
{
ECanaShadow.CANTA.all = ECanaRegs.CANTA.all;
} while ((ECanaShadow.CANTA.all & 1) == 0);
I ran a test and the software got trapped in the "while loop". In this test there were other nodes on the CAN bus, but no one was operational (acknowledging the message).
Thanks