NEC 78K/0 Series Manuals

Manuals and User Guides for NEC 78K/0 Series. We have 2 NEC 78K/0 Series manuals available for free PDF download: User Manual

NEC 78K/0 Series User Manual

NEC 78K/0 Series 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

NEC 78K/0 Series User Manual

NEC 78K/0 Series User Manual (129 pages)

NEC Computer Hardware User's Manual  
Brand: NEC | Category: Computer Hardware | Size: 0.66 MB
Table of contents
Table Of Contents9................................................................................................................................................................
Chapter 1 Memory Space12................................................................................................................................................................
Memory Spaces12................................................................................................................................................................
Internal Program Memory (internal Rom) Space12................................................................................................................................................................
Vector Table Area12................................................................................................................................................................
Callt Instruction Table Area12................................................................................................................................................................
Callf Instruction Entry Area12................................................................................................................................................................
Internal Data Memory (internal Ram) Space12................................................................................................................................................................
Special Function Register (sfr) Area13................................................................................................................................................................
External Memory Space13................................................................................................................................................................
Iebus Register Area13................................................................................................................................................................
Chapter 2 Registers14................................................................................................................................................................
Control Registers14................................................................................................................................................................
Program Counter (pc)14................................................................................................................................................................
Program Status Word (psw)14................................................................................................................................................................
Program Counter Configuration14................................................................................................................................................................
Program Status Word Configuration14................................................................................................................................................................
Stack Pointer (sp)16................................................................................................................................................................
Stack Pointer Configuration16................................................................................................................................................................
Data To Be Saved To Stack Memory16................................................................................................................................................................
Data To Be Reset From Stack Memory16................................................................................................................................................................
General-purpose Registers17................................................................................................................................................................
General-purpose Register Configuration18................................................................................................................................................................
Special Function Registers (sfrs)19................................................................................................................................................................
Chapter 3 Addressing20................................................................................................................................................................
Instruction Address Addressing20................................................................................................................................................................
Relative Addressing20................................................................................................................................................................
Immediate Addressing21................................................................................................................................................................
Table Indirect Addressing22................................................................................................................................................................
Register Addressing23................................................................................................................................................................
Operand Address Addressing24................................................................................................................................................................
Implied Addressing24................................................................................................................................................................
Direct Addressing26................................................................................................................................................................
Short Direct Addressing27................................................................................................................................................................
Special-function Register (sfr) Addressing28................................................................................................................................................................
Register Indirect Addressing29................................................................................................................................................................
Based Addressing30................................................................................................................................................................
Based Indexed Addressing30................................................................................................................................................................
Stack Addressing31................................................................................................................................................................
Chapter 4 Instruction Set32................................................................................................................................................................
Operation32................................................................................................................................................................
Operand Identifiers And Description Methods32................................................................................................................................................................
Description Of "operation" Column33................................................................................................................................................................
Description Of "flag Operation" Column33................................................................................................................................................................
Description Of Number Of Clocks34................................................................................................................................................................
Instructions Listed By Addressing Type34................................................................................................................................................................
Instruction Codes38................................................................................................................................................................
Description Of Instruction Code Table38................................................................................................................................................................
Instruction Code List39................................................................................................................................................................
Chapter 5 Explanation Of Instructions46................................................................................................................................................................
8-bit Data Transfer Instructions48................................................................................................................................................................
16-bit Data Transfer Instructions51................................................................................................................................................................
8-bit Operation Instructions54................................................................................................................................................................
16-bit Operation Instructions63................................................................................................................................................................
Multiply/divide Instructions67................................................................................................................................................................
Increment/decrement Instructions70................................................................................................................................................................
Rotate Instructions75................................................................................................................................................................
Bcd Adjust Instructions82................................................................................................................................................................
Bit Manipulation Instructions85................................................................................................................................................................
Call Return Instructions93................................................................................................................................................................
Stack Manipulation Instructions101................................................................................................................................................................
Unconditional Branch Instruction105................................................................................................................................................................
Conditional Branch Instructions107................................................................................................................................................................
Cpu Control Instructions116................................................................................................................................................................
Appendix Arevision History123................................................................................................................................................................
Appendix B Instruction Index (mnemonic: By Function)124................................................................................................................................................................
Appendix Cinstruction Index (mnemonic: In Alphabetical Order)126................................................................................................................................................................

Share and save

Advertisement