Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 4 Forum Discussions

TamirM
Level 2
Level 2
25 sign-ins First like given 10 questions asked

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
Moderator
50 likes received 250 sign-ins 250 replies posted

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
Moderator
50 likes received 250 sign-ins 250 replies posted

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
0 Likes