- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all!
How to dinamicaly change CAN ID of the TX FULL message of CAN component? Thanks!
Solved! Go to Solution.
- Labels:
-
PSoC 5 Device Programming
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No. I need to change ID of TX full message, that is allready configured in CANcomponet TX section. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AlMe_962021,
You should still be able to change the ID of the Full mailbox using the AMR and ACR registers. You can directly write into the respective registers with the correct filter settings.
For example, the following code changes the filter settings of Mailbox0 as 0x003.
#define AMR (0x001FFFF9)
#define ACR (0x00600000)
CY_SET_REG32( 0x402E00B0,AMR);
CY_SET_REG32( 0x402E00B4 ,ACR);
Refer the device register TRM for the correct register location for the respective mailboxes.
Regards,
Bragadeesh
Bragadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found it!
CAN_SET_TX_ID_STANDARD_MSG(i, id); !!!