78K/IV Series User’s Manual - Instruction: U10905E
FEATURES
78K/IV Series
Pin-compatible with µPD78234 Subseries,
µ
PD784026 Subseries, and µPD784038
Subseries
Minimum instruction execution time: 125 ns
(@ 32-MHz operation)
I/O ports: 46
Serial interface: 3 channels
UART/IOE (3-wire serial I/O): 2 channels
2
CSI (3-wire serial I/O, 2-wire serial I/O, I
1 channel
PWM output: 2 outputs
C bus):
Timer/counter
16-bit Timer/counter x 3 units
16-bit Timer x 1 unit
Standby function
HALT/STOP/IDLE mode
Clock division function
Watchdog timer: 1 channel
A/D converter: 8-bit resolution x 8 channels
D/A converter: 8-bit resolution x 2 channels
Supply voltage: VDD = 2.7 to 5.5 V
APPLICATION FIELDS
Cellular phones, cordless phones, audio-visual systems, etc.
ORDERING INFORMATION
Part NumberPackage
µ
PD784031YGC-3B9
µ
PD784031YGC-8BT
µ
PD784031YGK-BE980-pin plastic TQFP (fine pitch) (12 x 12 mm)None2048
80-pin plastic QFP (14 x 14 mm, thickness 2.7 mm)
80-pin plastic QFP (14 x 14 mm, thickness 1.4 mm)
Internal ROM (Bytes)Internal RAM (Bytes)
None2048
None2048
Document No. U11504EJ1V0DS00 (1st edition)
Date Published July 1997 N
Printed in Japan
The information in this document is subject to change without notice.
7.3Real-time Output Port ........................................................................................................................... 29
9.5Bus Hold Function ................................................................................................................................ 49
10. STANDBY FUNCTION .................................................................................................................... 50
11. RESET FUNCTION ......................................................................................................................... 51
12. INSTRUCTION SET ........................................................................................................................ 52
A8 to A19: Address Bus
AD0 to AD7: Address/Data Bus
ANI0 to ANI7: Analog Input
ANO0, ANO1: Analog Output
ASCK, ASCK2: Asynchronous Serial Clock
ASTB: Address Strobe
DD: Analog Power Supply
AV
AVREF1 to AVREF3 : Reference Voltage
SS: Analog Ground
AV
CI: Clock Input
HLDAK: Hold Acknowledge
HLDRQ: Hold Request
INTP0 to INTP5: Interrupt from Peripherals
NMI: Non-maskable Interrupt
P00 to P07: Port0
P10 to P17: Port1
P20 to P27: Port2
P30 to P37: Port3
P60 to P63, P66, P67
: Port6
P70 to P77: Port7
PWM0, PWM1: Pulse Width Modulation Output
RD: Read Strobe
REFRQ: Refresh Request
RESET: Reset
RxD, RxD2: Receive Data
SCK0 to SCK2: Serial Clock
SCL: Serial Clock
SDA: Serial Data
SI0 to SI2: Serial Input
SO0 to SO2: Serial Output
TEST: Test
TO0 to TO3: Timer Output
TxD, TxD2: Transmit Data
• Can be used as real-time output port (4 bits x 2).
• Can be set in input or output mode bitwise.
• Pins set in input mode can be connected to internal pull-up
resistors by software.
• Can drive transistor.
Port 1 (P1):
• 8-bit I/O port
• Can be set in input or output mode bitwise.
• Pins set in input mode can be connected to internal pull-up
resistors by software.
• Can drive LEDs.
Port 2 (P2):
• 8-bit input port
• P20 cannot be used as general-purpose port pin (non-maskable
interrupt). However, its input level can be checked by interrupt
routine.
• P22 through P27 can be connected to internal pull-up resistors
by software in 6-bit units.
• P25/INTP4/ASCK/SCK1 pin can operate as SCK1 output pin if
so specified by CSIM1.
P30I/ORxD/S1
P31TxD/SO1
P32SCK0/SCL
P33SO0/SDA
P34 to P37TO0 to TO3
P60 to P63I/OA16 to A19
P66WAIT/HLDRQ
P67REFRQ/HLDAK
P70 to P77I/OAN10 to AN17
Port 3 (P3):
• 8-bit I/O port
• Can be set in input or output mode bitwise.
• Pins set in input mode can be connected to internal pull-up
resistors by software.
Port 6 (P6):
• P60 through P63 is dedicated ports for output.
• P66 and P67 can be set in input or output mode bitwise.
• Pins set in input mode can be connected to internal pull-up
resistors by software.
Port 7 (P7):
• 8-bit I/O port
• Can be set in input or output mode bitwise.
11
µ
PD784031Y
5.2 Non-port Pins
Pin NameI/OAlternate FunctionFunction
TO0 to TO3OutputP34 to P37Timer output
CIInputP23/INTP2Count clock input to timer/counter 2
RxDInputP30/SI1Serial data input (UART0)
RxD2P13/SI2Serial data input (UART2)
TxDOutputP31/SO1Serial data output (UART0)
TxD2P14/SO2Serial data output (UART2)
ASCKInputP25/INTP4/SCK1Baud rate clock input (UART0)
ASCK2P12/SCK2Baud rate clock input (UART2)
SDAI/OP33/SO0Serial data input/output (2-wire serial I/O, I2C bus)
SI0InputP27Serial data input (3-wire serial I/O0)
SI1P30/RxDSerial data input (3-wire serial I/O1)
SI2P13/RxD2Serial data input (3-wire serial I/O2)
SO0OutputP33/SDASerial data output (3-wire serial I/O0)
SO1P31/TxDSerial data output (3-wire serial I/O1)
SO2P14/TxD2Serial data output (3-wire serial I/O2)
SCK0I/OP32/SCLSerial clock input/output (3-wire serial I/O0)
SCK1P25/INTP4/ASCKSerial clock input/output (3-wire serial I/O1)
SCK2P12/ASCK2Serial clock input/output (3-wire serial I/O2)
SCLP32/SCK0Serial clock input/output (2-wire serial I/O, I2C bus)
NMIInputP20External interrupt requests–
INTP0P21• Count clock input to timer/counter 1
• Capture trigger signal of CR11 or CR12
INTP1P22• Count clock input to timer/counter 2
• Capture trigger signal of CR22
INTP2P23/CI• Count clock input to timer/counter 2
• Capture trigger signal of CR21
INTP3P24• Count clock input to timer/counter 0
• Capture trigger signal of CR02
INTP4P25/ASCK/SCK1–
INTP5P26Conversion start trigger input to A/D converter
AD0 to AD7I/O–Time-division address/data bus (for external memory connection)
A8 to A15Output–Higher address bus (for external memory connection)
A16 to A19OutputP60 to P63Higher address when address is extended (for external memory connection)
RDOutput–Read strobe to external memory
WROutput–Write strobe to external memory
WAITInputP66/HLDRQWait insertion
REFRQOutputP67/HLDAKRefresh pulse output to external pseudo static memory
HLDRQInputP66/WAITBus hold request input
HLDAKOutputP67/REFRQBus hold acknowledge output
ASTBOutput–Latch timing output of time-division address (A0 through A7)
(when accessing external memory)
12
Pin NameI/OAlternate FunctionFunction
RESETInput–Chip reset
X1Input–Crystal connection for system clock oscillation
X2–(Clock can also be input to X1.)
ANI0 to ANI7InputP70 to P77Analog voltage input to A/D converter
ANO0, ANO1Output–Analog voltage output from D/A converter
AVREF1––Reference voltage to A/D converter
AVREF2, AVREF3
AVDDA/D converter power supply
AVSSA/D converter GND
Note 1
VDD0
Note 1
VDD1
Note 2
VSS0
Note 2
VSS1
TESTDirectly connect to VSS0 (IC test pin).
Reference voltage to D/A converter
Power supply of port
Power supply except for port
GND of port
GND except for port
Notes 1. Provide the same potential to VDD0 and VDD1.
2. Provide the same potential to V
SS0 and VSS1.
µ
PD784031Y
13
5.3 Types of Pin I/O Circuits and Connections for Unused Pins
Table 5-1 shows types of pin I/O circuits and the connections for unused pins.
For the input/output circuit of each type, refer to Figure 5-1.
Table 5-1. Types of Pin I/O Circuits and Connections for Unused Pins (1/2)
Pin NameI/O Circuit TypeI/ORecommended Connection for Unused Pins
P00 to P075-HI/OInput: Connect to VDD0.
P10/PWM0Output: Open
P11/PWM1
P12/ASCK2/SCK28-C
P13/RxD2/SI25-H
P14/TxD2/SO2
P15 to P17
P20/NMI2InputConnect to VDD0 or VSS0.
P21/INTP0
P22/INTP12-CConnect to VDD0.
µ
PD784031Y
P23/INTP2/CI
P24/INTP3
P25/INTP4/ASCK/SCK1 8-CI/OInput: Connect to VDD0.
Output: Open
P26/INTP52-CInputConnect to VDD0.
P27/SI0
P30/RxD/SI15-HI/OInput: Connect to VDD0.
P31/TxD/SO1Output: Open
P32/SCK0/SCL10-B
P33/SO0/SDA
P34/TO0 to P37/TO35-H
AD0 to AD7
A8 to A15Output
P60/A16 to P63/A19
RD
WR
P66/WAIT/HLDRQI/OInput: Connect to VDD0.
P67/REFRQ/HLDAKOutput: Open
P70/ANI0 to P77/ANI720-AInput: Connect to VDD0 or VSS0.
ANO0, ANO112OutputOpen
Note
Open
Output: Open
ASTB4-B
Note I/O circuit type of these pins is 5-H. However these pins perform only as output by an internal circuit.
14
Table 5-1. Types of Pin I/O Circuits and Connections for Unused Pins (2/2)
Pin NameI/O Circuit TypeI/ORecommended Connection for Unused Pins
RESET2Input–
TEST1-ADirectly connect to VSS0.
AVREF1 to AVREF3–Connect to VSS0.
AVSS
AVDDConnect to VDD0.
µ
PD784031Y
CautionConnect an I/O pin whose input/output mode is unstable to V
DD0 via a resistor of several 10 kΩ
(especially if the voltage on the reset input pin rises higher than the low-level input level on power
application or when the mode is switched between input and output by software).
Remark Because the circuit type numbers shown in the above table are commonly used with all the models in the 78K
Series, these numbers of some models are not serial (because some circuits are not provided to some models).
15
Figure 5-1. Types of Pin I/O Circuits
µ
PD784031Y
Type 1-A
DD0
V
P
IN
N
V
SS0
Type 2
IN
Schmitt trigger input with hysteresis characteristics
Type 4-B
data
output
disable
DD0
V
P
N
V
SS0
OUT
Type 2-C
V
DD0
P
IN
Schmitt trigger input with hysteresis characteristics
Type 5-H
pullup
enable
data
output
disable
DD0
V
P
N
V
SS0
pullup
enable
V
DD0
P
IN/OUT
Push-pull output that can go into a high-impedance
state (with both P-ch and N-ch off)
Type 8-C
pullup
enable
data
output
disable
DD0
V
P
N
V
SS0
Type 10-B
pullup
enable
DD0
V
data
open drain
output disable
P
N
V
SS0
input
enable
Type 12
V
DD0
P
P
Analog output voltage
IN/OUT
V
DD0
Type 20-A
N
data
P
OUT
DD0
V
P
IN/OUT
IN/OUT
output
disable
Comparator
+
–
AV
AV
REF
(threshold voltage)
N
V
SS0
P
N
SS
input
enable
16
µ
PD784031Y
6. CPU ARCHITECTURE
6.1 Memory Space
A memory space of 1 Mbytes can be accessed. Mapping of the internal data area (special function registers and internal
RAM) can be specified the LOCATION instruction. The LOCATION instruction must be always executed after reset
cancellation, and must not be used more than once.
(1) When LOCATION 0 instruction is executed
The internal data area is mapped in 0F700H to 0FFFFH.
(2) When LOCATION 0FH instruction is executed
The internal data area is mapped in FF700H to FFFFFH.
17
18
Figure 6-1. Memory Map of
µ
PD784031Y
On execution of
LOCATION 0 instruction
HFFFFF
External memory
(960 Kbytes)
H00001
HFFFF0
Special function registers (SFR)
HFDFF0
H0DFF0
H00FF0
HFFEF0
H00DF0
HFFCF0
(256 bytes)
Internal RAM
(2 Kbytes)
H007F0
HFF6F0
External memory
(63232 bytes)
H00000
Note
HFFEF0
General-purpose
registers (128 bytes)
H08EF0
HF7EF0
H13EF0
Macro service control word
area (44 bytes)
H60EF0
Data area (512 bytes)
H00DF0
HFFCF0
Program/data area
(1536 bytes)
H007F0
H00010
HFFF00
CALLF entry area
(2 Kbytes)
H00800
HFF700
H08000
HF7000
CALLT table area
(64 bytes)
H04000
HF3000
Vector table area
(64 bytes)
H00000
On execution of
LOCATION 0FH instruction
HFFFFF
Special function registers (SFR)
HFDFFF
H0DFFF
HFFEFF
H00FFF
HFFEFF
(256 bytes)
Internal RAM
(2 Kbytes)
H08EFF
HF7EFF
13
HEFF
H60EFF
H00DFF
HFFCFF
H007FF
HFF6FF
External memory
(1046272 bytes)
H007FF
HFFF00
H00800
HFF700
H08000
HF7000
H00001
HFFFF0
Note
H00000
µ
PD784031Y
Note Base area and entry area for reset or interrupt. However, the internal RAM area is not used as a reset entry area.
µ
(
PD784031Y
6.2 CPU Registers
6.2.1 General-purpose registers
Sixteen 8-bit general-purpose registers are available. Two 8-bit registers can be also used in pairs as a 16-bit register.
Of the 16-bit registers, four can be used in combination with an 8-bit register for address expansion as 24-bit address
specification registers.
Eight banks of these registers are available which can be selected by using software or the context switching function.
The general-purpose registers except V, U, T, and W registers for address expansion are mapped to the internal RAM.
Figure 6-2. General-purpose Register Format
V
VVP (RG4)
U
UUP (RG5)
T
TDE (RG6)
W
WHL (RG7)
Parentheses
A (R1)
AX (RP0)
B (R3)
BC (RP1)
R5
R7
R9
VP (RP4)
R11
UP (RP5)
D (R13)
DE (RP6)
H (R15)
HL (RP7)
) indicate an absolute name.
X (R0)
C (R2)
R4
RP2
R6
RP3
R8
R10
E (R12)
L (R14)
8 banks
CautionRegisters R4, R5, R6, R7, RP2, and RP3 can be used as X, A, C, B, AX, and BC registers, respectively,
by setting the RSS bit of the PSW to 1. However, use this function only for recycling the program of
the 78K/III Series.
19
6.2.2 Control registers
(1) Program counter (PC)
The program counter is a 20-bit register whose contents are automatically updated when the program is executed.
Figure 6-3. Program Counter (PC) Format
190
PC
(2) Program status word (PSW)
This register holds the statuses of the CPU. Its contents are automatically updated when the program is executed.
Figure 6-4. Program Status Word (PSW) Format
15141312111098
UFRBS2RBS1RBS0––––PSWH
µ
PD784031Y
PSW
76543210
SZRSS
Note
ACIEP/V0CYPSWL
Note This flag is provided to maintain compatibility with the 78K/III Series. Be sure to clear this flag to 0, except when
the software for the 78K/III Series is used.
(3) Stack pointer (SP)
This is a 24-bit pointer that holds the first address of the stack.
Be sure to write 0 to the higher 4 bits of this pointer.
Figure 6-5. Stack Pointer (SP) Format
230
SP
20
0000
20
µ
PD784031Y
6.2.3 Special function registers (SFRs)
The special function registers, such as the mode registers and control registers of the internal peripheral hardware, are
registers to which special functions are allocated. These registers are mapped to a 256-byte space of addresses 0FF00H
Note
through 0FFFFH
Note On execution of the LOCATION 0 instruction. FFF00H through FFFFFH on execution of the LOCATION 0FH
instruction.
CautionDo not access an address in this area to which no SFR is allocated. If such an address is accessed by
mistake, the
inputting the reset signal.
Table 6-1 lists the special function registers (SFRs). The meanings of the symbols in this table are as follows:
• Symbol................................ Symbol indicating an SFR. This symbol is reserved for NEC’s assembler (RA78K4).
.
µ
PD784031Y may be in the deadlock status. This deadlock status can be cleared only by
It can be used as an sfr variable by the #pragma sfr command with the C compiler
(CC78K4).
• R/W..................................... Indicates whether the SFR is read-only, write-only, or read/write.
R/W : Read/write
R: Read-only
W: Write-only
• Bit units for manipulation .... Bit units in which the value of the SFR can be manipulated.
SFRs that can be manipulated in 16-bit units can be described as the operand
sfrp of an instruction. To specify the address of this SFR, describe an even
address.
SFRs that can be manipulated in 1-bit units can be described as the operand of a
bit manipulation instruction.
• After reset........................... Indicates the status of the register when the RESET signal has been input.
21
µ
PD784031Y
Table 6-1. Special Function Registers (SFRs) (1/4)
Special Function Register (SFR) NameSymbolR/WBit Units for ManipulationAfter Reset
1 bit8 bits16 bits
0FF0FH
0FF10HCompare register (timer/counter 0)CR00––√
0FF12HCapture/compare register (timer/counter 0)CR01––√
0FF14HCompare register L (timer/counter 1)
0FF15HCompare register H (timer/counter 1)–––
0FF16HCapture/compare register L (timer/counter 1)
0FF17HCapture/compare register H (timer/counter 1)–––
0FF18HCompare register L (timer/counter 2)
0FF19HCompare register H (timer/counter 2)–––
0FF1AHCapture/compare register L (timer/counter 2)
0FF1BHCapture/compare register H (timer/counter 2)–––
0FF1CHCompare register L (timer 3)
0FF1DHCompare register H (timer 3)–––
0FF20HPort 0 mode registerPM0√√–FFH
0FF21HPort 1 mode registerPM1√√–
0FF23HPort 3 mode registerPM3√√–
0FF26HPort 6 mode registerPM6√√–
0FF27HPort 7 mode registerPM7√√–
Port 0 buffer register H
P0H√√–
CR10
CR11
CR20
CR21
CR30
CR10W
CR11W
CR20W
CR21W
CR30W
–√√
–√√
–√√
–√√
–√√
0FF2EHReal-time output port control registerRTPC√√–00H
0FF30HCapture/compare control register 0CRC0–√–10H
0FF31HTimer output control registerTOC√√–00H
0FF32HCapture/compare control register 1CRC1–√–
0FF33HCapture/compare control register 2CRC2–√–10H
Note When the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is executed, “F0000H” is
added to this value.
22
µ
PD784031Y
Table 6-1. Special Function Registers (SFRs) (2/4)
Note 1
Address
0FF36HCapture register (timer/counter 0)CR02R––√0000H
0FF38HCapture register L (timer/counter 1)
0FF39HCapture register H (timer/counter 1)–––
Special Function Register (SFR) NameSymbolR/WBit Units for ManipulationAfter Reset
1 bit8 bits16 bits
CR12
CR12W
–√√
0FF3AHCapture register L (timer/counter 2)
0FF3BHCapture register H (timer/counter 2)–––
0FF41HPort 1 mode control registerPMC1R/W√√–00H
0FF43HPort 3 mode control registerPMC3√√–
0FF4EHPull-up resistor option registerPUO√√–
0FF50HTimer register 0TM0R––√0000H
0FF51H––
0FF52HTimer register 1TM1
0FF53H–––
0FF54HTimer register 2TM2
0FF55H–––
0FF56HTimer register 3TM3
0FF57H–––
0FF5CHPrescaler mode register 0PRM0R/W–√–11H
0FF5DHTimer control register 0TMC0√√ –00H
0FF5EHPrescaler mode register 1PRM1–√–11H
0FF5FHTimer control register 1TMC1√√–00H
0FF60HD/A conversion value setting register 0DACS0–√–
CR22
CR22W
TM1W
TM2W
TM3W
–√√
–√√
–√√
–√√
0FF61HD/A conversion value setting register 1DACS1–√–
0FF62HD/A converter mode registerDAM√√–03H
0FF68HA/D converter mode registerADM√√–00H
0FF6AHA/D conversion result registerADCRR–√–Undefined
0FF70HPWM control registerPWMCR/W√√–05H
0FF71HPWM prescaler registerPWPR–√–00H
0FF72HPWM modulo register 0PWM0––√Undefined
0FF74HPWM modulo register 1PWM1––√
0FF7DHOne-shot pulse output control registerOSPC√√ –00H
0FF80HI2C bus control registerIICC√√–
0FF81HPrescaler mode register for serial clockSPRM–√–04H
0FF82HClocked serial interface mode registerCSIM√√–00H
0FF83HSlave address registerSVA
Note 2√Note 3
R/W
√–01H
Notes 1. When the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is executed, “F0000H”
is added to this value.
2. Bit 0 is read-only.
3. Only bit 0 can be manipulated in bit units.
23
µ
Table 6-1. Special Function Registers (SFRs) (3/4)
Note 1
Address
0FF84HClocked serial interface mode register 1CSIM1R/W√√–00H
0FF85HClocked serial interface mode register 2CSIM2√√–
0FF86HSerial shift registerSIO–√–
0FF88HAsynchronous serial interface mode registerASIM√√–
0FF89HAsynchronous serial interface mode register 2ASIM2√√–
0FF8AHAsynchronous serial interface status registerASISR√√–
Special Function Register (SFR) NameSymbolR/WBit Units for ManipulationAfter Reset
Notes 1. When the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is executed, “F0000H”
is added to this value.
2. Data can be written by using only dedicated instructions such as MOV STBC, #byte and MOV WDM, #byte,
and cannot be written with any other instructions.
24
µ
PD784031Y
Table 6-1. Special Function Registers (SFRs) (4/4)
Note
Address
0FFCCHRefresh mode registerRFMR/W√√–00H
0FFCDHRefresh area specification registerRFA√√–
0FFCFHOscillation stabilization time specificationOSTS–√–
0FFD0H to External SFR area–√√––
0FFDFH
0FFE0HInterrupt control register (INTP0)PIC0√√–43H
0FFE1HInterrupt control register (INTP1)PIC1√√–
0FFE2HInterrupt control register (INTP2)PIC2√√–
0FFE3HInterrupt control register (INTP3)PIC3√√–
0FFE4HInterrupt control register (INTC00)CIC00√√ –
0FFE5HInterrupt control register (INTC01)CIC01√√ –
Special Function Register (SFR) NameSymbolR/WBit Units for ManipulationAfter Reset
1 bit8 bits16 bits
register
0FFE6HInterrupt control register (INTC10)CIC10√√ –
0FFE7HInterrupt control register (INTC11)CIC11√√ –
0FFE8HInterrupt control register (INTC20)CIC20√√ –
0FFE9HInterrupt control register (INTC21)CIC21√√ –
0FFEAHInterrupt control register (INTC30)CIC30√√ –
0FFEBHInterrupt control register (INTP4)PIC4√√–
0FFECHInterrupt control register (INTP5)PIC5√√–
0FFEDHInterrupt control register (INTAD)ADIC√√–
0FFEEHInterrupt control register (INTSER)SERIC√√–
0FFEFHInterrupt control register (INTSR)SRIC√√–
Interrupt control register (INTCSI1)CSIIC1√√–
0FFF0HInterrupt control register (INTST)STIC√√–
0FFF1HInterrupt control register (INTCSI)CSIIC√√–
0FFF2HInterrupt control register (INTSER2)SERIC2√√–
0FFF3HInterrupt control register (INTSR2)SRIC2√√–
Interrupt control register (INTCSI2)CSIIC2√√–
0FFF4HInterrupt control register (INTST2)STIC2√√–
0FFF5HInterrupt control register (INTSPC)SPCIC√√–
Note When the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is executed, “F0000H” is
added to this value.
25
µ
PD784031Y
7. PERIPHERAL HARDWARE FUNCTIONS
7.1 Ports
The ports shown in Figure 7-1 are provided to make various control operations possible. Table 7-1 shows the function
of each port. Ports 0 through 6 can be connected to internal pull-up resistors by software when inputting.
Figure 7-1. Port Configuration
P00
Port 0
P07
P10
Port 1
P17
P20 to P27
P30
P37
P60
P63
P66
P67
P70
P77
Port 2
8
Port 3
Port 6
Port 7
26
µ
PD784031Y
Table 7-1. Port Functions
Port NamePin NameFunctionSpecification of Pull-up Resistor
Connection by Software
Port 0P00 to P07• Can be set in input or output mode in 1-bit units. All port pins in input mode
• Can operate as 4-bit real-time output port
(P00 through P03 and P04 through P07).
• Can drive transistor.
Port 1P10 to P17• Can be set in input or output mode in 1-bit units. All port pins in input mode
• Can drive LEDs.
Port 2P20 to P27• Input portIn 6-bit units (P22 through P27)
Port 3P30 to P37• Can be set in input or output mode in 1-bit units. All port pins in input mode
Port 6P60 to P63• Output onlyAll port pins in input mode
P66, P67• Can be set in input or output mode in 1-bit units.
Port 7P70 to P77• Can be set in input or output mode in 1-bit units.–
7.2 Clock Generation Circuit
An on-chip clock generation circuit necessary for operation is provided. This clock generation circuit has a divider circuit.
If high-speed operation is not necessary, the internal operating frequency can be lowered by the divider circuit to reduce
the current consumption.
Figure 7-2. Block Diagram of Clock Generation Circuit
X1
Oscillation
circuit
X2
Remark fXX : oscillation frequency or external clock input