Hello Martin Kovar:
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.
seems I showed wrong assignment. It should be like this
So the code above should be right.
Pad 0 (bit2) in the picture then belongs to WKPU[2].
BR, Petr
Yes,Later, I discovered this rule and compared it with the routine.
thank you !
hi,Petr Stancik
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 [1] 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[6]/PE[0] pin as wakeup source and so bits 1 and 8 should be used.
Bit 6 belongs to WKPU[4] which is on pin PB[1]
BR, Petr
Hello Petr Stancik :
According to your illustration.In the routine,The register WKPU_WIREER value should be 0X00000102,Instead of 0X00000042。
What do you think?
Hi,
all the necessary info is given in chapter 24 of the Reference Manual.
BR, Petr