m
PD784035Y,784036Y,784037Y,784038Y
4
CONTENTS
1. DIFFERENCES AMONG MODELS IN
m
PD784038Y SUBSERIES .............................................. 6
2. MAJOR DIFFERENCES FROM
m
PD784026 SUBSERIES AND
m
PD78234 SUBSERIES ......... 7
3. PIN CONFIGURATION (Top View) ................................................................................................ 8
4. BLOCK DIAGRAM .......................................................................................................................... 10
5.
PIN FUNCTION .............................................................................................................................. 11
5.1
Port Pins................................................................................................................................................ 11
5.2
Non-Port Pins ....................................................................................................................................... 13
5.3
Types of Pin I/O Circuits and Connections for Unused Pins ........................................................ 15
6.
CPU ARCHITECTURE................................................................................................................... 18
6.1
Memory Space ...................................................................................................................................... 18
6.2
CPU Registers ...................................................................................................................................... 23
6.2.1
General-purpose registers........................................................................................................ 23
6.2.2
Control registers........................................................................................................................ 24
6.2.3
Special function registers (SFRs) ............................................................................................. 25
7.
PERIPHERAL HARDWARE FUNCTIONS ................................................................................... 30
7.1
Ports....................................................................................................................................................... 30
7.2
Clock Generation Circuit..................................................................................................................... 31
7.3
Real-Time Output Port......................................................................................................................... 33
7.4
Timer/Counter ....................................................................................................................................... 34
7.5
PWM Output (PWM0, PWM1) .............................................................................................................. 36
7.6
A/D Converter ....................................................................................................................................... 37
7.7
D/A Converter ....................................................................................................................................... 38
7.8
Serial Interface ..................................................................................................................................... 39
7.8.1
Asynchronous serial interface/3-wire serial I/O (UART/IOE).................................................. 40
7.8.2
Clocked serial interface (CSI).................................................................................................... 42
7.9
Clock Output Function ........................................................................................................................ 43
7.10 Edge Detection Function .................................................................................................................... 44
7.11 Watchdog Timer ................................................................................................................................... 44
8.
INTERRUPT FUNCTION ............................................................................................................... 45
8.1
Interrupt Sources ................................................................................................................................. 45
8.2
Vectored Interrupt ................................................................................................................................ 47
8.3
Context Switching ................................................................................................................................ 48
8.4
Macro Service ....................................................................................................................................... 48
8.5
Application Example of Macro Service............................................................................................. 49