English
Language : 

MC68HC908RK2 Datasheet, PDF (40/158 Pages) Motorola, Inc – Microcontroller Unit
Memory
MOV #$08,CPUSPD
MOV #$0A,BUMPS
LDHX #100000/24
STHX DERASE
LDHX #$7808
STHX LADDR
LDHX #$7800
JSR REDPROG
;Load Bus frequency in MHz * 4
;Load max number of programming steps
;before a failure is returned
;Set erase time in uS/24
;Load the last address of the multi-row
;range; (in this case, 2 rows)
;into LADDR
;Load the first address of the
;multi-row range into H:X
;Call through jump table.
2.5.9 Low-Power Modes
The WAIT and STOP instructions put the MCU in low power-consumption standby modes.
2.5.9.1 Wait Mode
Putting the MCU into wait mode while the FLASH 2TS is in read mode does not affect the operation of
the FLASH 2TS memory directly, but there will be no memory activity since the CPU is inactive.
The WAIT instruction should not be executed while performing a program or erase operation on the
FLASH 2TS. When the MCU is put into wait mode, the charge pump for the FLASH 2TS is disabled so
that either a program or erase operation will not continue. If the memory is in either program mode
(PGM = 1, HVEN = 1) or erase mode (ERASE = 1, HVEN= 1), then it will remain in that mode during wait.
Exit from wait mode must now be done with a reset rather than an interrupt because if exiting wait with
an interrupt, the memory will not be in read mode and the interrupt vector cannot be read from the
memory.
2.5.9.2 Stop Mode
When the MCU is put into stop mode, if the FLASH 2TS is in read mode, it will be put into low-power
standby.
The STOP instruction should not be executed while performing a program or erase operation on the
FLASH 2TS. When the MCU is put into stop mode, the charge pump for the FLASH 2TS is disabled so
that either a program or erase operation will not continue. If the memory is in either program mode
(PGM = 1, HVEN = 1) or erase mode (ERASE = 1, HVEN = 1), then it will remain in that mode during stop.
Exit from stop mode now must be done with a reset rather than an interrupt because if exiting stop with
an interrupt, the memory will not be in read mode and the interrupt vector cannot be read from the
memory.
MC68HC908RK2 Data Sheet, Rev. 5.1
40
Freescale Semiconductor