Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE
HI:
My project is migrating from 28035 to 280049.
At 28035, we use obj/mailbox 1 to receive the data of two protocol numbers through ID filter. Obj/mailbox 4 and obj/mailbox 5 send their respective protocol data.
In the original project, the first reply frame is triggered by receiving data, and the rest is saved in the buffer. In the main loop, the first frame transmission is judged to be completed by judging ECanaRegs. Canta. Bit. TA5 = 1. After judging that the transmission is completed, the bit is cleared first, and the data in the buffer is sent until the data in the buffer is sent complete.
In the register of DCan,found CAN_ES.TxOk, but think this bit is impossible to distinguish between two obj's. Bit TxRqst ,indicative The transmission of this message object is requested and is not yet done.So I would like to ask whether there is a corresponding flag bit in DCan equal ECanaRegs.CANTA.bit.TA5 in eCAN ?
In the original project, ECanaRegs.CANRMP.bit.RMP1 = 1 is used to judge whether there is data reception. After data is received, the flag bit is cleared first, and then the data in the register is read. Currently, it is planned to use (HWREG_BP(CANA_BASE + CAN_O_NDAT_21)) == 0x00000001 to judge data reception. I think the significance of these two judgments is the same, but NewDat is reset by CPU read.In Table 4-2 ECAN DCan registers and bit equivalence, these two marks are not found. So I would like to ask whether these two data are equivalent except RMP1 is reset user code and NewDat is reset by CPU read. Thank you
