Sign In
Upload
Manuals
Brands
NEC Manuals
Microcontrollers
uPD784031
NEC uPD784031 Manuals
Manuals and User Guides for NEC uPD784031. We have
1
NEC uPD784031 manual available for free PDF download: User Manual
NEC uPD784031 User Manual (741 pages)
16-Bit Single-Chip Microcontrollers
Brand:
NEC
| Category:
Microcontrollers
| Size: 3.03 MB
Table of Contents
Table of Contents
13
Chapter 1 General
38
Features
40
Ordering Information and Quality Grades
41
Ordering Information
41
Quality Grades
43
Pin Configuration (Top View)
45
Normal Operating Mode
45
PROM Programming Mode
48
Pp ≥ +5 V/+12.5 V, Reset = L)
48
Application System Configuration Example (Ppc)
49
Block Diagram
50
List of Functions
51
Differences between Standard-Grade Products and Special-Grade Products
53
MAJOR DIFFERENCES with Μ Μ Μ Μ Μ PD784026 SUBSERIES
53
Chapter 2 Pin Functions
54
Pin Function Tables
54
Normal Operating Mode
54
PROM Programming Mode
57
12.5 V, Reset = L)
57
Pin Functions
58
Normal Operating Mode
58
PROM Programming Mode ( Μ PD78P4038)
65
Input/Output Circuits and Connection of Unused Pins
66
Cautions
69
Chapter 3 Cpu Architecture
70
Memory Space
70
Internal Rom Area
77
Base Area
78
Vector Table Area
78
CALLT Instruction Table Area
79
CALLF Instruction Entry Area
79
Internal Data Area
80
Internal RAM Area
80
Special Function Register (SFR) Area
82
External SFR Area
82
External Memory Space
83
Μ Μ Μ Μ Μ PD78P4038 MEMORY MAPPING
83
Control Registers
84
Program Counter (PC)
84
Program Status Word (PSW)
84
Use of RSS Bit
87
Stack Pointer (SP)
89
General Registers
92
Configuration
92
Functions
94
Special Function Registers (Sfrs)
97
Cautions
102
Chapter 4 Clock Generator
104
Configuration and Function
104
Control Registers
106
Standby Control Register (STBC)
106
Oscillation Stabilization Time Specification Register (OSTS)
107
Clock Generator Operation
108
Clock Oscillator
108
Divider
108
Cautions
109
When an External Clock Is Input
109
When Crystal/Ceramic Oscillation Is Used
110
Chapter 5 Port Functions
113
Digital Input/Output Ports
113
Port 0
115
Hardware Configuration
115
I/O Mode/Control Mode Setting
116
Operating Status
116
Internal Pull-Up Resistors
118
Transistor Drive
119
Port 1
120
Hardware Configuration
121
I/O Mode/Control Mode Setting
126
Operating Status
127
Internal Pull-Up Resistors
129
Direct LED Drive
130
Port 2
131
Hardware Configuration
132
Input Mode/Control Mode Setting
134
Operating Status
134
Internal Pull-Up Resistors
134
Port 3
136
Hardware Configuration
137
I/O Mode/Control Mode Setting
141
Operating Status
142
Internal Pull-Up Resistors
144
Port 4
145
Hardware Configuration
145
I/O Mode/Control Mode Setting
147
Operating Status
148
Internal Pull-Up Resistors
150
Direct LED Drive
151
Port 5
151
Hardware Configuration
151
I/O Mode/Control Mode Setting
153
Operating Status
154
Internal Pull-Up Resistors
156
Direct LED Drive
157
Port 6
158
Hardware Configuration
160
I/O Mode/Control Mode Setting
164
Operating Status
165
Internal Pull-Up Resistors
167
Port 7
168
Hardware Configuration
168
I/O Mode/Control Mode Setting
169
Operating Status
169
Internal Pull-Up Resistors
170
Caution
170
Port Output Check Function
171
Cautions
172
Chapter 6 Real-Time Output Function
173
Configuration and Function
173
Real-Time Output Port Control Register (Rtpc)
175
Real-Time Output Port Accesses
176
Operation
178
Example of Use
181
Cautions
183
Chapter 7 Outline of Timer/Counter
184
Chapter 8 Timer/Counter 0
186
Functions
186
Configuration
189
Timer/Counter 0 Control Registers
193
16-Bit Timer Register 0 (Tm0) Operation
198
Basic Operation
198
Clear Operation
200
External Event Counter Function
202
Compare Register and Capture Register Operation
205
Compare Operations
205
Capture Operations
207
Basic Operation of Output Control Circuit
208
Basic Operation
210
Toggle Output
210
PWM Output
211
PPG Output
217
Software Triggered One-Shot Pulse Output
223
Examples of Use
224
Operation as Interval Timer (1)
224
Operation as Interval Timer (2)
226
Pulse Width Measurement Operation
228
Operation as PWM Output
230
Operation as PPG Output
234
Example of Software Triggered One-Shot Pulse Output
238
Cautions
241
Chapter 9 Timer/Counter 1
246
Functions
246
Configuration
248
Timer/Counter 1 Control Registers
252
Timer Register 1 (Tm1) Operation
256
Basic Operation
256
Clear Operation
259
External Event Counter Function
261
Compare Register, Capture/Compare Register, and Capture Register Operation
264
Compare Operations
264
Capture Operations
266
Examples of Use
270
Operation as Interval Timer (1)
270
Operation as Interval Timer (2)
273
Pulse Width Measurement Operation
275
Cautions
278
Chapter 10 Timer/Counter 2
284
Functions
284
Configuration
287
Timer/Counter 2 Control Registers
291
Timer Register 2 (Tm2) Operation
296
Basic Operation
296
Clear Operation
299
External Event Counter Function
301
One-Shot Timer Function
304
Compare Register, Capture/Compare Register, and Capture Register Operation
305
Compare Operations
305
Capture Operations
307
Basic Operation of Output Control Circuit
312
Basic Operation
314
Toggle Output
314
PWM Output
316
PPG Output
323
Examples of Use
330
Operation as Interval Timer (1)
330
Operation as Interval Timer (2)
333
Pulse Width Measurement Operation
336
Operation as PWM Output
339
Operation as PPG Output
343
Operation as External Event Counter
347
Operation as One-Shot Timer
349
Cautions
352
Chapter 11 Timer 3
358
Function
358
Configuration
359
Timer 3 Control Registers
361
Timer Register 3 (Tm3) Operation
363
Basic Operation
363
Clear Operation
366
Compare Register Operation
368
Example of Use
369
Cautions
371
Chapter 12 Watchdog Timer Function
373
Configuration
373
Watchdog Timer Mode Register (Wdm)
374
Operation
376
Count Operation
376
Interrupt Priorities
376
Cautions
377
General Cautions on Use of Watchdog Timer
377
Cautions on Μ PD784038 Subseries Watchdog Timer
377
Chapter 13 Pwm Output Unit
378
Pwm Output Unit Configuration
378
Pwm Output Unit Control Registers
379
PWM Control Register (PWMC)
379
PWM Prescaler Register (PWPR)
380
PWM Modulo Registers (PWM0, PWM1)
380
Pwm Output Unit Operation
381
Basic PWM Output Operation
381
PWM Pulse Output Enabling/Disabling
382
PWM Pulse Active Level Specification
382
PWM Pulse Width Rewrite Cycle Specification
383
Caution
384
Chapter 14 A/D Converter
385
Configuration
385
A/D Converter Mode Register (Adm)
389
Operation
392
Basic A/D Converter Operation
392
Select Mode
396
Scan Mode
397
A/D Conversion Operation Start by Software
399
A/D Conversion Operation Start by Hardware
401
External Circuit of A/D Converter
404
Cautions
404
Chapter 15 D/A Converter
406
Configuration
406
D/A Converter Mode Register (Dam)
407
D/A Converter Operation
408
Basic Operation
408
D/A Converter Standby Operation
408
Cautions
409
Chapter 16 Outline of Serial Interface
410
Chapter 17 Asynchronous Serial Interface/3-Wire Serial I/O
412
Switching between Asynchronous Serial Interface Mode and 3-Wire Serial I/O Mode
413
Asynchronous Serial Interface Mode
414
Configuration in Asynchronous Serial Interface Mode
414
Asynchronous Serial Interface Control Registers
417
Data Format
421
Parity Types and Operations
422
Transmission
423
Reception
424
Receive Errors
425
3-Wire Serial I/O Mode
427
Configuration in 3-Wire Serial I/O Mode
427
Clocked Serial Interface Mode Registers (CSIM1, CSIM2)
430
Basic Operation Timing
431
Operation When Transmission Only Is Enabled
433
Operation When Reception Only Is Enabled
433
Operation When Transmission/Reception Is Enabled
434
Corrective Action in Case of Slippage of Serial Clock and Shift Operations
435
Baud Rate Generator
435
Baud Rate Generator Configuration
435
Baud Rate Generator Control Register (BRGC, BRGC2)
437
Baud Rate Generator Operation
439
Baud Rate Setting in Asynchronous Serial Interface Mode
441
Cautions
444
Chapter 18 3-Wire/2-Wire Serial I/O Mode
446
Functions
446
Configuration
446
Control Registers
449
Clocked Serial Interface Mode Register (CSIM)
449
Prescaler Mode Register for Serial Clock (SPRM)
450
C Bus Control Register (IICC)
451
3-Wire Serial I/O Mode
451
Basic Operation Timing
452
Advertisement
Advertisement
Related Products
NEC uPD784031Y
NEC uPD784031A
NEC uPD784038 Series
NEC uPD784038Y Series
NEC uPD784035Y
NEC uPD784036
NEC uPD784037
NEC uPD784037Y
NEC uPD784036A
NEC uPD784036Y
NEC Categories
Monitor
Projector
Server
Telephone
Computer Hardware
More NEC Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL