Hi,
I'm trying to wake up from VLPS mode from several different sources which include CAN.
I CAN GO TO SLEEP(VLPS) AND WAKE UP VIA ALL THE DIFFERENT SOURCES USING THEIR CORRESPONDING PIN INTERRUPTS EXCEPT FOR CAN.
Here is my strategy to wake up through CAN:
I go to sleep on absence of CAN traffic for certain amount of time
CONFIGURING CAN0_RX PIN(PTE4) AS FALLING EDGE PIN INTERRUPT .
PTE4 PIN INTERRUPT IS ENABLED RIGHT BEFORE I GO TO SLEEP, AND DISABLED JUST AFTER WAKE UP.
The issue is when I kill the CAN TRAFFIC via CAN ALYZER I EXPECT CAN0_RX TURNS IDEAL(HI) AND WHEN I START CAN , I WOULD SEE A FALLING EDGE ON PTE4 AND THE PIN INTERRUPT WOULD BE ASSERTED.
But what actually happens is that as soon as PTE4 pin interrupt is enabled it is triggered (WITHOUT CAN TRAFFIC)
and this prevents me to go to sleep.
I know I need to scope this but was wondering if there is something about PTE4 that I don't know.
Thanks