Using Low-power mode of MC9S08GB

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Using Low-power mode of MC9S08GB

1,689件の閲覧回数
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 返答(返信)

919件の閲覧回数
Michele
Contributor I
what does it mean  " I didn't notice it quitting from STOP2 " ?
 
0 件の賞賛
返信

919件の閲覧回数
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 件の賞賛
返信