STOP mode on MCF523x

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

STOP mode on MCF523x

1,828 次查看
anance
Contributor I
Hello Coldfire Group:
 
I am having trouble getting my 5232 part to go into low power stop mode.
I set the LPCR regsiter to 0xC8.
I set the LPICR register to 0xF0.
I issue the STOP instruction with a 0x2700 following.
 
I do enter the STOP instruction because execution halts. I am at the STOP
because when I am on the BDM and I halt, my PC is right after the STOP.
But the CLKOUT is still running and the current does not fall much.
 
The documentation says that CLKOUT should stop when the STPMD bit in LPCR is hi.
I have read back the registers and all seems OK.
The LPICR reads back as oxFF and resets to 0x0F. Not sure why that is since the manual
says that it defaults to 0x00.
 
It seems that I am entering STOP but it is not turning off clocks to the CORE, etc.
It is like the ENBSTOP bit is not set in the LPICR register.
 
Any ideas.
 
Thanks,
Allen
标签 (1)
0 项奖励
回复
2 回复数

806 次查看
admin
Specialist II
I had the same problem with the MCF52210.  Setting the DISCLK bit of the SYNCR register finally disabled the CLKOUT pin.  That leaves me wondering what the STPMD bits really do.  Nothing?


Message Edited by jtsmith on 2007-11-01 04:33 PM
0 项奖励
回复

806 次查看
macl
Senior Contributor I
Try setting bit 4 of the LPCR register.  I'm not very familiar with this particular device, however other similar devices offer 4 levels of stop modes which are controlled by bits 3 & 4 of that register.  This may not be the case with this device, however its worth a shot.
0 项奖励
回复