161
CHAPTER 8 LOW-POWER CONTROL CIRCUIT
■
Notes on Accessing the Low-power Consumption Mode Control Register (LPMCR) to
Enter the Standby Mode
●
To access the low-power consumption mode control register (LPMCR) with assembler language
To set the low-power consumption mode control register (LPMCR) to enter the standby mode, use the
instruction listed in Table 8.3-2.
The low-power consumption mode transition included in Table 8.3-2 must always be followed by an array
of instructions highlighted by a line below.
The device does not guarantee its operation after returning from the low-power consumption mode if you
place an array of instructions other than the one enclosed in the line.
●
To access the low-power consumption mode control register (LPMCR) with C language
To enter the standby mode using the low-power consumption mode control register (LPMCR), use one of
the following methods (1) to (3) to access the register.
(1)Specify the standby mode transition instruction as a function and insert two
_wait_nop()
built-in
functions after that instruction. If any interrupt other than the interrupt to return from the standby mode can
occur within the function, optimize the function during compilation to suppress the
LINK
and
UNLINK
instructions from occurring.
Example: Time-base timer mode transition function
Void enter_time-base(){
IO_LPMCR_byte = 0x10;
/
*
Set LPMCR TMD bit to "0"
*
/
wait_nop();
wait_nop();
}
(2)Define the standby mode transition instruction using
_asm
statements and insert two
NOP
and
JMP
instructions after that instruction.
Example: Transition to sleep mode
_asm(" MOV I:_IO_LPMCR, #H’58");
/
*
Set LPMCR SLP bit to "1"
*
/
_asm(" NOP");
_asm(" NOP");
_asm(" JMP $+3");
/
*
Jump to next instruction
*
/
MOV
LPMCR, #H’XX
; the low-power mode transition instruction in Table 8.3-2
NOP
NOP
JMP
$+3
; jump to next instruction
MOV
A, #H’10
; any instruction
Содержание MB90390 Series
Страница 2: ......
Страница 4: ......
Страница 17: ...xiii APPENDIX D List of Interrupt Vectors 690 INDEX 695 ...
Страница 18: ...xiv ...
Страница 132: ...104 CHAPTER 5 CLOCKS ...
Страница 152: ...124 CHAPTER 6 CLOCK MODULATOR ...
Страница 210: ...182 CHAPTER 11 TIME BASE TIMER ...
Страница 218: ...190 CHAPTER 12 WATCHDOG TIMER ...
Страница 264: ...236 CHAPTER 14 16 BIT RELOAD TIMER WITH EVENT COUNT FUNCTION ...
Страница 274: ...246 CHAPTER 15 WATCH TIMER ...
Страница 306: ...278 CHAPTER 17 DTP EXTERNAL INTERRUPTS ...
Страница 338: ...310 CHAPTER 18 8 10 BIT A D CONVERTER ...
Страница 364: ...336 CHAPTER 19 UART0 UART1 ...
Страница 398: ...370 CHAPTER 20 UART2 UART3 Figure 20 5 2 ORE Set Timing Receive data RDRF ORE ...
Страница 432: ...404 CHAPTER 20 UART2 UART3 ...
Страница 482: ...454 CHAPTER 22 SERIAL I O ...
Страница 560: ...532 CHAPTER 24 STEPPING MOTOR CONTROLLER ...
Страница 582: ...554 CHAPTER 27 ROM MIRRORING MODULE ...
Страница 632: ...604 CHAPTER 29 EXAMPLES OF SERIAL PROGRAMMING CONNECTION ...
Страница 722: ...694 APPENDIX ...
Страница 723: ...695 INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 740: ......