Sign In
Upload
Manuals
Brands
NEC Manuals
Microcontrollers
V850E/CA2 JUPITER
NEC V850E/CA2 JUPITER Manuals
Manuals and User Guides for NEC V850E/CA2 JUPITER. We have
1
NEC V850E/CA2 JUPITER manual available for free PDF download: Preliminary User's Manual
NEC V850E/CA2 JUPITER Preliminary User's Manual (612 pages)
32-/16-bit Romless Microcontroller
Brand:
NEC
| Category:
Microcontrollers
| Size: 7.81 MB
Table of Contents
Preface
5
Table of Contents
7
Chapter 1 Introduction
23
General
23
Device Features
24
Application Fields
26
Ordering Information
26
Pin Configuration (Top View)
27
Figure 1-1: V850E/CA2 Jupiter Pin Configuration
27
Function Block Diagram
29
Figure 1-2: V850E/CA2 Jupiter Block Diagram
29
On-Chip Units
30
Chapter 2 Pin Functions
33
List of Pin Functions
33
Table 2-1: Port Pins
33
Table 2-2: Non-Port Pins
36
Table 2-3: Pin Status in Reset and Standby Mode
39
Description of Pin Functions
40
Types of Pin I/O Circuit and Connection of Unused Pins
51
Table 2-4: Types of Pin I/O Circuit and Connection of Unused Pins
51
Figure 2-1: Pin I/O Circuits
54
Chapter 3 CPU Function
55
Features
55
CPU Register Set
56
Figure 3-1: CPU Register Set
56
Program Register Set
57
Figure 3-2: Program Counter (PC)
57
Table 3-1: Program Registers
57
System Register Set
58
Table 3-2: System Register Numbers
58
Figure 3-3: Interrupt Source Register (ECR)
59
Figure 3-4: Program Status Word (PSW)
60
Table 3-3: Saturation-Processed Operation Result
61
Operation Modes
62
Operation Mode Specification
63
Table 3-4: Operation Modes
63
Address Space
65
CPU Address Space
65
Figure 3-5: CPU Address Space
65
Image
66
Figure 3-6: Image on Address Space
66
Wrap-Around of CPU Address Space
67
Figure 3-7: Wrap-Around of Program Space
67
Figure 3-8: Wrap-Around of Data Space
67
Memory Map
68
Figure 3-9: Memory Map (Μpd703128 (A))
68
Figure 3-10: Memory Map (Μpd703129 (A), Μpd703129 (A1))
69
Area
70
Table 3-5: Interrupt/Exception Table
70
Figure 3-11: Internal RAM Area of Μpd703129
73
Figure 3-12: Internal RAM Area of Μpd703128
73
Figure 3-13: Internal Peripheral I/O Area
74
Figure 3-14: Example Application of Wrap-Around (Μpd703129)
75
Recommended Use of Address Space
75
Peripheral I/O Registers
76
Table 3-6: List of Peripheral I/O Registers
76
Figure 3-15: Programmable Peripheral I/O Register (Outline)
83
Programmable Peripheral I/O Registers
83
Figure 3-16: Peripheral Area Selection Control Register (BPC)
84
Table 3-7: List of Programmable Peripheral I/O Registers
85
Specific Registers
103
Command Register (PRCMD)
104
Figure 3-17: Command Register (PRCMD) Format
104
Peripheral Command Register (PHCMD)
105
Figure 3-18: Peripheral Command Register (PHCMD) Format
105
Peripheral Status Register (PHS)
106
Figure 3-19: Peripheral Status Register (PHS) Format
106
Internal Peripheral Function Wait Control Register (VSWC)
107
Figure 3-20: Internal Peripheral Function Wait Control Register (VSWC) Format
107
Table 3-8: the Values of VSWC Register Depending on System Clock
108
Chapter 4 Bus Control Function
109
Features
109
Bus Control Pins
109
Memory Block Function
110
Figure 4-1: Memory Block Function
110
Chip Select Control Function
111
Figure 4-2: Chip Area Select Control Registers 0, 1 (1/2)
111
Programmable Peripheral I/O Registers
113
Figure 4-3: Programmable Peripheral I/O Register (Outline)
113
Figure 4-4: Peripheral Area Selection Control Register (BPC)
114
Bus Cycle Type Control Function
115
Bus Cycle Type Configuration
115
Bus Access
116
Number of Access Clocks
116
Bus Sizing Function
116
Table 4-1: Number of Bus Access Clocks
116
Endian Control Function
117
Figure 4-5: Big Endian Addresses Within Word
117
Figure 4-6: Little Endian Addresses Within Word
117
Cache Configuration
118
Bus Width
119
Wait Function
131
Programmable Wait Function
131
External Wait Function
133
Relationship between Programmable Wait and External Wait
133
Figure 4-7: Example of Wait Insertion
133
Idle State Insertion Function
134
Bus Priority Order
135
Table 4-2: Bus Priority Order
135
Boundary Operation Conditions
136
Program Space
136
Data Space
136
Chapter 5 Memory Access Control Function
137
SRAM, External ROM, External I/O Interface
137
Features
137
SRAM Connections
138
Figure 5-1: Example of Connection to SRAM
138
SRAM, External ROM, External I/O Access
139
Figure 5-2: SRAM, External ROM, External I/O Access Timing (1/6)
139
Page ROM Controller (ROMC)
145
Features
145
Page ROM Connections
146
Figure 5-3: Example of Page ROM Connections
146
On-Page/Off
147
Figure 5-4: On-Page/Off-Page Judgment During Page ROM Connection (1/2)
147
Page ROM Configuration Register (PRC)
149
Figure 5-5: Page ROM Configuration Register (PRC)
149
Page ROM Access
150
Figure 5-6: Page ROM Access Timing (1/4)
150
Chapter 6 Instruction Cache
155
Features
155
Configuration
156
Figure 6-1: Instruction Cache Configuration
156
Four Kbytes 2-Way Set-Associative Instruction Cache
157
Figure 6-2: Configuration of 4 KB 2-Way Set-Associative Instruction Cache
157
Control Registers
158
Figure 6-3: Instruction Cache Control Register (ICC)
158
Figure 6-4: Instruction Cache Data Configuration Register (ICD)
159
Figure 6-5: Instruction Cache Initial Register (ICI)
159
Instruction Cache Operation
160
Figure 6-6: Operation on Instruction Cache Hit
160
Figure 6-7: Operation on Instruction Cache Miss
161
Figure 6-8: Refill Sequence to Instruction Cache (16-Bit Data Bus)
162
Instruction Cache Initialisation
166
Operating Precautions
167
Figure 6-9: Icache Area Setting Example
168
Chapter 7 DMA Functions (DMA Controller)
169
Features
169
Control Registers
170
DMA Source Address Registers H0 to H3 (DSAH0 to DSAH3)
170
Figure 7-1: DMA Source Address Registers DSAH0 to DSAH3 (DSAH0 to DSAH3)
170
Figure 7-2: DMA Source Address Registers DSAL0 to DSAL3 (DSAL0 to DSAL3)
171
DMA Destination Address Registers H0 to H3 (DDAH0 to DDAH3)
172
Figure 7-3: DMA Destination Address Registers 0H to 3H (DDA0H to DDA3H)
172
Figure 7-4: DMA Destination Address Registers L0 to L3 (DDAL0 to DDAL3)
173
DMA Transfer Count Registers 0 to 3 (DBC0 to DBC3)
174
Figure 7-5: DMA Transfer Count Registers 0 to 3 (DBC0 to DBC3)
174
DMA Addressing Control Registers 0 to 3 (DADC0 to DADC3)
175
Figure 7-6: DMA Addressing Control Registers 0 to 3 (DADC0 to DADC3) (1/2)
175
DMA Channel Control Registers 0 to 3 (DCHC0 to DCHC3)
177
Figure 7-7: DMA Channel Control Registers 0 to 3 (DCHC0 to DCHC3)
177
DMA Disable Status Register (DDIS)
178
DMA Restart Register (DRST)
178
Figure 7-8: DMA Disable Status Register (DDIS)
178
Figure 7-9: DMA Restart Register (DRST)
178
DMA Trigger Factor Register 0 (DTFR0)
179
Figure 7-10: DMA Trigger Factor Registers 0 (DTFR0)
179
DMA Trigger Factor Register 1 (DTFR1)
180
Figure 7-11: DMA Trigger Factor Registers 1 (DTFR1)
180
DMA Trigger Factor Register 2 (DTFR2)
181
Figure 7-12: DMA Trigger Factor Registers 2 (DTFR2)
181
DMA Trigger Factor Register 3 (DTFR3)
182
Figure 7-13: DMA Trigger Factor Registers 3 (DTFR3)
182
Next Address Setting Function
183
Figure 7-14: Buffer Register Configuration
183
DMA Bus States
184
Types of Bus States
184
DMAC Bus Cycle State Transition
186
Figure 7-15: DMAC Bus Cycle State Transition Diagram
186
Transfer Mode
187
Single Transfer Mode
187
Figure 7-16: Single Transfer Example 1
187
Figure 7-17: Single Transfer Example 2
187
Figure 7-18: Single Transfer Example 3
188
Figure 7-19: Single Transfer Example 4
188
Single-Step Transfer Mode
189
Figure 7-20: Single-Step Transfer Example 1
189
Figure 7-21: Single-Step Transfer Example 2
189
Line Transfer Mode
190
Figure 7-22: Line Transfer Example 1
190
Figure 7-23: Line Transfer Example 2
190
Figure 7-24: Line Transfer Example 3
191
Figure 7-25: Line Transfer Example 4
191
Block Transfer Mode
192
Figure 7-26: Block Transfer Example
192
Transfer Types
193
Two-Cycle Transfer
193
Transfer Object
193
Transfer Type and Transfer Object
193
Table 7-1: Relationship between Transfer Type and Transfer Object
193
DMA Channel Priorities
194
DMA Transfer Start Factors
194
Forcible Interruption
195
Figure 7-27: Example of Forcible Interruption of DMA Transfer
195
Forcible Termination
196
Figure 7-28: DMA Transfer Forcible Termination Example 1
196
DMA Transfer Completion
197
DMA Transfer End Interrupt
197
Terminal Count Output Upon DMA Transfer End
197
Figure 7-29: DMA Transfer Forcible Termination Example 2
197
Precautions
198
Chapter 8 Interrupt/Exception Processing Function
199
Features
199
Table 8-1: Interrupt/Exception Source List
200
Non-Maskable Interrupts
203
Figure 8-1: Example of Non-Maskable Interrupt Request Acknowledgement Operation (1/2)
204
Operation
206
Figure 8-2: Processing Configuration of Non-Maskable Interrupt
206
Restore
207
Figure 8-3: RETI Instruction Processing
207
Non-Maskable Interrupt Status Flag (NP)
208
Edge Detection Function
208
Figure 8-4: Non-Maskable Interrupt Status Flag (NP)
208
Figure 8-5: Interrupt Mode Register 3 (INTM3)
208
Maskable Interrupts
209
Operation
209
Figure 8-6: Maskable Interrupt Processing
210
Restore
211
Figure 8-7: RETI Instruction Processing
211
Priorities of Maskable Interrupts
212
Figure 8-8: Example of Processing in Which Another Interrupt Request Is Issued While an Interrupt Is Being Processed (1/2)
213
Figure 8-9: Example of Processing Interrupt Requests Simultaneously Generated
215
Interrupt Control Register (XXIC)
216
Figure 8-10: Interrupt Control Register (XXIC)
216
Table 8-2: Addresses and Bits of Interrupt Control Registers
217
Interrupt Mask Registers 0 to 3 (IMR0 to IMR3)
219
Figure 8-11: Interrupt Mask Registers 0 to 3 (IMR0 to IMR3)
219
In-Service Priority Register (ISPR)
220
Maskable Interrupt Status Flag (ID)
220
Figure 8-12: In-Service Priority Register (ISPR)
220
Figure 8-13: Maskable Interrupt Status Flag (ID)
220
Noise Elimination Circuit
221
Figure 8-14: Port Interrupt Input Circuit (P52, P53, P61, P62, P63, P64)
221
Figure 8-15: Timer G Input Circuit (P30, P35, P40, P45, P54, P55)
221
Figure 8-16: NMI Input Circuit
221
Analog Filter
222
Interrupt Trigger Mode Selection
222
Figure 8-17: Interrupt Mode Register 0 (IMTM0)
223
Interrupt Edge Detection Control Registers
223
Figure 8-18: Interrupt Mode Register 1 (IMTM1)
224
Figure 8-19: Interrupt Mode Register 2 (IMTM2)
225
Figure 8-20: Interrupt Mode Register 3 (IMTM3)
226
Software Exception
227
Operation
227
Figure 8-21: Software Exception Processing
227
Restore
228
Figure 8-22: RETI Instruction Processing
228
Exception Status Flag (EP)
229
Figure 8-23: Exception Status Flag (EP)
229
Exception Trap
230
Illegal Opcode Definition
230
Figure 8-24: Exception Trap Processing
230
Figure 8-25: Restore Processing from Exception Trap
231
Debug Trap
232
Figure 8-26: Debug Trap Processing
232
Figure 8-27: Restore Processing from Debug Trap
233
Multiple Interrupt Processing Control
234
Interrupt Response Time
236
Figure 8-28: Pipeline Operation at Interrupt Request Acknowledgment (Outline)
236
Periods in Which Interrupts Are Not Acknowledged
237
Table 8-3: Interrupt Response Time
237
Chapter 9 Clock Generator
239
Features
239
Configuration
240
Figure 9-1: Block Diagram of the Clock Generator
240
Control Registers
241
Clock Control Register (CKC)
241
Figure 9-2: Clock Control Register (CKC) (1/2)
241
Clock Generator Status Register (CGSTAT)
243
Figure 9-3: Clock Generator Status Register (CGSTAT)
243
Watchdog Timer Clock Control Register (WCC)
244
Figure 9-4: Watchdog Timer Clock Control Register (WCC)
244
Processor Clock Control Register (PCC)
245
Figure 9-5: Processor Clock Control Register (PCC) (1/2)
245
Reset Source Monitor Register (RSM)
247
Figure 9-6: Reset Source Monitor Register (RSM)
247
SSCG Frequency Modulation Control Register (SCFMC)
248
Figure 9-7: SSCG Frequency Modulation Control Register (SCFMC)
248
SSCG Frequency Control Register 0 (SCFC0)
249
Figure 9-8: SSCG Frequency Control Register 0 (SCFC0)
249
SSCG Frequency Control Register 1 (SCFC1)
250
Figure 9-9: SSCG Frequency Control Register 1 (SCFC1)
250
Power Saving Functions
251
General
251
Table 9-1: Power Saving Modes Overview
251
Figure 9-10: Power Save Mode State Transition Diagram
252
Power Save Modes Outline
253
Power Saving Mode Functions
254
Table 9-2: Power Saving Mode Functions
254
Table 9-3: Power Saving Mode Functions
255
HALT Mode
256
Table 9-4: Operating States in HALT Mode
256
Table 9-5: Operation after HALT Mode Release by Interrupt Request
257
IDLE Mode
258
Table 9-6: Operating States in IDLE Mode
258
WATCH Mode
259
Table 9-7: Operating States in WATCH Mode
259
Table 9-8: Operation after WATCH Mode Release by Interrupt Request
260
SUB WATCH Mode
261
Table 9-9: Operating States in WATCH Mode
261
Table 9-10: Operation after SUB WATCH Mode Release by Interrupt Request
262
Figure 9-11: Sub Watch Mode Released by RESET Input
263
Figure 9-12: Sub Watch Mode Release by Watchdog Reset, NMI, INT
264
Software STOP Mode
265
Table 9-11: Operating States in STOP Mode
265
Figure 9-13: STOP Mode Released by RESET Input
266
Figure 9-14: STOP Mode Release by Watchdog Reset, NMI, INT
267
Register Description
268
Power Save Control Register (PSC)
268
Figure 9-15: Power Save Control Register (PSC)
268
Power Save Mode Register (PSM)
270
Figure 9-16: Power Save Mode Register (PSM)
270
Chapter 10 Timer
271
Timer C
271
Features (Timer C)
271
Function Overview (Timer C)
272
Figure 10-1: Block Diagram of Timer C
273
Basic Configuration
274
Figure 10-2: Timer C Counter (TMC0)
274
Table 10-1: Timer C Configuration List
274
Figure 10-3: Capture/Compare Register 0 (CCC00)
276
Figure 10-4: Capture/Compare Register 1 (CCC01)
276
Control Registers
278
Figure 10-5: Timer C Control Register 0 (TMCC00) (1/2)
278
Figure 10-6: Timer C Control Register 1 (TMCC01) (1/2)
280
Figure 10-7: Valid Edge Selection Register (SESC0)
282
Operation
283
Figure 10-8: Timing of Basic Operation of Timer C
283
Figure 10-9: Timing of Interrupt Operation after Overflow
284
Figure 10-10: Timing of Capture for Pulse Cycle Measurement (Rising Edge)
285
Figure 10-11: Timing of Capture for Pulse Width Measurement (both Edges)
286
Figure 10-12: Timing of Cycle Measurement Operation
288
Figure 10-13: Timing of Compare Operation
289
Figure 10-14: Timing of Interval Timer Operation
290
Figure 10-15: Timing of PWM Output Operation (Overview)
291
Table 10-2: TOC0 Output Control
291
Figure 10-16: Timing of PWM Output Operation (Detail)
292
Sub Oscillator Calibration Function
293
Figure 10-17: Multiplexed Inputs for Timer C Sub Oscillator Calibration Function
294
Precautions Timer C
295
Timer D
296
Features Timer D
296
Function Overview Timer Dn
296
Figure 10-18: Block Diagram of Timer Dn (N = 0, 1)
296
Basic Configuration
297
Table 10-3: Timer Dn Configuration List (N = 0, 1)
297
Figure 10-19: Timer Dn Counter Register (Tmdn) (N = 0, 1)
298
Figure 10-20: Timer Dn Compare Register (Cmdn) (N = 0, 1)
299
Figure 10-21: Timing of Timer Dn Operation
300
Control Register
301
Figure 10-22: Timer Dn Control Register (Tmcdn) (N = 0, 1)
301
Operation
302
Figure 10-23: Timing of Compare Operation (1/2)
302
Application Example
304
Precautions for Timer Dn
305
Timer G
306
Features of Timer G
306
Function Overview of each Timer Gn
307
Figure 10-24: Block Diagram of Timer Gn
308
Basic Configuration
309
Table 10-4: Timer Gn Configuration List
309
Figure 10-25: Timer Gn Counter 0 Value Registers Tmgn0
310
Figure 10-26: Timer Gn Counter 1 Value Registers Tmgn1
310
Figure 10-27: Timer Gn Counter Tmgn0 Assigned Capture/Compare Register (Gccn0)
311
Figure 10-28: Timer Gn Counter Tmgn1 Assigned Capture/Compare Register (Gccn5)
311
Figure 10-29: Timer Gn Free Assignable Capture/Compare Registers (Gccnm) (M = 1 to 4)
312
Control Registers
313
Figure 10-30: Timer Gn Mode Register (Tmgmn) (1/2)
313
Figure 10-31: Timer Gn Mode Register Low (Tmgmnl)
315
Figure 10-32: Timer Gn Mode Register Low (Tmgmnh)
315
Figure 10-33: Timer Gn Channel Mode Register (Tmgcmn)
316
Figure 10-34: Timer Gn Channel Mode Register (Tmgcmnl)
317
Figure 10-35: Timer Gn Channel Mode Register (Tmgcmnh)
317
Figure 10-36: Timer Gn Output Control Register (Octlgn)
318
Figure 10-37: Timer Gn Output Control Register Low (Octlgnl)
319
Figure 10-38: Timer Gn Output Control Register High (Octlgnh)
319
Figure 10-39: Timer Gn Status Register (Tmgstn)
320
Output Delay Operation
321
Figure 10-40: Timing of Output Delay Operation
321
Explanation of Basic Operation
322
Table 10-5: Interrupt Output and Timer Output States Dependent on the Register Setting Values
322
Table 10-6: Interrupt Output and Timer Output States Dependent on the Register Setting Values
323
Operation in Free-Run Mode
324
Figure 10-41: Timing When both Edges of Tign0 Are Valid (Free Run)
326
Figure 10-42: Timing of Capture Trigger Edge Detection (Free Run)
327
Figure 10-43: Timing of Starting Capture Trigger Edge Detection
328
Figure 10-44: Timing of Compare Mode (Free Run)
329
Figure 10-45: Timing When Gccn1 Is Rewritten During Operation (Free Run)
330
Figure 10-46: Timing of PWM Operation (Free Run)
332
Figure 10-47: Timing When 0000H Is Set in Gccnm (Free Run)
333
Figure 10-48: Timing When FFFFH Is Set in Gccnm (Free Run)
333
Figure 10-49: Timing When Gccnm Is Rewritten During Operation (Free Run)
334
Match and Clear Mode
335
Figure 10-50: Timing When both Edges of Tigm Are Valid (Match and Clear)
336
Figure 10-51: Timing of Compare Operation (Match and Clear)
338
Figure 10-52: Timing When Gccnm Is Rewritten During Operation (Match and Clear)
339
Figure 10-53: Timing of PWM Operation (Match and Clear)
341
Figure 10-54: Timing When 0000H Is Set in Gccnm (Match and Clear)
342
Figure 10-55: Timing When the same Value as Set in Gccn0/Gccn5 Is Set in Gccnm (Match and Clear)
343
Figure 10-56: Timing When the Value of Gccnm Exceeding Gccn0 or Gccn5 (Match and Clear)
344
Figure 10-57: Timing When Gccnm Is Rewritten During Operation (Match and Clear)
345
Edge Noise Elimination
346
Figure 10-58: Timing of Edge Detection Noise Elimination
346
10Precautions Timer Gn
347
Chapter 11 Watch Timer
349
Function
349
Figure 11-1: Block Diagram of Watch Timer
349
Configuration
350
Watch Timer Control Register
350
Figure 11-2: Watch Timer Mode Control Register (WTM) (1/2)
350
Table 11-1: Configuration of Watch Timer
350
Operations
352
Selection of the Watch Timer Clock
352
Table 11-2: Selection of the Watch Timer Clock
352
Control of the Watch Timer
353
Table 11-3: Example for Interval Time of Watch Timer
353
Operation as Interval Timer
354
Table 11-4: Example for Interval Time of Interval Timer
354
Figure 11-3: Operation Timing of Watch Timer/Interval Timer
355
Chapter 12 Watchdog Timer Function
357
Functions
357
Figure 12-1: Block Diagram of Watchdog Timer
357
Configuration
358
Table 12-1: Watchdog Timer Configuration
358
Watchdog Timer Control Register
359
Figure 12-2: Watchdog Timer Clock Selection Register (WDCS)
359
Figure 12-3: Watchdog Timer Mode Register (WDTM)
360
Figure 12-4: Watchdog Timer Mode Register (WCMD)
361
Figure 12-5: Watchdog Timer Mode Register (WPHS)
361
Operation
362
Operating as Watchdog Timer
362
Chapter 13 Serial Interface Function
363
Features
363
Asynchronous Serial Interfaces Uart5N (UART50, UART51)
364
Features
364
Configuration
365
Control Registers
367
Figure 13-2: Asynchronous Serial Interface Mode Registers (ASIM0, ASIM1) (1/3)
367
Figure 13-3: Asynchronous Serial Interface Status Registers (ASIS0, ASIS1)
370
Figure 13-4: Asynchronous Serial Interface Transmit Status Registers (ASIF0, ASIF1)
371
Figure 13-5: Reception Buffer Registers (RXB0, RXB1)
372
Figure 13-6: Transmission Buffer Registers (TXB0, TXB1)
373
Interrupt Requests
374
Table 13-1: Generated Interrupts and Default Priorities
374
Operation
375
Figure 13-7: Asynchronous Serial Interface Transmit/Receive Data Format
375
Figure 13-8: Asynchronous Serial Interface Transmission Completion Interrupt Timing
376
Table 13-2: Transmission Status and Whether or Not Writing Is Enabled
377
Figure 13-9: Continuous Transmission Starting Procedure
378
Figure 13-10: Continuous Transmission End Procedure
379
Figure 13-11: Asynchronous Serial Interface Reception Completion Interrupt Timing
380
Figure 13-12: When Reception Error Interrupt Is Separated from Intsrn Interrupt (ISRM Bit = 0)
381
Figure 13-13: When Reception Error Interrupt Is Included in Intsrn Interrupt (ISRM Bit = 1)
381
Table 13-3: Reception Error Causes
381
Figure 13-14: Noise Filter Circuit
383
Figure 13-15: Timing of Rxd5N Signal Judged as Noise
383
Dedicated Baud Rate Generators (BRG) of Uart5N (N = 0, 1)
384
Figure 13-16: Baud Rate Generator (BRG) Configuration of Uart5N (N = 0, 1)
384
Figure 13-17: Clock Select Registers (CHKSR0, CHKSR1)
385
Figure 13-18: Baud Rate Generator Control Registers (BRGC0, BRGC1)
386
Table 13-4: Baud Rate Generator Setting Data
388
Figure 13-19: Allowable Baud Rate Range During Reception
389
Table 13-5: Maximum and Minimum Allowable Baud Rate Error
390
Precautions
391
Figure 13-20: Transfer Rate During Continuous Transmission
391
Clocked Serial Interfaces (CSI00 to CSI02)
392
Features
392
Configuration
393
Figure 13-21: Block Diagram of Clocked Serial Interfaces
394
Control Registers
395
Figure 13-22: Clocked Serial Interface Mode Registers (CSIM0 to CSIM2)
395
Figure 13-23: Clocked Serial Interface Clock Selection Registers (CSIC0 to CSIC2) (1/2)
396
Figure 13-24: Clocked Serial Interface Reception Buffer Registers (SIRB0 to SIRB2)
398
Figure 13-25: Clocked Serial Interface Reception Buffer Registers Low (SIRBL0 to SIRBL2)
399
Figure 13-26: Clocked Serial Interface Read-Only Reception Buffer Registers (SIRBE0 to SIRBE2)
400
Figure 13-27: Clocked Serial Interface Read-Only Reception Buffer Registers Low (SIRBEL0 to SIRBEL1)
401
Figure 13-28: Clocked Serial Interface Transmission Buffer Registers (SOTB0 to SOTB2)
402
Figure 13-29: Clocked Serial Interface Transmission Buffer Registers Low (SOTBL0 to SOTBL2)
403
Figure 13-30: Clocked Serial Interface Initial Transmission Buffer Registers (SOTBF0 to SOTBF2)
404
Figure 13-31: Clocked Serial Interface Initial Transmission Buffer Registers Low (SOTBFL0 to SOTBFL2)
405
Figure 13-32: Serial I/O Shift Registers (SIO0 to SIO2)
406
Figure 13-33: Serial I/O Shift Registers Low (SIOL0 to SIOL2)
407
Operation
408
Figure 13-34: Timing Chart in Single Transfer Mode (1/2)
409
Figure 13-35: Timing Chart According to Clock Phase Selection (1/2)
411
Figure 13-36: Timing Chart of Interrupt Request Signal Output in Delay Mode (1/2)
413
Figure 13-37: Repeat Transfer (Receive-Only) Timing Chart
415
Figure 13-38: Repeat Transfer (Transmission/Reception) Timing Chart
417
Figure 13-39: Timing Chart of Next Transfer Reservation Period (1/2)
418
Figure 13-40: Transfer Request Clear and Register Access Contention
420
Figure 13-41: Interrupt Request and Register Access Contention
421
Output Pins
422
Dedicated Baud Rate Generators 0, 1 (BRG0, BRG1)
423
Figure 13-42: Baud Rate Generators 0, 1 (BRG0, BRG1) Block Diagram
423
Figure 13-43: Prescaler Mode Registers 0, 1 (PRSM0, PRSM1)
424
Figure 13-44: Prescaler Compare Registers 0, 1 (PRSCM0, PRSCM1)
425
Table 13-6: Baud Rate Generator Setting Data
426
Chapter 14 FCAN Interface Function
427
Features
427
Outline of the FCAN System
428
General
428
Figure 14-1: Functional Blocks of the FCAN Interface
428
CAN Memory and Register Layout
429
Figure 14-2: Memory Area of the FCAN System
429
Table 14-1: Configuration of the CAN Message Buffer Section
430
Table 14-2: CAN Message Buffer Registers Layout
431
Table 14-3: Relative Addresses of CAN Interrupt Pending Registers
432
Table 14-4: Relative Addresses of CAN Common Registers
433
Table 14-5: Relative Addresses of CAN Module 1 Registers
434
Table 14-6: Relative Addresses of CAN Module 2 Registers
435
Table 14-7: Relative Addresses of CAN Module 3
436
Table 14-8: Relative Addresses of CAN Module 4 Registers
437
Clock Structure
438
Figure 14-3: Clock Structure of the FCAN System
438
Interrupt Handling
439
Figure 14-4: FCAN Interrupt Bundling of V850E/CA2
439
Time Stamp
441
Figure 14-5: Time Stamp Capturing at Message Reception
441
Figure 14-6: Time Stamp Capturing at Message Transmission
442
Table 14-9: Transmitted Data on the CAN Bus (ATS = 1)
442
Message Handling
443
Table 14-10: Example for Automatic Transmission Priority Detection
444
Table 14-11: Example for Transmit Buffer Allocation When more than 5 Buffers
445
Table 14-12: Storage Priority for Reception of Data Frames
446
Table 14-13: Storage Priority for Reception of Remote Frames
446
Table 14-14: Inner Storage Priority Within a Priority Class
447
Mask Handling
448
Remote Frame Handling
449
Table 14-15: Remote Frame Handling Upon Reception into a Transmit Message Buffer
451
Control and Data Registers
452
Bit Set/Clear Function
452
Figure 14-7: 16-Bit Data Write Operation for Specific Registers
453
Common Registers
454
Figure 14-8: CAN Stop Register (CSTOP)
454
Figure 14-9: CAN Main Clock Select Register (CGSC) (1/2)
455
Figure 14-10: Configuration of FCAN System Main Clock
456
Figure 14-11: Configuration of FCAN Global Time System Clock
456
Figure 14-12: CAN Global Status Register (CGST) (1/3)
457
Figure 14-13: CAN Global Interrupt Enable Register (CGIE) (1/2)
460
Figure 14-14: CAN Timer Event Enable Register (CGTEN)
462
Figure 14-15: CAN Global Time System Counter and Event Generation
462
Figure 14-16: CAN Global Time System Counter (CGTSC)
463
Figure 14-17: CAN Message Search Start Register (CGMSS)
464
Figure 14-18: CAN Message Search Result Register (CGMSR)
465
Figure 14-19: CAN Test Bus Register (CTBR)
466
Figure 14-20: Internal CAN Test Bus Structure
466
CAN Interrupt Pending Registers
467
Figure 14-21: CAN Interrupt Pending Registers (CCINTPL, CCINTPH)
467
Figure 14-22: CAN Global Interrupt Pending Register (CGINTP) (1/2)
468
Figure 14-23: CAN 1 to 4 Interrupt Pending Registers (C1INTP to C4INTP) (1/2)
470
CAN Message Buffer Registers
472
Figure 14-24: Message Identifier Registers L00 to L31 and H00 to H31 (M_IDL00 to M_IDL31, M_IDH00 to M_IDH31)
472
Figure 14-25: Message Configuration Registers 00 to 31 (M_CONF00 to M_CONF31) (1/2)
473
Figure 14-26: Message Status Registers 00 to 31 (M_STAT00 to M_STAT31)
475
Table 14-16: CAN Message Processing by TRQ and RDY Bits
476
Figure 14-27: Message Set/Clear Status Registers 00 to 31 (SC_STAT00 to SC_STAT31)
477
Figure 14-28: Message Data Registers M0 to M7 (M_Datam0 to M_Datam7) (M = 00 to 31) (1/2)
478
Figure 14-29: Message Data Length Code Registers 00 to 31 (M_DLC00 to M_DLC31)
480
Figure 14-30: Message Control Registers 00 to 31 (M_CTRL00 to M_CTRL31) (1/2)
481
Figure 14-31: Message Time Stamp Registers 00 to 31 (M_TIME00 to M_TIME31)
483
(M_Evtm0, M_Evtm1, M_Evtm2, M_Evtm3) (M = 00 to 31)
484
CAN Module Registers
485
Figure 14-33: CAN 1 to 4 Mask 0 to 3 Registers L, H (Cxmaskl0 to Cxmaskl3, Cxmaskh0 to Cxmaskh3) (X = 1 to 4)
485
Table 14-17: Address Offsets of the CAN 1 to 4 Mask Registers
486
Figure 14-34: CAN 1 to 4 Control Registers (C1CTRL to C4CTRL) (1/5)
487
Figure 14-35: CAN 1 to 4 Definition Registers (C1DEF to C4DEF) (1/4)
492
Figure 14-36: CAN 1 to 4 Information Registers (C1LAST to C4LAST)
496
Figure 14-37: CAN 1 to 4 Error Counter Registers (C1ERC to C4ERC)
497
Figure 14-38: CAN 1 to 4 Interrupt Enable Registers (C1IE to C4IE) (1/3)
498
Figure 14-39: CAN 1 to 4 Bus Activity Registers (C1BA to C4BA) (1/2)
501
Figure 14-40: CAN 1 to 4 Bit Rate Prescaler Registers (C1BRP to C4BRP) (1/2)
503
Figure 14-41: CAN Bus Bit Timing
505
Figure 14-42: CAN 1 to 4 Synchronization Control Registers (C1SYNC to C4SYNC) (1/2))
506
Figure 14-43: CAN 1 to 4 Bus Diagnostic Information Registers (C1DINF to C4DINF)
508
Operating Considerations
509
Rules to be Observed for Correct Baud Rate Settings
509
Example for Baudrate Setting of CAN Module
510
Ensuring Data Consistency
512
Figure 14-44: Sequential CAN Data Read by CPU
512
Operating States of the CAN Modules
514
Figure 14-45: State Transition Diagram for CAN Modules
514
Initialisation Routines
515
Figure 14-46: General Initialisation Sequence for the CAN Interface
515
Figure 14-47: Initialisation Sequence for a CAN Module
517
Figure 14-48: Setting CAN Module into Initialisation State
519
Chapter 15 A/D Converter
523
Features
523
Configuration
524
Table 15-1: A/D Converter Configuration
524
Figure 15-1: Block Diagram of A/D Converter
526
Control Registers
527
Register Format of A/D Converter Control Register
527
Table 15-2: Register Format of A/D Converter Control Register
527
Figure 15-2: A/D Converter Mode Register (ADM)
528
Figure 15-3: A/D Converter Register (ADS)
530
Figure 15-4: A/D Conversion Result Register (ADCR)
531
Figure 15-5: A/D Conversion Result Register (ADCRL)
531
Figure 15-6: A/D Conversion Result Register (ADCRH)
532
Figure 15-7: Port Function Register (PORT7/PORT8)
533
Figure 15-8: Port Function Register 7 (PORT7)
534
Input Voltage and Conversion Results
535
Interrupt Request
536
Figure 15-9: Relation between Analog Input Voltage and A/D Conversion Result
536
A/D Converter Operation
537
A/D Converter Basic Operation
537
Operation Modes
538
Figure 15-10: no Write Operation Is Made to ADM or ADS Register During A/D Conversion Operation
538
Figure 15-11: ADCS Bit Is Cleared (0) During A/D Conversion Operation
539
Figure 15-12: a Write Operation Is Made to the ADS Register During A/D Conversion Operation
540
A/D Converter Precautions
541
Figure 15-13: Analog Input Pin Handling
541
How to Read the A/D Converter Characteristics Table
542
Figure 15-14: Overall Error
542
Figure 15-15: Quantization Error
543
Figure 15-16: Zero-Scale Error
543
Figure 15-17: Full-Scale Error
544
Figure 15-18: Nonlinearity Error
544
Chapter 16 Port Functions
545
Features
545
Port Configuration
546
Figure 16-1: Port Configuration
546
Table 16-1: Functions of each Port
547
Table 16-2: Port Pin Functions
548
Figure 16-2: Type a Block Diagram
551
Figure 16-3: Type B Block Diagram
552
Figure 16-4: Type C Block Diagram
553
Figure 16-5: Type D Block Diagram
554
Figure 16-6: Type E Block Diagram
555
Pin Functions of each Port
556
Port 1
556
Figure 16-7: Port 1 (P1)
556
Figure 16-8: Port 1 Mode Register (PM1)
557
Figure 16-9: Port 1 Mode Control Register (PMC1)
558
Port 2
559
Figure 16-10: Port 2 (P2)
559
Figure 16-11: Port 2 Mode Register (PM2)
560
Figure 16-12: Port 2 Mode Control Register (PMC2)
561
Port 3
562
Figure 16-13: Port 3 (P3)
562
Figure 16-14: Port 3 Mode Register (PM3)
563
Figure 16-15: Port 3 Mode Control Register (PMC3)
563
Port 4
564
Figure 16-16: Port 4 (P4)
564
Figure 16-17: Port 4 Mode Register (PM4)
565
Figure 16-18: Port 4 Mode Control Register (PMC4)
565
Port 5
566
Figure 16-19: Port 5 (P5)
566
Figure 16-20: Port 5 Mode Register (PM5)
567
Figure 16-21: Port 5 Mode Control Register (PMC5)
568
Port 6
569
Figure 16-22: Port 6 (P6)
569
Figure 16-23: Port 6 Mode Register (PM6)
570
Figure 16-24: Port 6 Mode Control Register (PMC6)
571
Port 7
572
Figure 16-25: Port Function Register 7 (P7)
572
Port 7/8
573
Figure 16-26: Port Function Register 7/8 (P7/P8)
573
Port 9
574
Figure 16-27: Port 9 (P9)
574
Figure 16-28: Port 9 Mode Register (PM9)
574
10Port AH
575
Figure 16-29: Port AH (PAH)
575
Figure 16-30: Port AH Mode Register (PMAH)
576
Figure 16-31: Port AH Mode Control Register (PMCAH)
576
11Port CS
577
Figure 16-32: Port CS (PCS)
577
Figure 16-33: Port CS Mode Register (PMCS)
578
Figure 16-34: Port CS Mode Control Register (PMCCS)
578
12Port CT
579
Figure 16-35: Port CT (PCT)
579
Figure 16-36: Port CT Mode Register (PMCT)
580
Figure 16-37: Port CT Mode Control Register (PMCCT)
580
13Port CM
581
Figure 16-38: Port CM (PCM)
581
Figure 16-39: Port CM Mode Register (PMCM)
582
Figure 16-40: Port CM Mode Control Register (PMCCM)
582
Chapter 17 RESET
583
Reset Overview
583
Features
583
Pin Functions
583
Table 17-1: Operation Status of each Pin During Reset Period
584
Reset by RESET Pin
585
Figure 17-1: Reset Signal Acknowledgment
585
Figure 17-2: Reset at Power-On
586
Reset by Watchdog Timer
587
Reset Output
587
Initialization
588
Table 17-2: Initial Values of CPU and Internal RAM after Reset
588
Appendix A List of Instruction Sets
589
Figure A-1: How to Read Instruction Set List
589
Table A-1: Symbols in Operand Description
590
Table A-2: Symbols Used for Op Code
590
Table A-3: Symbols Used for Operation Description
591
Table A-4: Symbols Used for Flag Operation
591
Table A-5: Condition Codes
592
Table A-6: Instruction Set List
593
Appendix B Index
601
Advertisement
Advertisement
Related Products
NEC V850E/CA1 ATOMIC
NEC V850E/MS1 UPD703101
NEC V850E/RS1
NEC V850ES/KE1
NEC V850ES/SG2 mPD703280
NEC V850ES/SG2 mPD703280Y
NEC V850ES/SG2 mPD703272Y
NEC V850ES/SG2 mPD703263Y
NEC V850ES/SG2 mPD703283Y
NEC V850E/IA3
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