Register Value

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

Register Value

1,156 Views
flight
Contributor II

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.

Labels (1)
0 Kudos
7 Replies

1,013 Views
PetrS
NXP TechSupport
NXP TechSupport

seems I showed wrong assignment. It should be like this

pastedImage_1.png

So the code above should be right. 

Pad 0 (bit2) in the picture then belongs to WKPU[2].

BR, Petr 

0 Kudos

1,013 Views
flight
Contributor II

Yes,Later, I discovered this rule and compared it with the routine.

thank you !

0 Kudos

1,013 Views
flight
Contributor II

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?

pastedImage_1.png

0 Kudos

1,013 Views
flight
Contributor II

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?

pastedImage_1.png

0 Kudos

1,013 Views
PetrS
NXP TechSupport
NXP TechSupport

you should refer to figure 24-2 of the RM

pastedImage_2.png

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

0 Kudos

1,013 Views
flight
Contributor II

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?

0 Kudos

1,013 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

all the necessary info is given in chapter 24 of the Reference Manual.

BR, Petr

0 Kudos