NEC PD789860 Manuals

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

NEC PD789860 User Manual

NEC PD789860 User Manual (210 pages)

8-Bit Single-Chip Microcontrollers PD789860 Subseries; PD789861 Subseries  
Brand: NEC | Category: Microcontrollers | Size: 1.34 MB
Table of contents
User's Manual U14826ej5v0ud9................................................................................................................................................................
Table Of Contents10................................................................................................................................................................
Chapter 1 General ( µ Pd789860 Subseries)21................................................................................................................................................................
Features21................................................................................................................................................................
Applications21................................................................................................................................................................
Ordering Information21................................................................................................................................................................
Quality Grade22................................................................................................................................................................
Pin Configuration (top View)22................................................................................................................................................................
0s Series Lineup23................................................................................................................................................................
Block Diagram26................................................................................................................................................................
Overview Of Functions27................................................................................................................................................................
Differences Between Standard Quality Grade Products And (a) Products27................................................................................................................................................................
Chapter 2 General ( µ Pd789861 Subseries)28................................................................................................................................................................
Chapter 3 Pin Functions35................................................................................................................................................................
Pin Function List35................................................................................................................................................................
Description Of Pin Functions36................................................................................................................................................................
P00 To P07 (port 0)36................................................................................................................................................................
P20, P21 (port 2)36................................................................................................................................................................
P40 To P43 (port 4)36................................................................................................................................................................
Reset36................................................................................................................................................................
X1, X2 ( µ Pd789860 Subseries)36................................................................................................................................................................
Cl1, Cl2 ( µ Pd789861 Subseries)36................................................................................................................................................................
Vdd37................................................................................................................................................................
Vss37................................................................................................................................................................
Vpp ( µ Pd78e9860a, 78e9861a Only)37................................................................................................................................................................
Ic (mask Rom Version Only)37................................................................................................................................................................
Pin I/o Circuits And Recommended Connection Of Unused Pins38................................................................................................................................................................
Chapter 4 Cpu Architecture39................................................................................................................................................................
Memory Space39................................................................................................................................................................
Internal Program Memory Space41................................................................................................................................................................
Internal Data Memory Space41................................................................................................................................................................
Special Function Register (sfr) Area42................................................................................................................................................................
Data Memory Addressing42................................................................................................................................................................
Processor Registers44................................................................................................................................................................
Control Registers44................................................................................................................................................................
Stack Pointer Configuration45................................................................................................................................................................
General-purpose Registers46................................................................................................................................................................
Special Function Registers (sfrs)47................................................................................................................................................................
Special Function Registers48................................................................................................................................................................
Instruction Address Addressing49................................................................................................................................................................
Relative Addressing49................................................................................................................................................................
Immediate Addressing50................................................................................................................................................................
Register Addressing51................................................................................................................................................................
Operand Address Addressing52................................................................................................................................................................
Direct Addressing52................................................................................................................................................................
Short Direct Addressing53................................................................................................................................................................
Special Function Register (sfr) Addressing54................................................................................................................................................................
Register Indirect Addressing56................................................................................................................................................................
Based Addressing57................................................................................................................................................................
Stack Addressing57................................................................................................................................................................
Chapter 5 Eeprom (data Memory)58................................................................................................................................................................
Eeprom Configuration58................................................................................................................................................................
Eeprom Control Register58................................................................................................................................................................
Format Of Eeprom Write Control Register 1059................................................................................................................................................................
Notes For Eeprom Writing61................................................................................................................................................................
Chapter 6 Port Functions63................................................................................................................................................................
Port Functions63................................................................................................................................................................
Port Configuration63................................................................................................................................................................
Port 064................................................................................................................................................................
Port 265................................................................................................................................................................
Port 466................................................................................................................................................................
Port Function Control Registers67................................................................................................................................................................
Operation Of Port Functions68................................................................................................................................................................
Writing To I/o Port68................................................................................................................................................................
Reading From I/o Port68................................................................................................................................................................
Arithmetic Operation Of I/o Port68................................................................................................................................................................
Chapter 7 Clock Generator ( µ Pd789860 Subseries)69................................................................................................................................................................
Clock Generator Functions69................................................................................................................................................................
Clock Generator Configuration69................................................................................................................................................................
Clock Generator Control Register70................................................................................................................................................................
System Clock Oscillators71................................................................................................................................................................
System Clock Oscillator71................................................................................................................................................................
Examples Of Incorrect Resonator Connection72................................................................................................................................................................
Frequency Divider73................................................................................................................................................................
Clock Generator Operation74................................................................................................................................................................
Changing Setting Of Cpu Clock75................................................................................................................................................................
Time Required For Switching Cpu Clock75................................................................................................................................................................
Switching Cpu Clock75................................................................................................................................................................
Chapter 8 Clock Generator ( µ Pd789861 Subseries)76................................................................................................................................................................
Chapter 9 8-bit Timers 30 And 4083................................................................................................................................................................
8-bit Timers 30, 40 Functions83................................................................................................................................................................
8-bit Timers 30, 40 Configuration84................................................................................................................................................................
Timer 30 Block Diagram85................................................................................................................................................................
Timer 40 Block Diagram86................................................................................................................................................................
8-bit Timers 30, 40 Control Registers88................................................................................................................................................................
Format Of 8-bit Timer Mode Control Register 3089................................................................................................................................................................
Format Of 8-bit Timer Mode Control Register 4090................................................................................................................................................................
Format Of Carrier Generator Output Control Register 4091................................................................................................................................................................
Format Of Port Mode Register 292................................................................................................................................................................
8-bit Timers 30, 40 Operation93................................................................................................................................................................
Operation As 8-bit Timer Counter93................................................................................................................................................................
Timing Of Interval Timer Operation With 8-bit Resolution (basic Operation)95................................................................................................................................................................
Timing Of Interval Timer Operation With 8-bit Resolution (when Crn0 Is Set To Ffh)96................................................................................................................................................................
Timing Of Interval Timer Operation With 8-bit Resolution (when Timer 40 Match Signal Is Selected For Timer 30 Count Clock)98................................................................................................................................................................
Timing Of Operation Of External Event Counter With 8-bit Resolution99................................................................................................................................................................
Timing Of Square-wave Output With 8-bit Resolution101................................................................................................................................................................
Operation As 16-bit Timer Counter102................................................................................................................................................................
Timing Of Interval Timer Operation With 16-bit Resolution104................................................................................................................................................................
Timing Of External Event Counter Operation With 16-bit Resolution106................................................................................................................................................................
Timing Of Square-wave Output With 16-bit Resolution108................................................................................................................................................................
Operation As Carrier Generator109................................................................................................................................................................
Timing Of Carrier Generator Operation (when Cr40 = N, Crh40 = M (m > N))111................................................................................................................................................................
Timing Of Carrier Generator Operation (when Cr40 = N, Crh40 = M (m < N))112................................................................................................................................................................
Timing Of Carrier Generator Operation (when Cr40 = Crh40 = N)113................................................................................................................................................................
Operation As Pwm Output (timer 40 Only)114................................................................................................................................................................
Pwm Output Mode Timing (basic Operation)115................................................................................................................................................................
Notes On Using 8-bit Timers 30, 40116................................................................................................................................................................
Counting Operation If Timer Is Started When Tmi Is High117................................................................................................................................................................
Chapter 10 Watchdog Timer118................................................................................................................................................................
Watchdog Timer Functions118................................................................................................................................................................
Watchdog Timer Configuration119................................................................................................................................................................
Watchdog Timer Control Registers120................................................................................................................................................................
Format Of Watchdog Timer Mode Register121................................................................................................................................................................
Watchdog Timer Operation122................................................................................................................................................................
Operation As Watchdog Timer122................................................................................................................................................................
Operation As Interval Timer123................................................................................................................................................................
Chapter 11 Power-on-clear Circuits124................................................................................................................................................................
Power-on-clear Circuit Functions124................................................................................................................................................................
Power-on-clear Circuit Configuration124................................................................................................................................................................
Block Diagram Of Power-on-clear Circuit125................................................................................................................................................................
Power-on-clear Circuit Control Registers126................................................................................................................................................................
Format Of Low-voltage Detection Register 1127................................................................................................................................................................
Power-on-clear Circuit Operation128................................................................................................................................................................
Power-on-clear (poc) Circuit Operation128................................................................................................................................................................
Timing Of Internal Reset Signal Generation When Poc Circuit Normally Halted129................................................................................................................................................................
Operation Of Low-voltage Detection (lvi) Circuit130................................................................................................................................................................
Lvi Circuit Operation Timing131................................................................................................................................................................
Chapter 12 Bit Sequential Buffer132................................................................................................................................................................
Bit Sequential Buffer Functions132................................................................................................................................................................
Bit Sequential Buffer Configuration132................................................................................................................................................................
Bit Sequential Buffer Control Register133................................................................................................................................................................
Bit Sequential Buffer Operation134................................................................................................................................................................
Chapter 13 Key Return Circuit135................................................................................................................................................................
Key Return Circuit Function135................................................................................................................................................................
Key Return Circuit Configuration And Operation135................................................................................................................................................................
Chapter 14 Interrupt Functions136................................................................................................................................................................
Interrupt Function Types136................................................................................................................................................................
Interrupt Sources And Configuration137................................................................................................................................................................
Basic Configuration Of Interrupt Function138................................................................................................................................................................
Interrupt Function Control Registers139................................................................................................................................................................
Format Of Interrupt Mask Flag Register 0140................................................................................................................................................................
Interrupt Servicing Operation141................................................................................................................................................................
Non-maskable Interrupt Request Acknowledgment Operation141................................................................................................................................................................
Flowchart From Non-maskable Interrupt Request Generation To Acknowledgment (intwdt)142................................................................................................................................................................
Maskable Interrupt Request Acknowledgment Operation143................................................................................................................................................................
Interrupt Request Acknowledgment Processing Algorithm144................................................................................................................................................................
Interrupt Request Acknowledgment Timing (when Interrupt Request Flag Is Set At Last Clock During Instruction Execution)145................................................................................................................................................................
Multiple Interrupt Servicing146................................................................................................................................................................
Interrupt Request Pending147................................................................................................................................................................
Chapter 15 Standby Function148................................................................................................................................................................
Standby Function And Configuration148................................................................................................................................................................
Standby Function148................................................................................................................................................................
Standby Function Control Register149................................................................................................................................................................
Standby Function Operation150................................................................................................................................................................
Halt Mode150................................................................................................................................................................
Releasing Halt Mode By Interrupt151................................................................................................................................................................
Releasing Halt Mode By Reset Input152................................................................................................................................................................
Stop Mode153................................................................................................................................................................
Releasing Stop Mode By Interrupt154................................................................................................................................................................
Releasing Stop Mode By Reset Input155................................................................................................................................................................
Chapter 16 Reset Function156................................................................................................................................................................
Reset Timing By Reset Input157................................................................................................................................................................
Status Of Hardware After Reset158................................................................................................................................................................
Chapter 17 µ Pd78e9860a, 78e9861a159................................................................................................................................................................
Eeprom Features (program Memory)160................................................................................................................................................................
Programming Environment160................................................................................................................................................................
Communication Mode161................................................................................................................................................................
Example Of Connection With Dedicated Flash Programmer162................................................................................................................................................................
Pin Connection List163................................................................................................................................................................
On-board Pin Processing164................................................................................................................................................................
Signal Conflict (input Pin Of Serial Interface)165................................................................................................................................................................
Signal Conflict (reset Pin)166................................................................................................................................................................
Connection Of Adapter For Eeprom Writing167................................................................................................................................................................
Chapter 18 Mask Options169................................................................................................................................................................
Chapter 19 Instruction Set Overview170................................................................................................................................................................
Operation170................................................................................................................................................................
Operand Identifiers And Description Methods170................................................................................................................................................................
Description Of "operation" Column171................................................................................................................................................................
Description Of "flag" Column171................................................................................................................................................................
Operation List172................................................................................................................................................................
Instructions Listed By Addressing Type177................................................................................................................................................................
Chapter 20 Electrical Specifications180................................................................................................................................................................
Chapter 21 Example Of Rc Oscillation Frequency Characteristics195................................................................................................................................................................
(reference Values)195................................................................................................................................................................
Chapter 22 Package Drawing196................................................................................................................................................................
Chapter 23 Recommended Soldering Conditions197................................................................................................................................................................
Appendix A Development Tools199................................................................................................................................................................
A-1 Development Tools200................................................................................................................................................................
Software Package201................................................................................................................................................................
Language Processing Software201................................................................................................................................................................
A.1 Software Package201................................................................................................................................................................
Control Software202................................................................................................................................................................
Eeprom (program Memory) Writing Tools202................................................................................................................................................................
A.3 Control Software202................................................................................................................................................................
Debugging Tools (hardware)203................................................................................................................................................................
Debugging Tools (software)204................................................................................................................................................................
Appendix B Notes On Target System Design205................................................................................................................................................................
Appendix C Register Index206................................................................................................................................................................
Register Name Index (in Alphabetical Order)206................................................................................................................................................................
Register Symbol Index (in Alphabetical Order)207................................................................................................................................................................
Appendix D Revision History208................................................................................................................................................................

Advertisement

Share and save

Advertisement