Using Low-power mode of MC9S08GB

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

Using Low-power mode of MC9S08GB

1,713 次查看
TY
Contributor I
Hello all,
 
I'm writing program on the chip of MC9S08GT16 to enter low power mode periodically. I want it to enter STOP2, so write code in the initilization:
 
SOPT = 0x73;         /* Enable STOPE */
SPMSC2 = 0x03;    /* Set PDC and PPDC to 1 */
IRQSC = 0x16;       /* Enable IRQPE */
SPMSC1 &= 0xF7; /* Disable LVDSE */
 
Every time I am about to enter STOP2, I switch to use internal clock, and SRTISC is set to be 0x17, to set RTI in every 1 sec.
 
I would like to know if anything is wrong, because I didn't notice it quitting from STOP2.
 
I used SMAC4.2 and CodeWarrior 5.1. Please let me know if I'm doing anything wrongly. Thanks a lot!
 
Tommy
 
标签 (1)
0 项奖励
回复
2 回复数

943 次查看
Michele
Contributor I
what does it mean  " I didn't notice it quitting from STOP2 " ?
 
0 项奖励
回复

943 次查看
TY
Contributor I
Hello,
 
As I understand, there should be a power on reset after exiting from STOP2, which should perform initialization again. Actually, my code toggles LEDs after initialization and perform data transmission using ZigBee transceiver, then move into STOP2 again. There should be LEDs toogles and change in current consumption, but none of those happened and I wonder it should be still in STOP2.
 
Tommy.
0 项奖励
回复