UPD78F0513AMC-GAA-AX Renesas Electronics America, UPD78F0513AMC-GAA-AX Datasheet

no-image

UPD78F0513AMC-GAA-AX

Manufacturer Part Number
UPD78F0513AMC-GAA-AX
Description
MCU 8BIT 38PIN SSOP
Manufacturer
Renesas Electronics America
Series
78K0/Kx2r
Datasheet

Specifications of UPD78F0513AMC-GAA-AX

Core Processor
78K/0
Core Size
8-Bit
Speed
20MHz
Connectivity
3-Wire SIO, I²C, LIN, UART/USART
Peripherals
LVD, POR, PWM, WDT
Number Of I /o
31
Program Memory Size
32KB (32K x 8)
Program Memory Type
FLASH
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 6x10b
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:
UPD78F0513AMC-GAA-AX
Manufacturer:
RENESAS
Quantity:
8 000
Part Number:
UPD78F0513AMC-GAA-AX
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
8
78K0/Kx2
8-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.4.01
Jul 2010

Related parts for UPD78F0513AMC-GAA-AX

UPD78F0513AMC-GAA-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 78K0/Kx2 microcontrollers and design and develop application systems and programs for these devices. The target products are as follows. Conventional-specification Products μ 78K0/KB2 PD78F0500, ...

Page 5

Differences Between Conventional-specification Products and Expanded-specification Products The differences between the conventional-specification products ( μ specification products ( PD78F05xxA, 78F05xxDA) of the 78K0/Kx2 microcontrollers are described below. • A/D conversion time • X1 oscillator characteristics • Instruction cycle, peripheral hardware ...

Page 6

To know details of the 78K0 microcontroller instructions: Conventions Data significance: Active low representations: ××× (overscore over pin and signal name) Note: Caution: Remark: Numerical representations: Binary → Refer to the separate document 78K/0 Series Instructions User’s Manual (U12326E). ...

Page 7

Related Documents The related documents indicated in this publication may include preliminary versions. However, preliminary versions are not marked as such. Documents Related to Devices 78K0/Kx2 User’s Manual 78K/0 Series Instructions User’s Manual 78K0/Kx2 Flash Memory Programming (Programmer) Application Note ...

Page 8

Documents Related to Development Tools (Software) RA78K0 Ver.3.80 Assembler Package Note 1 User’s Manual 78K0 Assembler Package RA78K0 Ver.4.01 Operating Precautions (Notification Document) CC78K0 Ver.3.70 C Compiler Note 2 User’s Manual 78K0 C Compiler CC78K0 Ver. 4.00 Operating Precautions (Notification ...

Page 9

CHAPTER 1 OUTLINE............................................................................................................................. 19 1.1 Differences Between Conventional-specification Products ( Expanded-specification Products ( 1.1.1 A/D conversion time ........................................................................................................................ 20 1.1.2 X1 oscillator characteristics............................................................................................................. 20 1.1.3 Time Instruction cycle, peripheral hardware clock frequency, external main system clock frequency, external main system ...

Page 10

P130 (port 13) ............................................................................................................................... 87 2.2.11 P140 to P145 (port 14) .................................................................................................................. 88 2.2. REF SS DD 2.2.13 RESET .......................................................................................................................................... 90 2.2.14 REGC............................................................................................................................................ 90 2.2.15 FLMD0 .......................................................................................................................................... 90 2.3 Pin I/O Circuits and Recommended ...

Page 11

CHAPTER 5 PORT FUNCTIONS ......................................................................................................... 159 5.1 Port Functions ............................................................................................................................ 159 5.2 Port Configuration...................................................................................................................... 163 5.2.1 Port 0............................................................................................................................................. 164 5.2.2 Port 1............................................................................................................................................. 175 5.2.3 Port 2............................................................................................................................................. 181 5.2.4 Port 3............................................................................................................................................. 183 5.2.5 Port 4............................................................................................................................................. 186 5.2.6 Port 5............................................................................................................................................. 188 5.2.7 ...

Page 12

CHAPTER 7 16-BIT TIMER/EVENT COUNTERS 00 AND 01......................................................... 270 7.1 Functions of 16-Bit Timer/Event Counters 00 and 01............................................................. 270 7.2 Configuration of 16-Bit Timer/Event Counters 00 and 01 ...................................................... 271 7.3 Registers Controlling 16-Bit Timer/Event Counters 00 and 01.............................................. 277 ...

Page 13

CHAPTER 10 WATCH TIMER.............................................................................................................. 389 10.1 Functions of Watch Timer ....................................................................................................... 389 10.2 Configuration of Watch Timer................................................................................................. 391 10.3 Register Controlling Watch Timer .......................................................................................... 391 10.4 Watch Timer Operations .......................................................................................................... 394 10.4.1 Watch timer operation ................................................................................................................. 394 10.4.2 Interval timer ...

Page 14

CHAPTER 15 SERIAL INTERFACE UART6 ...................................................................................... 453 15.1 Functions of Serial Interface UART6 ...................................................................................... 453 15.2 Configuration of Serial Interface UART6................................................................................ 457 15.3 Registers Controlling Serial Interface UART6....................................................................... 460 15.4 Operation of Serial Interface UART6 ...................................................................................... 469 15.4.1 Operation stop ...

Page 15

Cautions .................................................................................................................................... 584 18.5.16 Communication operations........................................................................................................ 585 2 18.5.17 Timing interrupt request (INTIIC0) occurrence................................................................. 593 18.6 Timing Charts ........................................................................................................................... 614 CHAPTER 19 MULTIPLIER/DIVIDER ................................................................................................... 621 19.1 Functions of Multiplier/Divider................................................................................................ 621 19.2 Configuration of Multiplier/Divider ......................................................................................... 621 ...

Page 16

CHAPTER 25 LOW-VOLTAGE DETECTOR ....................................................................................... 698 25.1 Functions of Low-Voltage Detector........................................................................................ 698 25.2 Configuration of Low-Voltage Detector ................................................................................. 699 25.3 Registers Controlling Low-Voltage Detector......................................................................... 699 25.4 Operation of Low-Voltage Detector ........................................................................................ 702 25.4.1 When used as reset .................................................................................................................... 703 25.4.2 ...

Page 17

CHAPTER 29 INSTRUCTION SET....................................................................................................... 759 29.1 Conventions Used in Operation List ...................................................................................... 759 29.1.1 Operand identifiers and specification methods............................................................................ 759 29.1.2 Description of operation column .................................................................................................. 760 29.1.3 Description of flag operation column ........................................................................................... 760 29.2 Operation List ........................................................................................................................... 761 ...

Page 18

APPENDIX B NOTES ON TARGET SYSTEM DESIGN ................................................................... 929 APPENDIX C REGISTER INDEX ......................................................................................................... 936 C.1 Register Index (In Alphabetical Order with Respect to Register Names) ............................ 936 C.2 Register Index (In Alphabetical Order with Respect to Register Symbol)........................... 940 ...

Page 19

RENESAS MCU 1.1 Differences Between Conventional-specification Products ( Expanded-specification Products ( The differences between the conventional-specification products ( μ specification products ( PD78F05xxA and 78F05xxDA) of the 78K0/Kx2 microcontrollers are described below. • A/D conversion time • X1 oscillator ...

Page 20

A/D conversion time (1) Conventional-specification products ( Parameter Symbol Conversion time t CONV (2) Expanded-specification products ( Parameter Symbol Conversion time t CONV Note Standard and (A) grade products only 1.1.2 X1 oscillator characteristics (1) Conventional-specification products ( ...

Page 21

Time Instruction cycle, peripheral hardware clock frequency, external main system clock frequency, external main system clock input high-level width, and external main system clock input low-level width (AC characteristics) (1) Conventional-specification products ( Parameter Symbol Instruction cycle (minimum ...

Page 22

Number of flash memory rewrites and retention time Conventional-specification Item Products ( Number of rewrites per chip 100 times (Retention: 10 (retention time) years) Notes 1. The sample library specified by the 78K0/Kx2 Flash Memory Self Programming User’s ...

Page 23

Processing time for self programming library (1) Conventional-specification products ( <1> When internal high-speed oscillation clock is used and entry RAM is located outside short direct addressing range Library Name Self programming start library Initialize library Mode check ...

Page 24

Conventional-specification products ( <3> When high-speed system clock (X1 oscillation or external clock input) is used and entry RAM is located outside short direct addressing range Library Name Self programming start library Initialize library Mode check library Block ...

Page 25

Conventional-specification products ( <4> When high-speed system clock (X1 oscillation or external clock input) is used and entry RAM is located in short direct addressing range Library Name Self programming start library Initialize library Mode check library Block ...

Page 26

Expanded-specification products ( <1> When internal high-speed oscillation clock is used and entry RAM is located outside short direct addressing range Library Name Self programming start library Initialize library Mode check library Block blank check library Block erase ...

Page 27

Expanded-specification products ( <3> When high-speed system clock (X1 oscillation or external clock input) is used and entry RAM is located outside short direct addressing range Library Name Self programming start library Initialize library Mode check library Block ...

Page 28

Expanded-specification products ( <4> When high-speed system clock (X1 oscillation or external clock input) is used and entry RAM is located in short direct addressing range Library Name Self programming start library Initialize library Mode check library Block ...

Page 29

Interrupt response time for self programming library (1) Conventional-specification products ( <1> When internal high-speed oscillation clock is used Library Name Entry RAM location Block blank check library Block erase library Word write library Block verify library Set ...

Page 30

Conventional-specification products ( <3> When high-speed system clock is used (static model of C compiler/assembler) Library Name Entry RAM location Block blank check library Block erase library Word write library Block verify library Set information library Note EEPROM ...

Page 31

Expanded-specification products ( <1> When internal high-speed oscillation clock is used Library Name Entry RAM location Block blank check library Block erase library Word write library Block verify library Set information library EEPROM write library Remarks 1. The ...

Page 32

Expanded-specification products ( <3> When high-speed system clock is used (static model of C compiler/assembler) Library Name Entry RAM location Block blank check library Block erase library Word write library Block verify library Set information library Note EEPROM ...

Page 33

Features Minimum instruction execution time can be changed from high speed (0.1 system clock) to ultra low-speed (122 General-purpose register: 8 bits × 32 registers (8 bits × 8 registers × 4 banks) ROM (flash memory), RAM capacities ...

Page 34

On-chip 10-bit resolution A/D converter (AV On-chip multiplier/divider (16 bits × 16 bits, 32 bits/16 bits), key interrupt function, clock output/buzzer output controller, I/O ports, timer, and serial interface Power supply voltage • Standard products, (A) grade products: V ...

Page 35

Ordering Information [Part Number] PD78F05xy (X) - XXX - XX None A None D F Please refer to "Quality Grades on NEC Semiconductor Devices" (Document No. C11531E) published by Renesas Electronics to know the specification ...

Page 36

Part Number] 78K0/Kx2 Package Microcontrollers 78K0/KB2 30-pin plastic Conventional- SSOP (7.62 mm specification (300)) products Expanded- specification products 36-pin plastic Conventional- FLGA (4x4) specification products Expanded- specification products 78K0/KC2 38-pin plastic Expanded- SSOP (7.62 mm specification (300)) ...

Page 37

Package Microcontrollers 78K0/KC2 48-pin plastic Conventional- LQFP (fine pitch) specification (7x7) products Expanded- specification products 78K0/KD2 52-pin plastic Conventional- LQFP (10x10) specification products Expanded- specification products Note The μPD78F0515D, 78F0515DA, 78F0527D, and 78F0527DA have an on-chip debug function, ...

Page 38

Package Microcontrollers 78K0/KE2 64-pin plastic Conventional- LQFP (fine pitch) specification (10x10) products Expanded- specification products Note The μPD78F0537D and 78F0537DA have an on-chip debug function, which is provided for development and evaluation. Do not use the on-chip debug ...

Page 39

Package Microcontrollers 78K0/KE2 64-pin plastic Conventional- LQFP (14x14) specification products Expanded- specification products Note The μPD78F0537D and 78F0537DA have an on-chip debug function, which is provided for development and evaluation. Do not use the on-chip debug function in ...

Page 40

Package Microcontrollers 78K0/KE2 64-pin plastic Conventional- LQFP (12x12) specification products Expanded- specification products 64-pin plastic Conventional- TQFP (fine pitch) specification (7x7) products Expanded- specification products Note The μPD78F0537D and 78F0537DA have an on-chip debug function, which is provided ...

Page 41

Package Microcontrollers 78K0/KE2 64-pin plastic FLGA (5x5) <R> 64-pin plastic FBGA (4x4) 78K0/KF2 80-pin plastic LQFP (14x14) 80-pin plastic LQFP (fine pitch) (12x12) The μPD78F0537D, 78F0537DA, 78F0547D, and 78F0547DA have an on-chip debug function, which is Note provided ...

Page 42

Pin Configuration (Top View) 1.5.1 78K0/KB2 • 30-pin plastic SSOP (7.62 mm (300)) ANI1/P21 ANI0/P20 P01/TI010/TO00 P00/TI000 P120/INTP0/EXLVI P122/X2/EXCLK/OCD0B P121/X1/OCD0A P60/SCL0 P61/SDA0 P33/TI51/TO51/INTP4 Note Products with on-chip debug function only Cautions 1. Make AV the same potential as ...

Page 43

FLGA (4x4) Top View Pin Name Pin No. Note P32/INTP3/OCD1B A3 P30/INTP1 A4 P61/SDA0 A5 P33/TI51/TO51/INTP4 Note P31/INTP2/OCD1A B2 P16/TOH1/INTP5 B3 P15/TOH0 B4 P60/SCL0 B5 ...

Page 44

SSOP (7.62 mm (300)) ANI1/P21 ANI0/P20 P01/TI010/TO00 P00/TI000 P120/INTP0/EXLVI RESET P124/XT2/EXCLKS P123/XT1 FLMD0 P122/X2/EXCLK/OCD0B P121/X1/OCD0A REGC P60/SCL0 P61/SDA0 P62/EXSCL0 P63 P33/TI51/TO51/INTP4 Note Products with on-chip debug function only Cautions 1. Make AV the same ...

Page 45

LQFP (10 × 10) P41 P40 RESET P124/XT2/EXCLKS P123/XT1 FLMD0 Note P122/X2/EXCLK/OCD0B Note P121/X1/OCD0A REGC Note Products with on-chip debug function only Cautions 1. Make AV the same potential ...

Page 46

LQFP (fine pitch) (7 × 7) P60/SCL0 P61/SDA0 P62/EXSCL0 P63 P33/TI51/TO51/INTP4 P75 P74 P73/KR3 P72/KR2 P71/KR1 P70/KR0 Note P32/INTP3/OCD1B Note Products with on-chip debug function only Cautions 1. Make AV the same potential ...

Page 47

LQFP (10 × 10) P140/PCL/INTP6 P120/INTP0/EXLVI P41 P40 RESET P124/XT2/EXCLKS P123/XT1 FLMD0 Note P122/X2/EXCLK/OCD0B Note P121/X1/OCD0A REGC Note Products with on-chip debug function only Cautions 1. Make AV the same ...

Page 48

LQFP (fine pitch) (10 × 10) • 64-pin plastic LQFP (14 × 14) • 64-pin plastic LQFP (12 × 12) • 64-pin plastic TQFP (fine pitch) (7 × 7) P120/INTP0/EXLVI P43 P42 P41 P40 ...

Page 49

FLGA (5 × 5) • 64-pin plastic FBGA (4 × 4) Top View Pin No. Pin Name Pin No REF A3 P11/SI10/RxD0 C3 A4 P13/TxD6 C4 ...

Page 50

LQFP (14 × 14) • 80-pin plastic LQFP (fine pitch) (12 × 12) P120/INTP0/EXLVI 1 P47 2 P46 3 P45 4 P44 5 P43 6 P42 7 P41 8 P40 9 RESET 10 P124/XT2/EXCLKS ...

Page 51

Pin Identification ANI0 to ANI7: Analog input AV : Analog reference voltage REF AV : Analog ground SS BUSY0: Serial busy input BUZ: Buzzer output EV : Power supply for port Ground for port SS ...

Page 52

Block Diagram 1.7.1 78K0/KB2 TO00/TI010/P01 16-bit timer/ event counter 00 TI000/P00 RxD6/P14 (LINSEL) TOH0/P15 8-bit timer H0 TOH1/P16 8-bit timer H1 Internal low-speed oscillator Watchdog timer 8-bit timer/ TI50/TO50/P17 event counter 50 8-bit timer/ TI51/TO51/P33 event counter 51 ...

Page 53

TO00/TI010/P01 16-bit timer/ event counter 00 TI000/P00 RxD6/P14 (LINSEL) TOH0/P15 8-bit timer H0 TOH1/P16 8-bit timer H1 Internal low-speed oscillator Watchdog timer 8-bit timer/ TI50/TO50/P17 event counter 50 8-bit timer/ TI51/TO51/P33 event counter 51 Watch timer RxD0/P11 ...

Page 54

TO00/TI010/P01 16-bit timer/ event counter 00 TI000/P00 RxD6/P14 (LINSEL) TOH0/P15 8-bit timer H0 TOH1/P16 8-bit timer H1 Internal low-speed oscillator Watchdog timer 8-bit timer/ TI50/TO50/P17 event counter 50 8-bit timer/ TI51/TO51/P33 event counter 51 Watch timer Serial ...

Page 55

TO00/TI010/P01 16-bit TIMER/ EVENT COUNTER 00 TI000/P00 RxD6/P14 (LINSEL) Note2 Note2 TO01 /TI011 /P06 16-bit TIMER/ Note2 TI001 /P05 EVENT COUNTER 01 TOH0/P15 8-bit TIMER H0 TOH1/P16 8-bit TIMER H1 INTERNAL LOW-SPEED OSCILLATOR WATCHDOG TIMER 8-bit TIMER/ ...

Page 56

TO00/TI010/P01 16-bit timer/ event counter 00 TI000/P00 RxD6/P14 (LINSEL) TO01/TI011/P06 16-bit timer/ event counter 01 TI001/P05 TOH0/P15 8-bit timer H0 TOH1/P16 8-bit timer H1 Internal low-speed oscillator Watchdog timer 8-bit timer/ TI50/TO50/P17 event counter 50 8-bit timer/ ...

Page 57

Outline of Functions 78K0/Kx2 Item Flash memory (KB) 8 High-Speed RAM (KB) 0.5 − Expansion RAM (KB) Bank (flash memory) Power supply voltage Standard products, (A) grade products: V Regulator Minimum instruction execution time High-speed system Internal high-speed ...

Page 58

Item Flash memory (KB High-Speed RAM (KB) 0.75 1 − − Expansion RAM (KB) Bank (flash memory) Power supply voltage Standard products, (A) grade products: V Regulator Minimum instruction execution time High-speed system Internal high-speed oscillation ...

Page 59

An outline of the timer is shown below. 16-Bit Timer/ Event Counters 00 and 01 TM00 Function Interval timer 1 channel External event 1 channel counter PPG output 1 output − PWM output Pulse width 2 inputs measurement Square-wave ...

Page 60

Pin Function List Pin I/O buffer power supplies depend on the product. The relationship between these power supplies and the pins is shown below. Table 2-1. Pin I/O Buffer Power Supplies (AV • 78K0/KB2: 30-pin plastic SSOP (7.62 ...

Page 61

Port functions: 78K0/KB2 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 be specified by a software setting. P10 I/O ...

Page 62

Non-port functions (1/2): 78K0/KB2 Function Name I/O ANI0 to ANI3 Input A/D converter analog input EXLVI Input Potential input for external low-voltage detection − FLMD0 Flash memory programming mode setting INTP0 Input External interrupt request input for which ...

Page 63

Non-port functions (2/2): 78K0/KB2 Function Name I/O − V For 30-pin products: Positive power supply for pins other DD than P20 to P23 For 36-pin products: Positive power supply for P121, P122, and non-port pins − Note 1 ...

Page 64

Port functions (1/2): 78K0/KC2 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 be specified by a software setting. P10 ...

Page 65

Port functions (2/2): 78K0/KC2 Function Name I/O P120 I/O Port 12. 5-bit I/O port. P121 Input/output can be specified in 1-bit units. P122 Only for P120, use of an on-chip pull-up resistor can be P123 specified by a ...

Page 66

Non-port functions (2/2): 78K0/KC2 Function Name I/O − REGC Connecting regulator output (2.5 V) stabilization capacitance for internal operation. Connect to V RESET Input System reset input RxD0 Input Serial data input to UART0 RxD6 Input Serial data ...

Page 67

Port functions (1/2): 78K0/KD2 Function Name I/O P00 I/O Port 0. 4-bit I/O port. P01 Input/output can be specified in 1-bit units. P02 Use of an on-chip pull-up resistor can be specified by a software P03 ...

Page 68

Port functions (2/2): 78K0/KD2 Function Name I/O P130 Output Port 13. 1-bit output-only port. P140 I/O Port 14. 1-bit I/O port. Input/output can be specified in 1-bit units. Use of an on-chip pull-up resistor can be specified by ...

Page 69

Non-port functions (2/2): 78K0/KD2 Function Name I/O TI000 Input External count clock input to 16-bit timer/event counter 00 Capture trigger input to capture registers (CR000, CR010) of 16-bit timer/event counter 00 TI010 Capture trigger input to capture register ...

Page 70

Port functions (1/2): 78K0/KE2 Function Name I/O P00 I/O Port 0. 7-bit I/O port. P01 Input/output can be specified in 1-bit units. P02 Use of an on-chip pull-up resistor can be specified by a software P03 ...

Page 71

Port functions (2/2): 78K0/KE2 Function Name I/O P70 to P77 I/O Port 7. 8-bit I/O port. Input/output can be specified in 1-bit units. Use of an on-chip pull-up resistor can be specified by a software setting. P120 I/O ...

Page 72

Non-port functions (2/3): 78K0/KE2 Function Name I/O RESET Input System reset input RxD0 Input Serial data input to UART0 RxD6 Serial data input to UART6 SCK10 I/O Clock input/output for CSI10 Note 1 SCK11 Clock input/output for CSI11 ...

Page 73

Non-port functions (3/3): 78K0/KE2 Function Name I/O − V Positive power supply for P121 to P124 and other than ports DD − EV Positive power supply for ports other than P20 to P27 and DD P121 to P124. ...

Page 74

Port functions (1/2): 78K0/KF2 Function Name I/O P00 I/O Port 0. 7-bit I/O port. P01 Input/output can be specified in 1-bit units. P02 Use of an on-chip pull-up resistor can be specified by a software P03 ...

Page 75

Port functions (2/2): 78K0/KF2 Function Name I/O P70 to P77 I/O Port 7. 8-bit I/O port. Input/output can be specified in 1-bit units. Use of an on-chip pull-up resistor can be specified by a software setting. P120 I/O ...

Page 76

Non-port functions (2/3): 78K0/KF2 Function Name I/O PCL Output Clock output (for trimming of high-speed system clock, subsystem clock) − REGC Connecting regulator output (2.5 V) stabilization capacitance for internal operation. Connect to V RESET Input System reset ...

Page 77

Non-port functions (3/3): 78K0/KF2 Function Name I/O − X1 Connecting resonator for main system clock − X2 EXCLK Input External clock input for main system clock − XT1 Connecting resonator for subsystem clock − XT2 EXCLKS Input External ...

Page 78

Description of Pin Functions Remark The pins mounted depend on the product. See 1.4 Ordering Information and 2.1 Pin Function List. 2.2.1 P00 to P06 (port 0) P00 to P06 function as an I/O port. These pins also ...

Page 79

SI11 This is a serial data input pin of serial interface CSI11. (e) SO11 This is a serial data output pin of serial interface CSI11. (f) SCK11 This is a serial clock I/O pin of serial interface CSI11. ...

Page 80

SCK10 This is a serial clock I/O pin of serial interface CSI10. (d) RxD0 This is a serial data input pin of serial interface UART0. (e) RxD6 This is a serial data input pin of serial interface UART6. ...

Page 81

P20 to P27 (port 2) P20 to P27 function as an I/O port. These pins also function as pins for A/D converter analog input. 78K0/KB2 √ P20/ANI0 √ P21/ANI1 √ P22/ANI2 √ P23/ANI3 − P24/ANI4 − P25/ANI5 − ...

Page 82

P30 to P33 (port 3) P30 to P33 function as an I/O port. These pins also function as pins for external interrupt request input and timer I/O. 78K0/KB2 P30/INTP1 P31/INTP2/ Note OCD1A P32/INTP3/ Note OCD1B P33/INTP4/TI51/ TO51 Note ...

Page 83

Caution 2. Process the P31/INTP2/OCD1A pin of the products mounted with the on-chip debug μ function ( connected to a flash memory programmer or an on-chip debug emulator. Flash memory programmer connection On-chip debug emulator connection (when it is ...

Page 84

P50 to P57 (port 5) 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 5 (PM5). Use of an on-chip pull-up ...

Page 85

Port mode P60 to P67 function as an I/O port. P60 to P67 can be set to input port or output port in 1-bit units using port mode register 6 (PM6). Only for P64 to P67, use of ...

Page 86

Port mode P70 to P77 function as an I/O port. P70 to P77 can be set to input or output port in 1-bit units using port mode register 7 (PM7). Use of an on-chip pull-up resistor can be ...

Page 87

EXLVI This is a potential input pin for external low-voltage detection. (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 ...

Page 88

P140 to P145 (port 14) P140 to P145 function as an I/O port. These pins also function as external interrupt request input, clock output, buzzer output, serial interface data I/O, clock I/O, busy input, and strobe output pins. ...

Page 89

SIA0 This is a serial interface CSIA0 serial data input pin. (f) SOA0 This is a serial interface CSIA0 serial data output pin. (g) SCKA0 This is a serial interface CSIA0 serial clock I/O pin. (h) STB0 This ...

Page 90

V and the positive power supply pin for P121 to P124 and other than ports the positive power supply pin for ports other than P20 to P27 and P121 to ...

Page 91

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. See Figure 2-1 for the configuration of the I/O circuit of each type. ...

Page 92

Pin Name I/O Circuit Type P30/INTP1 5-AQ Note 1 P31/INTP2/OCD1A P32/INTP3/OCD1B P33/TI51/TO51/INTP4 P40 to P47 5-AG P50 to P57 P60/SCL0 13-AI P61/SDA0 P62/EXSCL0 P63 13-P P64 to P67 5-AG P70/KR0 to P77/KR7 5-AQ P120/INTP0/EXLVI Notes 1, 2 P121/X1/OCD0A 37 ...

Page 93

Pin Name I/O Circuit Type P140/PCL/INTP6 5-AQ P141/BUZ/BUSY0/INTP7 P142/SCKA0 P143/SIA0 P144/SOA0 5-AG P145/STB0 <R> AV REF <R> FLMD0 38-A <R> RESET 2 <R> REGC Note FLMD0 is a pin that is used to write data to the ...

Page 94

Type 2 IN Schmitt-triggered input with hysteresis characteristics Type 3-C Data Remark With products not provided with an EV R01UH0008EJ0401 Rev.4.01 Jul 15, 2010 Figure 2-1. Pin I/O Circuit List (1/2) Type 5-AG Pull-up enable Data Output disable Input ...

Page 95

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 Input enable Type 13-AI data output disable EV input enable Remark With products not provided ...

Page 96

Memory Space Products in the 78K0/Kx2 microcontrollers can access memory space. Figures 3-1 to 3-11 show the memory maps. Cautions 1. Regardless of the internal memory capacity, the initial values of the internal memory size ...

Page 97

Table 3-2. Set Values of Internal Memory Size Switching Register (IMS) and Internal Expansion RAM Size Switching Register (IXS) (48-pin products of the 78K0/KC2, 78K0/KD2, 78K0/KE2, and 78K0/KF2) 48-pin 78K0/KD2 products of the 78K0/KC2 μ PD78F0511, μ PD78F0521, 78F0511A ...

Page 98

Figure 3-1. Memory Map ( FFFFH Special function registers 256 FF00H FEFFH General-purpose registers 32 FEE0H FEDFH Internal high-speed RAM 512 FD00H FCFFH Data memory space 2000H 1FFFH Program Flash memory memory space 8192 0000H Notes 1. When boot ...

Page 99

Figure 3-2. Memory Map ( FFFFH Special function registers 256 FF00H FEFFH General-purpose registers 32 FEE0H FEDFH Internal high-speed RAM 768 FC00H FBFFH Data memory space Reserved 4000H 3FFFH Flash memory Program 16384 memory space 0000H Notes 1. ...

Page 100

Figure 3-3. Memory Map ( FFFFH Special function registers 256 FF00H FEFFH General-purpose registers 32 FEE0H FEDFH Internal high-speed RAM 1024 FB00H FAFFH Data memory space 6000H 5FFFH Program Flash memory memory space 24576 0000H Notes 1. When ...

Page 101

Figure 3-4. Memory Map ( FFFFH Special function registers 256 FF00H FEFFH General-purpose registers 32 FEE0H FEDFH Internal high-speed RAM 1024 FB00H FAFFH Data memory space Reserved 8000H 7FFFH Program Flash memory memory space 32768 0000H Notes 1. When ...

Page 102

Figure 3-5. Memory Map ( FFFFH Special function registers 256 FF00H FEFFH General-purpose registers 32 FEE0H FEDFH Internal high-speed RAM 1024 FB00H FAFFH Data memory space Reserved 8000H 7FFFH Program Flash memory memory space 32768 0000H Notes 1. When ...

Page 103

Figure 3-6. Memory Map ( PD78F0514, 78F0514A, 78F0524, 78F0524A, 78F0534, 78F0534A, 78F0544, and Special function registers General-purpose registers ...

Page 104

Figure 3-7. Memory Map ( PD78F0515, 78F0515A, 78F0525, 78F0525A, 78F0535, 78F0535A, 78F0545, and Special function registers 256 General-purpose registers ...

Page 105

Figure 3-8. Memory Map ( Special function registers General-purpose registers Internal high-speed RAM ...

Page 106

Figure 3-9. Memory Map ( Special function registers General-purpose registers Internal high-speed RAM ...

Page 107

Figure 3-10. Memory Map ( Special function registers General-purpose registers Internal high-speed RAM ...

Page 108

Figure 3-11. Memory Map ( PD78F0527D, 78F0527DA, 78F0537D, 78F0537DA, 78F0547D, and 78F0547DA Special function registers General-purpose registers ...

Page 109

Correspondence between the address values and block numbers in the flash memory are shown below. Table 3-3. Correspondence Between Address Values and Block Numbers in Flash Memory (1/2) (1) Products whose flash memory is less than 60 KB (without ...

Page 110

Table 3-3. Correspondence Between Address Values and Block Numbers in Flash Memory (2/2) (2) Products whose flash memory is at least 96 KB (with memory bank) Address Value Block Address Value Number 0000H to 03FFH 00H 8000H to 83FFH ...

Page 111

Internal program memory space The internal program memory space stores the program and table data. Normally addressed with the program counter (PC). 78K0/Kx2 microcontrollers incorporate internal ROM (flash memory), as shown below. 78K0/KB2 78K0/KC2 30/36 Pins ...

Page 112

Vector Table Address 0000H RESET input, POC, LVI, WDT 0004H INTLVI 0006H INTP0 0008H INTP1 000AH INTP2 000CH INTP3 000EH INTP4 0010H INTP5 0012H INTSRE6 0014H INTSR6 0016H INTST6 0018H INTCSI10/INTST0 001AH INTTMH1 001CH INTTMH0 001EH INTTM50 0020H INTTM000 ...

Page 113

CALLT instruction table area The 64-byte area 0040H to 007FH can store the subroutine entry address of a 1-byte call instruction (CALLT). (3) Option byte area A 5-byte area of 0080H to 0084H and 1080H to 1084H can ...

Page 114

Internal data memory space 78K0/Kx2 microcontrollers incorporate the following RAMs. (1) Internal high-speed RAM The 32-byte area FEE0H to FEFFH is assigned to four general-purpose register banks consisting of eight 8-bit registers per bank. This area cannot be ...

Page 115

Internal expansion RAM The internal expansion RAM can also be used as a normal data area similar to the internal high-speed RAM, as well as a program area in which instructions can be written and executed. The internal ...

Page 116

Special function register (SFR) area On-chip peripheral hardware special function registers (SFRs) are allocated in the area FF00H to FFFFH (see Table 3- 8 Special Function Register List in 3.2.3 Special function registers (SFRs)). Caution Do not access ...

Page 117

Figure 3-12. Correspondence Between Data Memory and Addressing ( FFFFH Special function registers (SFR) 256 8 bits FF20H FF1FH FF00H FEFFH General-purpose registers FEE0H 32 8 bits FEDFH Internal high-speed RAM 512 8 bits FE20H FE1FH FD00H FCFFH Reserved ...

Page 118

Figure 3-13. Correspondence Between Data Memory and Addressing μ ( PD78F0501, 78F0501A, 78F0511, 78F0511A, 78F0521, 78F0521A, 78F0531, and 78F0531A Special function registers (SFR) 256 x 8 bits ...

Page 119

Figure 3-14. Correspondence Between Data Memory and Addressing μ ( PD78F0502, 78F0502A, 78F0512, 78F0512A, 78F0522, 78F0522A, 78F0532, and 78F0532A Special function registers (SFR) 256 x 8 bits ...

Page 120

Figure 3-15. Correspondence Between Data Memory and Addressing μ ( PD78F0503, 78F0503A, 78F0513, 78F0513A, 78F0523, 78F0523A, 78F0533, 78F0533A, 78F0503D, 78F0503DA, 78F0513D, and 78F0513DA Special function registers (SFR) 256 8 bits ...

Page 121

Figure 3-16. Correspondence Between Data Memory and Addressing μ ( PD78F0514, 78F0514A, 78F0524, 78F0524A, 78F0534, 78F0534A, 78F0544, and 78F0544A Special function registers (SFR) 256 8 bits ...

Page 122

Figure 3-17. Correspondence Between Data Memory and Addressing μ ( PD78F0515, 78F0515A, 78F0525, 78F0525A, 78F0535, 78F0535A, 78F0545 Special function registers (SFR) 256 8 bits ...

Page 123

Figure 3-18. Correspondence Between Data Memory and Addressing ( Special function registers (SFR) 256 8 bits ...

Page 124

Figure 3-19. Correspondence Between Data Memory and Addressing μ ( PD78F0527, 78F0527A, 78F0537, 78F0537A, 78F0547, 78F0547A, 78F0527D, 78F0527DA, 78F0537D, 78F0537DA Special function registers (SFR) 256 8 bits ...

Page 125

Processor Registers The 78K0/Kx2 microcontrollers incorporate the following processor registers. 3.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 126

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 flag (ISP) ...

Page 127

SP SP (b) CALL, CALLF, CALLT instructions (when SP = FEE0H (c) Interrupt, BRK instructions (when SP = FEE0H R01UH0008EJ0401 Rev.4.01 Jul 15, 2010 Figure 3-23. Data to Be Saved to Stack Memory (a) PUSH ...

Page 128

Figure 3-24. Data to Be Restored from Stack Memory (c) RETI, RETB instructions (when SP = FEDDH R01UH0008EJ0401 Rev.4.01 Jul 15, 2010 (a) POP rp instruction (when SP = FEDEH) FEE0H FEE0H FEDFH ...

Page 129

General-purpose registers General-purpose registers are mapped at particular addresses (FEE0H to FEFFH) of the data memory. The general- purpose registers consists of 4 banks, each bank consisting of eight 8-bit registers ( ...

Page 130

Special function registers (SFRs) Unlike a general-purpose register, each special function register has a special function. SFRs are allocated to the FF00H to FFFFH area. Special function registers can be manipulated like general-purpose registers, using operation, transfer, and ...

Page 131

Address Special Function Register (SFR) Name FF00H Port register 0 FF01H Port register 1 FF02H Port register 2 FF03H Port register 3 FF04H Port register 4 FF05H Port register 5 FF06H Port register 6 FF07H Port register 7 FF08H ...

Page 132

Address Special Function Register (SFR) Name FF30H Pull-up resistor option register 0 FF31H Pull-up resistor option register 1 FF33H Pull-up resistor option register 3 FF34H Pull-up resistor option register 4 FF35H Pull-up resistor option register 5 FF36H Pull-up resistor ...

Page 133

Address Special Function Register (SFR) Name FF6AH Timer clock selection register 50 FF6BH 8-bit timer mode control register 50 FF6CH 8-bit timer H mode register 1 FF6DH 8-bit timer H carrier control register 1 FF6EH Key return mode register ...

Page 134

Address Special Function Register (SFR) Name FFA5H IIC shift register 0 FFA6H IIC control register 0 FFA7H Slave address register 0 FFA8H IIC clock selection register 0 FFA9H IIC function expansion register 0 FFAAH IIC status register 0 FFABH ...

Page 135

Address Special Function Register (SFR) Name FFE8H Priority specification flag register 0L FFE9H Priority specification flag register 0H FFEAH Priority specification flag register 1L FFEBH Priority specification flag register 1H FFF0H Internal memory size switching Notes 3,4 register FFF3H ...

Page 136

Instruction Address Addressing An instruction address is determined by contents of the program counter (PC) and memory bank select register (BANK), and is normally incremented (+1 for each byte) automatically according to the number of bytes of an ...

Page 137

Immediate addressing [Function] Immediate data in the instruction word is transferred to the program counter (PC) and branched. This function is carried out when the CALL !addr16 or BR !addr16 or CALLF !addr11 instruction is executed. CALL !addr16 ...

Page 138

Table indirect addressing [Function] Table contents (branch destination address) of the particular location to be addressed by bits the immediate data of an operation code are transferred to the program counter (PC) and branched. ...

Page 139

Register addressing [Function] Register pair (AX) contents to be specified with an instruction word are transferred to the program counter (PC) and branched. This function is carried out when the BR AX instruction is executed. [Illustration ...

Page 140

Register addressing [Function] The general-purpose register to be specified is accessed as an operand with the register bank select flags (RBS0 to RBS1) and the register specify codes of an operation code. Register addressing is carried out when ...

Page 141

Direct addressing [Function] The memory to be manipulated is directly addressed with immediate data in an instruction word becoming an operand address. This addressing can be carried out for all of the memory spaces. However, before addressing a ...

Page 142

Short direct addressing [Function] The memory to be manipulated in the fixed space is directly addressed with 8-bit data in an instruction word. This addressing is applied to the 256-byte space FE20H to FF1FH. Internal high-speed RAM and ...

Page 143

Special function register (SFR) addressing [Function] A memory-mapped special function register (SFR) is addressed with 8-bit immediate data in an instruction word. This addressing is applied to the 240-byte spaces FF00H to FFCFH and FFE0H to FFFFH. However, ...

Page 144

Register indirect addressing [Function] Register pair contents specified by a register pair specify code in an instruction word and by a register bank select flag (RBS0 and RBS1) serve as an operand address for addressing the memory. This ...

Page 145

Based addressing [Function] 8-bit immediate data is added as offset data to the contents of the base register, that is, the HL register pair in the register bank specified by the register bank select flag (RBS0 and RBS1), ...

Page 146

Based indexed addressing [Function] The register contents specified in an instruction word are added to the contents of the base register, that is, the HL register pair in the register bank specified by the register ...

Page 147

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

Page 148

CHAPTER 4 MEMORY BANK SELECT FUNCTION (PRODUCTS WHOSE FLASH MEMORY IS AT LEAST 96 KB ONLY) 4.1 Memory Bank μ The PD78F05x6, 78F05x6A, 78F05x7, 78F05x7A, 78F05x7D and 78F05x7DA of 78K0/KD2, 78K0/KE2, and 78K0/KF2 implement a ROM capacity of 96 ...

Page 149

Difference in Representation of Memory Space With the 78K0/Kx2 microcontroller products which support the memory bank, addresses can be viewed in the following two different ways. • Memory bank number + CPU address • Flash memory real address ...

Page 150

Table 4-1. Memory Bank Address Representation Memory Bank Number Memory bank 0 08000H-0BFFFH Memory bank 1 Memory bank 2 Memory bank 3 Memory bank 4 Memory bank 5 Notes 1. SM+ for 78K0, SM+ for 78K0/Kx2, and ID78K0-QB 2. ...

Page 151

Selecting Memory Bank The memory bank selected by the memory bank select register (BANK) is reflected on the bank area and can be addressed. Therefore, to access a memory bank different from the one currently selected, that memory ...

Page 152

Software example (to store a value to be referenced in register A) RAMD DSEG SADDR R_BNKA R_BNKN R_BNKRN ETRC CSEG UNIT ENTRY: MOV R_BNKN,#BANKNUM DATA1 MOVW R_BNKA,#DATA1 CALL !BNKRD : : BNKC ...

Page 153

Branching instruction between memory banks Instructions cannot branch directly from one memory bank to another. To branch an instruction from one memory bank to another, branch once to the common area (0000H to 7FFFH), change the setting of ...

Page 154

Software example 1 (to branch from all areas) RAMD DSEG SADDR R_BNKA R_BNKN RSAVEAX ETRC CSEG UNIT ENTRY: MOV R_BNKN,#BANKNUM TEST MOVW R_BNKA,#TEST BR !BNKBR : : BNKC CSEG AT 7000H BNKBR: ...

Page 155

Subroutine call between memory banks Subroutines cannot be directly called between memory banks. To call a subroutine between memory banks, branch once to the common area (0000H to 7FFFH), specify the memory bank at the calling destination by ...

Page 156

Software example RAMD DSEG SADDR R_BNKA R_BNKN R_BNKRN RSAVEAX ETRC CSEG UNIT ENTRY: MOV R_BNKN,#BANKNUM TEST MOVW R_BNKA,#TEST CALL !BNKCAL : : BNKC CSEG AT 7000H BNKCAL: MOVW RSAVEAX,AX MOV ...

Page 157

Instruction branch to bank area by interrupt When an interrupt occurs, instructions can branch to the memory bank specified by the BANK register by using the vector table, but it is difficult to identify the BANK register when ...

Page 158

Remark Note the following points to use the memory bank select function efficiently. • Allocate a routine that is used often in the common area. • value that is planned to be referenced is placed in RAM, ...

Page 159

Port Functions Pin I/O buffer power supplies depend on the product. The relationship between these power supplies and the pins is shown below. Table 5-1. Pin I/O Buffer Power Supplies (AV • 78K0/KB2: 30-pin plastic SSOP (7.62 mm ...

Page 160

KB2 KC2 KD2 KES KF2 Function Name √ √ √ √ √ P00 I/O √ √ √ √ √ P01 − − √ P02 Note 1 Note 2 − − √ P03 Note 1 Note 2 − − − ...

Page 161

KB2 KC2 KD2 KES KF2 Function Name − √ √ √ P40 I/O Note 1 − √ √ √ P41 Note 1 − − − √ √ P42 − − − √ √ P43 − − − − √ ...

Page 162

KB2 KC2 KD2 KES KF2 Function Name √ √ √ √ √ P120 I/O √ √ √ √ √ P121 √ √ √ √ √ P122 − √ √ √ √ P123 − √ √ √ √ P124 − ...

Page 163

Port Configuration Ports include the following hardware. Item • 78K0/KB2 Control registers Port mode register (PMxx): Port register (Pxx): Pull-up resistor option register (PUxx): PU0, PU1, PU3, PU12 A/D port configuration register (ADPC) • 38-pin and 44-pin products ...

Page 164

Port 0 78K0/KB2 P00/TI000 P01/TI010/TO00 P02/SO11 P03/SI11 P04/SCK11 P05/TI001/SSI11 P06/TI011/TO01 Note The 78K0/KE2 products whose flash memory is less than 32 KB and 78K0/KD2 products are only provided with port functions and not alternate functions. Remark √: Mounted, ...

Page 165

WR PU PU0 PU00 Alternate function RD WR PORT Output latch (P00 PM0 PM00 P0: Port register 0 PU0: Pull-up resistor option register 0 PM0: Port mode register 0 RD: Read signal WR××: Write signal Remark With ...

Page 166

WR PU PU0 PU01 Alternate function RD WR PORT P0 Output latch (P01 PM0 PM01 Alternate function P0: Port register 0 PU0: Pull-up resistor option register 0 PM0: Port mode register 0 RD: Read signal WR××: Write ...

Page 167

KB and 78K0/KD2 PORT Output latch WR PM P0: Port register 0 PU0: Pull-up resistor option register 0 PM0: Port mode register 0 RD: Read ...

Page 168

KB and 78K0/KF2 WR PU PU0 PU02 RD WR PORT Output latch (P02 PM02 Alternate function P0: Port register 0 PU0: Pull-up resistor option register 0 PM0: ...

Page 169

KB and 78K0/KD2 WR PU PU03, PU05 RD WR PORT Output latch (P03, P05 PM03, PM05 P0: Port register 0 PU0: Pull-up resistor option register 0 PM0: ...

Page 170

KB and 78K0/KF2 WR PU PU0 PU03, PU05 Alternate function RD WR PORT P0 Output latch (P03, P05 PM0 PM03, PM05 P0: Port register 0 PU0: Pull-up ...

Page 171

PORT Output latch WR PM P0: Port register 0 PU0: Pull-up resistor option register 0 PM0: Port mode register 0 RD: Read signal WR××: ...

Page 172

KB and 78K0/KF2 WR PU PU0 PU04 Alternate function RD WR PORT Output latch (P04 PM0 PM04 Alternate function P0: Port register 0 PU0: Pull-up resistor option ...

Page 173

PORT Output latch WR PM P0: Port register 0 PU0: Pull-up resistor option register 0 PM0: Port mode register 0 RD: Read signal WR××: ...

Page 174

KB and 78K0/KF2 WR PU PU0 PU06 Alternate function RD WR PORT P0 Output latch (P06 PM0 PM06 Alternate function P0: Port register 0 PU0: Pull-up resistor ...

Page 175

Port 1 78K0/KB2 P10/SCK10/TxD0 P11/SI10/RxD0 P12/SO10 P13/TxD6 P14/RxD6 P15/TOH0 P16/TOH1/INTP5 P17/TI50/TO50 Remark √: Mounted Port I/O port with an output latch. Port 1 can be set to the input mode or output mode in 1-bit ...

Page 176

WR PU PU1 PU10 Alternate function RD WR PORT P1 Output latch (P10 PM1 PM10 Alternate function P1: Port register 1 PU1: Pull-up resistor option register 1 PM1: Port mode register 1 RD: Read signal WR××: Write ...

Page 177

WR PU PU1 PU11, PU14 Alternate function RD WR PORT P1 Output latch (P11, P14 PM1 PM11, PM14 P1: Port register 1 PU1: Pull-up resistor option register 1 PM1: Port mode register 1 RD: Read signal WR××: ...

Page 178

WR PU PU1 PU12, PU15 RD WR PORT Output latch (P12, P15 PM1 PM12, PM15 Alternate function P1: Port register 1 PU1: Pull-up resistor option register 1 PM1: Port mode register 1 RD: Read signal WR××: Write ...

Page 179

WR PU PU13 RD WR PORT Output latch (P13 PM13 Alternate function P1: Port register 1 PU1: Pull-up resistor option register 1 PM1: Port mode register 1 RD: Read signal WR××: Write signal Remark With products not ...

Page 180

WR PU PU1 PU16, PU17 Alternate function RD WR PORT P1 Output latch (P16, P17 PM1 PM16, PM17 Alternate function P1: Port register 1 PU1: Pull-up resistor option register 1 PM1: Port mode register 1 RD: Read ...

Page 181

Port 2 78K0/KB2 √ P20/ANI0 √ P21/ANI1 √ P22/ANI2 √ P23/ANI3 − P24/ANI4 − P25/ANI5 − P26/ANI6 − P27/ANI7 Note This is not mounted onto 38-pin products of the 78K0/KC2. For the 38-pin products, be sure to set ...

Page 182

RD WR PORT Output latch (P20 to P27 PM20 to PM27 P2: Port register 2 PM2: Port mode register 2 RD: Read signal WR××: Write signal Caution For the 38-pin products of 78K0/KC2, be sure to set ...

Page 183

Port 3 78K0/KB2 P30/INTP1 P31/INTP2/ Note OCD1A P32/INTP3/ Note OCD1B P33/INTP4/TI51/ TO51 Note OCD1A and OCD1B are provided to the products with an on-chip debug function ( only. Remark √: Mounted Port I/O port with ...

Page 184

Remark P31 and P32 of the product with an on-chip debug function ( on-chip debug mode setting pins (OCD1A, OCD1B) when the on-chip debug function is used. For how to connect an on-chip debug emulator (QB-MINI2), see CHAPTER 28 ...

Page 185

WR PU PU3 PU33 Alternate function RD WR PORT P3 Output latch (P33 PM3 PM33 Alternate function P3: Port register 3 PU3: Pull-up resistor option register 3 PM3: Port mode register 3 RD: Read signal WR××: Write ...

Page 186

Port 4 78K0/KB2 − P40 − P41 − P42 − P43 − P44 − P45 − P46 − P47 Note This is not mounted onto 38-pin products of the 78K0/KC2. For the 38-pin products, be sure to set ...

Page 187

WR PU PU40 to PU47 RD WR PORT Output latch (P40 to P47 PM40 to PM47 P4: Port register 4 PU4: Pull-up resistor option register 4 PM4: Port mode register 4 RD: Read signal WR××: Write signal ...

Page 188

Port 5 78K0/KB2 P50 P51 P52 P53 P54 P55 P56 P57 Remark √: Mounted, −: Not mounted Port I/O port with an output latch. Port 5 can be set to the input mode or output ...

Page 189

Port 6 78K0/KB2 √ P60/SCL0 √ P61/SDA0 − P62/EXSCL0 − P63 − P64 − P65 − P66 − P67 Remark √: Mounted, −: Not mounted Port I/O port with an output latch. Port 6 can ...

Page 190

RD WR PORT Output latch (P60, P61 PM60, PM61 P6: Port register 6 PM6: Port mode register 6 RD: Read signal WR××: Write signal Caution A through current flows through P60 and P61 if an intermediate potential ...

Page 191

Alternate RD WR PORT Output latch WR PM P6: Port register 6 PM6: Port mode register 6 RD: Read signal WR××: Write signal Caution A through current flows through P62 if an intermediate potential is input to this pin, ...

Page 192

RD WR PORT WR PM P6: Port register 6 PM6: Port mode register 6 RD: Read signal WR××: Write signal R01UH0008EJ0401 Rev.4.01 Jul 15, 2010 Figure 5-19. Block Diagram of P63 P6 Output latch (P63) PM6 PM63 CHAPTER 5 ...

Page 193

WR PU PU64 to PU67 RD WR PORT Output latch (P64 to P67 PM64 to PM67 P6: Port register 6 PM6: Port mode register 6 RD: Read signal WR××: Write signal Remark With products not provided with ...

Page 194

Port 7 78K0/KB2 − P70/KR0 − P71/KR1 − P72/KR2 − P73/KR3 − P74/KR4 − P75/KR5 − P76/KR6 − P77/KR7 Notes 1. This is not mounted onto 38-pin products of the 78K0/KC2. For the 38-pin products, be sure to ...

Page 195

WR PU PU7 PU70 to PU77 Alternate function RD WR PORT Output latch (P70 to P77 PM7 PM70 to PM77 P7: Port register 7 PU7: Pull-up resistor option register 7 PM7: Port mode register 7 RD: Read ...

Page 196

Port 12 78K0/KB2 √ P120/INTP0/EXLVI √ Note P121/X1/OCD0A √ P122/X2/EXCLK/ Note OCD0B − P123/XT1 − P124/XT2/EXCLKS Note OCD0A and OCD0B are provided to the products with an on-chip debug function ( only. Remark √: Mounted, −: Not mounted ...

Page 197

Caution 2. Process the P121/X1/OCD0A pin of the products mounted with the on-chip debug function μ ( PD78F05xxD and 78F05xxDA) as follows, when it is not used when it is connected to a flash memory programmer or an on-chip ...

Page 198

RD WR PORT P12 Output latch (P122/P124 PM12 PM122/PM124 OSCCTL OSCSEL/ OSCSELS RD WR PORT P12 Output latch (P121/P123 PM12 PM121/PM123 OSCCTL OSCSEL/ OSCSELS P12: Port register 12 PU12: Pull-up resistor option register 12 PM12: ...

Page 199

Port 13 78K0/KB2 − P130 Note This is not mounted onto 38-pin and 44-pin products of the 78K0/KC2. Remark √: Mounted, −: Not mounted Port output-only port. Figure 5-24 shows a block diagram of port ...

Page 200

Port 14 78K0/KB2 − P140/PCL/INTP6 − P141/BUZ/BUSY0/ INTP7 − P142/SCKA0 − P143/SIA0 − P144/SOA0 − P145/STB0 Notes 1. This is not mounted onto 38-pin and 44-pin products of the 78K0/KC2. 2. The 78K0/KE2 products are not provided with ...

Related keywords