beautypg.com
Manuals
Brands
NEC Manuals
Microcontrollers
V850E/CA1 ATOMIC
NEC V850E/CA1 ATOMIC Manuals
Manuals and User Guides for NEC V850E/CA1 ATOMIC. We have
1
NEC V850E/CA1 ATOMIC manual available for free PDF download: Preliminary User's Manual
NEC V850E/CA1 ATOMIC Preliminary User's Manual (601 pages)
32-/16-bit Single-Chip Microcontroller
Brand:
NEC
| Category:
Microcontrollers
| Size: 3.45 MB
Table of Contents
Table of Contents
7
Chapter 1 Introduction
21
General
21
Device Features
22
Application Fields
23
Ordering Information
23
Pin Configuration (Top View)
24
Figure 1-1: Pin Configuration of the Μpd70(F)3123 Microcontroller
24
Configuration of Function Block
26
Block Diagram of Μpd70(F)3123
26
Figure 1-2: Block Diagram of the Μpd70(F)3123 Microcontroller
26
On-Chip Units
27
Chapter 2 Pin Functions
29
List of Pin Functions
29
Description of Pin Functions
34
Types of Pin I/O Circuit and Connection of Unused Pin
48
Figure 2-1: Pin I/O Circuits
51
Chapter 3 CPU Function
53
Features
53
CPU Register Set
54
Figure 3-1: CPU Register Set
54
Program Register Set
55
Figure 3-2: Program Counter (PC)
55
Table 3-1: Program Registers
55
System Register Set
56
Figure 3-3: Interrupt Source Register (ECR)
56
Table 3-2: System Register Numbers
56
Figure 3-4: Program Status Word (PSW)
57
Operation Modes
58
Table 3-3: Register Initial Values by Operation Modes
58
Operation Mode Specification
59
Address Space
60
CPU Address Space
60
Figure 3-5: CPU Address Space
60
Image
61
Figure 3-6: Image on Address Space
61
Wrap-Around of CPU Address Space
62
Figure 3-7: Wrap-Around of Program Space
62
Figure 3-8: Wrap-Around of Data Space
62
Memory Map
63
Figure 3-9: Memory Map (Μpd703123, 703F123)
63
Area
64
Figure 3-10: Internal RAM Area
67
Figure 3-11: Internal Peripheral I/O Area
67
External Memory Expansion
68
Recommended Use of Address Space
68
Figure 3-12: Example Application of Wrap-Around (Μpd703123)
69
Figure 3-13: Recommended Memory Map
70
Peripheral I/O Registers
71
Table 3-4: List of Peripheral I/O Registers (Sheet 1 of 10)
71
Programmable Peripheral I/O Registers
81
Figure 3-14: Programmable Peripheral I/O Register (Outline)
81
Figure 3-15: Peripheral Area Selection Control Register (BPC)
82
Table 3-5: List of Programmable Peripheral I/O Registers (Sheet 1 of 32)
83
Specific Registers
115
Command Register (PRCMD)
116
Peripheral Command Register (PHCMD)
116
Peripheral Status Register (PHS)
117
Internal Peripheral Function Wait Control Register VSWC
118
Chapter 4 Bus Control Function
119
Features
119
Bus Control Pins
119
Memory Block Function
120
Figure 4-1: Memory Block Function
120
Chip Select Control Function
121
Figure 4-2: Chip Area Select Control Registers 0, 1 (1/2)
121
Bus Cycle Type Control Function
123
Bus Cycle Type Configuration
123
Bus Access
124
Number of Access Clocks
124
Bus Sizing Function
124
Table 4-1: Number of Bus Access Clocks
124
Endian Control Function
125
Figure 4-3: Big Endian Addresses Within Word
125
Figure 4-4: Little Endian Addresses Within Word
125
Bus Width
126
Wait Function
138
Programmable Wait Function
138
External Wait Function
140
Relationship between Programmable Wait and External Wait
140
Figure 4-5: Example of Wait Insertion
140
Idle State Insertion Function
141
Bus Priority Order
142
Table 4-2: Bus Priority Order
142
Boundary Operation Conditions
143
Program Space
143
Data Space
143
Chapter 5 Memory Access Control Function
145
SRAM, External ROM, External I/O Interface
145
Features
145
SRAM Connections
146
Figure 5-1: Example of Connection to SRAM
146
SRAM, External ROM, External I/O Access
147
Figure 5-2: SRAM, External ROM, External I/O Access Timing (1/6)
147
Page ROM Controller (ROMC)
153
Features
153
Page ROM Connections
154
Figure 5-3: Example of Page ROM Connections
154
On-Page/Off
155
Figure 5-4: On-Page/Off-Page Judgment During Page ROM Connection (1/2)
155
Page ROM Configuration Register (PRC)
157
Figure 5-5: Page ROM Configuration Register (PRC)
157
Page ROM Access
158
Figure 5-6: Page ROM Access Timing (1/4)
158
Chapter 6 DMA Functions (DMA Controller)
163
Features
163
Configuration
164
Figure 6-1: Block Diagram of DMA Controller Configuration
164
Control Registers
165
DMA Source Address Registers 0 to 3 (DSA0 to DSA3)
165
Figure 6-2: DMA Source Address Registers H0 to H3 (DSAH0 to DSAH3)
165
Figure 6-3: DMA Source Address Registers L0 to L3 (DSAL0 to DSAL3)
166
DMA Destination Address Registers 0 to 3 (DDA0 to DDA3)
167
Figure 6-4: DMA Destination Address Registers 0H to 3H (DDA0H to DDA3H)
167
Figure 6-5: DMA Destination Address Registers L0 to L3 (DDAL0 to DDAL3)
168
DMA Transfer Count Registers 0 to 3 (DBC0 to DBC3)
169
Figure 6-6: DMA Transfer Count Registers 0 to 3 (DBC0 to DBC3)
169
DMA Addressing Control Registers 0 to 3 (DADC0 to DADC3)
170
Figure 6-7: DMA Addressing Control Registers 0 to 3 (DADC0 to DADC3)
170
DMA Channel Control Registers 0 to 3 (DCHC0 to DCHC3)
171
Figure 6-8: DMA Channel Control Registers 0 to 3 (DCHC0 to DCHC3)
171
DMA Disable Status Register (DDIS)
172
DMA Restart Register (DRST)
172
Figure 6-9: DMA Disable Status Register (DDIS)
172
Figure 6-10: DMA Restart Register (DRST)
172
DMA Trigger Factor Registers 0 to 3 (DTFR0 to DTFR3)
173
Figure 6-11: DMA Trigger Factor Registers 0 to 3 (DTFR0 to DTFR3) (1/3)
173
DMA Bus States
176
Types of Bus States
176
DMAC Bus Cycle State Transition
177
Figure 6-12: DMAC Bus Cycle (Two-Cycle Transfer) State Transition
177
Transfer Mode
178
Single Transfer Mode
178
Single-Step Transfer Mode
178
Block Transfer Mode
178
Transfer Types
178
Two-Cycle Transfer
178
Transfer Object
179
Transfer Type and Transfer Object
179
DMA Channel Priorities
179
Table 6-1: Relationship between Transfer Type and Transfer Object
179
Next Address Setting Function
180
Figure 6-13: Buffer Register Configuration
180
DMA Transfer Start Factors
181
Forcible Interruption
181
Figure 6-14: Example of Forcible Interruption of DMA Transfer
181
DMA Transfer End
182
DMA Transfer End Interrupt
182
Terminal Count Output Upon DMA Transfer End
182
Forcible Termination
182
Precautions
182
Chapter 7 Interrupt/Exception Processing Function
183
Features
183
Table 7-1: Interrupt/Exception Source List (Sheet 1 of 3)
184
Non-Maskable Interrupts
187
Operation
188
Figure 7-1: Processing Configuration of Non-Maskable Interrupt
188
Figure 7-2: Acknowledging Non-Maskable Interrupt Request
189
Figure 7-3: Example of Non-Maskable Interrupt Request Acknowledgement Operation (1/2)
190
Restore
192
Figure 7-4: RETI Instruction Processing
192
Non-Maskable Interrupt Status Flag (NP)
193
Figure 7-5: Non-Maskable Interrupt Status Flag (NP)
193
Edge Detection Function
194
Figure 7-6: Voltage Comparator Mode Register (VCMPM)
194
Maskable Interrupts
195
Operation
195
Figure 7-7: Maskable Interrupt Processing
196
Restore
197
Figure 7-8: RETI Instruction Processing
197
Priorities of Maskable Interrupts
198
Figure 7-9: Example of Processing in Which Another Interrupt Request Is Issued
199
While an Interrupt Is Being Processed (1/2)
199
Figure 7-10: Example of Processing Interrupt Requests Simultaneously Generated
201
Figure 7-11: Interrupt Control Register (Picn)
202
Interrupt Control Register (Picn)
202
Table 7-2: Addresses and Bits of Interrupt Control Registers (Sheet 1 of 2)
203
Figure 7-12: Interrupt Mask Registers 0 to 3 (IMR0 to IMR3)
205
Interrupt Mask Registers 0 to 3 (IMR0 to IMR3)
205
Figure 7-13: In-Service Priority Register (ISPR)
206
Figure 7-14: Maskable Interrupt Status Flag (ID)
206
In-Service Priority Register (ISPR)
206
Maskable Interrupt Status Flag (ID)
206
Noise Elimination Circuit
207
Figure 7-15: Timer E Input Circuit Overview
207
Analog Filter
208
Figure 7-16: Port Interrupt Input Circuit Overview
208
Digital Filter
209
Figure 7-17: Digital Filter State Machine Diagram
209
Interrupt Trigger Mode Selection
210
For Timer E Input Pins (N=0 to 2)
210
Figure 7-18: Timer E Input Pin Filter Edge Detect Mode Registers (Fem0N to Fem5N) (N=0 to 2) (1/2)
210
Filter Edge Detect Mode Register (Fem0N to Fem5N) for INT0, INT1 and INT2 Input Pins
212
Figure 7-19: INT0, INT1 and INT2 Input Pin Filter Edge Detect Mode Registers (FEM03 to FEM23)
212
Software Exception
213
Operation
213
Figure 7-20: Software Exception Processing
213
Restore
214
Figure 7-21: RETI Instruction Processing
214
Exception Status Flag (EP)
215
Figure 7-22: Exception Status Flag (EP)
215
Exception Trap
216
Illegal Opcode Definition
216
Figure 7-23: Exception Trap Processing
216
Figure 7-24: Restore Processing from Exception Trap
217
Debug Trap
218
Figure 7-25: Debug Trap Processing
218
Figure 7-26: Restore Processing from Debug Trap
219
Multiple Interrupt Processing Control
220
Interrupt Response Time
222
Figure 7-27: Pipeline Operation at Interrupt Request Acknowledgment (Outline)
222
Table 7-3: Interrupt Response Time
222
Periods in Which Interrupts Are Not Acknowledged
223
Chapter 8 Clock Generator
225
Features
225
Configuration
225
Figure 8-1: Block Diagram of the Clock Generator
225
Main System Clock Oscillator
226
Figure 8-2: Main System Clock Oscillator
226
Control Registers
227
Clock Control Register (CKC)
227
PLL Status Register (PSTAT)
228
Clock Select Pin
228
Table 8-1: PLL Mode / Direct Mode
228
Table 8-2: Relation System Clock to Resonator Frequency
229
Table 8-3: CESEL Setting
229
Power Saving Functions
230
General
230
Table 8-4: Power Saving Modes Overview
230
Figure 8-3: Power Save Mode State Transition Diagram
231
Table 8-5: Power Saving Mode Frequencies
232
Power Save Modes Outline
233
HALT Mode
234
Table 8-6: Operating States in HALT Mode
234
Table 8-7: Operation after HALT Mode Release by Interrupt Request
235
IDLE Mode
236
Table 8-8: Operating States in IDLE Mode
236
WATCH Mode
237
Table 8-9: Operating States in WATCH Mode
237
Table 8-10: Operation after WATCH Mode Release by Interrupt Request
238
Software STOP Mode
239
Table 8-11: Operating States in STOP Mode
239
Register Description
240
Power Save Control Register (PSC)
240
Power Save Mode Register (PSM)
242
Securing Oscillation Stabilization Time
243
Oscillation Stabilization Time Security Specification
243
Figure 8-4: WATCH Mode Release by NMI or INT
243
Figure 8-5: STOP Mode Release by NMI or INT
244
Figure 8-6: WATCH Mode Release by Reset or Watchdog Timer
245
Figure 8-7: STOP Mode Release by RESET Pin Input
245
Time Base Counter (TBC)
246
Table 8-12: Counting Time Examples
246
Chapter 9 Timer / Counter (Real Time Pulse Unit)
247
Timer D
247
Features (Timer D)
247
Function Overview (Timer D)
247
Basic Configuration
248
Figure 9-1: Block Diagram of Timer D
248
Table 9-1: Timer D Configuration List
248
Figure 9-2: Timer D Registers 0, 1 (TMD0, TMD1)
249
Figure 9-3: Timer D Compare Registers 0, 1 (CMD0 to CMD1)
250
Figure 9-4: Example of Timing During TMD Operation
251
Control Register
252
Figure 9-5: Timer D Control Register 0, 1 (TMCD0 to TMCD1)
252
Operation
253
Figure 9-6: TMD Compare Operation Example
254
Application Example
255
Precautions
255
Timer E
256
Features (Timer E)
256
Function Overview (Timer E)
256
Basic Configuration
258
Table 9-2: Timer E Configuration List
258
Figure 9-7: Block Diagram of Timer E
259
Table 9-3: Meaning of Signals in Block Diagram
260
Figure 9-8: Timer E Time Base Counter 0 Registers 0 to 2 (TBASE00 to TBASE02)
261
Figure 9-9: Timer E Time Base Counter 1 Registers 0 to 2 (TBASE10 to TBASE12)
261
Figure 9-10: Timer E Sub-Channel 0 Capture/Compare Registers 0 to 2 (CVSE00 to 02)
262
Figure 9-11: Timer E Sub-Channel X Main Capture/Compare Registers 0 to 2 (Cvpex0 to Cvpex2) (X = 1 to 4)
263
Figure 9-12: Timer E Sub-Channel X Sub Capture/Compare Registers 0 to 2 (Cvsex0 to Cvsex2) (X = 1 to 4)
264
Figure 9-13: Timer E Sub-Channel 5 Capture/Compare Registers (CVSE50 to CVSE52)
265
Control Registers
266
Figure 9-14: Timer E Clock Stop Registers 0 to 2 (STOPTE0 to STOPTE2)
266
Figure 9-15: Timer E Count Clock/Control Edge Selection Registers 0 to 2 (CSE0 to CSE2)
267
Figure 9-16: Timer E Sub-Channel Input Event Edge Selection Register 0 to 2 (SESE0 to SESE2)
268
Figure 9-17: Timer E Time Base Control Registers 0 to 2 (TCRE0 to TCRE2) (1/2)
269
Figure 9-18: Timer E Output Control Registers 0 to 2 (OCTLE0 to OCTLE2)
271
Figure 9-19: Timer E Sub-Channel 0, 5 Capture/Compare Control Registers 0 to 2 (CMSE050 to CMSE052)
272
Figure 9-20: Timer E Sub-Channel 1, 2 Capture/Compare Control Registers 0 to 2 (CMSE120 to CMSE122) (1/2)
273
Figure 9-21: Timer E Sub-Channel 3, 4 Capture/Compare Control Registers 0 to 2 (CMSE340 to CMSE342) (1/2)
275
Figure 9-22: Timer E Time Base Status Register (TBSTATE0 to TBSTATE2)
277
Figure 9-23: Timer E Capture/Compare Status Registers 0 to 2 (CCSTATE0 to CCSTATE2)
278
Figure 9-24: Timer E Output Delay Registers 0 to 2 (ODELE0 to ODELE2)
279
Figure 9-25: Timer E Software Event Capture Registers 0 to 2 (CSCE0 to CSCE2)
280
Operation
281
Figure 9-26: Edge Detection Timing
281
Figure 9-27: Timer E up Count Timing
282
Figure 9-28: External Control Timing of Timer E
283
Figure 9-29: Operation in Timer E Up/Down Count Mode
284
Figure 9-30: Timer E Timing in 32-Bit Cascade Operation Mode
285
Figure 9-31: Block Diagram of Timer E Multiplex Count Generation Circuit
286
Figure 9-32: Timer E Multiplex Count Timing
287
Figure 9-33: Timer E Capture Operation: 16-Bit Buffer-Less Mode
288
Figure 9-34: Timer E Capture Operation: Mode with 16-Bit Buffer
289
Figure 9-35: Timer E Capture Operation: 32-Bit Cascade Operation Mode
290
Figure 9-36: Timer E Capture Operation: Capture Control by Software and Trigger Timing
291
Figure 9-37: Timer E Compare Operation: Buffer-Less Mode
292
Figure 9-38: Timer E Compare Operation: Mode with Buffer
293
Figure 9-39: Timer E Capture Operation: Count Value Read Timing
294
Figure 9-40: Timer E Compare Operation: Timing of Compare Match and Write Operation to Register
295
Figure 9-41: Timer E Signal Output Operation: Toggle Mode 0 and Toggle Mode 1
296
Figure 9-42: Timer E Signal Output Operation: Toggle Mode 2 and Toggle Mode 3
297
Figure 9-43: Timer E Signal Output Operation: During Software Control
298
Figure 9-44: Timer E Signal Output Operation: During Delay Output Operation
298
Chapter 10 Watch Timer
299
Function
299
Figure 10-1: Block Diagram of Watch Timer
299
Configuration
300
Table 10-1: Interval Time of Interval Timer (F SUB = 4 Mhz)
300
Table 10-2: Configuration of Watch Timer
300
Watch Timer Control Register
301
Figure 10-2: Watch Timer Mode Control Register (WTM)
301
Operations
303
Operation as Watch Timer
303
Operation as Interval Timer
303
Table 10-3: Interval Time of Interval Timer
303
Figure 10-3: Operation Timing of Watch Timer/Interval Timer
304
Chapter 11 Watchdog Timer
305
Watchdog Timer Mode
305
Figure 11-1: Block Diagram of Watchdog Timer Unit
305
Table 11-1: Runaway Detection Time by Watchdog Timer
305
Control Register
306
Watchdog Timer Mode Register (WDTM)
306
Operation
307
Operating as Watchdog Timer
307
Table 11-2: Runaway Detection Time by Watchdog Timer
307
Chapter 12 Serial Interface Function
309
Features
309
Asynchronous Serial Interfaces 0 to 2 (UART0, UART1, UART2)
310
Features
310
Configuration
311
Figure 12-1: Asynchronous Serial Interfaces 0 to 2 Block Diagram
312
Control Registers
313
Figure 12-2: Asynchronous Serial Interface Mode Registers 0 to 2 (ASIM0 to ASIM2) (1/3)
313
Figure 12-3: Asynchronous Serial Interface Status Registers 0 to 2 (ASIS0 to ASIS2)
316
Figure 12-4: Asynchronous Serial Interface Transmit Status Registers 0 to 2 (ASIF0 to ASIF2)
317
Figure 12-5: Reception Buffer Registers 0 to 2 (RXB0 to RXB2)
318
Figure 12-6: Transmission Buffer Registers 0 to 2 (TXB0 to TXB2)
319
Interrupt Requests
320
Table 12-1: Generated Interrupts and Default Priorities
320
Operation
321
Figure 12-7: Asynchronous Serial Interface Transmit/Receive Data Format
321
Figure 12-8: Asynchronous Serial Interface Transmission Completion Interrupt Timing
322
Table 12-2: Transmission Status and Whether or Not Writing Is Enabled
323
Figure 12-9: Continuous Transmission Starting Procedure
324
Figure 12-10: Continuous Transmission End Procedure
325
Figure 12-11: Asynchronous Serial Interface Reception Completion Interrupt Timing
326
Figure 12-12: When Reception Error Interrupt Is Separated from Intsrn Interrupt (ISRM Bit = 0)
327
Figure 12-13: When Reception Error Interrupt Is Included in Intsrn Interrupt (ISRM Bit = 1)
327
Table 12-3: Reception Error Causes
327
Figure 12-14: Noise Filter Circuit
329
Figure 12-15: Timing of Rxdn Signal Judged as Noise
329
Dedicated Baud Rate Generators (BRG) of Uartn (N = 0 to 2)
330
Figure 12-16: Baud Rate Generator (BRG) Configuration of Uartn (N = 0 to 2)
330
Figure 12-17: Clock Select Registers 1 to 3 (CKSR1 to CKSR3)
331
Figure 12-18: Baud Rate Generator Control Registers 0 to 2 (BRGC0 to BRGC2)
332
Table 12-4: Baud Rate Generator Setting Data
334
Figure 12-19: Allowable Baud Rate Range During Reception
335
Table 12-5: Maximum and Minimum Allowable Baud Rate Error
336
Precautions
337
Figure 12-20: Transfer Rate During Continuous Transmission
337
Clocked Serial Interfaces 0, 1 (CSI0, CSI1)
338
Features
338
Configuration
339
Figure 12-21: Block Diagram of Clocked Serial Interfaces
340
Control Registers
341
Figure 12-22: Clocked Serial Interface Mode Registers 0, 1 (CSIM0, CSIM1)
341
Figure 12-23: Clocked Serial Interface Clock Selection Registers 0, 1 (CSIC0, CSIC1)
342
Figure 12-24: Clocked Serial Interface Reception Buffer Registers 0, 1 (SIRB0, SIRB1)
343
Figure 12-25: Clocked Serial Interface Reception Buffer Registers L0, L1 (SIRBL0, SIRBL1)
344
Figure 12-26: Clocked Serial Interface Read-Only Reception Buffer Registers 0, 1 (SIRBE0, SIRBE1)
345
Figure 12-27: Clocked Serial Interface Read-Only Reception Buffer Registers L0, L1(SIRBEL0, SIRBEL1)
346
Figure 12-28: Clocked Serial Interface Transmission Buffer Registers 0, 1 (SOTB0, SOTB1)
347
Figure 12-29: Clocked Serial Interface Transmission Buffer Registers L0, L1 (SOTBL0, SOTBL1)
348
Figure 12-30: Clocked Serial Interface Initial Transmission Buffer Registers 0, 1 (SOTBF0, SOTBF1)
349
Figure 12-31: Clocked Serial Interface Initial Transmission Buffer Registers L0, L1 (SOTBFL0, SOTBFL1)
350
Figure 12-32: Serial I/O Shift Registers 0, 1 (SIO0, SIO1)
351
Figure 12-33: Serial I/O Shift Registers L0, L1 (SIOL0, SIOL1)
352
Operation
353
Figure 12-34: Timing Chart in Single Transfer Mode (1/2)
353
Figure 12-35: Timing Chart According to Clock Phase Selection (1/2)
355
Figure 12-36: Timing Chart of Interrupt Request Signal Output in Delay Mode (1/2)
357
Figure 12-37: Repeat Transfer (Receive-Only) Timing Chart
359
Figure 12-38: Repeat Transfer (Transmission/Reception) Timing Chart
360
Figure 12-39: Timing Chart of Next Transfer Reservation Period
361
Figure 12-40: Transfer Request Clear and Register Access Contention
362
Figure 12-41: Interrupt Request and Register Access Contention
363
Output Pins
364
Dedicated Baud Rate Generators 0, 1 (BRG0, BRG1)
365
Figure 12-42: Baud Rate Generators 0, 1 (BRG0, BRG1) Block Diagram
365
Figure 12-43: Prescaler Mode Registers 0, 1 (PRSM0, PRSM1)
366
Figure 12-44: Prescaler Compare Registers 0, 1 (PRSCM0, PRSCM1)
367
Table 12-6: Baud Rate Generator Setting Data
368
Chapter 13 FCAN Interface Function
369
Features
369
Outline of the FCAN System
370
General
370
Figure 13-1: Functional Blocks of the FCAN Interface
370
CAN Memory and Register Layout
371
Figure 13-2: Memory Area of the FCAN System
371
Table 13-1: Configuration of the CAN Message Buffer Section
372
Table 13-2: CAN Message Buffer Registers Layout
373
Table 13-3: Relative Addresses of CAN Interrupt Pending Registers
374
Table 13-4: Relative Addresses of CAN Common Registers
375
Table 13-5: Relative Addresses of CAN Module 1 Registers
376
Table 13-6: Relative Addresses of CAN Module 2 Registers
377
Table 13-7: Relative Addresses of CAN Module 3 Registers
378
Table 13-8: Relative Addresses of CAN Bridge ELISA Registers
379
Clock Structure
380
Figure 13-3: Clock Structure of the FCAN System
380
Interrupt Handling
381
Figure 13-4: FCAN Interrupt Bundling of V850E/CA1 (Atomic)
381
Time Stamp
382
Figure 13-5: Time Stamp Capturing at Message Reception
382
Figure 13-6: Time Stamp Capturing at Message Transmission
383
Table 13-9: Transmitted Data on the CAN Bus (ATS = 1)
383
Message Handling
384
Table 13-10: Example for Automatic Transmission Priority Detection
385
Table 13-11: Example for Transmit Buffer Allocation When more than 5 Buffers Linked to a CAN Module
386
Table 13-12: Storage Priority for Reception of Data Frames
387
Table 13-13: Storage Priority for Reception of Remote Frames
387
Table 13-14: Inner Storage Priority Within a Priority Class
388
Mask Handling
389
Remote Frame Handling
390
Table 13-15: Remote Frame Handling Upon Reception into a Transmit Message Buffer
392
FCAN System Event Handling
393
Control and Data Registers
394
Bit Set/Clear Function
394
Figure 13-7: 16-Bit Data Write Operation for Specific Registers
395
Common Registers
396
Figure 13-8: CAN Stop Register (CSTOP)
396
Figure 13-9: CAN Main Clock Select Register (CGSC) (1/2)
397
Figure 13-10: Configuration of FCAN System Main Clock
398
Figure 13-11: Configuration of FCAN Global Time System Clock
398
Figure 13-12: CAN Global Status Register (CGST) (1/2)
399
Figure 13-13: CAN Global Interrupt Enable Register (CGIE) (1/2)
401
Figure 13-14: CAN Timer Event Enable Register (CGTEN)
403
Figure 13-15: CAN Global Time System Counter and Event Generation
403
Figure 13-16: CAN Global Time System Counter (CGTSC)
404
Figure 13-17: CAN Message Search Start Register (CGMSS)
405
Figure 13-18: CAN Message Search Start Register (CGMSS)
406
Figure 13-19: CAN Test Bus Register (CTBR)
407
Figure 13-20: Internal CAN Test Bus Structure
407
CAN Interrupt Pending Registers
408
Figure 13-21: CAN Interrupt Pending Register (CCINTP)
408
Figure 13-22: CAN Global Interrupt Pending Register (CGINTP) (1/2)
409
Figure 13-23: CAN 1 to 3 Interrupt Pending Registers (C1INTP to C3INTP) (1/2)
411
CAN Message Buffer Registers
413
Figure 13-24: Message Identifier Registers L00 to L63 and H00 to H63
413
(M_IDL00 to M_IDL63, M_IDH00 to M_IDH63)
413
Figure 13-25: Message Configuration Registers 00 to 63 (M_CONF00 to M_CONF63)
414
Figure 13-26: Message Status Registers 00 to 63 (M_STAT00 to M_STAT63)
415
Table 13-16: CAN Message Processing by TRQ and RDY Bits
416
Figure 13-27: Message Set/Clear Status Registers 00 to 63 (SC_STAT00 to SC_STAT63)
417
Figure 13-28: Message Data Registers M0 to M7 (M_Datam0 to M_Datam7) (M = 00 to 63)
418
Figure 13-29: Message Data Length Code Registers 00 to 63 (M_DLC00 to M_DLC63)
420
Figure 13-30: Message Control Registers 00 to 63 (M_CTRL00 to M_CTRL63) (1/2)
421
Figure 13-31: Message Time Stamp Registers 00 to 63 (M_TIME00 to M_TIME63)
423
Figure 13-32: Message Event Registers M0, M1, and M3
424
(M_Evtm0, M_Evtm1, M_Evm3) (M = 00 to 63)
424
CAN Module Registers
425
Figure 13-33: CAN 1 to 3 Mask 0 to 3 Registers L, H (Cxmaskl0 to Cxmaskl3, Cxmaskh0 to Cxmaskh3) (X = 1 to 3)
425
Table 13-17: Address Offsets of the CAN 1 to 3 Mask Registers
426
Figure 13-34: CAN 1 to 3 Control Registers (C1CTRL to C3CTRL) (1/4)
427
Figure 13-35: CAN 1 to 3 Definition Registers (C1DEF to C3DEF) (1/3)
431
Figure 13-36: CAN 1 to 3 Information Registers (C1LAST to C3LAST)
434
Figure 13-37: CAN 1 to 3 Error Counter Registers (C1ERC to C3ERC)
435
Figure 13-38: CAN 1 to 3 Interrupt Enable Registers (C1IE to C3IE) (1/2)
436
Figure 13-39: CAN 1 to 3 Bus Activity Registers (C1BA to C3BA) (1/2)
438
Figure 13-40: CAN 1 to 3 Bit Rate Prescaler Registers (C1BRP to C3BRP) (1/2)
440
Figure 13-41: CAN Bus Bit Timing
442
Figure 13-42: CAN 1 to 3 Synchronization Control Registers (C1SYNC to C3SYNC) (1/2))
443
Figure 13-43: CAN 1 to 3 Bus Diagnostic Information Registers (C1DINF to C3DINF)
445
Operating Condsiderations
446
Rules to be Observed for Correct Baud Rate Settings
446
Example for Baudrate Setting of CAN Module
447
Ensuring Data Consistency
449
Figure 13-44: Sequential CAN Data Read by CPU
449
Operating States of the CAN Modules
451
Figure 13-45: State Transition Diagram for CAN Modules
451
Initialisation Routines
452
Figure 13-46: General Initialisation Sequence for the CAN Interface
452
Figure 13-47: Initialisation Sequence for a CAN Module
454
Figure 13-48: Setting CAN Module into Initialisation State
456
CAN Bridge ELISA
458
Principle of Operation
458
Figure 13-49: Main Operation of ELISA
459
Figure 13-50: Event Processing by ELISA
460
Figure 13-51: End of Event Processing
461
Figure 13-52: Example for Event Processing of ELISA
462
Implementation Details
464
Table 13-18: Format of 64-Bit Temporary Buffer
464
Table 13-19: Format of Temporary Sum
464
Figure 13-53: ELISA Command Format
465
Event Processing Commands
468
Figure 13-54: Timer Event Pointer Registers 0, 1 and 3 (TEP0, TEP1, TEP3)
480
Figure 13-55: Script Event Pointer and Command Counter Register (SEPCC)
481
Figure 13-56: ELISA Event Processing Status Register (EEPS)
482
Figure 13-57: ELISA Event Processing Status Register (ELSR) (1/2)
483
Figure 13-58: ELISA Last Processed Command Register (ELC)
485
Figure 13-59: ELISA Temporary Buffer Registers (ETBL, ETBH)
486
Chapter 14 A/D Converter
487
Features
487
Configuration
488
Figure 14-1: Block Diagram of A/D Converter
490
Control Registers
491
Figure 14-2: A/D Scan Mode Register 0 (ADSCM0) (1/2)
491
Figure 14-3: A/D Scan Mode Register 1 (ADSCM1)
493
Figure 14-4: A/D Voltage Detection Mode Register (ADETM)
496
Figure 14-5: A/D Conversion Result Registers 0 to 11 (ADCR0 to ADCR11)
497
Table 14-1: Correspondence between Adcrm (M = 0 to 11) Register Names and Addresses
497
Figure 14-6: Relationship between Analog Input Voltages and A/D Conversion Results
498
Table 14-2: Correspondence between each Analog Input Pin and Adcrm Registers
498
Interrupt Requests
499
A/D Converter Operation
500
A/D Converter Basic Operation
500
Operation Modes and Trigger Modes
501
Figure 14-7: Example of Select Mode Operation Timing (ANI1)
502
Figure 14-8: Example of Scan Mode Operation Timing (4-Channel Scan (ANI0 to ANI3))
503
Operation in A/D Trigger Mode
504
Operation in Select Mode
504
Figure 14-9: Example of Select Mode (A/D Trigger Select) Operation (ANI2)
504
Operation in Scan Mode
505
Figure 14-10: Example of Scan Mode (A/D Trigger Scan) Operation (ANI2-ANI5)
505
Operation in A/D Trigger Polling Mode
506
Operation in Select Mode
506
Figure 14-11: Example of Select Mode (A/D Trigger Polling Select) Operation (ANI2)
506
Operation in Scan Mode
507
Figure 14-12: Example of Scan Mode (A/D Trigger Polling Scan) Operation (ANI2 to ANI5)
507
Operation in Timer Trigger Mode
508
Operation in Select Mode
508
Figure 14-13: Example of Timer Trigger Select Mode Operation (ANI4)
508
Operation in Scan Mode
509
Figure 14-14: Example of Timer Trigger Scan Mode Operation (ANI1 to ANI4)
510
Precautions
511
Stopping Conversion Operation
511
Trigger Input During Conversion Operation
511
Timer Trigger Interval
511
Operation in Standby Modes
511
Chapter 15 LCD Controller/Driver
513
LCD Controller/Driver Functions
513
LCD Controller/Driver Configuration
513
Table 15-1: Maximum Number of Display Pixels
513
Table 15-2: LCD Controller/Driver Configuration
513
Figure 15-1: LCD Controller/Driver Block Diagram
514
Figure 15-2: LCD Clock Select Circuit Block Diagram
514
LCD Controller/Driver Control Registers
515
Figure 15-3: LCD Display Mode Register (LCDM) Format
515
Figure 15-4: Port LCD Segment Selector Registers 0 to 4 (LSEG0 to LSEG4)
516
LCD Memory Layout
517
Table 15-3: Relationship between LCD Display Data Memory Contents and Segment/Common Outputs
517
Table 15-4: Memory Layout of LCD Segments
517
Common Signals and Segment Signals
518
Table 15-5: COM Signals
518
Table 15-6: LCD Drive Voltage
518
Figure 15-5: Common Signal Waveform
519
Figure 15-6: Common Signal and Segment Signal Voltages and Phases
519
Supplying LCD Drive Voltage
520
LC1 , and VLC2
520
Table 15-7: Drive Voltage Supply
520
Figure 15-7: Example of Connection of LCD Drive Power Supply
521
Display Mode
522
4-Time-Division Display Example
522
Figure 15-8: 4-Time-Division LCD Display Pattern and Electrode Connections
522
Table 15-8: Selection and Non-Selection Voltages (COM0 to COM3)
522
Figure 15-9: 4-Time-Division LCD Panel Connection Example
523
Figure 15-10: 4-Time-Division LCD Drive Waveform Examples (1/3 Bias Method)
524
Chapter 16 Port Functions
525
Features
525
Port Configuration
526
Figure 16-1: Type a Block Diagram
530
Figure 16-2: Type B Block Diagram
531
Figure 16-3: Type C Block Diagram
532
Figure 16-4: Type D Block Diagram
533
Figure 16-5: Type E Block Diagram
534
Figure 16-6: Type F Block Diagram
535
Figure 16-7: Type G Block Diagram
536
Figure 16-8: Type H Block Diagram
537
Pin Functions of each Port
538
Port 1
538
Figure 16-9: Port 1 (P1)
538
Figure 16-10: Port 1 Mode Register (PM1)
538
Figure 16-11: Port 1 Mode Control Register (PMC1)
539
Port 2
540
Figure 16-12: Port 2 (P2)
540
Figure 16-13: Port 2 Mode Register (PM2)
540
Figure 16-14: Port 2 Mode Control Register (PMC2)
541
Port 3
542
Figure 16-15: Port 3 (P3)
542
Figure 16-16: Port 3 Mode Register (PM3)
542
Figure 16-17: Port 3 Mode Control Register (PMC3)
543
Port 4
544
Figure 16-18: Port 4 (P4)
544
Figure 16-19: Port 4 Mode Register (PM4)
544
Figure 16-20: Port 4 Mode Control Register (PMC4)
545
Port 5
546
Figure 16-21: Port 5 (P5)
546
Figure 16-22: Port 5 Mode Register (PM5)
546
Figure 16-23: Port 5 Mode Control Register (PMC5)
547
Port 6
548
Figure 16-24: Port 6 (P6)
548
Figure 16-25: Port 6 Mode Register (PM6)
548
Figure 16-26: Port 6 Mode Control Register (PMC6)
549
Port al
550
Figure 16-27: Port al (PAL)
550
Figure 16-28: Port al Mode Register (PMAL)
550
Figure 16-29: Port al Mode Control Register (PMCAL)
550
Port AH
551
Figure 16-30: Port AH (PAH)
551
Figure 16-31: Port AH Mode Register (PMAH)
551
Figure 16-32: Port AH Mode Control Register (PMCAH)
552
Port DL
553
Figure 16-33: Port DL (PDL)
553
Figure 16-34: Port DL Mode Register (PMDL)
553
Figure 16-35: Port DL Mode Control Register (PMCDL)
554
Port CS
555
Figure 16-36: Port CS (PCS)
555
Figure 16-37: Port CS Mode Register (PMCS)
555
Figure 16-38: Port CS Mode Control Register (PMCCS)
556
Port CT
557
Figure 16-39: Port CT (PCT)
557
Figure 16-40: Port CT Mode Register (PMCT)
557
Figure 16-41: Port CT Mode Control Register (PMCCT)
558
Port CM
559
Figure 16-42: Port CM (PCM)
559
Figure 16-43: Port CM Mode Register (PMCM)
559
Figure 16-44: Port CM Mode Control Register (PMCCM)
560
Chapter 17 RESET Function
561
Features
561
Pin Functions
561
Table 17-1: Operation Status of each Pin During Reset Period
561
Figure 17-1: Reset Signal Acknowledgment
562
Figure 17-2: Reset at Power-On
562
Initialization
563
Table 17-2: Initial Values of CPU and Internal RAM after Reset
563
Chapter 18 Voltage Regulator
565
Outline
565
Operation
565
Figure 18-1: Regulator
565
Chapter 19 Internal Voltage Comparator
567
Features
567
Figure 19-1: Block Diagram of Voltage Comparator
567
Voltage Comparator Functions
568
Table 19-1: Power Supply Voltage Operating Modes
568
Figure 19-2: Internal Voltage Comparator
569
Internal Voltage Comparator Control Register (VCMPM)
570
Chapter 20 Flash Memory (Μpd70F3123)
571
Features
571
Writing by Flash Writer
572
Programming Environment
572
Figure 20-1: Programming Environment in Conjunction with External Flash Writer
572
Communication System
573
Figure 20-2: Flash Writer Communication Via CSI0
573
Flash Programming Circuitry
574
Figure 20-3: Application Example for Flash Selfprogramming
574
Pin Handling
575
Vpp0 /V
575
Pp0 Pp1
575
PP1 Pins
575
Figure 20-4: Pin Handling of V
575
Pins
575
Serial Interface Pins
576
Figure 20-5: Conflict between Flash Writer and Other Output Pin
576
Figure 20-6: Malfunction of Other Input Pins
577
RESET Pin
578
NMI Pin
578
MODE Pin
578
Port Pins
578
Other Signal Pins
578
Power Supply
578
Figure 20-7: Conflict between Flash Writer Reset Line and Reset Signal Generation Circuit
578
Programming Method
579
Flash Memory Control
579
Selection of Communication Mode
579
Figure 20-8: Flow Chart of Flash Memory Manipulation
579
Table 20-1: List of Communication Systems
579
Selfprogramming Mode
580
Figure 20-9: Configuration in Selfprogramming Mode
580
Secure Selfprogramming
581
General Description
581
Signature Structure
581
Secure Selfprogramming Flow
581
Figure 20-10: Secure Selfprogramming Flow (1/2)
582
Advantages of Secure Selfprogramming
583
Appendix A Instruction Set List
585
Appendix B Index
593
Related Products
NEC V850E/CA2 JUPITER
NEC V850E/PH2
NEC V850E/IA1 mPD703116
NEC V850E/MA1
NEC V850E/MS1 UPD703100
NEC V850E/MS1 UPD703101
NEC V850ES/SA2 UPD703201Y
NEC V850ES/SA2 UPD70F3201
NEC V850ES/SA3 UPD703204
NEC V850E/IA2
NEC Categories
Monitor
Projector
Server
Telephone
Laptop
More NEC Manuals