Sign In
Upload
Manuals
Brands
Renesas Manuals
Microcontrollers
RTK7EKA4W1S00000BJ
Renesas RTK7EKA4W1S00000BJ Manuals
Manuals and User Guides for Renesas RTK7EKA4W1S00000BJ. We have
1
Renesas RTK7EKA4W1S00000BJ manual available for free PDF download: User Manual
Renesas RTK7EKA4W1S00000BJ User Manual (1317 pages)
32-bit MCU
Brand:
Renesas
| Category:
Microcontrollers
| Size: 17 MB
Table of Contents
Table of Contents
9
Features
47
1 Overview
48
Function Outline
48
Block Diagram
54
Part Numbering
54
Function Comparison
56
Pin Functions
57
Pin Assignments
60
Pin Lists
61
2 Cpu
64
Overview
64
Debug
64
Operating Frequency
65
MCU Implementation Options
66
Trace Interface
66
JTAG/SWD Interface
67
Debug Mode
67
Debug Mode Definition
67
Debug Mode Effects
67
Low Power Mode
67
Reset
67
Programmers Model
68
Address Spaces
68
Cortex-M4 Peripheral Address Map
68
Coresight ROM Table
69
ROM Entries
69
Coresight Component Registers
69
DBGREG Module
70
Debug Status Register (DBGSTR)
70
Debug Stop Control Register (DBGSTOPCR)
71
Trace Control Register (TRACECTR)
71
DBGREG Coresight Component Registers
72
OCDREG Module
72
ID Authentication Code Register (IAUTH0 to 3)
72
MCU Status Register (MCUSTAT)
73
MCU Control Register (MCUCTRL)
74
OCDREG Coresight Component Registers
74
Coresight ATB Funnel
75
Flash Patch and Break Unit
75
Systick System Timer
75
Coresight Time Stamp Generator
75
OCD Emulator Connection
75
Dbgen
76
Unlock ID Code
76
Restrictions on Connecting an OCD Emulator
76
Starting Connection While in Low Power Mode
76
Changing Low Power Mode While in OCD Mode
76
Modifying the Unlock ID Code in OSIS
77
Connecting Sequence and JTAG/SWD Authentication
77
References
78
3 Operating Modes
79
Overview
79
Details of Operating Modes
79
Single-Chip Mode
79
SCI Boot Mode
79
USB Boot Mode
79
Operating Mode Transitions
79
Operating Mode Transitions as Determined by the Mode-Setting Pin
79
4 Address Space
80
Overview
80
5 Memory Mirror Function (MMF)
81
Overview
81
Register Descriptions
81
Memmirror Special Function Register (MMSFR)
81
Memmirror Enable Register (MMEN)
82
Operation
82
MMF Operation
82
Setting Example
86
6 Resets
87
Overview
87
Register Descriptions
90
Reset Status Register 0 (RSTSR0)
90
Reset Status Register 1 (RSTSR1)
91
Reset Status Register 2 (RSTSR2)
93
Operation
94
RES Pin Reset
94
Power-On Reset
94
Voltage Monitor Reset
95
Independent Watchdog Timer Reset
96
Watchdog Timer Reset
96
Software Reset
97
Determination of Cold/Warm Start
97
Determination of Reset Generation Source
97
7 Option-Setting Memory
99
Overview
99
Register Descriptions
99
Option Function Select Register 0 (OFS0)
99
Option Function Select Register 1 (OFS1)
102
MPU Registers
103
Access Window Setting Control Register (AWSC)
104
Access Window Setting Register (AWS)
105
Ocd/Serial Programmer ID Setting Register (OSIS)
106
Setting Option-Setting Memory
107
Allocation of Data in Option-Setting Memory
107
Setting Data for Programming Option-Setting Memory
107
Usage Note
108
Data for Programming Reserved Areas and Reserved Bits in the Option-Setting Memory
108
8 Low Voltage Detection (LVD)
109
Overview
109
Register Descriptions
111
Voltage Monitor 1 Circuit Control Register 1 (LVD1CR1)
111
Voltage Monitor 1 Circuit Status Register (LVD1SR)
111
Voltage Monitor Circuit Control Register (LVCMPCR)
112
Voltage Detection Level Select Register (LVDLVLR)
112
Voltage Monitor 1 Circuit Control Register 0 (LVD1CR0)
113
VCC Input Voltage Monitor
113
Monitoring Vdet0
113
Monitoring Vdet1
113
Reset from Voltage Monitor 0
114
Interrupt and Reset from Voltage Monitor 1
114
Event Link Output
116
Interrupt Handling and Event Linking
116
9 Clock Generation Circuit
117
Overview
117
Register Descriptions
120
System Clock Division Control Register (SCKDIVCR)
120
System Clock Source Control Register (SCKSCR)
122
PLL Clock Control Register 2 (PLLCCR2)
123
PLL Control Register (PLLCR)
123
Memory Wait Cycle Control Register (MEMWAIT)
124
Main Clock Oscillator Control Register (MOSCCR)
126
Sub-Clock Oscillator Control Register (SOSCCR)
127
Low-Speed On-Chip Oscillator Control Register (LOCOCR)
128
High-Speed On-Chip Oscillator Control Register (HOCOCR)
129
Middle-Speed On-Chip Oscillator Control Register (MOCOCR)
130
Oscillation Stabilization Flag Register (OSCSF)
130
Oscillation Stop Detection Control Register (OSTDCR)
132
Oscillation Stop Detection Status Register (OSTDSR)
133
Main Clock Oscillator Wait Control Register (MOSCWTCR)
134
High-Speed On-Chip Oscillator Wait Control Register (HOCOWTCR)
135
Main Clock Oscillator Mode Oscillation Control Register (MOMCR)
136
Sub-Clock Oscillator Mode Control Register (SOMCR)
136
Segment LCD Source Clock Control Register (SLCDSCKCR)
137
Clock out Control Register (CKOCR)
138
LOCO User Trimming Control Register (LOCOUTCR)
139
MOCO User Trimming Control Register (MOCOUTCR)
139
HOCO User Trimming Control Register (HOCOUTCR)
140
Trace Clock Control Register (TRCKCR)
140
USB Clock Control Register (USBCKCR)
141
Main Clock Oscillator
141
Connecting a Crystal Resonator
141
External Clock Input
142
Notes on External Clock Input
142
Sub-Clock Oscillator
142
Connecting a 32.768-Khz Crystal Resonator
142
Dedicated Clock Oscillator for Bluetooth
142
Connecting the Oscillator
142
Connecting the Bluetooth-Dedicated Clock Output Pin
143
Oscillation Stop Detection Function
143
Oscillation Stop Detection and Operation after Detection
143
Oscillation Stop Detection Interrupts
145
PLL Circuit
146
Internal Clock
146
System Clock (ICLK)
146
Peripheral Module Clock (PCLKA, PCLKB, PCLKC, PCLKD)
147
Flash Interface Clock (FCLK)
148
USB Clock (UCLK)
148
CAN Clock (CANMCLK)
148
CAC Clock (CACCLK)
148
RTC-Dedicated Clock (RTCSCLK, RTCLCLK)
148
IWDT-Dedicated Clock (IWDTCLK)
148
AGT-Dedicated Clock (AGTSCLK, AGTLCLK)
149
Systick Timer-Dedicated Clock (SYSTICCLK)
149
Segment LCDC Source Clock (LCDSRCCLK)
149
Clock/Buzzer Output Clock (CLKOUT)
149
JTAG Clock (JTAGTCK)
149
Clocks for BLE
149
Usage Notes
149
Notes on Clock Generation Circuit
149
Notes on Resonator
150
Notes on Board Design
150
Notes on Resonator Connect Pin
150
10 Clock Frequency Accuracy Measurement Circuit (CAC)
151
Overview
151
Register Descriptions
152
CAC Control Register 0 (CACR0)
152
CAC Control Register 1 (CACR1)
153
CAC Control Register 2 (CACR2)
154
CAC Interrupt Control Register (CAICR)
155
CAC Status Register (CASTR)
156
CAC Upper-Limit Value Setting Register (CAULVR)
157
CAC Lower-Limit Value Setting Register (CALLVR)
157
CAC Counter Buffer Register (CACNTBR)
157
Operation
157
Measuring Clock Frequency
157
Digital Filtering of Signals on CACREF Pin
158
Interrupt Requests
159
Usage Note
159
Settings for the Module-Stop Function
159
11 Low Power Modes
160
Overview
160
Register Descriptions
163
Standby Control Register (SBYCR)
163
Module Stop Control Register a (MSTPCRA)
164
Module Stop Control Register B (MSTPCRB)
164
Module Stop Control Register C (MSTPCRC)
166
Module Stop Control Register D (MSTPCRD)
167
Operating Power Control Register (OPCCR)
168
Sub Operating Power Control Register (SOPCCR)
168
Snooze Control Register (SNZCR)
169
Snooze End Control Register (SNZEDCR)
170
Snooze Request Control Register (SNZREQCR)
171
Flash Operation Control Register (FLSTOP)
173
Power Save Memory Control Register (PSMCR)
173
System Control OCD Control Register (SYOCDCR)
174
Reducing Power Consumption by Switching Clock Signals
174
Module-Stop Function
174
Function for Lower Operating Power Consumption
174
Setting Operating Power Control Mode
174
Operating Range
176
Sleep Mode
179
Transition to Sleep Mode
179
Canceling Sleep Mode
179
Software Standby Mode
180
Transition to Software Standby Mode
180
Canceling Software Standby Mode
181
Example of Software Standby Mode Application
181
Snooze Mode
183
Transition to Snooze Mode
183
Canceling Snooze Mode
183
Return to Software Standby Mode
184
Snooze Operation Example
186
Usage Notes
189
Register Access
189
I/O Port States
190
Module-Stop State of DMAC and DTC
190
Internal Interrupt Sources
190
Transition to Low Power Modes
190
Timing of WFI Instruction
191
Writing WDT/IWDT Registers by DMAC or DTC in Sleep Mode or Snooze Mode
191
Oscillators in Snooze Mode
191
Snooze Mode Entry by RXD0 Falling Edge
191
Using SCI0 in Snooze Mode
191
Conditions of A/D Conversion Start in Snooze Mode
191
Conditions of CTSU in Snooze Mode
191
ELC Event in Snooze Mode
191
Module-Stop Function for ADC140
192
Module-Stop Function for an Unused Circuit
192
12 Battery Backup Function
193
Overview
193
Features of Battery Backup Function
193
Battery Power Supply Switch
193
VBATT Pin Low Voltage Detection
193
VBATT_R Low Voltage Detection
193
Backup Registers
193
VBATT Wakeup Control Function
193
Time Capture Pin Detection
194
Register Descriptions
196
VBATT Control Register 1 (VBTCR1)
196
VBATT Control Register 2 (VBTCR2)
197
VBATT Status Register (VBTSR)
197
VBATT Comparator Control Register (VBTCMPCR)
198
VBATT Pin Low Voltage Detect Interrupt Control Register (VBTLVDICR)
199
VBATT Backup Register (Vbtbkrn) (N = 0 to 511)
199
VBATT Wakeup Control Register (VBTWCTLR)
199
VBATT Wakeup I/O 0 Output Trigger Select Register (VBTWCH0OTSR)
200
VBATT Input Control Register (VBTICTLR)
200
VBATT Output Control Register (VBTOCTLR)
201
VBATT Wakeup Trigger Source Enable Register (VBTWTER)
201
VBATT Wakeup Trigger Source Edge Register (VBTWEGR)
202
VBATT Wakeup Trigger Source Flag Register (VBTWFR)
202
Backup Register Access Control Register (BKRACR)
203
Operation
204
Battery Backup Function
204
VBATT Battery Power Supply Switch Usage
205
VBATT Pin Low Voltage Detection Procedures
206
VBATT Backup Register Usage
207
VBATT Wakeup Control Function Usage
207
Usage Notes
208
13 Register Write Protection
209
Overview
209
Register Descriptions
209
Protect Register (PRCR)
209
14 Interrupt Controller Unit (ICU)
210
Overview
210
Register Descriptions
211
IRQ Control Register I (Irqcri) (I = 0 to 4, 6, 7, 9, 11, 14, 15)
212
Non-Maskable Interrupt Status Register (NMISR)
213
Non-Maskable Interrupt Enable Register (NMIER)
215
Non-Maskable Interrupt Status Clear Register (NMICLR)
217
NMI Pin Interrupt Control Register (NMICR)
218
ICU Event Link Setting Register N (Ielsrn)
219
DMAC Event Link Setting Register N (Delsrn)
220
SYS Event Link Setting Register (SELSR0)
221
Wake up Interrupt Enable Register (WUPEN)
221
Vector Table
223
Interrupt Vector Table
223
Event Number
224
Interrupt Operation
229
Detecting Interrupts
229
Selecting Interrupt Request Destinations
230
CPU Interrupt Request
230
DTC Activation
230
DMAC Activation
231
Digital Filter
231
External Pin Interrupts
232
Non-Maskable Interrupt Operation
232
Return from Low Power Mode
233
Return from Sleep Mode
233
Return from Software Standby Mode
233
Return from Snooze Mode
233
Using the WFI Instruction with Non-Maskable Interrupts
234
Reference
234
15 Buses
235
Overview
235
Description of Buses
236
Main Buses
236
Slave Interface
236
Parallel Operation
236
Restriction on Endianness
237
Register Descriptions
237
Master Bus Control Register (Busmcnt<Master>)
237
Slave Bus Control Register (Busscnt<Slave>)
238
Bus Error Address Register (Busnerradd) (N = 1 to 4)
239
Bus Error Status Register (Busnerrstat) (N = 1 to 4)
239
Bus Error Monitoring Section
240
Error Type that Occurs by Bus
240
Operation When a Bus Error Occurs
240
Conditions Leading to Illegal Address Access Errors
241
Timeout
241
Notes on Using Flash Cache
242
References
242
16 Memory Protection Unit (MPU)
243
Overview
243
CPU Stack Pointer Monitor
243
Protection of Registers
246
Overflow/Underflow Error
246
Register Descriptions
246
Main Stack Pointer (MSP) Monitor Start Address Register (MSPMPUSA)
247
Main Stack Pointer (MSP) Monitor End Address Register (MSPMPUEA)
247
Process Stack Pointer (PSP) Monitor Start Address Register (PSPMPUSA)
248
Process Stack Pointer (PSP) Monitor End Address Register (PSPMPUEA)
248
Stack Pointer Monitor Operation after Detection Register (MSPMPUOAD, PSPMPUOAD)
249
Stack Pointer Monitor Access Control Register (MSPMPUCTL, PSPMPUCTL)
249
Stack Pointer Monitor Protection Register (MSPMPUPT, PSPMPUPT)
250
Arm MPU
251
Bus Master MPU
251
Register Descriptions
252
Group a Region N Start Address Register (Mmpusan) (N = 0 to 15)
253
Group a Region N End Address Register (Mmpuean) (N = 0 to 15)
253
Group a Region N Access Control Register (Mmpuacan) (N = 0 to 15)
253
Bus Master MPU Control Register (MMPUCTLA)
255
Group a Protection of Register (MMPUPTA)
256
Operation
256
Memory Protection
256
Protecting the Registers
258
Memory Protection Error
258
Bus Slave MPU
259
Register Descriptions
260
Access Control Register for Memory Bus 3 (SMPUMBIU)
260
Access Control Register for Internal Peripheral Bus 9 (SMPUFBIU)
260
Access Control Register for Memory Bus 4 (SMPUSRAM0)
261
Access Control Register for Internal Peripheral Bus 1 (SMPUP0BIU)
261
Access Control Register for Internal Peripheral Bus 3 (SMPUP2BIU)
262
Access Control Register for Internal Peripheral Bus 7 (SMPUP6BIU)
263
Slave MPU Control Register (SMPUCTL)
263
Functions
264
Memory Protection
264
Protecting the Registers
264
Memory Protection Error
264
Security MPU
264
Register Descriptions (Option-Setting Memory)
265
Security MPU Program Counter Start Address Register (Secmpupcsn) (N = 0, 1)
266
Security MPU Program Counter End Address Register (Secmpupcen) (N = 0, 1)
267
Security MPU Region 0 Start Address Register (SECMPUS0)
267
Security MPU Region 0 End Address Register (SECMPUE0)
268
Security MPU Region 1 Start Address Register (SECMPUS1)
268
Security MPU Region 1 End Address Register (SECMPUE1)
269
Security MPU Region 2 Start Address Register (SECMPUS2)
269
Security MPU Region 2 End Address Register (SECMPUE2)
270
Security MPU Region 3 Start Address Register (SECMPUS3)
270
Security MPU Region 3 End Address Register (SECMPUE3)
271
Security MPU Access Control Register (SECMPUAC)
271
Memory Protection
272
Notes on Debug
273
References
273
17 DMA Controller (DMAC)
274
Overview
274
Register Descriptions
276
DMA Source Address Register (DMSAR)
276
DMA Destination Address Register (DMDAR)
276
DMA Transfer Count Register (DMCRA)
277
DMA Block Transfer Count Register (DMCRB)
278
DMA Transfer Mode Register (DMTMD)
278
DMA Interrupt Setting Register (DMINT)
279
DMA Address Mode Register (DMAMD)
280
DMA Offset Register (DMOFR)
282
DMA Transfer Enable Register (DMCNT)
282
DMA Software Start Register (DMREQ)
283
DMA Status Register (DMSTS)
284
DMAC Module Activation Register (DMAST)
285
Operation
285
Transfer Mode
285
Extended Repeat Area Function
288
Address Update Function Using Offset
290
Activation Sources
294
Operation Timing
294
Execution Cycles of DMAC
295
Activating DMAC
295
Starting DMA Transfer
297
Registers During DMA Transfer
297
Channel Priority
298
Ending DMA Transfer
298
Transfer End by Completion of Specified Total Number of Transfer Operations
298
Transfer End by Repeat Size End Interrupt
298
Transfer End by Interrupt on Extended Repeat Area Overflow
298
Precautions for the End of DMA Transfer
299
Interrupts
299
Event Link
300
Low Power Consumption Function
300
Usage Notes
301
Access to Registers During DMA Transfer
301
DMA Transfer to Reserved Areas
301
Setting the DMAC Event Link Setting Register of the Interrupt Controller Unit (Icu.delsrn)
301
Suspending or Restarting DMA Activation
301
18 Data Transfer Controller (DTC)
302
Overview
302
Register Descriptions
303
DTC Mode Register a (MRA)
304
DTC Mode Register B (MRB)
304
DTC Transfer Source Register (SAR)
305
DTC Transfer Destination Register (DAR)
306
DTC Transfer Count Register a (CRA)
306
DTC Transfer Count Register B (CRB)
307
DTC Control Register (DTCCR)
307
DTC Vector Base Register (DTCVBR)
308
DTC Module Start Register (DTCST)
308
DTC Status Register (DTCSTS)
309
Activation Sources
309
Allocating Transfer Information and DTC Vector Table
310
Operation
311
Transfer Information Read Skip Function
313
Transfer Information Write-Back Skip Function
313
Normal Transfer Mode
314
Repeat Transfer Mode
315
Block Transfer Mode
316
Chain Transfer
317
Operation Timing
318
Execution Cycles of DTC
320
DTC Bus Mastership Release Timing
320
DTC Setting Procedure
320
Examples of DTC Usage
321
Normal Transfer
321
Chain Transfer
322
Chain Transfer When Counter = 0
324
Interrupt Source
325
Event Link
325
Snooze Control Interface
325
Module-Stop Function
325
18.11 Usage Notes
326
Transfer Information Start Address
326
19 Event Link Controller (ELC)
327
Overview
327
Register Descriptions
328
Event Link Controller Register (ELCR)
328
Event Link Software Event Generation Register N (Elsegrn) (N = 0, 1)
328
Event Link Setting Register N (Elsrn) (N = 0 to 9, 12, 14 to 18)
329
Operation
333
Relation between Interrupt Handling and Event Linking
333
Linking Events
333
Example of Procedure for Linking Events
333
Usage Notes
334
Linking DMAC or DTC Transfer End Signals as Events
334
Setting Clocks
334
Module-Stop Function Setting
334
ELC Delay Time
334
20 I/O Ports
335
Overview
335
Register Descriptions
336
Port Control Register 1 (PCNTR1/PODR/PDR)
336
Port Control Register 2 (PCNTR2/EIDR/PIDR)
337
Port Control Register 3 (PCNTR3/PORR/POSR)
338
Port Control Register 4 (PCNTR4/EORR/EOSR)
339
Port Mn Pin Function Select Register (Pmnpfs/Pmnpfs_Ha/Pmnpfs_By)
340
Write-Protect Register (PWPR)
342
Operation
342
General I/O Ports
342
Port Function Select
342
Port Group Function for the ELC
343
Behavior When ELC_PORT1, 2, 3, or 4 Is Input from the ELC
343
Behavior When an Event Pulse Is Output to the ELC
344
Handling of Unused Pins
345
Usage Notes
345
Procedure for Specifying the Pin Functions
345
Procedure for Using Port Group Input
345
Port Output Data Register (PODR) Summary
346
Notes on Using Analog Functions
346
I/O Buffer Specification
346
Selecting the USB_DP and USB_DM Pins
346
Pull-Up/Pull-Down Setting for P914 and P915 Using USBFS/GPIO Function
347
Peripheral Select Settings for each Product
347
21 Key Interrupt Function (KINT)
355
Overview
355
Register Descriptions
357
Key Return Control Register (KRCTL)
357
Key Return Flag Register (KRF)
357
Key Return Mode Register (KRM)
357
Operation
358
Operation When Not Using Key Interrupt Flag (KRMD = 0)
358
Operation When Using Key Interrupt Flag (KRMD = 1)
358
Usage Notes
360
22 Port Output Enable for GPT (POEG)
361
Overview
361
Register Descriptions
362
POEG Group N Setting Register (Poeggn) (N = A, B)
362
Output-Disable Control Operation
363
Pin Input Level Detection Operation
364
Digital Filter
364
Output-Disable Request from GPT
364
Output-Disable Control on Detection of Stopped Oscillation
364
Output-Disable Control Using Registers
364
Release from Output Disable
364
Interrupt Sources
365
External Trigger Output to GPT
365
Usage Notes
366
Transition to Software Standby Mode
366
Specifying Pins Associated with the GPT
366
23 General PWM Timer (GPT)
367
Overview
367
Register Descriptions
371
General PWM Timer Write-Protection Register (GTWP)
372
General PWM Timer Software Start Register (GTSTR)
372
General PWM Timer Software Stop Register (GTSTP)
373
General PWM Timer Software Clear Register (GTCLR)
373
General PWM Timer Start Source Select Register (GTSSR)
374
General PWM Timer Stop Source Select Register (GTPSR)
376
General PWM Timer Clear Source Select Register (GTCSR)
379
General PWM Timer up Count Source Select Register (GTUPSR)
381
General PWM Timer down Count Source Select Register (GTDNSR)
384
General PWM Timer Input Capture Source Select Register a(GTICASR)
386
General PWM Timer Input Capture Source Select Register B(GTICBSR)
389
General PWM Timer Control Register (GTCR)
391
General PWM Timer Count Direction and Duty Setting Register (GTUDDTYC)
393
General PWM Timer I/O Control Register (GTIOR)
395
General PWM Timer Interrupt Output Setting Register (GTINTAD)
398
General PWM Timer Status Register (GTST)
399
General PWM Timer Buffer Enable Register (GTBER)
403
General PWM Timer Counter (GTCNT)
404
General PWM Timer Compare Capture Register N (Gtccrn) (N = a to F)
405
General PWM Timer Cycle Setting Register (GTPR)
405
General PWM Timer Cycle Setting Buffer Register (GTPBR)
406
General PWM Timer Dead Time Control Register (GTDTCR)
406
General PWM Timer Dead Time Value Register U (GTDVU)
407
Output Phase Switching Control Register (OPSCR)
407
Operation
409
Basic Operation
409
Counter Operation
409
Waveform Output by Compare Match
415
Input Capture Function
418
Buffer Operation
420
GTPR Register Buffer Operation
420
Buffer Operation for GTCCRA and GTCCRB
423
PWM Output Operating Mode
428
Saw-Wave PWM Mode
428
Saw-Wave One-Shot Pulse Mode
431
Triangle-Wave PWM Mode 1 (32-Bit Transfer at Trough)
433
Triangle-Wave PWM Mode 2 (32-Bit Transfer at Crest and Trough)
436
Triangle-Wave PWM Mode 3 (64-Bit Transfer at Trough)
438
Automatic Dead Time Setting Function
440
Count Direction Changing Function
444
Function of Output Duty 0% and 100
445
Hardware Count Start/Count Stop and Clear Operation
447
Hardware Start Operation
447
Hardware Stop Operation
448
Hardware Clear Operation
451
Synchronized Operation
454
Synchronized Operation by Software
454
Synchronized Operation by Hardware
456
PWM Output Operation Examples
458
Phase Counting Function
464
Output Phase Switching (GPT_OPS)
471
Input Selection and Synchronization of External Input Signal
474
Input Sampling
475
Input Phase Decode
475
Output Selection Control
475
Output Selection Control (Group Output Disable Function)
477
Event Link Controller (ELC) Output
477
GPT_OPS Start Operation Setting Flow
478
Interrupt Sources
478
DMAC/DTC Activation
482
Operations Linked by ELC
482
Event Signal Output to ELC
482
Event Signal Inputs from ELC
482
Noise Filter Function
482
Protection Function
483
Write-Protection for Registers
483
Disabling of Buffer Operation
483
GTIOC Pin Output Negate Control
484
Initialization Method of Output Pins
485
Pin Settings after Reset
485
Pin Initialization Due to Error During Operation
486
Usage Notes
486
Module-Stop Function Setting
486
Gtccrn Settings During Compare Match Operation (N = a to F)
486
Setting Range for GTCNT Counter
487
Starting and Stopping the GTCNT Counter
487
Priority Order of each Event
487
24 Asynchronous General Purpose Timer (AGT)
489
Overview
489
Register Descriptions
491
AGT Counter Register (AGT)
491
AGT Compare Match a Register (AGTCMA)
491
AGT Compare Match B Register (AGTCMB)
492
AGT Control Register (AGTCR)
492
AGT Mode Register 1 (AGTMR1)
494
AGT Mode Register 2 (AGTMR2)
495
AGT I/O Control Register (AGTIOC)
495
AGT Event Pin Select Register (AGTISR)
496
AGT Compare Match Function Select Register (AGTCMSR)
497
AGT Pin Select Register (AGTIOSEL)
497
Operation
498
Reload Register and Counter Rewrite Operation
498
Reload Register and Compare Register A/B Rewrite Operation
499
Timer Mode
500
Pulse Output Mode
501
Event Counter Mode
502
Pulse Width Measurement Mode
503
Pulse Period Measurement Mode
504
Compare Match Function
505
Output Settings for each Mode
507
Standby Mode
507
Interrupt Sources
508
Event Signal Output to ELC
508
Usage Notes
508
Count Operation Start and Stop Control
508
Access to Counter Register
509
When Changing Mode
509
Digital Filter
509
How to Calculate Event Number, Pulse Width, and Pulse Period
509
When Count Is Forcibly Stopped by TSTOP Bit
510
When Selecting AGT0 Underflow as the Count Source
510
Reset of I/O Register
510
When Selecting PCLKB, PCLKB/8, or PCLKB/2 as the Count Source
510
When Selecting AGTLCLK or AGTSCLK as the Count Source
510
When Switching Source Clock
510
25 Realtime Clock (RTC)
511
Overview
511
Register Descriptions
513
64-Hz Counter (R64CNT)
513
Second Counter (Rseccnt)/Binary Counter 0 (BCNT0)
513
Minute Counter (Rmincnt)/Binary Counter 1 (BCNT1)
514
Hour Counter (Rhrcnt)/Binary Counter 2 (BCNT2)
515
Day-Of-Week Counter (Rwkcnt)/Binary Counter 3 (BCNT3)
516
Day Counter (RDAYCNT)
517
Month Counter (RMONCNT)
517
Year Counter (RYRCNT)
518
Second Alarm Register (Rsecar)/Binary Counter 0 Alarm Register (BCNT0AR)
518
Minute Alarm Register (Rminar)/Binary Counter 1 Alarm Register (BCNT1AR)
519
Hour Alarm Register (Rhrar)/Binary Counter 2 Alarm Register (BCNT2AR)
520
Day-Of-Week Alarm Register (Rwkar)/Binary Counter 3 Alarm Register (BCNT3AR)
521
Date Alarm Register (Rdayar)/Binary Counter 0 Alarm Enable Register (BCNT0AER)
522
Month Alarm Register (Rmonar)/Binary Counter 1 Alarm Enable Register (BCNT1AER)
523
Year Alarm Register (Ryrar)/Binary Counter 2 Alarm Enable Register (BCNT2AER)
524
Year Alarm Enable Register (Ryraren)/Binary Counter 3 Alarm Enable Register (BCNT3AER)
525
RTC Control Register 1 (RCR1)
526
RTC Control Register 2 (RCR2)
527
RTC Control Register 4 (RCR4)
530
Frequency Register (RFRH/RFRL)
531
Time Error Adjustment Register (RADJ)
532
Time Capture Control Register 0 (RTCCR0)
532
Second Capture Register 0 (RSECCP0) /BCNT0 Capture Register 0
534
(Bcnt0Cp0)
534
Minute Capture Register 0 (RMINCP0)/BCNT1 Capture Register 0 (BCNT1CP0)
534
Hour Capture Register 0 (RHRCP0) /BCNT2 Capture Register 0 (BCNT2CP0)
535
Date Capture Register 0 (RDAYCP0) /BCNT3 Capture Register 0 (BCNT3CP0)
536
Month Capture Register 0 (RMONCP0)
537
Operation
537
Outline of Initial Settings of Registers after Power on
537
Clock and Count Mode Setting Procedure
537
Setting the Time
538
30-Second Adjustment
539
Reading 64-Hz Counter and Time
540
Alarm Function
541
Procedure for Disabling Alarm Interrupt
541
Time Error Adjustment Function
542
Automatic Adjustment
542
Adjustment by Software
543
Procedure for Changing the Mode of Adjustment
543
Procedure for Stopping Adjustment
544
Capturing the Time
544
Interrupt Sources
545
Event Link Output
546
Interrupt Handling and Event Linking
547
Usage Notes
547
Register Writing During Counting
547
Use of Periodic Interrupts
547
RTCOUT (1-Hz/64-Hz) Clock Output
548
Transitions to Low Power Modes after Setting Registers
548
Notes on Writing to and Reading from Registers
548
Changing the Count Mode
548
Initialization Procedure When the RTC Is Not to be Used
548
When Switching Source Clock
549
26 Watchdog Timer (WDT)
550
Overview
550
Register Descriptions
551
WDT Refresh Register (WDTRR)
551
WDT Control Register (WDTCR)
552
WDT Status Register (WDTSR)
554
WDT Reset Control Register (WDTRCR)
555
WDT Count Stop Control Register (WDTCSTPR)
556
Option Function Select Register 0 (OFS0)
556
Operation
556
Count Operation in each Start Mode
556
Register Start Mode
556
Auto Start Mode
558
Controlling Writes to the WDTCR, WDTRCR, and WDTCSTPR Registers
559
Refresh Operation
560
Reset Output
561
Interrupt Sources
561
Reading the Down-Counter Value
561
Associations between Option Function Select Register 0 (OFS0) and WDT Registers
562
Link Operation by ELC
562
Usage Notes
562
ICU Event Link Setting Register N (Ielsrn) Setting
562
27 Independent Watchdog Timer (IWDT)
563
Overview
563
Register Descriptions
564
IWDT Refresh Register (IWDTRR)
564
IWDT Status Register (IWDTSR)
565
Option Function Select Register 0 (OFS0)
566
Operation
568
Auto Start Mode
568
Refresh Operation
569
Status Flags
570
Reset Output
571
Interrupt Sources
571
Reading the Down-Counter Value
571
Link Operation by ELC
571
Usage Notes
572
Refresh Operations
572
Clock Division Ratio Setting
572
28 USB 2.0 Full-Speed Module (USBFS)
573
Overview
573
Register Descriptions
575
System Configuration Control Register (SYSCFG)
575
System Configuration Status Register 0 (SYSSTS0)
576
Device State Control Register 0 (DVSTCTR0)
577
CFIFO Port Register (CFIFO/CFIFOL)
579
D0FIFO Port Register (D0FIFO/D0FIFOL)
579
D1FIFO Port Register (D1FIFO/D1FIFOL)
579
CFIFO Port Select Register (CFIFOSEL)
581
D0FIFO Port Select Register (D0FIFOSEL)
581
D1FIFO Port Select Register (D1FIFOSEL)
581
CFIFO Port Control Register (CFIFOCTR)
584
D0FIFO Port Control Register (D0FIFOCTR)
584
D1FIFO Port Control Register (D1FIFOCTR)
584
Interrupt Enable Register 0 (INTENB0)
585
Interrupt Enable Register 1 (INTENB1)
586
BRDY Interrupt Enable Register (BRDYENB)
587
NRDY Interrupt Enable Register (NRDYENB)
588
BEMP Interrupt Enable Register (BEMPENB)
588
SOF Output Configuration Register (SOFCFG)
589
Interrupt Status Register 0 (INTSTS0)
590
Interrupt Status Register 1 (INTSTS1)
592
BRDY Interrupt Status Register (BRDYSTS)
595
NRDY Interrupt Status Register (NRDYSTS)
595
BEMP Interrupt Status Register (BEMPSTS)
596
Frame Number Register (FRMNUM)
597
USB Request Type Register (USBREQ)
598
USB Request Value Register (USBVAL)
598
USB Request Index Register (USBINDX)
599
USB Request Length Register (USBLENG)
600
DCP Configuration Register (DCPCFG)
600
DCP Maximum Packet Size Register (DCPMAXP)
601
DCP Control Register (DCPCTR)
602
Pipe Window Select Register (PIPESEL)
605
Pipe Configuration Register (PIPECFG)
606
Pipe Maximum Packet Size Register (PIPEMAXP)
608
Pipe Cycle Control Register (PIPEPERI)
609
Pipen Control Registers (Pipenctr) (N = 1 to 9)
610
Pipen Transaction Counter Enable Register (Pipentre) (N = 1 to 5)
616
Pipen Transaction Counter Register (Pipentrn) (N = 1 to 5)
617
Device Address N Configuration Register (Devaddn) (N = 0 to 5)
618
USB Module Control Register (USBMC)
618
BC Control Register 0 (USBBCCTRL0)
619
Operation
620
System Control
620
Setting Data to the USBFS-Related Registers
620
Selecting the Controller Function
620
Controlling the USBFS Data Bus Using Resistors
620
Example of USB External Connection Circuits
621
Interrupt Sources
625
Interrupt Descriptions
629
BRDY Interrupt
629
NRDY Interrupt
632
BEMP Interrupt
634
Device State Transition Interrupt (Device Controller Mode)
635
Control Transfer Stage Transition Interrupt (Device Controller Mode)
636
Frame Update Interrupt
637
VBUS Interrupt
637
Resume Interrupt
638
OVRCR Interrupt
638
BCHG Interrupt
638
DTCH Interrupt
638
SACK Interrupt
638
SIGN Interrupt
638
ATTCH Interrupt
638
EOFERR Interrupt
638
Portable Device Detection Interrupt
639
Pipe Control
639
Pipe Control Register Switching Procedures
639
Transfer Types
640
Endpoint Number
640
Maximum Packet Size Setting
640
Transaction Counter for Pipes 1 to 5 in the Receiving Direction
640
Response PID
641
Data PID Sequence Bit
642
Response PID = NAK Function
642
Auto Response Mode
642
OUT-NAK Mode
642
Null Auto Response Mode
643
FIFO Buffer Memory
643
FIFO Buffer Clearing
643
FIFO Port Functions
644
DMA Transfers (D0FIFO and D1FIFO Ports)
645
Control Transfers Using DCP
645
Control Transfers in Host Controller Mode
646
Control Transfers in Device Controller Mode
646
Bulk Transfers (Pipes 1 to 5)
647
Interrupt Transfers (Pipes 6 to 9)
647
Interval Counter for Interrupt Transfers in Host Controller Mode
648
Isochronous Transfers (Pipes 1 and 2)
648
Error Detection in Isochronous Transfers
648
Data-Pid
649
Interval Counter
649
SOF Interpolation Function
655
Pipe Schedule
655
Conditions for Generating Transactions
655
Transfer Schedule
656
Enabling USB Communication
656
Battery Charging Detection Processing
656
Processing in Device Controller Mode
656
Processing When Host Controller Is Selected
658
Usage Notes
661
Settings for the Module-Stop State
661
Clearing the Interrupt Status Register on Exiting Software Standby Mode
661
Clearing the Interrupt Status Register after Setting up the Port Function
661
29 Serial Communications Interface (SCI)
663
Overview
663
Register Descriptions
666
Receive Shift Register (RSR)
666
Receive Data Register (RDR)
666
Receive 9-Bit Data Register (RDRHL)
667
Receive FIFO Data Register H, L, HL (FRDRH, FRDRL, FRDRHL)
667
Transmit Data Register (TDR)
668
Transmit 9-Bit Data Register (TDRHL)
669
Transmit FIFO Data Register H, L, HL (FTDRH, FTDRL, FTDRHL)
669
Transmit Shift Register (TSR)
670
(Scmr.smif = 0)
670
(Scmr.smif = 1)
672
(Scmr.smif = 0)
673
(Scmr.smif = 1)
675
Serial Status Register (SSR) for Non-Smart Card Interface and Non-FIFO Mode
677
(SCMR.SMIF = 0 and FCR.FM = 1)
679
(Scmr.smif = 1)
682
Smart Card Mode Register (SCMR)
684
Bit Rate Register (BRR)
685
Modulation Duty Register (MDDR)
692
Serial Extended Mode Register (SEMR)
694
Noise Filter Setting Register (SNFR)
696
I 2 C Mode Register 1 (SIMR1)
696
I 2 C Mode Register 2 (SIMR2)
697
I 2 C Mode Register 3 (SIMR3)
698
I 2 C Status Register (SISR)
699
SPI Mode Register (SPMR)
700
FIFO Control Register (FCR)
701
FIFO Data Count Register (FDR)
703
Line Status Register (LSR)
703
Compare Match Data Register (CDR)
704
Data Compare Match Control Register (DCCR)
704
Serial Port Register (SPTR)
706
Operation in Asynchronous Mode
706
Serial Data Transfer Format
707
Receive Data Sampling Timing and Reception Margin in Asynchronous Mode
709
Clock
709
Double-Speed Operation and Frequency of 6 Times the Bit Rate
710
CTS and RTS Functions
710
Address Match (Receive Data Match Detection) Function
711
SCI Initialization in Asynchronous Mode
714
Serial Data Transmission in Asynchronous Mode
715
Serial Data Reception in Asynchronous Mode
720
Multi-Processor Communications Function
728
Multi-Processor Serial Data Transmission
729
Multi-Processor Serial Data Reception
732
Operation in Clock Synchronous Mode
737
Clock
738
CTS and RTS Functions
738
SCI Initialization in Clock Synchronous Mode
739
Serial Data Transmission in Clock Synchronous Mode
741
Serial Data Reception in Clock Synchronous Mode
745
Simultaneous Serial Data Transmission and Reception in Clock Synchronous Mode
751
Operation in Smart Card Interface Mode
753
Example Connection
753
Data Format (Except in Block Transfer Mode)
754
Block Transfer Mode
756
Receive Data Sampling Timing and Reception Margin
756
SCI Initialization
757
Serial Data Transmission (Except in Block Transfer Mode)
759
Serial Data Reception (Except in Block Transfer Mode)
761
Clock Output Control
763
Operation in Simple IIC Mode
764
Generation of Start, Restart, and Stop Conditions
765
Clock Synchronization
766
SDA Output Delay
767
SCI Initialization in Simple IIC Mode
768
Operation in Master Transmission (Simple IIC Mode)
768
Master Reception in Simple IIC Mode
771
Operation in Simple SPI Mode
773
States of Pins in Master and Slave Modes
773
SS Function in Master Mode
774
SS Function in Slave Mode
774
Relationship between Clock and Transmit/Receive Data
774
SCI Initialization in Simple SPI Mode
775
Transmission and Reception of Serial Data in Simple SPI Mode
775
Bit Rate Modulation Function
775
29.10 Interrupt Sources
776
Buffer Operations for Scin_Txi and Scin_Rxi Interrupts (Non-FIFO Selected)
776
Buffer Operations for Scin_Txi and Scin_Rxi Interrupts (FIFO Selected)
776
Interrupts in Asynchronous, Clock Synchronous, and Simple SPI Modes
776
Interrupts in Smart Card Interface Mode
778
Interrupts in Simple IIC Mode
779
29.11 Event Linking
779
Address Mismatch Event Output (SCI0_DCUF)
780
29.13 Noise Cancellation Function
780
29.14 Usage Notes
781
Settings for the Module-Stop State
781
SCI Operations During Low Power State
781
Break Detection and Processing
786
Mark State and Production of Breaks
787
Receive Error Flags and Transmit Operations in Clock Synchronous and Simple SPI Modes
787
Restrictions on Clock Synchronous Transmission in Clock Synchronous and Simple SPI Modes
787
Restrictions on Using DMAC or DTC
788
Notes on Starting Transfer
789
External Clock Input in Clock Synchronous and Simple SPI Modes
789
Limitations on Simple SPI Mode
789
1 I 2 C Bus Interface (IIC)
791
Overview
791
Register Descriptions
794
I 2 C Bus Control Register 1 (ICCR1)
794
C Bus Control Register 2 (ICCR2)
796
I 2 C Bus Mode Register 1 (ICMR1)
799
I 2 C Bus Mode Register 2 (ICMR2)
800
C Bus Mode Register 3 (ICMR3)
801
I 2 C Bus Function Enable Register (ICFER)
803
C Bus Status Enable Register (ICSER)
804
C Bus Interrupt Enable Register (ICIER)
805
C Bus Status Register 1 (ICSR1)
806
C Bus Status Register 2 (ICSR2)
808
I 2 C Bus Wakeup Unit Register (ICWUR)
811
C Bus Wakeup Unit Register 2 (ICWUR2)
812
Slave Address Register Ly (Sarly) (y = 0 to 2)
813
Slave Address Register Uy (Saruy) (y = 0 to 2)
814
C Bus Bit Rate Low-Level Register (ICBRL)
814
I 2 C Bus Bit Rate High-Level Register (ICBRH)
815
C Bus Transmit Data Register (ICDRT)
816
C Bus Receive Data Register (ICDRR)
816
C Bus Shift Register (ICDRS)
817
Operation
817
Communication Data Format
817
Initial Settings
818
Master Transmit Operation
819
Master Receive Operation
823
Slave Transmit Operation
828
Slave Receive Operation
831
SCL Synchronization Circuit
833
SDA Output Delay Function
834
Digital Noise Filter Circuits
834
Address Match Detection
835
Slave-Address Match Detection
835
Detection of General Call Address
837
Device ID Address Detection
838
Host Address Detection
839
Wakeup Function
840
Normal Wakeup Mode 1
841
Normal Wakeup Mode 2
844
Command Recovery Mode/ EEP Response Mode (Special Wakeup Mode)
846
Precautions for WFI Instruction Execution
849
Automatic Low-Hold Function for SCL
849
Function to Prevent Wrong Transmission of Transmit Data
849
NACK Reception Transfer Suspension Function
850
Function to Prevent Failure to Receive Data
851
30.10 Arbitration-Lost Detection Functions
852
Master Arbitration-Lost Detection (MALE Bit)
852
Function to Detect Loss of Arbitration During NACK Transmission (NALE Bit)
854
Slave Arbitration-Lost Detection (SALE Bit)
855
30.11 Start, Restart, and Stop Condition Issuing Function
856
Issuing a Start Condition
856
Issuing a Restart Condition
856
Issuing a Stop Condition
858
30.12 Bus Hanging
859
Timeout Function
859
Extra SCL Clock Cycle Output Function
860
IIC Reset and Internal Reset
861
30.13 Smbus Operation
861
Smbus Timeout Measurement
861
Packet Error Code (PEC)
862
Smbus Host Notification Protocol (Notify ARP Master Command)
863
30.14 Interrupt Sources
863
Buffer Operation for Iicn_Txi and Iicn_Rxi Interrupts
864
30.15 State of Registers When Issuing each Condition
864
30.16 Event Link Output
865
Interrupt Handling and Event Linking
865
30.17 Usage Notes
865
Settings for the Module-Stop State
865
Notes on Starting Transfer
865
31 Controller Area Network (CAN) Module
866
Overview
866
Register Descriptions
868
Control Register (CTLR)
868
Bit Configuration Register (BCR)
871
Mask Register K (Mkrk) (K = 0 to 7)
873
FIFO Received ID Compare Registers 0 and 1 (FIDCR0 and FIDCR1)
873
Mask Invalid Register (MKIVLR)
875
Mailbox Register J (Mbj_Id, Mbj_Dl, Mbj_Dm, Mbj_Ts) (J = 0 to 31, M = 0 to 7)
875
Mailbox Interrupt Enable Register (MIER)
879
Mailbox Interrupt Enable Register for FIFO Mailbox Mode (MIER_FIFO)
880
Message Control Registers for Transmit (Mctl_Txj) (J = 0 to 31)
881
Message Control Register for Receive (Mctl_Rxj) (J = 0 to 31)
883
Receive FIFO Control Register (RFCR)
884
Receive FIFO Pointer Control Register (RFPCR)
886
Transmit FIFO Control Register (TFCR)
887
Transmit FIFO Pointer Control Register (TFPCR)
888
Status Register (STR)
889
Mailbox Search Mode Register (MSMR)
891
Mailbox Search Status Register (MSSR)
891
Channel Search Support Register (CSSR)
892
Acceptance Filter Support Register (AFSR)
893
Error Interrupt Enable Register (EIER)
894
Error Interrupt Factor Judge Register (EIFR)
895
Receive Error Count Register (RECR)
897
Transmit Error Count Register (TECR)
897
Error Code Store Register (ECSR)
898
Time Stamp Register (TSR)
899
Test Control Register (TCR)
899
Modes of Operation
901
CAN Reset Mode
901
CAN Halt Mode
902
CAN Sleep Mode
903
CAN Operation Mode (Excluding Bus-Off State)
903
CAN Operation Mode (Bus-Off State)
904
Data Transfer Rate Configuration
905
Clock Setting
905
Bit Time Setting
905
Data Transfer Rate
905
Mailbox and Mask Register Structure
906
Acceptance Filtering and Masking Functions
907
Reception and Transmission
909
Reception
910
Transmission
911
Interrupt
912
Usage Notes
913
Settings for the Module-Stop State
913
Settings for the Operating Clock
913
32 Serial Peripheral Interface (SPI)
914
Overview
914
Register Descriptions
917
SPI Control Register (SPCR)
917
SPI Slave Select Polarity Register (SSLP)
919
SPI Pin Control Register (SPPCR)
919
SPI Status Register (SPSR)
920
SPI Data Register (SPDR/SPDR_HA)
923
SPI Sequence Control Register (SPSCR)
927
SPI Sequence Status Register (SPSSR)
927
SPI Bit Rate Register (SPBR)
928
SPI Data Control Register (SPDCR)
929
SPI Clock Delay Register (SPCKD)
931
SPI Slave Select Negation Delay Register (SSLND)
931
SPI Next-Access Delay Register (SPND)
932
SPI Control Register 2 (SPCR2)
932
SPI Command Registers (Spcmdm) (M =0 to 7 for SPI0; M = 0 for SPI1)
933
Operation
936
Overview of SPI Operations
936
Controlling the SPI Pins
937
SPI System Configuration Examples
938
Single Master and Single Slave with the MCU Configured as a Master
938
Single Master and Single Slave with the MCU Configured as a Slave
938
Single-Master and Multi-Slave with the MCU Configured as a Master
939
Single Master and Multi-Slave with the MCU Configured as a Slave
940
Multi-Master and Multi-Slave with the MCU Configured as a Master
941
Master and Slave in Clock Synchronous Mode with the MCU Configured as
942
Master and Slave in Clock Synchronous Mode with the MCU Configured as
943
Data Format
943
Operation When Parity Is Disabled (SPCR2.SPPE = 0)
944
When Parity Is Enabled (SPCR2.SPPE = 1)
948
Transfer Format
952
Cpha = 0
952
Cpha = 1
953
Data Transfer Modes
954
Full-Duplex Synchronous Serial Communications (SPCR.TXMD = 0)
954
Transmit-Only Operations (SPCR.TXMD = 1)
955
Transmit Buffer Empty and Receive Buffer Full Interrupts
955
Error Detection
957
Overrun Errors
958
Parity Errors
960
Mode Fault Errors
961
Underrun Errors
961
Initializing the SPI
962
Initialization by Clearing the SPE Bit
962
Initialization by System Reset
962
SPI Operation
962
Master Mode Operation
962
Slave Mode Operation
973
Clock Synchronous Operation
977
Master Mode Operation
977
Slave Mode Operation
984
Loopback Mode
985
Self-Diagnosis of Parity Bit Function
986
Interrupt Sources
987
Event Link Operation
988
Receive Buffer Full Event Output
989
Transmit Buffer Empty Event Output
989
Mode Fault, Underrun, Overrun, or Parity Error Event Output
989
SPI Idle Event Output
989
Transmission-Completed Event Output
989
Usage Notes
990
Settings for the Module-Stop State
990
Constraint on Low Power Function
990
Constraint on Starting Transfer
990
Constraint on Mode Fault, Underrun, Overrun, or Parity Error Event Output
990
Constraint on the SPRF and SPTEF Flags
990
33 Cyclic Redundancy Check (CRC) Calculator
991
Overview
991
Register Descriptions
992
CRC Control Register 0 (CRCCR0)
992
CRC Control Register 1 (CRCCR1)
992
CRC Data Input Register (CRCDIR/CRCDIR_BY)
993
CRC Data Output Register (CRCDOR/CRCDOR_HA/CRCDOR_BY)
993
Snoop Address Register (CRCSAR)
994
Operation
994
Basic Operation
994
CRC Snoop
997
Usage Notes
998
Settings for the Module-Stop State
998
Notes on Transmission
998
34 14-Bit A/D Converter (ADC14)
999
Overview
999
Register Descriptions
1002
(ADDBLDRB), A/D Temperature Sensor Data Register (ADTSDR)
1002
A/D Self-Diagnosis Data Register (ADRD)
1006
A/D Control Register (ADCSR)
1007
A/D Channel Select Register A0 (ADANSA0)
1011
A/D Channel Select Register A1 (ADANSA1)
1012
A/D Channel Select Register B0 (ADANSB0)
1012
A/D Channel Select Register B1 (ADANSB1)
1013
A/D-Converted Value Addition/Average Channel Select Register 0 (ADADS0)
1014
A/D-Converted Value Addition/Average Channel Select Register 1 (ADADS1)
1014
A/D-Converted Value Addition/Average Count Select Register (ADADC)
1016
A/D Control Extended Register (ADCER)
1017
A/D Conversion Start Trigger Select Register (ADSTRGR)
1018
A/D Conversion Extended Input Control Register (ADEXICR)
1019
A/D Sampling State Register N (Adsstrn) (N = 00, 04 to 06, 09, 10, L, T, O)
1021
A/D Disconnection Detection Control Register (ADDISCR)
1022
A/D Group Scan Priority Control Register (ADGSPCR)
1022
A/D Compare Function Control Register (ADCMPCR)
1024
A/D Compare Function Window a Channel Select Register 0 (ADCMPANSR0)
1025
A/D Compare Function Window a Channel Select Register 1 (ADCMPANSR1)
1026
A/D Compare Function Window a Extended Input Select Register (ADCMPANSER)
1026
A/D Compare Function Window a Comparison Condition Setting Register 0
1027
(Adcmplr0)
1027
A/D Compare Function Window a Comparison Condition Setting Register 1
1028
(Adcmplr1)
1028
A/D Compare Function Window a Extended Input Comparison Condition Setting Register (ADCMPLER)
1029
A/D Compare Function Window a Lower-Side Level Setting Register
1030
(ADCMPDR0), A/D Compare Function Window a Upper-Side Level Setting
1030
Register (ADCMPDR1), A/D Compare Function Window B Lower-Side Level
1030
Setting Register (ADWINLLB), A/D Compare Function Window B Upper-Side
1030
Level Setting Register (ADWINULB)
1030
A/D Compare Function Window a Channel Status Register 0 (ADCMPSR0)
1032
A/D Compare Function Window a Channel Status Register 1 (ADCMPSR1)
1032
A/D Compare Function Window a Extended Input Channel Status Register (ADCMPSER)
1033
A/D Compare Function Window B Channel Select Register (ADCMPBNSR)
1034
A/D Compare Function Window B Status Register (ADCMPBSR)
1036
A/D Compare Function Window A/B Status Monitor Register (ADWINMON)
1036
A/D High-Potential/Low-Potential Reference Voltage Control Register (ADHVREFCNT)
1037
Operation
1038
Scanning Operation
1038
Single Scan Mode
1039
Basic Operation
1039
Channel Selection and Self-Diagnosis
1040
A/D Conversion of Temperature Sensor Output or Internal Reference Voltage
1041
A/D Conversion in Double Trigger Mode
1042
Extended Operations When Double Trigger Mode Is Selected
1043
Continuous Scan Mode
1044
Basic Operation
1044
Channel Selection and Self-Diagnosis
1045
Group Scan Mode
1046
Basic Operation
1046
A/D Conversion in Double Trigger Mode
1047
Operation with Group a Priority Control
1048
Compare Function for Window a and Window B
1055
Compare Function
1055
Event Output of Compare Function
1056
Restrictions on the Compare Function
1058
Analog Input Sampling and Scan Conversion Time
1059
Usage Example of A/D Data Register Automatic Clearing Function
1061
A/D-Converted Value Addition/Average Mode
1062
Disconnection Detection Assist Function
1062
Starting A/D Conversion with an Asynchronous Trigger
1064
Starting A/D Conversion with a Synchronous Trigger from Peripheral Module
1065
Interrupt Sources and DTC or DMAC Transfer Requests
1065
Interrupt Requests
1065
Event Link Function
1066
Event Output to the ELC
1066
ADC14 Operation through an Event from the ELC
1066
Selecting Reference Voltage
1066
A/D Conversion Procedure When Selecting Internal Reference Voltage as High-Potential Reference Voltage
1066
Usage Notes
1067
Notes on Reading Data Registers
1067
Notes on Stopping A/D Conversion
1067
A/D Conversion Restarting Timing and Termination Timing
1068
Restrictions on Scan End Interrupt Handling
1068
Settings for the Module-Stop State
1068
Restrictions on Entering Low Power States
1069
Error in Absolute Accuracy When Disconnection Detection Assistance Is in Use
1069
ADHSC Bit Rewriting Procedure
1069
Notes on Operating Modes and Status Bits
1069
Notes on Board Design
1069
Notes on Noise Reduction
1069
Port Settings When Using the 14-Bit A/D Converter Input
1070
Relationship between the ADC14, OPAMP, and ACMPLP
1070
Notes on Canceling Software Standby Mode
1070
35 12-Bit D/A Converter (DAC12)
1071
Overview
1071
Register Descriptions
1072
D/A Data Register 0 (DADR0)
1072
D/A Control Register (DACR)
1072
DADR0 Format Select Register (DADPR)
1073
D/A A/D Synchronous Start Control Register (DAADSCR)
1073
D/A VREF Control Register (DAVREFCR)
1074
Operation
1074
Reducing Interference between D/A and A/D Conversion
1075
Notes on Using the Internal Reference Voltage as the Reference Voltage
1077
Event Link Operation Setting Procedure
1077
Usage Notes on Event Link Operation
1077
Usage Notes
1078
Settings for the Module-Stop Function
1078
DAC12 Operation in Module-Stop State
1078
DAC12 Operation in Software Standby Mode
1078
Restriction on Usage When Interference Reduction between D/A and A/D Conversion Is Enabled
1078
36 Temperature Sensor (TSN)
1079
Overview
1079
Register Descriptions
1079
Temperature Sensor Calibration Data Register H (TSCDRH)
1079
Temperature Sensor Calibration Data Register L (TSCDRL)
1080
Using the Temperature Sensor
1080
Preparation for Using Temperature Sensor
1080
Procedure for Using the Temperature Sensor
1081
37 Operational Amplifier (OPAMP)
1082
Overview
1082
Register Descriptions
1083
Operational Amplifier Mode Control Register (AMPMC)
1083
Operational Amplifier Trigger Mode Control Register (AMPTRM)
1084
Operational Amplifier Activation Trigger Select Register (AMPTRS)
1085
Operational Amplifier Control Register (AMPC)
1085
Operational Amplifier Monitor Register (AMPMON)
1086
Operation
1086
State Transitions
1086
Operational Amplifier Control Operation
1088
Software Trigger Mode
1092
Activation Trigger Mode
1093
Activation and A/D Trigger Mode
1094
Usage Notes
1094
38 Low Power Analog Comparator (ACMPLP)
1095
Overview
1095
Register Descriptions
1098
ACMPLP Mode Setting Register (COMPMDR)
1098
ACMPLP Filter Control Register (COMPFIR)
1099
ACMPLP Output Control Register (COMPOCR)
1099
Comparator Input Select Register (COMPSEL0)
1100
Comparator Reference Voltage Select Register (COMPSEL1)
1100
Operation
1101
Noise Filter
1103
ACMPLP Interrupts
1104
ELC Event Output
1105
Interrupt Handling and ELC Linking
1105
Comparator Pin Output
1105
Usage Notes
1105
Settings for the Module-Stop State
1105
Relationship with A/D Converter
1105
39 Bit D/A Converter (DAC8)
1106
Overview
1106
Register Descriptions
1106
D/A Conversion Value Setting Register N (Dacsn) (N = 0, 1)
1106
D/A Converter Mode Register (DAM)
1107
Operation
1107
Usage Notes
1107
Module-Stop State
1107
Operation of the 8-Bit D/A Converter in Module-Stop State
1107
8-Bit D/A Converter in Software Standby Mode Operation
1108
When Not Using the D/A Converter
1108
40 Capacitive Touch Sensing Unit (CTSU)
1109
Overview
1109
Register Descriptions
1111
CTSU Control Register 0 (CTSUCR0)
1111
CTSU Control Register 1 (CTSUCR1)
1112
CTSU Synchronous Noise Reduction Setting Register (CTSUSDPRS)
1114
CTSU Sensor Stabilization Wait Control Register (CTSUSST)
1114
CTSU Measurement Channel Register 0 (CTSUMCH0)
1115
CTSU Measurement Channel Register 1 (CTSUMCH1)
1116
CTSU Channel Enable Control Register 0 (CTSUCHAC0)
1116
CTSU Channel Enable Control Register 1 (CTSUCHAC1)
1117
CTSU Channel Enable Control Register 2 (CTSUCHAC2)
1117
CTSU Channel Enable Control Register 3 (CTSUCHAC3)
1118
CTSU Channel Enable Control Register 4 (CTSUCHAC4)
1118
CTSU Channel Transmit/Receive Control Register 0 (CTSUCHTRC0)
1119
CTSU Channel Transmit/Receive Control Register 1 (CTSUCHTRC1)
1119
CTSU Channel Transmit/Receive Control Register 2 (CTSUCHTRC2)
1120
CTSU Channel Transmit/Receive Control Register 3 (CTSUCHTRC3)
1120
CTSU Channel Transmit/Receive Control Register 4 (CTSUCHTRC4)
1121
CTSU High-Pass Noise Reduction Control Register (CTSUDCLKC)
1121
CTSU Status Register (CTSUST)
1122
CTSU High-Pass Noise Reduction Spectrum Diffusion Control Register (CTSUSSC)
1123
CTSU Sensor Offset Register 0 (CTSUSO0)
1124
CTSU Sensor Offset Register 1 (CTSUSO1)
1125
CTSU Sensor Counter (CTSUSC)
1126
CTSU Reference Counter (CTSURC)
1126
CTSU Error Status Register (CTSUERRS)
1127
Operation
1127
Principles of Measurement Operation
1127
Measurement Modes
1129
Initial Setting Flow
1131
Status Counter
1132
Self-Capacitance Single Scan Mode Operation
1133
Self-Capacitance Multi-Scan Mode Operation
1135
Mutual Capacitance Full Scan Mode Operation
1137
Parameters Common to Multiple Modes
1139
Sensor Stabilization Wait Time and Measurement Time
1139
Interrupts
1140
Usage Notes
1141
Measurement Result Data (CTSUSC and CTSURC Counters)
1141
Constraints on Software Trigger
1141
Constraints on External Trigger
1142
Constraints on Forced Stops
1142
TSCAP Pin
1142
Constraints on Measurement Operation (CTSUCR0.CTSUSTRT Bit = 1)
1142
41 Data Operation Circuit (DOC)
1143
Overview
1143
Register Descriptions
1144
DOC Control Register (DOCR)
1144
DOC Data Input Register (DODIR)
1145
DOC Data Setting Register (DODSR)
1145
Operation
1145
Data Comparison Mode
1145
Data Addition Mode
1146
Data Subtraction Mode
1146
Interrupt Request and Output to the Event Link Controller (ELC)
1147
Usage Notes
1147
Settings for the Module-Stop State
1147
42 Sram
1148
Overview
1148
Register Descriptions
1148
SRAM Parity Error Operation after Detection Register (PARIOAD)
1148
SRAM Protection Register (SRAMPRCR)
1149
ECC Operating Mode Control Register (ECCMODE)
1149
ECC 2-Bit Error Status Register (ECC2STS)
1150
ECC 1-Bit Error Information Update Enable Register (ECC1STSEN)
1150
ECC 1-Bit Error Status Register (ECC1STS)
1151
ECC Protection Register (ECCPRCR)
1151
ECC Protection Register 2 (ECCPRCR2)
1152
ECC Test Control Register (ECCETST)
1152
SRAM ECC Error Operation after Detection Register (ECCOAD)
1153
Operation
1153
Low Power Consumption Function
1153
ECC Function
1153
ECC Error Generation
1154
ECC Decoder Testing
1154
Parity Calculation Function
1155
SRAM Error Sources
1157
Access Cycle
1158
Usage Notes
1158
Instruction Fetch from SRAM Area
1158
Store Buffer of SRAM
1158
43 Flash Memory
1159
Overview
1159
Memory Structure
1160
Flash Cache
1161
Overview
1161
Register Descriptions
1162
Flash Cache Enable Register (FCACHEE)
1162
Flash Cache Invalidate Register (FCACHEIV)
1162
Operation
1163
Notice to Use Flash Cache
1163
Operating Modes Associated with the Flash Memory
1163
ID Code Protection
1164
Overview of Functions
1164
Configuration Area Bit Map
1166
Startup Area Select
1166
Protection by Access Window
1167
Programming Commands
1168
Suspend Operation
1168
Protection
1168
43.10 Serial Programming Mode
1168
SCI Boot Mode
1169
USB Boot Mode
1169
43.11 Using a Serial Programmer
1170
Serial Programming
1170
Programming Environment
1170
43.12 Self-Programming
1170
Overview
1170
Background Operation
1171
43.13 Reading the Flash Memory
1171
Reading the Code Flash Memory
1171
Reading the Data Flash Memory
1171
43.14 Usage Notes
1171
Erase Suspended Area
1171
Suspension by Erase Suspend Commands
1172
Constraints on Additional Writes
1172
Reset During Programming and Erasure
1172
Non-Maskable Interrupt Disabled During Programming and Erasure
1172
Location of Interrupt Vectors During Programming and Erasure
1172
Programming and Erasure in Low-Speed Operating Mode
1172
Abnormal Termination During Programming and Erasure
1172
Actions Prohibited During Programming and Erasure
1172
44 Segment LCD Controller (SLCDC)
1173
Overview
1173
Register Descriptions
1174
LCD Mode Register 0 (LCDM0)
1174
LCD Mode Register 1 (LCDM1)
1175
LCD Clock Control Register 0 (LCDC0)
1176
LCD Display Data Registers
1176
Selection of LCD Display Data Register
1177
A-Pattern Area and B-Pattern Area Data Display
1177
Blinking Display (Alternately Displaying A-Pattern and B-Pattern Area Data)
1177
Setting LCD Controller/Driver
1178
Operation Stop Procedure
1179
Supplying LCD Drive Voltages VL1, VL2, and VL4
1180
External Resistance Division Method
1180
Common and Segment Signals
1181
Display Modes
1186
Four-Time-Slice Display Example
1186
45 Secure Cryptographic Engine (SCE5)
1191
Overview
1191
Operation
1192
Encryption Engine
1192
Encryption and Decryption
1193
Usage Notes
1194
Software Standby Mode
1194
Settings for the Module-Stop Function
1194
46 Bluetooth Low Energy (BLE)
1195
Overview
1195
Operation
1197
State Transitions
1197
Interrupts
1198
Usage Notes
1198
RF Transceiver Power-Supply
1198
Wireless Standards
1199
Notes on Board Design
1200
47 Internal Voltage Regulator
1201
Overview
1201
Operation
1201
48 Electrical Characteristics
1202
Absolute Maximum Ratings
1203
DC Characteristics
1205
Tj/Ta Definition
1205
I/O Vih, Vil
1205
I/O Ioh , Iol
1207
I/O VOH , VOL , and Other Characteristics
1208
I/O Pin Output Characteristics of Low Drive Capacity
1209
I/O Pin Output Characteristics of Middle Drive Capacity
1211
P408, P409 I/O Pin Output Characteristics of Middle Drive Capacity
1213
IIC I/O Pin Output Characteristics
1215
Operating and Standby Current
1216
VCC Rise and Fall Gradient and Ripple Frequency
1224
AC Characteristics
1225
Frequency
1225
Clock Timing
1227
Reset Timing
1230
Wakeup Time
1231
NMI and IRQ Noise Filter
1235
I/O Ports, POEG, GPT, AGT, KINT, and ADC14 Trigger Timing
1236
CAC Timing
1237
SCI Timing
1238
SPI Timing
1244
IIC Timing
1249
CLKOUT Timing
1250
USB Characteristics
1252
USBFS Timing
1252
ADC14 Characteristics
1254
DAC12 Characteristics
1262
TSN Characteristics
1264
OSC Stop Detect Characteristics
1264
POR and LVD Characteristics
1265
48.10 VBATT Characteristics
1269
48.11 CTSU Characteristics
1271
48.12 Segment LCD Controller Characteristics
1272
Resistance Division Method
1272
48.13 Comparator Characteristics
1272
48.14 OPAMP Characteristics
1273
48.15 Flash Memory Characteristics
1274
Code Flash Memory Characteristics
1274
Data Flash Memory Characteristics
1275
Joint Test Action Group (JTAG)
1276
Serial Wire Debug (SWD)
1278
48.17 BLE Characteristics
1279
Transmission Characteristics
1279
Reception Characteristics (2 Mbps)
1280
Reception Characteristics (1 Mbps)
1280
Reception Characteristics (500 Kbps)
1281
Reception Characteristics (125 Kbps)
1281
Appendix 1. Port States in each Processing Mode
1282
Appendix 2. Package Dimensions
1284
Appendix 3. I/O Registers
1285
Peripheral Base Addresses
1285
Access Cycles
1286
Register Descriptions
1288
Revision History
1314
Advertisement
Advertisement
Related Products
Renesas RTK0EG0030S01001BJ
Renesas RTK5RLG1M0C00000BJ
Renesas RTK5RX65N0C00000BR
Renesas RTK5RLG150C00000BJ
Renesas R7F0C011B
Renesas R5F56104WNBG
Renesas R5F565NEHDFC
Renesas RSK Series
Renesas R5F364A6NFA
Renesas R5F364AEDFB
Renesas Categories
Computer Hardware
Motherboard
Microcontrollers
Adapter
Switch
More Renesas Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL