UPD78F1009GB-GAH-AX Renesas Electronics America, UPD78F1009GB-GAH-AX Datasheet

no-image

UPD78F1009GB-GAH-AX

Manufacturer Part Number
UPD78F1009GB-GAH-AX
Description
MCU 16BIT 78K0R/KX3-L 64-LQFP
Manufacturer
Renesas Electronics America
Series
78K0R/Kx3-Lr
Datasheet

Specifications of UPD78F1009GB-GAH-AX

Core Processor
78K/0R
Core Size
16-Bit
Speed
20MHz
Connectivity
3-Wire SIO, I²C, LIN, UART/USART
Peripherals
DMA, LVD, POR, PWM, WDT
Number Of I /o
50
Program Memory Size
64KB (64K x 8)
Program Memory Type
FLASH
Ram Size
3K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 12x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD78F1009GB-GAH-AX
Manufacturer:
Renesas Electronics America
Quantity:
10 000
16
78K0R/Kx3-L
16-Bit Single-Chip Microcontrollers
www.renesas.com
All information contained in these materials, including products and product specifications,
represents information on the product at the time of publication and is subject to change by
Renesas Electronics Corp. without notice. Please review the latest information published by
Renesas Electronics Corp. through various means, including the Renesas Electronics Corp.
website (http://www.renesas.com).
User’s Manual: Hardware
Rev.3.00
Oct 2010

Related parts for UPD78F1009GB-GAH-AX

UPD78F1009GB-GAH-AX Summary of contents

Page 1

Single-Chip Microcontrollers All information contained in these materials, including products and product specifications, represents information on the product at the time of publication and is subject to change by Renesas Electronics Corp. without notice. Please review the ...

Page 2

All information included in this document is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm ...

Page 3

VOLTAGE APPLICATION WAVEFORM AT INPUT PIN: reflected wave may cause malfunction. (MAX) and VIH (MIN) due to noise, etc., the device may malfunction. from entering the device when the input level is fixed, and also in the transition period ...

Page 4

Readers This manual is intended for user engineers who wish to understand the functions of the 78K0R/Kx3-L and design and develop application systems and programs for these devices. The target products are as follows. • 78K0R/KC3-L: • 78K0R/KD3-L: • 78K0R/KE3-L: ...

Page 5

Conventions Data significance: Active low representations: ××× (overscore over pin and signal name) Note: Caution: Remark: Numerical representations: Binary Related Documents The related documents indicated in this publication may include preliminary versions. However, preliminary versions are not marked as such. ...

Page 6

Other Documents SEMICONDUCTOR SELECTION GUIDE − Products and Packages − Semiconductor Device Mount Manual Quality Grades on NEC Semiconductor Devices NEC Semiconductor Device Reliability/Quality Control System Guide to Prevent Damage for Semiconductor Devices by Electrostatic Discharge (ESD) Note See the ...

Page 7

CHAPTER 1 OUTLINE............................................................................................................................. 22 1.1 Features......................................................................................................................................... 22 1.2 Applications .................................................................................................................................. 24 1.3 Ordering Information.................................................................................................................... 24 1.4 Pin Configuration (Top View) ...................................................................................................... 25 1.4.1 78K0R/KC3-L ................................................................................................................................... 25 1.4.2 78K0R/KD3-L ................................................................................................................................... 28 1.4.3 78K0R/KE3-L ................................................................................................................................... 29 1.4.4 78K0R/KF3-L.................................................................................................................................... 31 1.4.5 78K0R/KG3-L ................................................................................................................................... ...

Page 8

P50 to P53 (port 5) ........................................................................................................................... 72 2.2.7 P60 and P61 (port 6) ........................................................................................................................ 73 2.2.8 P70 to P77 (port 7) ........................................................................................................................... 73 2.2.9 P80 to P83 (port 8) ........................................................................................................................... 75 2.2.10 P120 to P124 (port 12) ................................................................................................................... 76 ...

Page 9

Pin I/O Circuits and Recommended Connection of Unused Pins ......................................... 116 3.3.1 78K0R/KF3-L.................................................................................................................................. 116 3.3.2 78K0R/KG3-L ................................................................................................................................. 119 CHAPTER 4 CPU ARCHITECTURE .................................................................................................... 124 4.1 Memory Space ............................................................................................................................ 124 4.1.1 Internal program memory space..................................................................................................... 137 4.1.2 Mirror area...................................................................................................................................... 141 ...

Page 10

Port 0.............................................................................................................................................. 192 5.2.2 Port 1.............................................................................................................................................. 194 5.2.3 Port 2.............................................................................................................................................. 197 5.2.4 Port 3.............................................................................................................................................. 199 5.2.5 Port 4.............................................................................................................................................. 203 5.2.6 Port 5.............................................................................................................................................. 206 5.2.7 Port 6.............................................................................................................................................. 210 5.2.8 Port 7.............................................................................................................................................. 211 5.2.9 Port 8.............................................................................................................................................. 216 5.2.10 Port 12.......................................................................................................................................... 220 ...

Page 11

Port 13.......................................................................................................................................... 311 6.2.15 Port 14.......................................................................................................................................... 313 6.2.16 Port 15.......................................................................................................................................... 318 6.3 Registers Controlling Port Function ........................................................................................ 320 6.4 Port Function Operations .......................................................................................................... 330 6.4.1 Writing to I/O port ........................................................................................................................... 330 6.4.2 Reading from I/O port ..................................................................................................................... 330 6.4.3 ...

Page 12

Simultaneous channel operation function....................................................................................... 390 8.1.3 LIN-bus supporting function (channel 7 only) ................................................................................. 392 8.2 Configuration of Timer Array Unit ............................................................................................ 393 8.3 Registers Controlling Timer Array Unit.................................................................................... 402 8.4 Basic Rules of Simultaneous Channel Operation Function .................................................. 432 ...

Page 13

CHAPTER 10 COMPARATORS/PROGRAMMABLE GAIN AMPLIFIERS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L only) ........................................................................................................ 520 10.1 Features of Comparator and Programmable Gain Amplifier ............................................... 520 10.2 Configurations of Comparator and Programmable Gain Amplifier .................................... 523 10.3 Registers Controlling Comparators and Programmable Gain Amplifiers.......................... 523 ...

Page 14

CHAPTER 14 SERIAL ARRAY UNIT.................................................................................................. 580 14.1 Functions of Serial Array Unit................................................................................................. 581 14.1.1 3-wire serial I/O (CSI00, CSI01, CSI10, CSI20, CSI40, CSI41) ................................................... 581 14.1.2 UART (UART0 to UART4)............................................................................................................ 582 2 14.1.3 Simplified I C (IIC10, IIC20).......................................................................................................... 583 14.2 ...

Page 15

CHAPTER 15 SERIAL INTERFACE IICA ........................................................................................... 756 15.1 Functions of Serial Interface IICA........................................................................................... 756 15.2 Configuration of Serial Interface IICA .................................................................................... 759 15.3 Registers Controlling Serial Interface IICA............................................................................ 762 2 15 Bus Mode ...

Page 16

CHAPTER 17 DMA CONTROLLER ..................................................................................................... 849 17.1 Functions of DMA Controller .................................................................................................. 849 17.2 Configuration of DMA Controller ............................................................................................ 850 17.3 Registers Controlling DMA Controller ................................................................................... 853 17.4 Operation of DMA Controller................................................................................................... 857 17.4.1 Operation procedure .................................................................................................................... 857 17.4.2 Transfer ...

Page 17

Standby Function Operation ................................................................................................... 912 20.2.1 HALT mode .................................................................................................................................. 912 20.2.2 STOP mode.................................................................................................................................. 917 CHAPTER 21 RESET FUNCTION........................................................................................................ 922 21.1 Register for Confirming Reset Source ................................................................................... 931 CHAPTER 22 POWER-ON-CLEAR CIRCUIT...................................................................................... 933 22.1 Functions of Power-on-Clear Circuit...................................................................................... 933 22.2 ...

Page 18

Programming Environment ..................................................................................................... 979 26.3 Communication Mode .............................................................................................................. 979 26.4 Connection of Pins on Board.................................................................................................. 980 26.4.1 FLMD0 pin.................................................................................................................................... 980 26.4.2 TOOL0 pin.................................................................................................................................... 981 26.4.3 RESET pin.................................................................................................................................... 981 26.4.4 Port pins ....................................................................................................................................... 982 26.4.5 REGC pin ..................................................................................................................................... 982 26.4.6 ...

Page 19

PREFIX instruction ..................................................................................................................... 1004 29.2 Operation List ......................................................................................................................... 1005 CHAPTER 30 ELECTRICAL SPECIFICATIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) ... 1022 30.1 Pins Mounted According to Product .................................................................................... 1022 30.1.1 Port functions ............................................................................................................................. 1022 30.1.2 Non-port functions ...................................................................................................................... 1023 30.2 Absolute Maximum ...

Page 20

Oscillator Characteristics...................................................................................................... 1078 31.3.1 Main system clock oscillator characteristics ............................................................................... 1078 31.3.2 Internal oscillator characteristics ................................................................................................ 1079 31.3.3 Sub system clock oscillator characteristics................................................................................. 1079 31.3.4 Recommended oscillator circuit constants ................................................................................. 1080 31.4 DC Characteristics ................................................................................................................. 1084 31.4.1 Pin characteristics ...

Page 21

A.4 Flash Memory Programming Tools........................................................................................ 1149 A.4.1 When using flash memory programmer PG-FP5 and FL-PR5 ..................................................... 1149 A.4.2 When using on-chip debug emulator with programming function QB-MINI2................................ 1149 A.5 Debugging Tools (Hardware).................................................................................................. 1150 A.5.1 When using in-circuit emulator..................................................................................................... 1150 A.5.2 ...

Page 22

RENESAS MCU 1.1 Features Minimum instruction execution time can be changed from high speed (0.05 system clock) to ultra low-speed (61 General-purpose register: 8 bits × 32 registers (8 bits × 8 registers × 4 banks) ROM, RAM capacities ...

Page 23

On-chip comparator/programmable gain amplifier function Serial interface • CSI • UART/UART (LIN-bus supported) • Note /simplified I C 10-bit resolution A/D converter (AV Power supply voltage 1 Operating ...

Page 24

Applications Audio visual equipment Home appliances Industrial equipment <R> 1.3 Ordering Information • Flash memory version (lead-free product) 78K0R/Kx3-L Microcontroller 40-pin plastic WQFN (6 × 6) 78K0R/KC3-L 44-pin plastic LQFP (10 × 10) 48-pin plastic TQFP (fine pitch) ...

Page 25

Pin Configuration (Top View) 1.4.1 78K0R/KC3-L • 40-pin plastic WQFN (6 × 6) (Under development) <R> P120/INTP0/EXLVI P41/TOOL1 P40/TOOL0 RESET FLMD0 P122/X2/EXCLK P121/X1 REGC Cautions 1. Make AV the same potential Connect the REGC ...

Page 26

LQFP (10 × 10) P41/TOOL1 P40/TOOL0 RESET P124/XT2 P123/XT1 FLMD0 P122/X2/EXCLK P121/X1 REGC Cautions 1. Make AV the same potential Connect the REGC pin to Vss via a ...

Page 27

TQFP (fine pitch) (7 × 7) • 48-pin plastic WQFN (7 × 7) (Under development) <R> P60/SCL0 P61/SDA0 P30/SO10/TxD1 P31/SI10/RxD1/SDA10/INTP1 P32/SCK10/SCL10/INTP2 P75/KR5/SCK00 P74/KR4/SI00/RxD0 P73/KR3/SO00/TxD0 P72/KR2/SCK01/INTP6 P71/KR1/SI01/INTP5 P70/KR0/SO01/INTP4 P52/RTC1HZ/SLTI/SLTO Cautions 1. Make AV the same potential as ...

Page 28

LQFP (10 × 10) P140/PCLBUZ0 P120/INTP0/EXLVI P41/TOOL1 P40/TOOL0 RESET P124/XT2 P123/XT1 FLMD0 P122/X2/EXCLK P121/X1 REGC Cautions 1. Make AV the same potential Connect the REGC pin ...

Page 29

LQFP (12 × 12) • 64-pin plastic LQFP (fine pitch) (10 × 10) • 64-pin plastic TQFP (fine pitch) (7 × ...

Page 30

FBGA (5 × 5) • 64-pin plastic FBGA (4 × 4) Top View Index mark Pin No. Name Pin No. A1 P53 C1 A2 P52/RTC1HZ/SLTI C2 /SLTO A3 P72/KR2/SCK01 C3 /INTP6 ...

Page 31

LQFP (14 × 14) • 80-pin plastic LQFP (fine pitch) (12 × 12) P120/INTP0/EXLVI 1 2 P47 3 P46 P45/SO01 4 5 P44/SI01 6 P43/SCK01 7 P42/TI04/TO04 8 P41/TOOL1 9 P40/TOOL0 10 RESET 11 ...

Page 32

LQFP (14 × 20) P60/SCL0 P61/SDA0 P62 P63 P31/TI03/TO03/INTP4 P64/TI10/TO10 P65/TI11/TO11 P66/TI12/TO12 P67/TI13/TO13 P77/KR7/INTP11 P76/KR6/INTP10 P75/KR5/INTP9 P74/KR4/INTP8 P73/KR3 P72/KR2 P71/KR1 P70/KR0 P06 P05 EV SS1 P80 P81 P82 P83 P84 P85 P86 P87 P30/INTP3/RTC1HZ ...

Page 33

LQFP (fine pitch) (14 × 14) 100 P142/SCK20/SCL20 1 P141/PCLBUZ1/INTP7 2 P140/PCLBUZ0/INTP6 ...

Page 34

FBGA (6 × 6) <R> Pin No. Name Pin No. A1 P86 C6 A2 P84 SS1 A4 P05 C9 A5 P63 C10 A6 P62 D1 A7 P61/SDA0 D2 A8 P60/SCL0 ...

Page 35

Pin Identification ANI0-ANI15: Analog Input AV : Analog Reference Voltage REF AV : Analog Ground SS CMP0M, CMP1M: Comparator Input (Minus) CMP0P, CMP1P: Comparator Input (Plus DD0 EV : Power Supply for Port ...

Page 36

Block Diagram 1.6.1 78K0R/KC3-L • 40-pin products TIMER ARRAY UNIT (8ch) ch0 ch1 ch2 TI02/TO02/P10 ch3 TI03/TO03/P11 TI04/TO04/P12 ch4 ch5 TI05/TO05/P13 ch6 TI06/TO06/P50 TI07/TO07/P51 ch7 RxD0/P74 (LINSEL) LOW-SPEED INTERNAL OSCILLATOR WINDOW WATCHDOG TIMER CMP0M/P81, 2 CMP1M/P83 COMPARATOR CMP0P/P80 ...

Page 37

TIMER ARRAY UNIT (8ch) ch0 SLTI/SLTO/P52 ch1 TI02/TO02/P10 ch2 ch3 TI03/TO03/P11 TI04/TO04/P12 ch4 ch5 TI05/TO05/P13 ch6 TI06/TO06/P50 TI07/TO07/P51 ch7 RxD0/P74 (LINSEL) LOW-SPEED INTERNAL OSCILLATOR WINDOW WATCHDOG TIMER RTCDIV/RTCCL/P12 REALTIME COUNTER RTC1HZ/P52 CMP0M/P81, 2 CMP1M/P83 COMPARATOR CMP0P/P80, ...

Page 38

TIMER ARRAY UNIT (8ch) ch0 SLTI/SLTO/P52 ch1 TI02/TO02/P10 ch2 ch3 TI03/TO03/P11 TI04/TO04/P12 ch4 ch5 TI05/TO05/P13 ch6 TI06/TO06/P50 TI07/TO07/P51 ch7 RxD0/P74 (LINSEL) LOW-SPEED INTERNAL OSCILLATOR WINDOW WATCHDOG TIMER RTCDIV/RTCCL/P12 REALTIME COUNTER RTC1HZ/P52 CMP0M/P81, 2 CMP1M/P83 COMPARATOR CMP0P/P80, ...

Page 39

TIMER ARRAY UNIT (8ch) TI00/P00 ch0 TO00/P01 SLTI/SLTO/P52 ch1 TI02/TO02/P10 ch2 ch3 TI03/TO03/P11 TI04/TO04/P12 ch4 ch5 TI05/TO05/P13 ch6 TI06/TO06/P50 TI07/TO07/P51 ch7 RxD0/P74 (LINSEL) LOW-SPEED INTERNAL OSCILLATOR WINDOW WATCHDOG TIMER RTCDIV/RTCCL/P12 REALTIME COUNTER RTC1HZ/P52 CMP0M/P81, 2 CMP1M/P83 COMPARATOR ...

Page 40

TIMER ARRAY UNIT (8ch) TI00/P00 ch0 TO00/P01 SLTI/SLTO/P52 ch1 TI02/TO02/P10 ch2 ch3 TI03/TO03/P11 TI04/TO04/P12 ch4 ch5 TI05/TO05/P13 ch6 TI06/TO06/P14 TI07/TO07/P15 ch7 RxD0/P74 (LINSEL) LOW-SPEED INTERNAL OSCILLATOR WINDOW WATCHDOG TIMER RTCDIV/RTCCL/P12 REALTIME COUNTER RTC1HZ/P52 CMP0M/P81, 2 CMP1M/P83 COMPARATOR ...

Page 41

TIMER ARRAY UNIT0 (8 ch) TI00/P53 ch0 TO00/P52 ch1 TI01/TO01/P16 ch2 TI02/TO02/P17 TI03/TO03/P31 ch3 TI04/TO04/P42 ch4 TI05/TO05/P05 ch5 TI06/TO06/P06 ch6 TI07/TO07/P54 ch7 RxD3/P14 (LINSEL) TIMER ARRAY UNIT1 (4 ch) TI10/TO10/P64 ch0 ch1 TI11/TO11/P65 TI12/TO12/P66 ch2 TI13/TO13/P67 ch3 ...

Page 42

TIMER ARRAY UNIT0 (8 ch) TI00/P00 ch0 TO00/P01 ch1 TI01/TO01/P16 TI02/TO02/P17 ch2 TI03/TO03/P31 ch3 TI04/TO04/P42 ch4 TI05/TO05/P46 ch5 TI06/TO06/P131 ch6 TI07/TO07/P145 ch7 RxD3/P14 (LINSEL) TIMER ARRAY UNIT1 (4 ch) ch0 TI10/TO10/P64 TI11/TO11/P65 ch1 ch2 TI12/TO12/P66 ch3 TI13/TO13/P67 ...

Page 43

Outline of Functions 78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L Item Internal Flash memory memory (KB) RAM (KB) Memory space 1 MB Main system High-speed system X1 (crystal/ceramic) oscillation, external main system clock input (EXCLK) clock clock 2 to ...

Page 44

Item Clock output/buzzer output 10-bit resolution A/D converter (AV = 1.8 to 5.5 V) REF Comparators Programmable gain amplifiers • CSI: 2 channels/UART (LIN-bus supported): 1 channel Serial interface • CSI: 1 channel/UART: 1 channel/simplified ...

Page 45

Item Internal Flash memory memory (KB) RAM (KB) Memory space Main system High-speed system clock clock Internal high-speed oscillation clock 20 MHz internal high- speed oscillation clock Subsystem clock Internal low-speed oscillation clock (dedicated ...

Page 46

Item Clock output/buzzer output 10-bit resolution A/D converter (AV = 1.8 to 5.5 V) REF Comparators Programmable gain amplifiers Serial interface bus Multiplier/divider DMA controller Vectored interrupt Internal sources External Key interrupt Reset Power-on-clear circuit Low-voltage ...

Page 47

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) Caution For the functions of the pins in the 78K0R/KF3-L and 78K0R/KG3-L, see CHAPTER 3 PIN FUNCTIONS (78K0R/KF3-L and 78K0R/KG3-L). 2.1 Pin Function List Pin I/O buffer power supplies depend on the ...

Page 48

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 2.1.1 78K0R/KC3-L (40-pin products) (1) Port functions (1/2): 78K0R/KC3-L (40-pin) Function Name I/O Port 1. P10 I/O 4-bit I/O port. P11 Input/output can be specified in 1-bit units. P12 Use of an ...

Page 49

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (1) Port functions (2/2): 78K0R/KC3-L (40-pin) Function Name I/O P80 I/O Port 8. 3-bit I/O port. Inputs/output can be specified in 1-bit units. P81 Inputs of P80, P81, and P83 can be ...

Page 50

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (2) Non-port functions (1/2): 78K0R/KC3-L (40-pin) Function Name I/O ANI0 to ANI7 Input A/D converter analog input ANI8, ANI9 Input A/D converter analog input CMP0M Input Input voltage on the (−) side ...

Page 51

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (2) Non-port functions (2/2): 78K0R/KC3-L (40-pin) Function Name I/O SCL10 I/O Clock input/output for simplified I SDA10 I/O Serial data I/O for simplified I SI00 Input Serial data input to CSI00 SI01 ...

Page 52

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 2.1.2 78K0R/KC3-L (44-pin and 48-pin products) (1) Port functions (1/2): 78K0R/KC3-L (44-pin and 48-pin products) Function Name I/O P10 I/O Port 1. 4-bit I/O port. P11 Input/output can be specified in 1-bit ...

Page 53

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (1) Port functions (2/2): 78K0R/KC3-L (44-pin and 48-pin products) Function Name I/O P80 I/O Port 8. 4-bit I/O port. Inputs/output can be specified in 1-bit units. P81 Inputs of P80 to P83 ...

Page 54

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (2) Non-port functions (1/3): 78K0R/KC3-L (44-pin and 48-pin products) Function Name I/O ANI0 to ANI7 Input A/D converter analog input ANI8, ANI9, Input Note ANI10 CMP0M Input Input voltage on the (−) ...

Page 55

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (2) Non-port functions (2/3): 78K0R/KC3-L (44-pin and 48-pin products) Function Name I/O Note SCL0 I/O Clock input/output for I SCL10 I/O Clock input/output for simplified I Note SDA0 I/O Serial data I/O ...

Page 56

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (2) Non-port functions (3/3): 78K0R/KC3-L (44-pin and 48-pin products) Function Name I/O − AV Ground potential for A/D converter, programmable gain amplifier, SS comparator, P20 to P27, P150, P151, P152 − FLMD0 ...

Page 57

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 2.1.3 78K0R/KD3-L (1) Port functions (1/2): 78K0R/KD3-L Function Name I/O P00 I/O Port 0. 2-bit I/O port. P01 Input/output can be specified in 1-bit units. Use of an on-chip pull-up resistor can ...

Page 58

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (1) Port functions (2/2): 78K0R/KD3-L Function Name I/O P70 I/O Port 7. 8-bit I/O port. P71 Input of P71, P72, P74, and P75 can be set to TTL buffer. P72 Output of ...

Page 59

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (2) Non-port functions (1/3): 78K0R/KD3-L Function Name I/O ANI0 to ANI7 Input A/D converter analog input ANI8 to ANI10 Input CMP0M Input Input voltage on the (−) side of comparator 0 CMP0P ...

Page 60

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (2) Non-port functions (2/3): 78K0R/KD3-L Function Name I/O RxD0 Input Serial data input to UART0 RxD1 Serial data input to UART1 SCK00 I/O Clock input/output for CSI00 SCK01 Clock input/output for CSI01 ...

Page 61

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (2) Non-port functions (3/3): 78K0R/KD3-L Function Name I/O − V Positive power supply (Port pins other than P20 to P27, P80 to DD P83, P150 to P152, and other than ports) − ...

Page 62

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 2.1.4 78K0R/KE3-L (1) Port functions (1/2): 78K0R/KE3-L Function Name I/O P00 I/O Port 0. 2-bit I/O port. P01 Input/output can be specified in 1-bit units. Use of an on-chip pull-up resistor can ...

Page 63

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (1) Port functions (2/2): 78K0R/KE3-L Function Name I/O P70 I/O Port 7. 8-bit I/O port. P71 Input of P71, P72, P74, and P75 can be set to TTL buffer. P72 Output of ...

Page 64

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (2) Non-port functions (1/3): 78K0R/KE3-L Function Name I/O ANI0 to ANI7 Input A/D converter analog input ANI8 to ANI11 Input CMP0M Input Input voltage on the (−) side of comparator 0 CMP0P ...

Page 65

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (2) Non-port functions (2/3): 78K0R/KE3-L Function Name I/O RxD0 Input Serial data input to UART0 RxD1 Serial data input to UART1 SCK00 I/O Clock input/output for CSI00 SCK01 Clock input/output for CSI01 ...

Page 66

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (2) Non-port functions (3/3): 78K0R/KE3-L Function Name I/O − V Positive power supply (P121 to P124 and other than ports (other DD than RESET pin and FLMD0 pin)) − EV Positive power ...

Page 67

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 2.2 Description of Pin Functions Remark The pins mounted depend on the product. See 1.4 Pin Configuration (Top View) and 2.1 Pin Function List. 2.2.1 P00, P01 (port 0) P00 and P01 ...

Page 68

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 2.2.2 P10 to P17 (port 1) P10 to P17 function as an I/O port. These pins also function as timer I/O and real-time counter clock output. 78K0R/KC3-L μ PD78F100y ...

Page 69

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 2.2.3 P20 to P27 (port 2) P20 to P27 function as an I/O port. These pins also function as A/D converter analog input. 78K0R/KC3-L μ PD78F100y ...

Page 70

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 2.2.4 P30 to P33 (port 3) P30 to P33 function as an I/O port. These pins also function as serial interface data I/O, clock I/O, and external interrupt request input. Input to ...

Page 71

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (f) SDA10 This is a serial data I/O pin of serial interface for simplified I (g) SCL10 This is a serial clock I/O pin of serial interface for simplified I (h) INTP1, ...

Page 72

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (b) TOOL1 This is a clock output pin for a debugger. When the on-chip debug function is used, the P41/TOOL1 pin can be used as follows by the mode setting on the ...

Page 73

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (2) Control mode P50 to P53 function as real-time counter correction clock output and timer I/O. (a) RTC1HZ This is the real-time counter correction clock (1 Hz) output pin. (b) SLTI This ...

Page 74

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) Input to the P71, P72, P74, and P75 pins can be specified through a normal input buffer or a TTL input buffer in 1-bit units, using port input mode register 7 (PIM7). ...

Page 75

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (f) TxD0 This is a serial data output pin of serial interface UART0. (g) INTP4 to INTP6 These are the external interrupt request input pin for which the valid edge (rising edge, ...

Page 76

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (b) CMP0M, CMP1M These are the input voltage pins on the (−) sides of comparators 0 and 1. (c) INTP3, INTP7 These are the external interrupt request input pin for which the ...

Page 77

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) (c) X1, X2 These are the pins for connecting a resonator for main system clock. (d) EXCLK This is an external clock input pin for main system clock. (e) XT1, XT2 These ...

Page 78

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 2.2.12 P150 to P153 (port 15) P150 to P153 function as an I/O port. These pins also function as A/D converter analog input. 78K0R/KC3-L μ PD78F100y ...

Page 79

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) ( This is the ground potential pin of A/D converter, programmable gain amplifier, comparator, P20 to P27, P150 to P153, and P80 to P83. Even when the A/D converter, programmable ...

Page 80

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 2.2.16 FLMD0 This is a pin for setting flash memory programming mode. Perform either of the following processing. (a) In normal operation mode It is recommended to leave this pin open during ...

Page 81

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 2.3 Pin I/O Circuits and Recommended Connection of Unused Pins Table 2-3 shows the types of pin I/O circuits and the recommended connections of unused pins. Pin Name I/O Circuit Type P00/TI00 ...

Page 82

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) Pin Name I/O Circuit Type P60/SCL0 13-R P61/SDA0 P70/KR0/SO01/INTP4 8-R P71/KR1/SI01/INTP5 5-AN P72/KR2/SCK01/INTP6 P73/KR3/SO00/TxD0 8-R P74/KR4/SI00/RxD0 5-AN P75/KR5/SCK00 P76/KR6 8-R P77/KR7 P80/CMP0P/INTP3/PGAI 11-J P81/CMP0M 11-H P82/CMP1P/INTP7 11-I P83/CMP1M 11-H P120/INTP0/EXLVI 8-R Remark ...

Page 83

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) Pin Name I/O Circuit Type Note 1 P121/X1 37-C Note 1 P122/X2/EXCLK Note 1 P123/XT1 37-B Note 1 P124/XT2 P140/PCLBUZ0 3-C P141/PCLBUZ1 5-AG P150/ANI8 to 11-G Note 2 P153/ANI11 AV REF AV ...

Page 84

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) Type 2 IN Schmitt-triggered input with hysteresis characteristics Type 3-C Data Type 5-AN Pull-up enable Data Output disable CMOS TTL Input characteristic R01UH0106EJ0300 Rev.3.00 Oct 01, 2010 Figure 2-1. Pin I/O Circuit ...

Page 85

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) Type 11-G Data Output disable P-ch Comparator + _ N-ch Series resistor string voltage AV SS Input enable Type 11-I data output disable P-ch Voltage generated by internal amplifier N-ch Comparator P-ch ...

Page 86

CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) Type 13-R data output disable Type 37-C input amp enable enable input enable R01UH0106EJ0300 Rev.3.00 Oct 01, 2010 Figure 2-1. Pin I/O Circuit List (3/3) Type 37-B IN/OUT input N-ch enable amp ...

Page 87

CHAPTER 3 PIN FUNCTIONS (78K0R/KF3-L, 78K0R/KG3-L) Caution For the functions of the pins in the 78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L, see CHAPTER 2 PIN FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L). 3.1 Pin Function List Pin I/O buffer power supplies depend on the product. ...

Page 88

Port functions (1/2): 78K0R/KF3-L Function Name I/O Port 0. P02 I/O 5-bit I/O port. P03 Input of P03 and P04 can be set to TTL input buffer. P04 Output of P02 to P04 can be set ...

Page 89

Port functions (2/2): 78K0R/KF3-L Function Name I/O P60 I/O Port 6. 8-bit I/O port. P61 Output of P60 to P63 can be set to N-ch open-drain output (6 P62, P63 V tolerance). P64 to P67 Input/output can be ...

Page 90

Non-port functions (1/3): 78K0R/KF3-L Function Name I/O ANI0 to ANI7 Input A/D converter analog input ANI8 to ANI11 EXLVI Input Potential input for external low-voltage detection INTP0 Input External interrupt request input for which the valid edge (rising ...

Page 91

Non-port functions (2/3): 78K0R/KF3-L Function Name I/O SDA0 I/O Serial data I/O for I SDA10 I/O Serial data I/O for simplified I SDA20 SI00 Input Serial data input to CSI00, CSI01, CSI10, CSI20, CSI40, and CSi41 SI01 SI10 ...

Page 92

Non-port functions (3/3) : 78K0R/KF3-L Function Name I/O TxD0 Output Serial data output from UART0 TxD1 Serial data output from UART1 TxD2 Serial data output from UART2 TxD3 Serial data output from UART3 Note TxD4 Serial data output ...

Page 93

Port functions (1/3): 78K0R/KG3-L Function Name I/O P00 I/O Port 0. 7-bit I/O port. P01 Input of P03 and P04 can be set to TTL input buffer. P02 Output of P02 to P04 can be set ...

Page 94

Port functions (2/3): 78K0R/KG3-L Function Name I/O P50 I/O Port 5. 8-bit I/O port. P51 Input/output can be specified in 1-bit units. P52 Use of an on-chip pull-up resistor can be specified by a P53 software setting. P54 ...

Page 95

Port functions (3/3): 78K0R/KG3-L Function Name I/O P140 I/O Port 14. 6-bit I/O port. P141 Input of P142 and P143 can be set to TTL input buffer. P142 Output of P142 to P144 can be set to the ...

Page 96

Non-port functions (1/3): 78K0R/KG3-L Function Name I/O ANI0 to ANI7 Input A/D converter analog input ANI8 to ANI15 EXLVI Input Potential input for external low-voltage detection INTP0 Input External interrupt request input for which the valid edge (rising ...

Page 97

Non-port functions (2/3): 78K0R/KG3-L Function Name I/O SDA0 I/O Serial data I/O for I SDA10 I/O Serial data I/O for simplified I SDA20 I/O Serial data I/O for simplified I SI00 Input Serial data input to CSI00, CSI01, ...

Page 98

Non-port functions (3/3): 78K0R/KG3-L Function Name I/O TxD0 Output Serial data output from UART0 TxD1 Serial data output from UART1 TxD2 Serial data output from UART2 TxD3 Serial data output from UART3 Note TxD4 Serial data output from ...

Page 99

Description of Pin Functions Remark The pins mounted depend on the product. See 1.4 Pin Configuration (Top View) and 3.1 Pin Function List. 3.2.1 P00 to P06 (port 0) P00 to P06 function as an I/O port. These ...

Page 100

SCK10 This is a serial clock I/O pin of serial interface CSI10. (f) TxD1 This is a serial data output pin of serial interface UART1. (g) RxD1 This is a serial data input pin of serial interface UART1. ...

Page 101

SI00 This is a serial data input pin of serial interface CSI00. (b) SO00 This is a serial data output pin of serial interface CSI00. (c) SCK00 This is a serial clock I/O pin of serial interface CSI00. ...

Page 102

P20 to P27 (port 2) P20 to P27 function as an I/O port. These pins also function as A/D converter analog input. μ ( PD78F10xx 10, 11, 12, P20/ANI0 P21/ANI1 P22/ANI2 P23/ANI3 P24/ANI4 P25/ANI5 P26/ANI6 P27/ANI7 ...

Page 103

These are the external interrupt request input pins for which the valid edge (rising edge, falling edge, or both rising and falling edges) can be specified. (b) TI03 This is a pin for inputting an external count clock/capture trigger ...

Page 104

INTP1, INTP2 These are the external interrupt request input pins for which the valid edge (rising edge, falling edge, or both rising and falling edges) can be specified. (b) TOOL0 This is a data I/O pin for a ...

Page 105

P50 to P57 (port 5) P50 to P57 function as an I/O port. These pins also function as serial interface data I/O, clock I/O, external interrupt request input, timer I/O, and clock/buzzer output. < μ In case of ...

Page 106

The following operation modes can be specified in 1-bit units. (1) Port mode P50 to P57 function as an I/O port. P50 to P57 can be set to input or output port in 1-bit units using port mode register ...

Page 107

P60 to P67 (port 6) P60 to P67 function as an I/O port. These pins also function as serial interface data I/O, clock I/O, and timer I/O. μ ( PD78F10xx 10, 11, 12, P60/SCL0 P61/SDA0 P62 ...

Page 108

P70 to P77 (port 7) P70 to P77 function as an I/O port. These pins also function as key interrupt input and external interrupt request input. μ ( PD78F10xx 10, 11, 12, P70/KR0 P71/KR1 P72/KR2 P73/KR3 ...

Page 109

P80 to P87 (port 8) P80 to P87 function as an I/O port. P80 to P87 can be set to input or output port in 1-bit units using port mode register 8 (PM8). Use of an on-chip pull-up ...

Page 110

P90, P91 (port 9) P90 and P91 function as an I/O port. P90 and P91 can be set to input or output port in 1-bit units using port mode register 9 (PM9). Use of an on-chip pull- up ...

Page 111

Control mode P120 to P124 function as external interrupt request input, potential input for external low-voltage detection, connecting resonator for main system clock, connecting resonator for subsystem clock, and external clock input for main system clock. (a) INTP0 ...

Page 112

P140 to P145 (port 14) P140 to P145 function as an I/O port. clock/buzzer output, serial interface data I/O, and clock I/O. Input to the P142 and P143 pins can be specified through a normal input buffer or ...

Page 113

SCK20 This is a serial clock I/O pin of serial interface CSI20. (h) TxD2 This is a serial data output pin of serial interface UART2. (i) RxD2 This is a serial data input pin of serial interface UART2. ...

Page 114

REF SS DD DD0 μ ( PD78F10xx 10, 11, 12, AV REF DD0 EV DD1 SS0 EV SS1 (1) ...

Page 115

RESET This is the active-low system reset input pin. When the external reset pin is not used, connect this pin directly or via a resistor to EV When the external reset pin is used, design the circuit based ...

Page 116

Pin I/O Circuits and Recommended Connection of Unused Pins 3.3.1 78K0R/KF3-L Table 3-3 shows the types of pin I/O circuits and the recommended connections of unused pins. For I/O Circuit Type, see Figure 3-1. Pin I/O Circuit List. ...

Page 117

Pin Name P41/TOOL1 5-AG P42/TI04/TO04 8-R <R> P43/SCK01 P44/SI01 P45/SO01 5-AG P46, P47 8-R P50/SCK40/INTP1 P51/SI40/RxD4/INTP2 P52/SO40/TO00/TxD4 5-AG P53/SCK41/TI00 8-R P54/SI41/TI07/TO07 P55/PCLBUZ1/SO41/INTP7 P60/SCL0 13-R P61/SDA0 P62 P63 13-P P64/TI10/TO10 8-R P65/TI11/TO11 P66/TI12/TO12 P67/TI13/TO13 P70/KR0 to P73//KR3 P74/KR4/INTP8 to P77/KR7/INTP11 ...

Page 118

Pin Name I/O Circuit Type Note 1 P121/X1 37-C Note 1 P122/X2/EXCLK Note 1 P123/XT1 37-B Note 1 P124/XT2 P130 3-C P140/PCLBUZ0/ITNP6 8-R P142/SCK20/SCL20 5-AN P143/SI20/RxD2/SDA20 P144/SO20/TxD2 5-AG Note 2 P150/ANI8 to P153/ANI11 11-G AV REF AV SS FLMD0 ...

Page 119

Table 3-4 shows the types of pin I/O circuits and the recommended connections of unused pins. For I/O Circuit Type, see Figure 3-1. Pin I/O Circuit List. Pin Name P00/TI00 8-R P01/TO00 5-AG P02/SO10/TxD1 P03/SI10/RxD1/SDA10 5-AN P04/SCK10/SCL10 ...

Page 120

Pin Name P40/TOOL0 8-R P41/TOOL1 5-AG P42/TI04/TO04 8-R <R> P43/SCK01 P44/SI01 P45/SO01 5-AG P46/TI05/TO05/INTP1 8-R P47/INTP2 P50, P51, P53 to P55 P50/SCK40 P51/SI40/RxD4 P52/SO40/TxD4 5-AG P53/SCK41 8-R P54/SI41 P55/SO41 P56 5-AG P57 P60/SCL0 13-R P61/SDA0 P62 P63 13-P P64/TI10/TO10 ...

Page 121

Pin Name I/O Circuit Type P80 to P87 5-AG P91 P110 8-R P111 5-AG P120/INTP0/EXLVI 8-R Note 1 P121/X1 37-C Note 1 P122/X2/EXCLK Note 1 P123/XT1 37-B Note 1 P124/XT2 P130 3-C P131/TI06/TO06 8-R P140/PCLBUZ0/ITNP6 P141/PCLBUZ1/INTP7 P142/SCK20/SCL20 5-AN P143/SI20/RxD2/SDA20 ...

Page 122

Type 2 IN Schmitt-triggered input with hysteresis characteristics Type 2-W EV DD0 P-ch N-ch EV SS0 IN Schmitt-triggered input with hysteresis characteristics Type 3-C EV Data EV R01UH0106EJ0300 Rev.3.00 Oct 01, 2010 CHAPTER 3 PIN FUNCTIONS (78K0R/KF3-L, 78K0R/KG3-L) Figure ...

Page 123

Type 11-G Data Output disable P-ch Comparator + _ N-ch Series resistor string voltage AV SS Input enable Type 13-P Data Output disable EV SS0 Input enable Type 13-R Data Output disable EV R01UH0106EJ0300 Rev.3.00 Oct 01, 2010 CHAPTER ...

Page 124

Memory Space Products in the 78K0R/Kx3-L can access memory space. Figures 4-1 to 4-9 show the memory maps. R01UH0106EJ0300 Rev.3.00 Oct 01, 2010 CHAPTER 4 CPU ARCHITECTURE CHAPTER 4 CPU ARCHITECTURE 124 ...

Page 125

Special function register (SFR General-purpose register 32 bytes RAM ...

Page 126

Figure 4-2. Memory Map ( Special function register (SFR General-purpose register 32 bytes ...

Page 127

Figure 4-3. Memory Map ( Special function register (SFR General-purpose register 32 bytes ...

Page 128

Figure 4-4. Memory Map ( Special function register (SFR General-purpose register 32 bytes ...

Page 129

Special function register (SFR General-purpose register 32 bytes ...

Page 130

Figure 4-6. Memory Map ( Special function register (SFR) 256 bytes General-purpose register 32 bytes ...

Page 131

Figure 4-7. Memory Map ( Special function register (SFR) 256 bytes General-purpose register 32 bytes ...

Page 132

Figure 4-8. Memory Map ( Special function register (SFR General-purpose register 32 bytes ...

Page 133

Figure 4-9. Memory Map ( Special function register (SFR General-purpose register 32 bytes ...

Page 134

Remark The flash memory is divided into blocks (one block = 1 KB). For the address values and block numbers, see Table 4-1 Correspondence Between Address Values and Block Numbers in Flash Memory. μ ( R01UH0106EJ0300 Rev.3.00 Oct 01, ...

Page 135

Correspondence between the address values and block numbers in the flash memory are shown below. Table 4-1. Correspondence Between Address Values and Block Numbers in Flash Memory (1/2) Address Value Block Address Value Number 00000H to 003FFH 00H 08000H ...

Page 136

Table 4-1. Correspondence Between Address Values and Block Numbers in Flash Memory (2/2) Address Value Block Address Value Number 20000H to 203FFH 80H 28000H to 283FFH 20400H to 207FFH 81H 28400H to 287FFH 20800H to 20BFFH 82H 28800H to ...

Page 137

Internal program memory space The internal program memory space stores the program and table data. The 78K0R/Kx3-L products incorporate internal ROM (flash memory), as shown below. Part Number μ PD78F1000 μ PD78F1001, 78F1004, 78F1007 μ PD78F1002, 78F1005, 78F1008 ...

Page 138

Vector Table Address 00000H 00004H 00006H 00008H 0000AH 0000CH 0000EH 00010H 00012H 00014H 00016H 00018H 0001AH 0001CH 0001EH 00020H 00022H 00024H 00026H 00028H 0002AH 0002CH 0002EH 00030H 00032H R01UH0106EJ0300 Rev.3.00 Oct 01, 2010 Table 4-3. Vector Table (1/2) Interrupt ...

Page 139

Vector Table Address 00034H 00036H 00038H 0003AH 0003CH 0003EH 00040H 00042H 00044H 00046H 00048H 0004AH 0004CH 0004EH 00050H 00052H 00054H 00056H 00058H 0005AH 0005CH 0005EH 00060H 00062H 0007EH Note Those are only mounted in the 78K0R/KF3-L ( PD78F1029 and ...

Page 140

CALLT instruction table area The 64-byte area 00080H to 000BFH can store the subroutine entry address of a 2-byte call instruction (CALLT). Set the subroutine entry address to a value in a range of 00000H to 0FFFFH (because ...

Page 141

Mirror area The 78K0R/Kx3-L mirrors the data flash area of 00000H to 0FFFFH, to F0000H to FFFFFH. The 78F1014, 78F1027, 78F1028, 78F1029, and 78F1030 mirror the data flash area of 00000H to 0FFFFH or 10000H to 1FFFFH, to ...

Page 142

Processor mode control register (PMC) This register sets the flash memory space for mirroring to area from F0000H to FFFFFH. The PMC register can be set by a 1-bit or 8-bit memory manipulation instruction. Reset signal generation sets ...

Page 143

Internal data memory space The 78K0R/Kx3-L products incorporate the following RAMs. Part Number μ PD78F1000 μ PD78F1001, 78F1004, 78F1007 μ PD78F1002, 78F1005, 78F1008 μ PD78F1003, 78F1006, 78F1009 μ PD78F1010 μ PD78F1011, 78F1013 μ PD78F1012, 78F1014 μ PD78F1027, 78F1029 ...

Page 144

Special function register (SFR) area On-chip peripheral hardware special function registers (SFRs) are allocated in the area FFF00H to FFFFFH (see Table 4-5 in 4.2.4 Special function registers (SFRs)). Caution Do not access addresses to which SFRs are ...

Page 145

Data memory addressing Addressing refers to the method of specifying the address of the instruction to be executed next or the address of the register or memory relevant to the execution of instructions. Several addressing modes are provided ...

Page 146

Figure 4-12. Correspondence Between Data Memory and Addressing ( Special function register (SFR 256 bytes ...

Page 147

Figure 4-13. Correspondence Between Data Memory and Addressing ( Special function register (SFR 256 bytes ...

Page 148

Figure 4-14. Correspondence Between Data Memory and Addressing ( Special function register (SFR 256 bytes ...

Page 149

Figure 4-15. Correspondence Between Data Memory and Addressing ( Special function register (SFR 256 bytes ...

Page 150

Figure 4-16. Correspondence Between Data Memory and Addressing ( Special function register (SFR 256 bytes ...

Page 151

Figure 4-17. Correspondence Between Data Memory and Addressing ( Special function register (SFR 256 bytes ...

Page 152

Figure 4-18. Correspondence Between Data Memory and Addressing ( Special function register (SFR 256 bytes ...

Page 153

Figure 4-19. Correspondence Between Data Memory and Addressing ( Special function register (SFR 256 bytes ...

Page 154

Processor Registers The 78K0R/Kx3-L products incorporate the following processor registers. 4.2.1 Control registers The control registers control the program sequence, statuses and stack memory. The control registers consist of a program counter (PC), a program status word (PSW) ...

Page 155

Auxiliary carry flag (AC) If the operation result has a carry from bit borrow at bit 3, this flag is set (1 reset (0) in all other cases. (e) In-service priority flags (ISP1, ...

Page 156

PUSH rp instruction SP←SP−2 ↑ SP−2 ↑ SP−1 ↑ → SP CALL, CALLT instructions SP←SP−4 ↑ SP−4 ↑ SP−3 ↑ SP−2 ↑ SP−1 ↑ → SP 4.2.2 General-purpose registers General-purpose registers are mapped at particular addresses (FFEE0H to FFEFFH) ...

Page 157

Figure 4-24. Configuration of General-Purpose Registers FFEFFH Register bank 0 FFEF8H Register bank 1 FFEF0H Register bank 2 FFEE8H Register bank 3 FFEE0H FFEFFH Register bank 0 FFEF8H Register bank 1 FFEF0H Register bank 2 FFEE8H Register bank 3 ...

Page 158

ES and CS registers The ES register is used for data access and the CS register is used to specify the higher address when a branch instruction is executed. The default value of the ES register after reset ...

Page 159

Special function registers (SFRs) Unlike a general-purpose register, each SFR has a special function. SFRs are allocated to the FFF00H to FFFFFH area. SFRs can be manipulated like general-purpose registers, using operation, transfer, and bit manipulation instructions. The ...

Page 160

Address Special Function Register (SFR) Name FFF00H Port register 0 FFF01H Port register 1 FFF02H Port register 2 FFF03H Port register 3 FFF04H Port register 4 FFF05H Port register 5 FFF06H Port register 6 FFF07H Port register 7 FFF08H ...

Page 161

Address Special Function Register (SFR) Name FFF25H Port mode register 5 FFF26H Port mode register 6 FFF27H Port mode register 7 FFF28H Port mode register 8 FFF29H Port mode register 9 FFF2BH Port mode register 11 FFF2CH Port mode ...

Page 162

Address Special Function Register (SFR) Name FFF4EH Serial data register 21 FFF4FH FFF50H IICA shift register FFF51H IICA status register FFF52H IICA flag register FFF64H Timer data register 02 FFF65H FFF66H Timer data register 03 FFF67H FFF68H Timer data ...

Page 163

Address Special Function Register (SFR) Name FFF98H Year count register FFF99H Watch error correction register FFF9AH Alarm minute register FFF9BH Alarm hour register FFF9CH Alarm week register FFF9DH Real-time counter control register 0 FFF9EH Real-time counter control register 1 ...

Page 164

Address Special Function Register (SFR) Name FFFB0H DMA SFR address register 0 FFFB1H DMA SFR address register 1 FFFB2H DMA RAM address register 0L FFFB3H DMA RAM address register 0H DRA0H FFFB4H DMA RAM address register 1L FFFB5H DMA ...

Page 165

Address Special Function Register (SFR) Name FFFE6H Interrupt mask flag register 1L FFFE7H Interrupt mask flag register 1H FFFE8H Priority specification flag register 00L FFFE9H Priority specification flag register 00H FFFEAH Priority specification flag register 01L FFFEBH Priority specification ...

Page 166

Extended special function registers (2nd SFRs: 2nd Special Function Registers) Unlike a general-purpose register, each extended SFR (2nd SFR) has a special function. Extended SFRs are allocated to the F0000H to F07FFH area. SFRs other than those in ...

Page 167

Address Special Function Register (SFR) Name F0017H A/D port configuration register F0030H Pull-up resistor option register 0 PU0 F0031H Pull-up resistor option register 1 PU1 F0033H Pull-up resistor option register 3 PU3 F0034H Pull-up resistor option register 4 PU4 ...

Page 168

Address Special Function Register (SFR) Name F00F3H Operation speed mode control register F00F4H Regulator mode control register RMC F00F6H 20 MHz internal high-speed oscillation control register F00FEH BCD adjust result register F0100H Serial status register 00 F0101H F0102H Serial ...

Page 169

Address Special Function Register (SFR) Name F0120H Serial channel enable status register 0 F0121H F0122H Serial channel start register 0 F0123H F0124H Serial channel stop register 0 F0125H F0126H Serial clock select register 0 F0127H F0128H Serial output register ...

Page 170

Address Special Function Register (SFR) Name F0158H Serial communication operation setting register 10 F0159H F015AH Serial communication operation setting register 11 F015BH F015CH Serial communication operation setting register 12 F015DH F015EH Serial communication operation setting register 13 F015FH F0160H ...

Page 171

Address Special Function Register (SFR) Name F0190H Timer mode register 00 F0191H F0192H Timer mode register 01 F0193H F0194H Timer mode register 02 F0195H F0196H Timer mode register 03 F0197H F0198H Timer mode register 04 F0199H F019AH Timer mode ...

Page 172

Address Special Function Register (SFR) Name F01B6H Timer clock select register 0 F01B7H F01B8H Timer output register 0 F01B9H F01BAH Timer output enable register 0 F01BBH F01BCH Timer output level register 0 F01BDH F01BEH Timer output mode register 0 ...

Page 173

Address Special Function Register (SFR) Name F01DCH Timer channel stop register 1 F01DDH F01DEH Timer clock select register 1 F01DFH F01E0H Timer output register 1 F01E1H F01E2H Timer output enable register 1 F01E3H F01E4H Timer output level register 1 ...

Page 174

Address Special Function Register (SFR) Name F0218H Serial output register 2 F0219H F021AH Serial output enable register 2 F021BH F0220H Serial output level register 2 F0221H F0230H IICA control register 0 F0231H IICA control register 1 F0232H IICA low-level ...

Page 175

Instruction Address Addressing 4.3.1 Relative addressing [Function] Relative addressing stores in the program counter (PC) the result of adding a displacement value included in the instruction word (signed complement data: −128 to +127 or −32768 to +32767) to ...

Page 176

Table indirect addressing [Function] Table indirect addressing specifies a table address in the CALLT table area (0080H to 00BFH) with the 5-bit immediate data in the instruction word, stores the contents at that table address and the next ...

Page 177

Register direct addressing [Function] Register direct addressing stores in the program counter (PC) the contents of a general-purpose register pair (AX/BC/DE/HL) and CS register of the current register bank specified with the instruction word as 20-bit data, and ...

Page 178

Addressing for Processing Data Addresses 4.4.1 Implied addressing [Function] Instructions for accessing registers (such as accumulators) that have special functions are directly specified with the instruction word, without using any register specification field in the instruction word. [Operand ...

Page 179

Direct addressing [Function] Direct addressing uses immediate data in the instruction word as an operand address to directly specify the target address. [Operand format] Identifier ADDR16 Label or 16-bit immediate data (only the space from F0000H to FFFFFH ...

Page 180

Short direct addressing [Function] Short direct addressing directly specifies the target addresses using 8-bit data in the instruction word. This type of addressing is applied only to the space from FFE20H to FFF1FH. [Operand format] Identifier SADDR Label, ...

Page 181

SFR addressing [Function] SFR addressing directly specifies the target SFR addresses using 8-bit data in the instruction word. This type of addressing is applied only to the space from FFF00H to FFFFFH. [Operand format] Identifier SFR SFR name ...

Page 182

Register indirect addressing [Function] Register indirect addressing directly specifies the target addresses using the contents of the register pair specified with the instruction word as an operand address. [Operand format] Identifier − [DE], [HL] (only the space from ...

Page 183

Based addressing [Function] Based addressing uses the contents of a register pair specified with the instruction word as a base address, and 8- bit immediate data or 16-bit immediate data as offset data. The sum of these values ...

Page 184

OP code byte OP code Low Addr. High Addr. OP code Low Addr. High Addr. R01UH0106EJ0300 Rev.3.00 Oct 01, 2010 Figure 4-40. Example of [HL + byte], [DE + byte] rp (HL/DE) Figure 4-41. Example of word[B], word[C] r ...

Page 185

Figure 4-43. Example of ES:[HL + byte], ES:[DE + byte] OP code byte Figure 4-44. Example of ES:word[B], ES:word[C] OP code Low Addr. High Addr. OP code Low Addr. High Addr. R01UH0106EJ0300 Rev.3.00 Oct 01, 2010 ES rp (HL/DE) ...

Page 186

Based indexed addressing [Function] Based indexed addressing uses the contents of a register pair specified with the instruction word as the base address, and the content of the B register or C register similarly specified with the instruction ...

Page 187

Stack addressing [Function] The stack area is indirectly addressed with the stack pointer (SP) contents. This addressing is automatically employed when the PUSH, POP, subroutine call, and return instructions are executed or the register is saved/restored upon generation ...

Page 188

CHAPTER 5 PORT FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) Caution For the functions of the port in the 78K0R/KF3-L and 78K0R/KG3-L, see CHAPTER 6 FUNCTIONS (78K0R/KF3-L and 78K0R/KG3-L). 5.1 Port Functions Pin I/O buffer power supplies depend on the product. The ...

Page 189

CHAPTER 5 PORT FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) Function Name P00 − − − √ √ P01 − − − √ √ √ √ √ √ √ P10 √ √ √ √ √ P11 P12 √ √ √ √ √ ...

Page 190

CHAPTER 5 PORT FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) Function Name P60 − − √ √ √ P61 − − √ √ √ √ √ √ √ √ P70 √ √ √ √ √ P71 P72 √ √ √ √ √ ...

Page 191

CHAPTER 5 PORT FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 5.2 Port Configuration Ports include the following hardware. Item • 78K0R/KC3-L (40-pin and 44-pin products) Control registers • 78K0R/KC3-L (48-pin products) • 78K0R/KD3-L • 78K0R/KE3-L • 78K0R/KC3-L (40-pin products) Port • 78K0R/KC3-L ...

Page 192

CHAPTER 5 PORT FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 5.2.1 Port 0 78K0R/KC3-L μ PD78F100y 40-pin − P00/TI00 − P11/TO00 Port I/O port with an output latch. Port 0 can be set ...

Page 193

CHAPTER 5 PORT FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3- PU0 PU01 RD WR PORT Output latch (P01 PM0 PM01 Alternate function P0: Port register 0 PU0: Pull-up resistor option register 0 PM0: Port mode register 0 RD: ...

Page 194

CHAPTER 5 PORT FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 5.2.2 Port 1 78K0R/KC3-L μ PD78F100y 40-pin √ P10/TI02/TO02 √ P11/TO00/TI03/ TO03 P12/TI04/TO04/ P12/TI04/ Note 1 RTCDIV/RTCCL TO04 √ P13/TI05/TO05 − Note 2 P14/TI06/TO06 − Note ...

Page 195

CHAPTER 5 PORT FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3- PU1 PU10 to PU15 Alternate function RD WR PORT P1 Output latch (P10 to P15 PM1 PM10 to PM15 Alternate function Note 40-pin product of the 78K0R/KC3-L does ...

Page 196

CHAPTER 5 PORT FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3- PU16, PU17 RD WR PORT Output latch (P16, P17 PM16, PM17 P1: Port register 1 PU1: Pull-up resistor option register 1 PM1: Port mode register 1 RD: Read ...

Page 197

CHAPTER 5 PORT FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 5.2.3 Port 2 78K0R/KC3-L μ PD78F100y 40-pin √ P20/ANI0 √ P21/ANI1 √ P22/ANI2 √ P23/ANI3 √ P24/ANI4 √ P25/ANI5 √ P26/ANI6 √ P27/ANI7 Remark √: Mounted ...

Page 198

CHAPTER 5 PORT FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3- PORT Output latch (P20 to P27 PM20 to PM27 P2: Port register 2 PM2: Port mode register 2 RD: Read signal WR××: Write signal R01UH0106EJ0300 Rev.3.00 Oct 01, ...

Page 199

CHAPTER 5 PORT FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3-L) 5.2.4 Port 3 78K0R/KC3-L μ PD78F100y 40-pin √ P30/SO10/TxD1 √ P31/SI10/RxD1/ SDA10/INTP1 √ P32/SCK10/ SCL10/INTP2 − P33 Remark √: Mounted Port I/O port ...

Page 200

CHAPTER 5 PORT FUNCTIONS (78K0R/KC3-L, 78K0R/KD3-L, 78K0R/KE3- PU3 PU30 RD WR PORT P3 Output latch (P30) WR POM POM3 POM30 WR PM PM3 PM30 Alternate function P3: Port register 3 PU3: Pull-up resistor option register 3 POM3: ...

Related keywords