I have some questions for you.I hope you can give me an answer.
About LP_STOP routine of mpc5748g,while configration wake up unit ,Operational Register 【WKPU_WIREER】、【WKPU_WIFER】、【WKPU_WRER】and 【WKPU_WIPUER】.What are their values based on?There is no detailed description in the reference manual.
Below is the routine code:
WKPU.WIREER.R = 0X00000042;
WKPU.WIFER.R = 0X00000040;
WKPU.WRER.R = 0X00000002;
WKPU.WIPUER.R = 0X000FFFFF;
Please give me some help. Thank you.
I checked the manual of MPC5746C and the io_signal excel document.
There are 30 wkpus in total, from 2 to 31, so it should be understood as follows
I think CMP_0/1/2 is WKPU  is bit 2。Am I right in my analysis?
Hello Petr Stancik :
I very much thank you to answer my question.
I still don't understand. I want to discuss it with you. I have checked the definition of WKPU_WIREER register. There are 32 bits in total. If there is an external wake-up, can it be defined to one of the registers? If so, why does the routine register value 0X42?
you should refer to figure 24-2 of the RM
the example mentiones RTC and WKUP/PE pin as wakeup source and so bits 1 and 8 should be used.
Bit 6 belongs to WKPU which is on pin PB