Sign In
Upload
Manuals
Brands
NEC Manuals
Microcontrollers
uPD78F1146
NEC uPD78F1146 Manuals
Manuals and User Guides for NEC uPD78F1146. We have
1
NEC uPD78F1146 manual available for free PDF download: User Manual
NEC uPD78F1146 User Manual (878 pages)
16-bit Single-Chip Microcontrollers
Brand:
NEC
| Category:
Microcontrollers
| Size: 4.81 MB
Table of Contents
Table of Contents
8
Chapter 1 Outline
17
Differences between Conventional-Specification Products
17
Pd78F114X) and Expanded
17
Features
18
Applications
19
Ordering Information
19
Pin Configuration (Top View)
21
78K0R/Kx3 Microcontroller Lineup
24
Block Diagram
25
Outline of Functions
26
Chapter 2 Pin Functions
28
Pin Function List
28
Description of Pin Functions
33
P00 to P06 (Port 0)
33
P10 to P17 (Port 1)
34
P20 to P27 (Port 2)
35
P30, P31 (Port 3)
35
P40 to P43 (Port 4)
36
P50 to P55 (Port 5)
37
P60 to P63 (Port 6)
37
P70 to P77 (Port 7)
37
P120 to P124 (Port 12)
38
P130 (Port 13)
39
P140, P141 (Port 14)
39
Av Ref
39
Av Ss
40
Reset
40
Regc
40
VDD , Ev DD
40
Vss , Ev Ss
40
Flmd0
41
Pin I/O Circuits and Recommended Connection of Unused Pins
42
Chapter 3 Cpu Architecture
46
Memory Space
46
Internal Program Memory Space
53
Mirror Area
55
Internal Data Memory Space
56
Special Function Register (SFR) Area
57
Extended Special Function Register (2Nd SFR: 2Nd Special Function Register) Area
57
Data Memory Addressing
58
Processor Registers
63
Control Registers
63
General-Purpose Registers
65
And CS Registers
67
Special Function Registers (Sfrs)
68
Extended Special Function Registers (2Nd Sfrs: 2Nd Special Function Registers)
74
Instruction Address Addressing
79
Relative Addressing
79
Immediate Addressing
79
Register Direct Addressing
81
Addressing for Processing Data Addresses
82
Implied Addressing
82
Register Addressing
82
Direct Addressing
83
Short Direct Addressing
84
SFR Addressing
85
Register Indirect Addressing
86
Based Addressing
87
Based Indexed Addressing
90
Stack Addressing
91
Chapter 4 Port Functions
92
Port Functions
92
Port Configuration
95
Port 0
96
Port 12
96
Port 1
101
Port 2
107
Port 3
109
Port 4
110
Port 5
115
Port 6
117
Port 7
119
Port 13
123
Port 14
124
Registers Controlling Port Function
126
Port Function Operations
133
Writing to I/O Port
133
Reading from I/O Port
133
Operations on I/O Port
133
Connecting to External Device with Different Power Potential (2.5 V, 3 V)
134
Settings of Port Mode Register and Output Latch When Using Alternate Function
136
Cautions on 1-Bit Manipulation Instruction for Port Register N (Pn)
138
Chapter 5 Clock Generator
139
Functions of Clock Generator
139
Configuration of Clock Generator
140
Registers Controlling Clock Generator
142
System Clock Oscillator
156
X1 Oscillator
156
XT1 Oscillator
156
Internal High-Speed Oscillator
159
Internal Low-Speed Oscillator
159
Prescaler
159
Clock Generator Operation
160
Controlling Clock
164
Example of Controlling High-Speed System Clock
164
Example of Controlling Internal High-Speed Oscillation Clock
167
Example of Controlling Subsystem Clock
169
Example of Controlling Internal Low-Speed Oscillation Clock
171
CPU Clock Status Transition Diagram
172
Condition before Changing CPU Clock and Processing after Changing CPU Clock
177
Time Required for Switchover of CPU Clock and Main System Clock
179
Conditions before Clock Oscillation Is Stopped
180
Chapter 6 Timer Array Unit
181
Functions of Timer Array Unit
181
Functions of each Channel When It Operates Independently
181
Functions of each Channel When It Operates with Another Channel
182
LIN-Bus Supporting Function (Channel 7 Only)
182
Configuration of Timer Array Unit
183
Registers Controlling Timer Array Unit
188
Channel Output (To0N Pin) Control
209
To0N Pin Output Circuit Configuration
209
To0N Pin Output Setting
210
Cautions on Channel Output Operation
210
Collective Manipulation of To0N Bits
214
Timer Interrupt and To0N Pin Output at Operation Start
215
Channel Input (Ti0N Pin) Control
216
Ti0N Edge Detection Circuit
216
Basic Function of Timer Array Unit
217
Overview of Single-Operation Function and Combination-Operation Function
217
Basic Rules of Combination-Operation Function
217
Applicable Range of Basic Rules of Combination-Operation Function
218
Operation of Timer Array Unit as Independent Channel
219
Operation as Interval Timer/Square Wave Output
219
Operation as External Event Counter
225
Operation as Frequency Divider (Channel 0 Only)
228
Operation as Input Pulse Interval Measurement
232
Operation as Input Signal High-/Low-Level Width Measurement
236
Operation of Plural Channels of Timer Array Unit
240
Operation as PWM Function
240
Operation as One-Shot Pulse Output Function
247
Operation as Multiple PWM Output Function
254
Chapter 7 Real-Time Counter
261
Functions of Real-Time Counter
261
Configuration of Real-Time Counter
261
Registers Controlling Real-Time Counter
263
Real-Time Counter Operation
278
Starting Operation of Real-Time Counter
278
Shifting to STOP Mode after Starting Operation
279
Reading/Writing Real-Time Counter
280
Setting Alarm of Real-Time Counter
282
Hz Output of Real-Time Counter
283
Khz Output of Real-Time Counter
283
512 Hz, 16.384 Khz Output of Real-Time Counter
283
Example of Watch Error Correction of Real-Time Counter
284
Chapter 8 Watchdog Timer
289
Functions of Watchdog Timer
289
Configuration of Watchdog Timer
290
Register Controlling Watchdog Timer
291
Operation of Watchdog Timer
292
Controlling Operation of Watchdog Timer
292
Setting Overflow Time of Watchdog Timer
293
Setting Window Open Period of Watchdog Timer
294
Setting Watchdog Timer Interval Interrupt
295
Chapter 9 Clock Output/Buzzer Output Controller
296
Functions of Clock Output/Buzzer Output Controller
296
Configuration of Clock Output/Buzzer Output Controller
297
Registers Controlling Clock Output/Buzzer Output Controller
297
Operations of Clock Output/Buzzer Output Controller
299
Operation as Output Pin
299
Chapter 10 A/D Converter
300
Function of A/D Converter
300
Configuration of A/D Converter
301
Registers Used in A/D Converter
303
A/D Converter Operations
313
Basic Operations of A/D Converter
313
Input Voltage and Conversion Results
315
A/D Converter Operation Mode
316
Temperature Sensor Function
318
( Μ Pd78F114Xa) Only)
318
Configuration of Temperature Sensor
318
Registers Used by Temperature Sensors
319
Temperature Sensor Operation
321
Procedures for Using Temperature Sensors
323
How to Read A/D Converter Characteristics Table
326
Cautions for A/D Converter
328
Chapter 11 Serial Array Unit
333
Functions of Serial Array Unit
333
3-Wire Serial I/O (CSI00, CSI10)
333
Uart (Uart0, Uart1, Uart3)
334
Simplified I C (IIC10)
335
Configuration of Serial Array Unit
336
Registers Controlling Serial Array Unit
341
Operation Stop Mode
363
Stopping the Operation by Units
363
Stopping the Operation by Channels
364
Operation of 3-Wire Serial I/O (CSI00, CSI10) Communication
366
Master Transmission
367
Master Reception
376
Master Transmission/Reception
384
Slave Transmission
392
Slave Reception
401
Slave Transmission/Reception
407
Calculating Transfer Clock Frequency
416
Procedure for Processing Errors that Occurred During 3-Wire Serial I/O (CSI00, CSI10) Communication
418
Operation of UART (UART0, UART1, UART3) Communication
419
UART Transmission
420
UART Reception
430
LIN Transmission
437
LIN Reception
440
Calculating Baud Rate
445
Procedure for Processing Errors that Occurred During UART (UART0, UART1, UART2, UART3) Communication
449
Operation of Simplified I C (IIC10) Communication
450
Address Field Transmission
451
Data Transmission
456
Data Reception
459
Stop Condition Generation
463
Calculating Transfer Rate
464
Procedure for Processing Errors that Occurred During Simplified I 2 C (IIC10) Communication
467
Relationship between Register Settings and Pins
468
Chapter 12 Serial Interface Iic0
473
Functions of Serial Interface IIC0
473
Configuration of Serial Interface IIC0
476
Registers to Controlling Serial Interface IIC0
479
I C Bus Mode Functions
491
Pin Configuration
491
I C Bus Definitions and Control Methods
492
Start Conditions
492
Addresses
493
Transfer Direction Specification
493
Transfer Clock Setting Method
494
Acknowledge (ACK)
495
Stop Condition
497
Wait
498
Canceling Wait
500
Interrupt Request (INTIIC0) Generation Timing and Wait Control
501
Address Match Detection Method
502
Error Detection
502
Extension Code
502
Arbitration
503
Wakeup Function
504
Communication Reservation
505
Cautions
509
Communication Operations
510
Timing of I 2 C Interrupt Request (INTIIC0) Occurrence
518
Timing Charts
539
Chapter 13 Multiplier
546
Functions of Multiplier
546
Configuration of Multiplier
547
Operation of Multiplier
548
Chapter 14 Dma Controller
549
Functions of DMA Controller
549
Configuration of DMA Controller
550
Registers Controlling DMA Controller
553
Operation of DMA Controller
557
Operation Procedure
557
Transfer Mode
559
Termination of DMA Transfer
559
Example of Setting of DMA Controller
560
CSI Consecutive Transmission
560
CSI Master Reception
562
CSI Transmission/Reception
564
Consecutive Capturing of A/D Conversion Results
566
UART Consecutive Reception + ACK Transmission
568
Holding DMA Transfer Pending by Dwaitn
570
Forced Termination by Software
571
Cautions on Using DMA Controller
573
Chapter 15 Interrupt Functions
576
Interrupt Function Types
576
Interrupt Sources and Configuration
576
Registers Controlling Interrupt Functions
581
Interrupt Servicing Operations
591
Maskable Interrupt Acknowledgment
591
Software Interrupt Request Acknowledgment
593
Multiple Interrupt Servicing
594
Interrupt Request Hold
597
Chapter 16 Key Interrupt Function
598
Functions of Key Interrupt
598
Configuration of Key Interrupt
598
Register Controlling Key Interrupt
599
Chapter 17 Standby Function
600
Standby Function and Configuration
600
Standby Function
600
Registers Controlling Standby Function
600
Standby Function Operation
603
HALT Mode
603
STOP Mode
608
Chapter 18 Reset Function
615
Register for Confirming Reset Source
623
Chapter 19 Power-On-Clear Circuit
624
Functions of Power-On-Clear Circuit
624
Configuration of Power-On-Clear Circuit
625
Operation of Power-On-Clear Circuit
625
Cautions for Power-On-Clear Circuit
628
Chapter 20 Low-Voltage Detector
630
Functions of Low-Voltage Detector
630
Configuration of Low-Voltage Detector
631
Registers Controlling Low-Voltage Detector
631
Operation of Low-Voltage Detector
636
When Used as Reset
637
When Used as Interrupt
643
Cautions for Low-Voltage Detector
649
Chapter 21 Regulator
653
Regulator Overview
653
Registers Controlling Regulator
653
Chapter 22 Option Byte
655
Functions of Option Bytes
655
User Option Byte (000C0H to 000C2H/010C0H to 010C2H)
655
On-Chip Debug Option Byte (000C3H/ 010C3H)
656
Format of User Option Byte
656
Format of On-Chip Debug Option Byte
658
Setting of Option Byte
659
Chapter 23 Flash Memory
660
Writing with Flash Memory Programmer
660
Programming Environment
663
Communication Mode
663
Connection of Pins on Board
664
FLMD0 Pin
664
TOOL0 Pin
665
RESET Pin
665
Port Pins
666
REGC Pin
666
X1 and X2 Pins
666
Power Supply
666
Registers that Control Flash Memory
666
Programming Method
667
Controlling Flash Memory
667
Flash Memory Programming Mode
667
Selecting Communication Mode
668
Communication Commands
668
Security Settings
670
Processing Time of each Command When Using PG-FP4 or PG-FP5 (Reference Values)
672
Flash Memory Programming by Self-Programming
673
Boot Swap Function
675
Flash Shield Window Function
677
Chapter 24 On-Chip Debug Function
678
Connecting QB-MINI2 to 78K0R/KE3
678
On-Chip Debug Security ID
679
Securing of User Resources
679
Chapter 25 Bcd Correction Circuit
681
BCD Correction Circuit Function
681
Registers Used by BCD Correction Circuit
681
BCD Correction Circuit Operation
682
Chapter 26 Instruction Set
684
Conventions Used in Operation List
685
Operand Identifiers and Specification Methods
685
Description of Operation Column
686
Description of Flag Operation Column
687
PREFIX Instruction
687
Operation List
688
Chapter 27 Electrical Specifications (Standard Products)
705
Chapter 28 Electrical Specifications ((A) Grade Products)
758
Chapter 29 Package Drawings
810
Chapter 30 Recommended Soldering Conditions
815
Appendix A Development Tools
817
Software Package
820
Language Processing Software
820
Control Software
821
Flash Memory Programming Tools
821
When Using Flash Memory Programmer FG-FP5, FL-PR5, FG-FP4, and FL-PR4
821
When Using On-Chip Debug Emulator with Programming Function QB-MINI2
822
Debugging Tools (Hardware)
822
When Using In-Circuit Emulator QB-78K0RKX3
822
When Using On-Chip Debug Emulator with Programming Function QB-MINI2
823
Debugging Tools (Software)
824
Appendix B List of Cautions
825
Appendix C Revision History
858
Major Revisions in this Edition
858
Revision History of Preceding Editions
863
Advertisement
Advertisement
Related Products
NEC uPD78F1142
NEC uPD78F1142A
NEC uPD78F1143
NEC uPD78F1143A
NEC uPD78F1144
NEC uPD78F1144A
NEC uPD78F1145
NEC uPD78F1145A
NEC uPD78F1146A
NEC UPD78F9456
NEC Categories
Monitor
Projector
Server
Telephone
Computer Hardware
More NEC Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL