PE software question

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

PE software question

2,454 Views
pengliang
Contributor III

I am currently using processor expert software for FRDM-KL25Z development. I am confused about the software. it looks like the software automatically generate some function or events for you. for example the LLWU events or RTC_Alarm event. is event same as irq? because the KLQEUG doc talk about irq which I really dont find any in my generated code.

Please make this clear if anyone knows

Thanks in advance

Peng

0 Kudos
Reply
4 Replies

2,246 Views
vfilip
NXP Employee
NXP Employee

Hello,

Regarding: "because the KLQEUG doc talk about irq which I really dont find any in my generated code". Could you please post here KLQEUG doc (or provide the link for download) and specify which interrupt do you need to handle?

Q: is event same as isr?

A: It depends on the implementation. It could be or not. But i think that in the most cases are events called within isr in PEx. You can find the code of the LLWU interrupt (incl. corresponding event) in the attachment.

best regards

Vojtech Filip

Processor Expert Support Team

0 Kudos
Reply

2,246 Views
pengliang
Contributor III

Thank you for reply

Sure, I provide the KLQRUG.pdf link.

http://cache.freescale.com/files/32bit/doc/quick_ref_guide/KLQRUG.

If  you open the pdf go to 5.4.2.4 LLWU port and module interrupt section. you will see some example code attached 'enable_irq(RTCA_irq_no)'. I do not have this function or constant generated by PE.

Basically, what I want to do is put the uC in LLS mode for 1 minute, then wake up by RTC alarm and run some instructions such as toggling LEDs, then go back to LLS mode again. keep doing this as a loop. However, when I wake up uC, finished toggling LEDs, it just do not go back to LLS mode. it keeps run the Cpu_OnLLSWakeUpINT() event. It seems it just keep running interrupt.

Do you have any idea?

Thank you

0 Kudos
Reply

2,246 Views
vfilip
NXP Employee
NXP Employee

Hello,

please find the attached demonstration example on usage of LLS mode. It uses LPTMR interrupt to wake up instead of RTC alarm because seems there is some issue with 32 kHz source for RTC on freedom board.

best regards

Vojtech Filip

Processor Expert Support Team


2,246 Views
pengliang
Contributor III

YES,

the freedom board populated a 8MHz instead of 32k external crystal. That is the reason you can not use rtc. I replace 8Mhz with 32k crystal. it does not have a problem with RTC.

0 Kudos
Reply