NEC PD754144 User Manual page 224

4-bit single-chip microcontrollers
Table of Contents

Advertisement

<Program example>
(INT0 servicing program, MBE = 0)
VSUB0:
SKT
BR
SET1 BTM.3
WAIT:
SKT
BR
SKT
BR
MOV A, #0011B
MOV PCC, A
MOV XA.#××H
MOV PMGm, XA
EI
EI
RETI
PDOWN:
MOV A, #0
MOV PCC, A
MOV XA, #00H
MOV PMGA, XA
DI
DI
MOV A, #1011B
MOV BTM, A
NOP
STOP
NOP
RETI
224
CHAPTER 8 STANDBY FUNCTION
PORT6.1
; P61 = 1?
PDOWN
; Power down
; Power on
IRQBT
; Waits for 21.8 ms
WAIT
PORT6.1
; Checks chattering
PDOWN
; Sets high-speed mode
; Sets port mode register
IEBT
IET0
; Lowest-speed mode
; I/O port in high-impedance state
IEBT
; Disables INTBT and INTT0
IET0
; Wait time = 21.8 ms
; Sets STOP mode
User's Manual U10676EJ3V0UM
.
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents