NEC 78KC1 Manuals

Manuals and User Guides for NEC 78KC1. We have 1 NEC 78KC1 manual available for free PDF download: User Manual

NEC 78KC1 User Manual

NEC 78KC1 User Manual (483 pages)

8-Bit Single-Chip Microcontrollers  
Brand: NEC | Category: Microcontrollers | Size: 4 MB
Table of contents
User's Manual U16227ej2v0ud7................................................................................................................................................................
Table Of Contents10................................................................................................................................................................
Chapter 1 Outline17................................................................................................................................................................
Applications18................................................................................................................................................................
Ordering Information19................................................................................................................................................................
Pin Configuration (top View)21................................................................................................................................................................
K1 Family Lineup23................................................................................................................................................................
V850es/kx1 Product Lineup25................................................................................................................................................................
Block Diagram27................................................................................................................................................................
Outline Of Functions28................................................................................................................................................................
Chapter 2 Pin Functions30................................................................................................................................................................
Description Of Pin Functions33................................................................................................................................................................
P10 To P17 (port 1)34................................................................................................................................................................
P30 To P33 (port 3)35................................................................................................................................................................
P120 (port 12)36................................................................................................................................................................
Ic (mask Rom Versions Only)37................................................................................................................................................................
Pin I/o Circuits And Recommended Connection Of Unused Pins38................................................................................................................................................................
Chapter 3 Cpu Architecture41................................................................................................................................................................
Internal Program Memory Space47................................................................................................................................................................
Internal Data Memory Space48................................................................................................................................................................
Data Memory Addressing49................................................................................................................................................................
Processor Registers54................................................................................................................................................................
General-purpose Registers58................................................................................................................................................................
Special Function Registers (sfrs)59................................................................................................................................................................
Instruction Address Addressing63................................................................................................................................................................
Immediate Addressing64................................................................................................................................................................
Table Indirect Addressing65................................................................................................................................................................
Operand Address Addressing66................................................................................................................................................................
Register Addressing67................................................................................................................................................................
Direct Addressing68................................................................................................................................................................
Short Direct Addressing69................................................................................................................................................................
Special Function Register (sfr) Addressing70................................................................................................................................................................
Register Indirect Addressing71................................................................................................................................................................
Based Addressing72................................................................................................................................................................
Based Indexed Addressing73................................................................................................................................................................
Stack Addressing74................................................................................................................................................................
Port Functions75................................................................................................................................................................
Port Configuration77................................................................................................................................................................
Port 078................................................................................................................................................................
Port 180................................................................................................................................................................
Port 285................................................................................................................................................................
Port 386................................................................................................................................................................
Port 688................................................................................................................................................................
Port 789................................................................................................................................................................
Port 1290................................................................................................................................................................
Port 1391................................................................................................................................................................
Registers Controlling Port Function92................................................................................................................................................................
Port Function Operations96................................................................................................................................................................
Functions Of Clock Generator97................................................................................................................................................................
Registers Controlling Clock Generator99................................................................................................................................................................
System Clock Oscillator106................................................................................................................................................................
When Subsystem Clock Is Not Used109................................................................................................................................................................
Clock Generator Operation110................................................................................................................................................................
Time Required To Switch Between Ring-osc Clock And X1 Input Clock117................................................................................................................................................................
Time Required For Cpu Clock Switchover118................................................................................................................................................................
Clock Switching Flowchart And Register Setting119................................................................................................................................................................
Switching From X1 Input Clock To Ring-osc Clock120................................................................................................................................................................
Switching From X1 Input Clock To Subsystem Clock121................................................................................................................................................................
Switching From Subsystem Clock To X1 Input Clock122................................................................................................................................................................
Register Settings123................................................................................................................................................................
Chapter 6 16-bit Timer/event Counter 00124................................................................................................................................................................
Configuration Of 16-bit Timer/event Counter 00125................................................................................................................................................................
Registers Controlling 16-bit Timer/event Counter 00129................................................................................................................................................................
Operation Of 16-bit Timer/event Counter 00135................................................................................................................................................................
Ppg Output Operations137................................................................................................................................................................
Pulse Width Measurement Operations140................................................................................................................................................................
External Event Counter Operation148................................................................................................................................................................
Square-wave Output Operation150................................................................................................................................................................
One-shot Pulse Output Operation152................................................................................................................................................................
Cautions For 16-bit Timer/event Counter 00157................................................................................................................................................................
Chapter 7 8-bit Timer/event Counters 50 And 51160................................................................................................................................................................
Configuration Of 8-bit Timer/event Counters 50 And 51162................................................................................................................................................................
Registers Controlling 8-bit Timer/event Counters 50 And 51164................................................................................................................................................................
Operations Of 8-bit Timer/event Counters 50 And 51169................................................................................................................................................................
Operation As External Event Counter171................................................................................................................................................................
Pwm Output Operation173................................................................................................................................................................
Cautions For 8-bit Timer/event Counters 50 And 51177................................................................................................................................................................
Chapter 8 8-bit Timers H0 And H1178................................................................................................................................................................
Registers Controlling 8-bit Timers H0 And H1182................................................................................................................................................................
Operation Of 8-bit Timers H0 And H1186................................................................................................................................................................
Operation As Pwm Output Mode189................................................................................................................................................................
Carrier Generator Mode Operation (8-bit Timer H1 Only)195................................................................................................................................................................
Chapter 9 Watch Timer202................................................................................................................................................................
Configuration Of Watch Timer204................................................................................................................................................................
Watch Timer Operations206................................................................................................................................................................
Interval Timer Operation207................................................................................................................................................................
Cautions For Watch Timer208................................................................................................................................................................
Chapter 10 Watchdog Timer209................................................................................................................................................................
Configuration Of Watchdog Timer211................................................................................................................................................................
Registers Controlling Watchdog Timer212................................................................................................................................................................
Operation Of Watchdog Timer214................................................................................................................................................................
Watchdog Timer Operation When "ring-osc Can Be Stopped By Software" Is Selected By Mask Option215................................................................................................................................................................
Watchdog Timer Operation In Stop Mode (when "ring-osc Can Be Stopped By Software" Is Selected By Mask Option)216................................................................................................................................................................
Watchdog Timer Operation In Halt Mode (when "ring-osc Can Be Stopped By Software" Is Selected By Mask Option)218................................................................................................................................................................
Chapter 11 A/d Converter219................................................................................................................................................................
Configuration Of A/d Converter220................................................................................................................................................................
Registers Used In A/d Converter222................................................................................................................................................................
A/d Converter Operations227................................................................................................................................................................
Input Voltage And Conversion Results229................................................................................................................................................................
A/d Converter Operation Mode230................................................................................................................................................................
How To Read A/d Converter Characteristics Table233................................................................................................................................................................
Cautions For A/d Converter235................................................................................................................................................................
Chapter 12 Serial Interface Uart0240................................................................................................................................................................
Configuration Of Serial Interface Uart0241................................................................................................................................................................
Registers Controlling Serial Interface Uart0244................................................................................................................................................................
Operation Of Serial Interface Uart0249................................................................................................................................................................
Asynchronous Serial Interface (uart) Mode250................................................................................................................................................................
Dedicated Baud Rate Generator256................................................................................................................................................................
Chapter 13 Serial Interface Uart6261................................................................................................................................................................
Configuration Of Serial Interface Uart6265................................................................................................................................................................
Registers Controlling Serial Interface Uart6268................................................................................................................................................................
Operation Of Serial Interface Uart6276................................................................................................................................................................
Chapter 14 Serial Interface Csi10299................................................................................................................................................................
Registers Controlling Serial Interface Csi10301................................................................................................................................................................
Operation Of Serial Interface Csi10304................................................................................................................................................................
Wire Serial I/o Mode305................................................................................................................................................................
Chapter 15 Interrupt Functions313................................................................................................................................................................
Registers Controlling Interrupt Functions316................................................................................................................................................................
Interrupt Servicing Operations323................................................................................................................................................................
Software Interrupt Request Acknowledgment325................................................................................................................................................................
Multiple Interrupt Servicing326................................................................................................................................................................
Interrupt Request Hold329................................................................................................................................................................
Chapter 16 Key Interrupt Function330................................................................................................................................................................
Register Controlling Key Interrupt331................................................................................................................................................................
Chapter 17 Standby Function332................................................................................................................................................................
Registers Controlling Standby Function334................................................................................................................................................................
Standby Function Operation336................................................................................................................................................................
Stop Mode341................................................................................................................................................................
Chapter 18 Reset Function345................................................................................................................................................................
Register For Confirming Reset Source351................................................................................................................................................................
Chapter 19 Clock Monitor352................................................................................................................................................................
Register Controlling Clock Monitor353................................................................................................................................................................
Operation Of Clock Monitor354................................................................................................................................................................
Chapter 20 Power-on-clear Circuit359................................................................................................................................................................
Configuration Of Power-on-clear Circuit360................................................................................................................................................................
Cautions For Power-on-clear Circuit361................................................................................................................................................................
Chapter 21 Low-voltage Detector363................................................................................................................................................................
Registers Controlling Low-voltage Detector364................................................................................................................................................................
Operation Of Low-voltage Detector367................................................................................................................................................................
Cautions For Low-voltage Detector371................................................................................................................................................................
Chapter 22 Mask Options375................................................................................................................................................................
Chapter 23 ยต Pd78f0114376................................................................................................................................................................
Internal Memory Size Switching Register377................................................................................................................................................................
Writing With Flash Programmer378................................................................................................................................................................
Programming Environment385................................................................................................................................................................
Handling Of Pins On Board388................................................................................................................................................................
Serial Interface Pins389................................................................................................................................................................
Reset Pin391................................................................................................................................................................
Programming Method392................................................................................................................................................................
Flash Memory Programming Mode393................................................................................................................................................................
Communication Commands394................................................................................................................................................................
Chapter 24 Instruction Set395................................................................................................................................................................
Description Of Operation Column396................................................................................................................................................................
Operation List397................................................................................................................................................................
Instructions Listed By Addressing Type405................................................................................................................................................................
Chapter 25 Electrical Specifications Standard Products, (a) Grade Products)408................................................................................................................................................................
Chapter 26 Electrical Specifications ((a1) Grade Products)426................................................................................................................................................................
Chapter 27 Electrical Specifications ((a2) Grade Products)445................................................................................................................................................................
Chapter 28 Package Drawing458................................................................................................................................................................
Chapter 29 Recommended Soldering Conditions459................................................................................................................................................................
Chapter 30 Cautions For Wait461................................................................................................................................................................
Peripheral Hardware That Generates Wait462................................................................................................................................................................
Example Of Wait Occurrence463................................................................................................................................................................
Appendix A Development Tools464................................................................................................................................................................
A.1 Software Package467................................................................................................................................................................
A.3 Control Software468................................................................................................................................................................
A.5 Debugging Tools (hardware)469................................................................................................................................................................
A.5.2 When Using In-circuit Emulator Ie-78k0k1-et470................................................................................................................................................................
A.6 Debugging Tools (software)471................................................................................................................................................................
A.7 Embedded Software472................................................................................................................................................................
Appendix B Notes On Target System Design473................................................................................................................................................................
Appendix C Register Index475................................................................................................................................................................
C.2 Register Index (in Alphabetical Order With Respect To Register Symbol)478................................................................................................................................................................
Appendix D Revision History481................................................................................................................................................................

Advertisement

Share and save

Advertisement