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
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
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
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.