AnsweredAssumed Answered

How to make MSCAN stop working?

Question asked by sarah wang on Mar 7, 2019
Latest reply on Mar 11, 2019 by Robin_Shen

Hi All,

 

I'm developing on S9KEAZ128 and meeting a proble about MSCAN.

When the system voltage is higher than the work voltage, I want MSCAN to stop working. Then I set  bit 7(CANE) of MSCAN_CANCTL1 as 0 (MSCAN module is disabled), but I still can receive message on CAN bus. Code as following.

 

    MSCAN_MemMapPtr p = (MSCAN_MemMapPtr) MSCAN_BASE_PTR;
    p->CANCTL1 &= ~MSCAN_CANCTL1_CANE_MASK;

Outcomes