I´m trying to wake up a sleeping MM9Z1j638 (OPM==01; S12Z STOP) using TIMER3 / PTB3 but without luck.
I can see some current peak after about 10s but no more activity. Wake-up Using WUCTH will work before and after the 10 seconds.
This is the related code is use:
B_GPIO_CTL = B_GPIO_CTL_DIR3M_MASK | B_GPIO_CTL_DIR3_MASK \
| B_GPIO_CTL_PE4M_MASK | B_GPIO_CTL_PE4_MASK;
B_GPIO_OUT3_WKUP = 1;
B_GPIO_OUT3_TCOMP3 = 1;
B_TIOS_IOS3 = 1;
B_OC3M_OC3M3 = 1;
B_TCTL1 = 0xC0;
B_TC3 = B_TC3 + 0x2710; // reload 10s
B_TFLG1_C3F = 1;
B_PCR_WUE_WUPTB3 = 1;
B_INT_MASK = 0x0000;
So whats wrong with it?