Sign In
Upload
Manuals
Brands
Renesas Manuals
Microcontrollers
78K0R/KF3
Renesas 78K0R/KF3 Manuals
Manuals and User Guides for Renesas 78K0R/KF3. We have
1
Renesas 78K0R/KF3 manual available for free PDF download: User Manual
Renesas 78K0R/KF3 User Manual (904 pages)
16-bit Single-Chip Microcontrollers
Brand:
Renesas
| Category:
Microcontrollers
| Size: 6.01 MB
Table of Contents
Table of Contents
8
Chapter 1 Outline
17
Differences between Conventional-Specification Products
17
Pd78F115X) and Expanded
17
Features
18
Applications
19
Ordering Information
19
Pin Configuration (Top View)
20
78K0R/Kx3 Microcontroller Lineup
22
Block Diagram
23
Outline of Functions
24
Chapter 2 Pin Functions
26
Pin Function List
26
Description of Pin Functions
32
P00 to P06 (Port 0)
32
P10 to P17 (Port 1)
33
P20 to P27 (Port 2)
34
P30, P31 (Port 3)
34
P40 to P47 (Port 4)
35
P50 to P55 (Port 5)
36
P60 to P67 (Port 6)
37
P70 to P77 (Port 7)
37
P90 (Port 9)
38
P110, P111 (Port 11)
38
P120 to P124 (Port 12)
38
P130 (Port 13)
39
P140 to P145 (Port 14)
39
Av Ref0
40
Av Ref1
41
Av Ss
41
Reset
41
Regc
41
VDD , Ev DD
42
Vss , Ev Ss
42
Flmd0
42
Pin I/O Circuits and Recommended Connection of Unused Pins
43
Chapter 3 Cpu Architecture
48
Memory Space
48
Internal Program Memory Space
55
Mirror Area
57
Internal Data Memory Space
58
Special Function Register (SFR) Area
59
Extended Special Function Register (2Nd SFR: 2Nd Special Function Register) Area
59
Data Memory Addressing
60
Processor Registers
65
Control Registers
65
General-Purpose Registers
67
And CS Registers
69
Special Function Registers (Sfrs)
70
Extended Special Function Registers (2Nd Sfrs: 2Nd Special Function Registers)
76
Instruction Address Addressing
82
Relative Addressing
82
Immediate Addressing
82
Register Direct Addressing
84
Addressing for Processing Data Addresses
85
Implied Addressing
85
Register Addressing
85
Direct Addressing
86
Short Direct Addressing
87
SFR Addressing
88
Register Indirect Addressing
89
Based Addressing
90
Based Indexed Addressing
93
Stack Addressing
94
Chapter 4 Port Functions
95
Port Functions
95
Port Configuration
98
Port 0
99
Port 1
104
Port 12
104
Port 2
110
Port 3
111
Port 4
113
Port 5
121
Port 6
123
Port 7
126
Port 9
127
Port 11
128
Port 13
132
Port 14
133
Registers Controlling Port Function
137
Port Function Operations
144
Writing to I/O Port
144
Reading from I/O Port
144
Operations on I/O Port
144
Connecting to External Device with Different Power Potential (2.5 V, 3 V)
145
Settings of Port Mode Register and Output Latch When Using Alternate Function
147
Cautions on 1-Bit Manipulation Instruction for Port Register N (Pn)
150
Chapter 5 Clock Generator
151
Functions of Clock Generator
151
Configuration of Clock Generator
152
Registers Controlling Clock Generator
154
System Clock Oscillator
168
X1 Oscillator
168
XT1 Oscillator
168
Internal High-Speed Oscillator
171
Internal Low-Speed Oscillator
171
Prescaler
171
Clock Generator Operation
172
Controlling Clock
176
Example of Controlling High-Speed System Clock
176
Example of Controlling Internal High-Speed Oscillation Clock
179
Example of Controlling Subsystem Clock
181
Example of Controlling Internal Low-Speed Oscillation Clock
183
CPU Clock Status Transition Diagram
184
Condition before Changing CPU Clock and Processing after Changing CPU Clock
189
Time Required for Switchover of CPU Clock and Main System Clock
191
Conditions before Clock Oscillation Is Stopped
192
Chapter 6 Timer Array Unit
193
Functions of Timer Array Unit
193
Functions of each Channel When It Operates Independently
193
Functions of each Channel When It Operates with Another Channel
194
LIN-Bus Supporting Function (Channel 7 Only)
194
Configuration of Timer Array Unit
195
Registers Controlling Timer Array Unit
200
Channel Output (To0N Pin) Control
221
To0N Pin Output Circuit Configuration
221
To0N Pin Output Setting
222
Cautions on Channel Output Operation
222
Collective Manipulation of To0N Bits
226
Timer Interrupt and To0N Pin Output at Operation Start
227
Channel Input (Ti0N Pin) Control
228
Ti0N Edge Detection Circuit
228
Basic Function of Timer Array Unit
229
Overview of Single-Operation Function and Combination-Operation Function
229
Basic Rules of Combination-Operation Function
229
Applicable Range of Basic Rules of Combination-Operation Function
230
Operation of Timer Array Unit as Independent Channel
231
Operation as Interval Timer/Square Wave Output
231
Operation as External Event Counter
237
Operation as Frequency Divider (Channel 0 Only)
240
Operation as Input Pulse Interval Measurement
244
Operation as Input Signal High-/Low-Level Width Measurement
248
Operation of Plural Channels of Timer Array Unit
252
Operation as PWM Function
252
Operation as One-Shot Pulse Output Function
259
Operation as Multiple PWM Output Function
266
Chapter 7 Real-Time Counter
273
Functions of Real-Time Counter
273
Configuration of Real-Time Counter
273
Registers Controlling Real-Time Counter
275
Real-Time Counter Operation
290
Starting Operation of Real-Time Counter
290
Shifting to STOP Mode after Starting Operation
291
Reading/Writing Real-Time Counter
292
Setting Alarm of Real-Time Counter
294
Hz Output of Real-Time Counter
295
Khz Output of Real-Time Counter
295
512 Hz, 16.384 Khz Output of Real-Time Counter
295
Example of Watch Error Correction of Real-Time Counter
296
Chapter 8 Watchdog Timer
301
Functions of Watchdog Timer
301
Configuration of Watchdog Timer
302
Register Controlling Watchdog Timer
303
Operation of Watchdog Timer
304
Controlling Operation of Watchdog Timer
304
Setting Overflow Time of Watchdog Timer
305
Setting Window Open Period of Watchdog Timer
306
Setting Watchdog Timer Interval Interrupt
307
Chapter 9 Clock Output/Buzzer Output Controller
308
Functions of Clock Output/Buzzer Output Controller
308
Configuration of Clock Output/Buzzer Output Controller
309
Registers Controlling Clock Output/Buzzer Output Controller
309
Operations of Clock Output/Buzzer Output Controller
311
Operation as Output Pin
311
Chapter 10 A/D Converter
312
Function of A/D Converter
312
Configuration of A/D Converter
313
Registers Used in A/D Converter
315
A/D Converter Operations
324
Basic Operations of A/D Converter
324
Input Voltage and Conversion Results
326
A/D Converter Operation Mode
327
Temperature Sensor Function
329
Pd78F115Xa) Only)
329
Configuration of Temperature Sensor
329
Registers Used by Temperature Sensors
330
Temperature Sensor Operation
332
Procedures for Using Temperature Sensors
334
How to Read A/D Converter Characteristics Table
337
Cautions for A/D Converter
339
Chapter 11 D/A Converter
344
Function of D/A Converter
344
Configuration of D/A Converter
344
Registers Used in D/A Converter
346
Operation of D/A Converter
349
Operation in Normal Mode
349
Operation in Real-Time Output Mode
350
Cautions
351
Chapter 12 Serial Array Unit
352
Functions of Serial Array Unit
352
3-Wire Serial I/O (CSI00, CSI01, CSI10, CSI20)
352
Uart (Uart0, Uart1, Uart2, Uart3)
353
Simplified I C (IIC10, IIC20)
354
Configuration of Serial Array Unit
355
Registers Controlling Serial Array Unit
360
Operation Stop Mode
382
Stopping the Operation by Units
382
Stopping the Operation by Channels
383
Operation of 3-Wire Serial I/O (CSI00, CSI01, CSI10, CSI20) Communication
385
Master Transmission
386
Master Reception
395
Master Transmission/Reception
403
Slave Transmission
411
Slave Reception
420
Slave Transmission/Reception
426
Calculating Transfer Clock Frequency
435
Procedure for Processing Errors that Occurred During 3-Wire Serial I/O
437
CSI20) Communication
437
Operation of UART (UART0, UART1, UART2, UART3) Communication
438
UART Transmission
439
UART Reception
449
LIN Transmission
456
LIN Reception
459
Calculating Baud Rate
464
Procedure for Processing Errors that Occurred During UART (UART0, UART1, UART2, UART3) Communication
468
Operation of Simplified I 2 C (IIC10, IIC20) Communication
469
Address Field Transmission
470
Data Transmission
475
Data Reception
478
Stop Condition Generation
482
Calculating Transfer Rate
483
Procedure for Processing Errors that Occurred During Simplified I 2 C (IIC10, IIC20) Communication
486
Relationship between Register Settings and Pins
487
Chapter 13 Serial Interface Iic0
494
Functions of Serial Interface IIC0
494
Configuration of Serial Interface IIC0
497
Registers to Controlling Serial Interface IIC0
500
I C Bus Mode Functions
512
Pin Configuration
512
I C Bus Definitions and Control Methods
513
Start Conditions
513
Addresses
514
Transfer Direction Specification
514
Transfer Clock Setting Method
515
Acknowledge (ACK)
516
Stop Condition
518
Wait
519
Canceling Wait
521
Interrupt Request (INTIIC0) Generation Timing and Wait Control
522
Address Match Detection Method
523
Error Detection
523
Extension Code
523
Arbitration
524
Wakeup Function
525
Communication Reservation
526
Cautions
530
Communication Operations
531
Timing of I 2 C Interrupt Request (INTIIC0) Occurrence
539
Timing Charts
560
Chapter 14 Multiplier
567
Functions of Multiplier
567
Configuration of Multiplier
568
Operation of Multiplier
569
Chapter 15 Dma Controller
570
Functions of DMA Controller
570
Configuration of DMA Controller
571
Registers Controlling DMA Controller
574
Operation of DMA Controller
578
Operation Procedure
578
Transfer Mode
580
Termination of DMA Transfer
580
Example of Setting of DMA Controller
581
CSI Consecutive Transmission
581
CSI Master Reception
583
CSI Transmission/Reception
585
Consecutive Capturing of A/D Conversion Results
587
UART Consecutive Reception + ACK Transmission
589
Holding DMA Transfer Pending by Dwaitn
591
Forced Termination by Software
592
Cautions on Using DMA Controller
594
Chapter 16 Interrupt Functions
597
Interrupt Function Types
597
Interrupt Sources and Configuration
597
Registers Controlling Interrupt Functions
602
Interrupt Servicing Operations
612
Maskable Interrupt Acknowledgment
612
Software Interrupt Request Acknowledgment
614
Multiple Interrupt Servicing
615
Interrupt Request Hold
618
Chapter 17 Key Interrupt Function
619
Functions of Key Interrupt
619
Configuration of Key Interrupt
619
Register Controlling Key Interrupt
620
Chapter 18 Standby Function
621
Standby Function and Configuration
621
Standby Function
621
Registers Controlling Standby Function
621
Standby Function Operation
624
HALT Mode
624
STOP Mode
629
Chapter 19 Reset Function
636
Register for Confirming Reset Source
644
Chapter 20 Power-On-Clear Circuit
645
Functions of Power-On-Clear Circuit
645
Configuration of Power-On-Clear Circuit
646
Operation of Power-On-Clear Circuit
646
Cautions for Power-On-Clear Circuit
649
Chapter 21 Low-Voltage Detector
651
Functions of Low-Voltage Detector
651
Configuration of Low-Voltage Detector
652
Registers Controlling Low-Voltage Detector
652
Operation of Low-Voltage Detector
657
When Used as Reset
658
When Used as Interrupt
664
Cautions for Low-Voltage Detector
670
Chapter 22 Regulator
674
Regulator Overview
674
Registers Controlling Regulator
674
Chapter 23 Option Byte
676
Functions of Option Bytes
676
User Option Byte (000C0H to 000C2H/010C0H to 010C2H)
676
On-Chip Debug Option Byte (000C3H/ 010C3H)
677
Format of User Option Byte
677
Format of On-Chip Debug Option Byte
679
Setting of Option Byte
680
Chapter 24 Flash Memory
681
Writing with Flash Memory Programmer
681
Programming Environment
684
Communication Mode
684
Connection of Pins on Board
685
FLMD0 Pin
685
TOOL0 Pin
686
RESET Pin
686
Port Pins
687
REGC Pin
687
X1 and X2 Pins
687
Power Supply
687
Registers that Control Flash Memory
687
Programming Method
688
Controlling Flash Memory
688
Flash Memory Programming Mode
688
Selecting Communication Mode
689
Communication Commands
689
Security Settings
691
Processing Time of each Command When Using PG-FP4 or PG-FP5 (Reference Values)
693
Flash Memory Programming by Self-Programming
694
Boot Swap Function
696
Flash Shield Window Function
698
Chapter 25 On-Chip Debug Function
699
Connecting QB-MINI2 to 78K0R/KF3
699
On-Chip Debug Security ID
700
Securing of User Resources
700
Chapter 26 Bcd Correction Circuit
702
BCD Correction Circuit Function
702
Registers Used by BCD Correction Circuit
702
BCD Correction Circuit Operation
703
Chapter 27 Instruction Set
705
Conventions Used in Operation List
706
Operand Identifiers and Specification Methods
706
Description of Operation Column
707
Description of Flag Operation Column
708
PREFIX Instruction
708
Operation List
709
Chapter 28 Electrical Specifications (Standard Products)
726
Chapter 29 Electrical Specifications ((A) Grade Products)
781
Chapter 30 Package Drawings
835
Chapter 31 Recommended Soldering Conditions
837
Appendix A Development Tools
839
Software Package
842
Language Processing Software
842
Control Software
843
Flash Memory Programming Tools
843
When Using Flash Memory Programmers PG-FP5, FL-PR5, PG-FP4 and FL-PR4
843
When Using On-Chip Debug Emulator with Programming Function QB-MINI2
844
Debugging Tools (Hardware)
844
When Using In-Circuit Emulator QB-78K0RKX3
844
When Using On-Chip Debug Emulator with Programming Function QB-MINI2
845
Debugging Tools (Software)
845
Appendix B List of Cautions
846
Appendix C Revision History
863
Major Revisions in this Edition
880
Revision History of Preceding Editions
885
Advertisement
Advertisement
Related Products
Renesas 78K0R/KE3
Renesas 78K0/FB2-L
Renesas 78K0/FY2-L
Renesas 78K0/FA2-L
Renesas 78K0/F 2 Series
Renesas 78K0/FE2
Renesas 78K0/FF2
Renesas 78K0 Series
Renesas 78K0/KB2-A
Renesas 78K0/KC2-A
Renesas Categories
Computer Hardware
Motherboard
Microcontrollers
Adapter
Switch
More Renesas Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL