How to make MSCAN stop working?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to make MSCAN stop working?

437 Views
w_lingjun
Contributor III

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;

0 Kudos
1 Reply

351 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Please also try to disable the clock gate of MSCAN.

MSCAN_Deinit.png

MSCAN_Enable.png

SIM_SCGC[MSCAN].png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos