cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ 4

TamirM
New Contributor II

I wanted to make sure I'm working correctly.

I have 1 ISR (isr_can - see in attached layout) to handle both new Rx message and CAN off state.

  1. Is this the correct method to check if CAN is in off state: if (CAN_INT_SR_REG & CAN_BUS_OFF_MASK) ?
    in a more general way, how can I tell the interrupt source?
  2. How do I clear the interrupt flag of can bus off mask? (to clear receive message flag I do this : CAN_INT_SR_REG = CAN_RX_MESSAGE_MASK)
0 Likes
1 Solution
Alakananda_BG
Moderator
Moderator

Hi,

Can you  let us know which PSoC 4 device you are using so that  we can figure out exactly which PSoC4 device has the registers that you have mentioned.

Also you can go through to the below documents which might help you further 

https://www.cypress.com/file/127121/download

https://community.infineon.com/t5/Knowledge-Base-Articles/Control-Area-Network-CAN-Protocol-Troubles...

Regards

Alakananda

View solution in original post

0 Likes
1 Reply
Alakananda_BG
Moderator
Moderator

Hi,

Can you  let us know which PSoC 4 device you are using so that  we can figure out exactly which PSoC4 device has the registers that you have mentioned.

Also you can go through to the below documents which might help you further 

https://www.cypress.com/file/127121/download

https://community.infineon.com/t5/Knowledge-Base-Articles/Control-Area-Network-CAN-Protocol-Troubles...

Regards

Alakananda

View solution in original post

0 Likes