Hi,
I need a clarification about the functional modes of the MPXY8600 sensor.
The datasheet says:
-"The Stop2 mode found in other Freescale S08 family members is not available; but the Stop3 mode is also present like other members of
the Freescale S08 family members." -
But there is no specification about how to set it.
In the SPMSC2 register I can write only the PDC bit while the PPDC, that was present in the mpxy8300 family, is reserved.
So, how can I set the Stop 3 Mode?
Can I equally write this last bit of the SPMSC2 register to obtain a Stop 3 Mode?
Thanks,
Riccardo
Hi Zhang,
I read your project but I can't understand where you set the Stop Mode.
In the main.c you set only the KBI and the Timer.
I can't see any setting for the register SPMSC2 so I can't understand how it is possible that the JM60 can go in Stop 3 Mode.
Can you explain me briefly?
Thanks,
Riccardo
hello Riccardo,
SPMSC2: PPDC bit is to control whether stop2 or stop3 selected.
0 Stop3 mode enabled.
1 Stop2, partial power down, mode enabled.
the default value of PPDC is 0, so the default stop mode is stop3. that's the reason I didn't set SPMSC2: PPDC in sample code.
when execute __asm STOP , program goes into stop3 mode.
The code have two interrupt: timer and KBI
- when code is running, it is in stop3 mode, timer can not work
- when KBI happens(KBI #0), it wake up stop3
- go on running code, timer can work now.
===============================================
this answer is for you. if it helps, please click on "correct answer" button. thanks!
Best Regards,
ZhangJun