Associate III
November 2, 2019
Question
Unable to Enter into Halt Mode
- November 2, 2019
- 0 replies
- 504 views
Hi,
I am trying to implement MCU sleep and wakeup mechanism using the MCU with the part number SPC560C50L3. I have developed a piece of code with reference to few reference documents(Reference Manual RM0017, AN4231, AN3316).
In the sample code which I have attached herein with, I am trying to HALT the MCU whenever external interrupt EIRQ[5] gets asserted and wakeup the MCU at the assertion of WKUP[2]. But the execution enters into infinite loop since the ME.GS.MTRANS != 0, at the time of transitioning the mode RUN0-> HALT.
I am sharing code as attachment and looking forward for you valuable comments.
Regards,
R.Santhamurthy
