Sign In
Upload
Manuals
Brands
Renesas Manuals
Computer Hardware
M16C Series
Renesas M16C Series Manuals
Manuals and User Guides for Renesas M16C Series. We have
3
Renesas M16C Series manuals available for free PDF download: User Manual, Reference Book
Renesas M16C Series User Manual (846 pages)
Brand:
Renesas
| Category:
Computer Hardware
| Size: 10.95 MB
Table of Contents
Table of Contents
8
Quick Reference
27
Overview
34
Features
34
Applications
34
Specifications
35
Product List
37
Block Diagram
39
Pin Assignments
40
Pin Functions
44
Central Processing Unit (CPU)
47
Data Registers (R0, R1, R2, and R3)
48
Address Registers (A0 and A1)
48
Frame Base Register (FB)
48
Interrupt Table Register (INTB)
48
Program Counter (PC)
48
User Stack Pointer (USP) and Interrupt Stack Pointer (ISP)
48
Static Base Register (SB)
48
Flag Register (FLG)
48
Carry Flag (C Flag)
48
Debug Flag (D Flag)
48
Interrupt Enable Flag (I Flag)
49
Stack Pointer Select Flag (U Flag)
49
Processor Interrupt Priority Level (IPL)
49
Reserved Areas
49
Address Space
50
Memory Map
51
Accessible Area in each Mode
52
Special Function Registers (Sfrs)
53
Sfrs
53
Notes on Sfrs
71
Register Settings
71
Protection
73
Introduction
73
Register
73
Protect Register (PRCR)
73
Notes on Protection
75
Resets
76
Introduction
76
Registers
78
Processor Mode Register 0 (PM0)
79
Reset Source Determine Register (RSTFR)
80
Optional Function Select Area
81
Optional Function Select Address 1 (OFS1)
81
Operations
83
Status after Reset
83
Hardware Reset
86
Power-On Reset Function
87
Voltage Monitor 0 Reset
88
Voltage Monitor 1 Reset
88
Voltage Monitor 2 Reset
88
Oscillator Stop Detect Reset
89
Watchdog Timer Reset
89
Software Reset
89
Cold/Warm Start Discrimination
90
Notes on Resets
91
Power Supply Rising Gradient
91
Power-On Reset
91
OSDR Bit (Oscillation Stop Detect Reset Detect Flag)
92
Voltage Detector
93
Introduction
93
Registers
95
Voltage Detector 2 Flag Register (VCR1)
96
Voltage Detector Operation Enable Register (VCR2)
97
Voltage Monitor Function Select Register (VWCE)
98
Voltage Detector 1 Level Select Register (VD1LS)
99
Voltage Monitor 0 Control Register (VW0C)
100
Voltage Monitor 1 Control Register (VW1C)
101
Voltage Monitor 2 Control Register (VW2C)
103
Optional Function Select Area
105
Optional Function Select Address 1 (OFS1)
105
Operations
106
Digital Filter
106
Voltage Detector 0
107
Voltage Detector 1
109
Voltage Detector 2
112
Interrupts
115
Clock Generator
116
Introduction
116
Registers
118
Processor Mode Register 0 (PM0)
119
System Clock Control Register 0 (CM0)
120
System Clock Control Register 1 (CM1)
122
Oscillation Stop Detection Register (CM2)
124
Peripheral Clock Select Register (PCLKR)
126
Peripheral Clock Stop Register 1 (PCLKSTP1)
126
PLL Control Register 0 (PLC0)
128
Processor Mode Register 2 (PM2)
129
Clocks Generated by Clock Generators
130
Main Clock
130
PLL Clock
131
125 Khz On-Chip Oscillator Clock (Foco-S)
131
Sub Clock (Fc)
132
CPU Clock and Peripheral Function Clocks
133
CPU Clock and BCLK
133
Peripheral Function Clocks (F1, Foco-S, Fc32, Fc, Main Clock)
133
Clock Output Function
135
System Clock Protection Function
135
Oscillator Stop/Restart Detect Function
136
Operation When CM27 Bit Is 0 (Oscillator Stop Detect Reset)
136
Operation When CM27 Bit Is 1 (Oscillator Stop/Restart Detect Interrupt)
137
Using the Oscillator Stop/Restart Detect Function
138
Interrupt
138
Notes on Clock Generator
139
Oscillator Using a Crystal or a Ceramic Resonator
139
Noise Countermeasure
140
CPU Clock
141
Oscillator Stop/Restart Detect Function
141
PLL Frequency Synthesizer
142
Power Control
143
Introduction
143
Registers
143
Flash Memory Control Register 0 (FMR0)
144
Flash Memory Control Register 2 (FMR2)
145
Clock
147
Normal Operating Mode
147
CPU Clock
149
Clock Mode Transition Procedure
151
Wait Mode
154
Stop Mode
156
Power Control in Flash Memory
158
Stopping Flash Memory
158
Reading Flash Memory
159
Low Current Consumption Read Mode
160
Reducing Power Consumption
161
Ports
161
A/D Converter
161
D/A Converter
161
Stopping Peripheral Functions
161
Switching the Oscillation-Driving Capacity
161
Notes on Power Control
162
CPU Clock
162
Wait Mode
162
Stop Mode
162
Low Current Consumption Read Mode
163
Slow Read Mode
163
10. Processor Mode
164
Introduction
164
Registers
165
Processor Mode Register 0 (PM0)
165
Processor Mode Register 1 (PM1)
166
Program 2 Area Control Register (PRG2C)
168
Operations
169
Processor Mode Settings
169
11. Bus
171
Introduction
171
Registers
171
Chip Select Control Register (CSR)
172
Chip Select Expansion Control Register (CSE)
173
Operations
174
Common Specifications between the Internal Bus and External Bus
174
Internal Bus
175
External Bus
176
External Bus Mode
176
External Bus Control
177
Notes on Bus
186
Reading Data Flash
186
External Bus
186
External Access Immediately after Writing to the Sfrs
186
Hold
186
12. Memory Space Expansion Function
187
Introduction
187
Registers
187
Data Bank Register (DBR)
188
Operations
189
1-MB Mode
189
4-MB Mode
191
13. Programmable I/O Ports
198
Introduction
198
I/O Ports and Pins
199
Registers
211
Pull-Up Control Register 0 (PUR0)
212
Pull-Up Control Register 1 (PUR1)
213
Pull-Up Control Register 2 (PUR2)
214
Port Control Register (PCR)
215
Port Pi Register (Pi) (I = 0 to 10)
216
Port Pi Direction Register (Pdi) (I = 0 to 10)
217
NMI/SD Digital Filter Register (NMIDF)
218
Peripheral Function I/O
219
Peripheral Function I/O and Port Direction Bits
219
Priority Level of Peripheral Function I/O
219
NMI/SD Digital Filter
220
CNVSS Pin
220
Unassigned Pin Handling
221
Notes on Programmable I/O Ports
223
Influence of SD
223
Influence of SI/O3 and SI/O4
223
Interrupts
224
Introduction
224
Registers
225
Processor Mode Register 2 (PM2)
227
Interrupt Control Register 1
228
(INT7IC, INT6IC, INT3IC, S4IC/INT5IC, S3IC/INT4IC, INT0IC to INT2IC)
229
Interrupt Source Select Register 3 (IFSR3A)
230
Interrupt Source Select Register 2 (IFSR2A)
231
Interrupt Source Select Register (IFSR)
232
Address Match Interrupt Enable Register (AIER)
233
Address Match Interrupt Enable Register 2 (AIER2)
233
Address Match Interrupt Register I (Rmadi) (I = 0 to 3)
234
Port Control Register (PCR)
235
NMI/SD Digital Filter Register (NMIDF)
236
Types of Interrupts
237
Software Interrupts
238
Undefined Instruction Interrupt
238
Overflow Interrupt
238
BRK Interrupt
238
INT Instruction Interrupt
238
Hardware Interrupts
239
Special Interrupts
239
Peripheral Function Interrupts
239
Interrupts and Interrupt Vectors
240
Fixed Vector Tables
240
Relocatable Vector Tables
241
Interrupt Control
243
Maskable Interrupt Control
243
Interrupt Sequence
244
Interrupt Response Time
245
Variation of IPL When Interrupt Request Is Accepted
245
Saving Registers
246
Returning from an Interrupt Routine
247
Interrupt Priority
247
Interrupt Priority Level Select Circuit
247
Multiple Interrupts
249
INT Interrupt
249
NMI Interrupt
250
14.10 Key Input Interrupt
250
14.11 Address Match Interrupt
251
14.12 Non-Maskable Interrupt Source Discrimination
252
14.13 Notes on Interrupts
253
14.13.1 Reading Address 00000H
253
14.13.2 SP Setting
253
14.13.3 NMI Interrupt
253
14.13.4 Changing an Interrupt Source
254
14.13.5 Rewriting the Interrupt Control Register
255
14.13.6 Instruction to Rewrite the Interrupt Control Register
255
14.13.7 INT Interrupt
256
15. Watchdog Timer
257
Introduction
257
Registers
258
Voltage Monitor 2 Control Register (VW2C)
258
Count Source Protection Mode Register (CSPR)
259
Watchdog Timer Refresh Register (WDTR)
260
Watchdog Timer Start Register (WDTS)
260
Watchdog Timer Control Register (WDC)
261
Optional Function Select Area
262
Optional Function Select Address 1 (OFS1)
262
Operations
263
Count Source Protection Mode Disabled
263
Count Source Protection Mode Enabled
264
Interrupts
265
Notes on the Watchdog Timer
266
16. Dmac
267
Introduction
267
Registers
269
Dmai Source Pointer (Sari) (I = 0 to 3)
270
Dmai Destination Pointer (Dari) (I = 0 to 3)
270
Dmai Transfer Counter (Tcri) (I = 0 to 3)
271
Dmai Control Register (Dmicon) (I = 0 to 3)
272
Dmai Source Select Register (Dmisl) (I = 0 to 3)
273
Operations
276
DMA Enabled
276
DMA Request
276
Transfer Cycles
277
DMAC Transfer Cycles
279
Single Transfer Mode
280
Repeat Transfer Mode
281
Channel Priority and DMA Transfer Timing
282
Interrupts
283
Notes on DMAC
284
Write to the DMAE Bit in the Dmicon Register (I = 0 to 3)
284
Changing the DMA Request Source
284
17. Timer a
285
Introduction
285
Registers
288
Peripheral Clock Select Register (PCLKR)
289
Clock Prescaler Reset Flag (CPSRF)
289
Peripheral Clock Stop Register 1 (PCLKSTP1)
290
Timer a Count Source Select Register I (Tacsi) (I = 0 to 2)
291
16-Bit Pulse Width Modulation Mode Function Select Register (PWMFS)
292
Timer a Waveform Output Function Select Register (TAPOFS)
293
Timer a Output Waveform Change Enable Register (TAOW)
294
Timer Ai Register (Tai) (I = 0 to 4)
295
Timer Ai-1 Register (Tai1) (I = 1, 2, 4)
296
Count Start Flag (TABSR)
296
One-Shot Start Flag (ONSF)
297
Trigger Select Register (TRGSR)
298
Increment/Decrement Flag (UDF)
299
Timer Ai Mode Register (Taimr) (I = 0 to 4)
300
Operations
301
Common Operations
301
Timer Mode
303
Event Counter Mode (When Not Using Two-Phase Pulse Signal Processing)
307
Event Counter Mode (When Processing Two-Phase Pulse Signal)
311
One-Shot Timer Mode
316
Pulse Width Modulation (PWM) Mode
320
Programmable Output Mode (Timers A1, A2, and A4)
325
Interrupts
329
Notes on Timer a
330
Common Notes on Multiple Modes
330
Timer a (Timer Mode)
331
Timer a (Event Counter Mode)
331
Timer a (One-Shot Timer Mode)
331
Timer a (Pulse Width Modulation Mode)
332
Timer a (Programmable Output Mode)
333
18. Timer B
334
Introduction
334
Registers
337
Peripheral Clock Select Register (PCLKR)
338
Clock Prescaler Reset Flag (CPSRF)
338
Peripheral Clock Stop Register 1 (PCLKSTP1)
339
Timer Bi Register (Tbi) (I = 0 to 5)
340
Timer Bi-1 Register (Tbi1) (I = 0 to 5)
341
Pulse Period/Pulse Width Measurement Mode Function Select Register I (Ppwfsi) (I = 1, 2)
342
Timer B Count Source Select Register I (Tbcsi) (I = 0 to 3)
343
Count Start Flag (TABSR) Timer B3/B4/B5 Count Start Flag (TBSR)
344
Timer Bi Mode Register (Tbimr) (I = 0 to 5)
345
Operations
346
Common Operations
346
Timer Mode
348
Event Counter Mode
350
Pulse Period/Pulse Width Measurement Modes
353
Interrupts
358
Notes on Timer B
359
Common Notes on Multiple Modes
359
Timer B (Timer Mode)
359
Timer B (Event Counter Mode)
359
Timer B (Pulse Period/Pulse Width Measurement Modes)
360
19. Three-Phase Motor Control Timer Function
361
Introduction
361
Registers
365
Timer B2 Register (TB2)
366
Timer Ai, Ai-1 Register (Tai, Tai1) (I = 1, 2, 4)
366
Three-Phase PWM Control Register 0 (INVC0)
367
Three-Phase PWM Control Register 1 (INVC1)
369
Three-Phase Output Buffer Register I (Idbi) (I = 0, 1)
371
Dead Time Timer (DTT)
371
Timer B2 Interrupt Generation Frequency Set Counter (ICTB2)
372
Timer B2 Special Mode Register (TB2SC)
373
Position-Data-Retain Function Control Register (PDRF)
374
Port Function Control Register (PFCR)
375
Three-Phase Protect Control Register (TPRC)
375
Operations
376
Common Operations in Multiple Modes
376
Triangular Wave Modulation Three-Phase Mode 0
382
Triangular Wave Modulation Three-Phase Mode 1
387
Sawtooth Wave Modulation Mode
394
Interrupts
399
Timer B2 Interrupt
399
Timer A1, A2, and A4 Interrupts
399
Notes on Three-Phase Motor Control Timer Function
400
Timer a and Timer B
400
Influence of SD
400
20. Real-Time Clock
401
Introduction
401
Registers
403
Real-Time Clock Second Data Register (RTCSEC)
404
Real-Time Clock Minute Data Register (RTCMIN)
405
Real-Time Clock Hour Data Register (RTCHR)
406
Real-Time Clock Day Data Register (RTCWK)
407
Real-Time Clock Control Register 1 (RTCCR1)
408
Real-Time Clock Control Register 2 (RTCCR2)
410
Real-Time Clock Count Source Select Register (RTCCSR)
412
Real-Time Clock Second Compare Data Register (RTCCSEC)
413
Real-Time Clock Minute Compare Data Register (RTCCMIN)
414
Real-Time Clock Hour Compare Data Register (RTCCHR)
415
Operations
416
Basic Operation
416
Compare Mode
419
Interrupts
425
Notes on Real-Time Clock
426
Starting and Stopping the Count
426
Register Settings (Time Data, Etc.)
426
Register Settings (Compare Data)
426
Time Reading Procedure in Real-Time Clock Mode
427
21. Pulse Width Modulator
428
Introduction
428
Registers
429
PWM Control Register 0 (PWMCON0)
430
Pwmi Prescaler (Pwmprei) (I = 0, 1)
431
Pwmi Register (Pwmregi) (I = 0, 1)
431
PWM Control Register 1 (PWMCON1)
432
Operations
433
Setting Procedure
433
Operation Example
433
22. Remote Control Signal Receiver
435
Introduction
435
Registers
438
Pmci Function Select Register 0 (Pmcicon0) (I = 0, 1)
440
Pmci Function Select Register 1 (Pmcicon1) (I = 0, 1)
442
Pmci Function Select Register 2 (Pmcicon2) (I = 0, 1)
444
Pmci Function Select Register 3 (Pmcicon3) (I = 0, 1)
446
Pmci Status Register (Pmcists) (I = 0, 1)
447
Pmci Interrupt Source Register (Pmciint) (I = 0, 1)
450
Pmci Header Pattern Set Register (MIN) (Pmcihdpmin) (I = 0, 1) Pmci Header Pattern Set Register (MAX) (Pmcihdpmax) (I = 0, 1)
451
Pmci Data 0 Pattern Set Register (MIN) (Pmcid0Pmin) (I = 0, 1) Pmci Data 0 Pattern Set Register (MAX) (Pmcid0Pmax) (I = 0, 1) Pmci Data 1 Pattern Set Register (MIN) (Pmcid1Pmin) (I = 0, 1) Pmci Data 1 Pattern Set Register (MAX) (Pmcid1Pmax) (I = 0, 1)
453
Pmci Measurements Register (Pmcitim) (I = 0, 1)
454
PMC0 Receive Bit Count Register (PMC0RBIT)
454
PMC0 Receive Data Store Register I (Pmc0Dati) (I = 0 to 5)
455
PMC0 Compare Control Register (PMC0CPC)
456
PMC0 Compare Data Register (PMC0CPD)
457
Operations
458
Common Operations in Multiple Modes
458
Pattern Match Mode (PMC0 and PMC1 Operate Independently)
460
Pattern Match Mode (Combined Operation of PMC0 and PMC1)
466
Input Capture Mode (Operating PMC0 and PMC1 Independently)
471
Input Capture Mode (Simultaneous Count Operation of PMC0 and PMC1)
475
Interrupts
478
Notes on Remote Control Signal Receiver
481
Starting/Stopping Pmci
481
Reading the Register
481
Rewriting the Register
481
Combined Operation
482
Serial Interface Uarti (I = 0 to 2, 5 to 7)
483
Introduction
483
Registers
488
Peripheral Clock Select Register (PCLKR)
490
Uarti Transmit/Receive Mode Register (Uimr) (I = 0 to 2, 5 to 7)
491
Uarti Bit Rate Register (Uibrg) (I = 0 to 2, 5 to 7)
492
Uarti Transmit Buffer Register (Uitb) (I = 0 to 2, 5 to 7)
492
Uarti Transmit/Receive Control Register 0 (Uic0) (I = 0 to 2, 5 to 7)
493
Uarti Transmit/Receive Control Register 1 (Uic1) (I = 0 to 2, 5 to 7)
495
Uarti Receive Buffer Register (Uirb) (I = 0 to 2, 5 to 7)
496
UART Transmit/Receive Control Register 2 (UCON)
498
Uarti Special Mode Register 4 (Uismr4) (I = 0 to 2, 5 to 7)
499
Uarti Special Mode Register 3 (Uismr3) (I = 0 to 2, 5 to 7)
501
Uarti Special Mode Register 2 (Uismr2) (I = 0 to 2, 5 to 7)
502
Uarti Special Mode Register (Uismr) (I = 0 to 2, 5 to 7)
503
Operations
504
Clock Synchronous Serial I/O Mode
504
Clock Asynchronous Serial I/O (UART) Mode
512
Special Mode 1 (I 2 C Mode)
521
Special Mode 2
536
Special Mode 3 (IE Mode)
540
Special Mode 4 (SIM Mode) (UART2)
542
Interrupts
547
Interrupt Related Registers
547
Reception Interrupt
548
Notes on Serial Interface Uarti (I = 0 to 2, 5 to 7)
549
Common Notes on Multiple Modes
549
Clock Synchronous Serial I/O Mode
549
Special Mode 1 (I 2 C Mode)
550
Special Mode 4 (SIM Mode)
552
24. Serial Interface SI/O3 and SI/O4
553
Introduction
553
Registers
555
Peripheral Clock Select Register (PCLKR)
556
Oi Transmit/Receive Register (Sitrr) (I = 3, 4)
556
Oi Control Register (Sic) (I = 3, 4)
557
Oi Bit Rate Register (Sibrg) (I = 3, 4)
558
O3, 4 Control Register 2 (S34C2)
558
Operations
559
Basic Operations
559
CLK Polarity Selection
559
LSB First or MSB First Selection
560
Internal Clock
561
Function for Selecting Souti State after Transmission
562
External Clock
563
Souti Pin
563
Function for Setting Souti Initial Value
564
Interrupt
565
Notes on Serial Interface SI/O3 and SI/O4
566
Souti Pin Level When Souti Output Is Disabled
566
External Clock Control
566
Register Access When Using the External Clock
566
Sitrr Register Access
566
Pin Function Switch When Using the Internal Clock
566
Operation after Reset When Selecting the External Clock
566
Introduction
567
Multi-Master I C-Bus Interface
568
Registers Descriptions
570
Peripheral Clock Select Register (PCLKR)
571
I2C0 Data Shift Register (S00)
572
I2C0 Address Register I (S0Di) (I = 0 to 2)
573
I2C0 Control Register 0 (S1D0)
574
I2C0 Clock Control Register (S20)
576
I2C0 Start/Stop Condition Control Register (S2D0)
578
I2C0 Control Register 1 (S3D0)
579
I2C0 Control Register 2 (S4D0)
583
I2C0 Status Register 0 (S10)
585
I2C0 Status Register 1 (S11)
590
Operations
591
Clock
591
Generating a Start Condition
594
Generating a Stop Condition
596
Generating a Restart Condition
597
Start Condition Overlap Protect
598
Arbitration Lost
600
Detecting Start/Stop Conditions
602
Operation after Transmitting/Receiving a Slave Address or Data
604
Timeout Detection
605
25.3.10 Data Transmit/Receive Examples
606
Interrupts
611
Notes on Multi-Master I C-Bus Interface
614
Limitation on CPU Clock
614
Register Access
614
Low/High-Level Input Voltage and Low-Level Output Voltage
614
26. Consumer Electronics Control (CEC) Function
615
Introduction
615
Registers
618
CEC Function Control Register 1 (CECC1)
618
CEC Function Control Register 2 (CECC2)
619
CEC Function Control Register 3 (CECC3)
621
CEC Function Control Register 4 (CECC4)
623
CEC Flag Register (CECFLG)
625
CEC Interrupt Source Select Register (CISEL)
626
CEC Transmit Buffer Register 1 (CCTB1)
627
CEC Transmit Buffer Register 2 (CCTB2)
627
CEC Receive Buffer Register 1 (CCRB1)
628
CEC Receive Buffer Register 2 (CCRB2)
628
CEC Receive Follower Address Set Register 1 (CRADRI1), CEC Receive Follower Address Set Register 2 (CRADRI2)
629
Port Control Register (PCR)
630
Operations
631
Standard Value and I/O Timing
631
Count Source
631
CEC Input/Output
631
Digital Filter
632
Reception
633
Transmission
641
Interrupts
646
Notes on CEC
648
Registers and Bit Operation
648
VIH of the CEC Pin
648
27. A/D Converter
649
Introduction
649
Registers
651
Port Control Register (PCR)
652
Open-Circuit Detection Assist Function Register (AINRST)
653
A/D Register I (Adi) (I = 0 to 7)
654
A/D Control Register 2 (ADCON2)
655
A/D Control Register 0 (ADCON0)
656
A/D Control Register 1 (ADCON1)
658
Operations
659
A/D Conversion Cycle
659
A/D Conversion Start Conditions
661
A/D Conversion Result
662
Extended Analog Input Pins
662
Current Consumption Reduce Function
662
Open-Circuit Detection Assist Function
662
Operational Modes
665
One-Shot Mode
665
Repeat Mode
667
Single Sweep Mode
669
Repeat Sweep Mode 0
671
Repeat Sweep Mode 1
673
External Sensor
676
Interrupt
677
Notes on A/D Converter
678
Analog Input Voltage
678
Analog Input Pin
678
Pin Configuration
678
Register Access
678
A/D Conversion Start
678
A/D Operation Mode Change
678
State When Forcibly Terminated
679
A/D Open-Circuit Detection Assist Function
679
Detecting Completion of A/D Conversion
679
28. D/A Converter
680
Introduction
680
Registers
681
D/Ai Register (Dai) (I = 0, 1)
681
D/A Control Register (DACON)
681
Operations
682
Notes on D/A Converter
683
When Not Using the D/A Converter
683
29. CRC Calculator
684
Introduction
684
Registers
685
SFR Snoop Address Register (CRCSAR)
685
CRC Mode Register (CRCMR)
686
CRC Data Register (CRCD)
686
CRC Input Register (CRCIN)
686
Operations
687
Basic Operation
687
CRC Snoop
687
30. Flash Memory
689
Introduction
689
Memory Map
691
Registers
693
Flash Memory Control Register 0 (FMR0)
693
Flash Memory Control Register 1 (FMR1)
696
Flash Memory Control Register 2 (FMR2)
697
Flash Memory Control Register 3 (FMR3)
698
Flash Memory Control Register 6 (FMR6)
699
Optional Function Select Area
700
Optional Function Select Address 1 (OFS1)
701
Flash Memory Rewrite Disable Function
702
Boot Mode
702
User Boot Mode
702
User Boot Function
702
CPU Rewrite Mode
706
EW0 Mode
707
EW1 Mode
713
Operating Speed
719
Data Protect Function
719
Suspend Function
720
Software Commands
722
Status Register
729
Standard Serial I/O Mode
732
ID Code Check Function
733
Forced Erase Function
734
Standard Serial I/O Mode Disable Function
734
Standard Serial I/O Mode 1
735
Standard Serial I/O Mode 2
737
30.10 Parallel I/O Mode
738
30.10.1 ROM Code Protect Function
738
30.11 Notes on Flash Memory
739
30.11.1 OFS1 Address and ID Code Storage Address
739
30.11.2 Reading Data Flash
739
30.11.3 CPU Rewrite Mode
740
30.11.4 User Boot
742
31. Electrical Characteristics
743
Electrical Characteristics (Common to 3 V and 5 V)
743
Absolute Maximum Rating
743
Recommended Operating Conditions
744
A/D Conversion Characteristics
746
D/A Conversion Characteristics
747
Flash Memory Electrical Characteristics
748
Voltage Detector and Power Supply Circuit Electrical Characteristics
750
Oscillator Electrical Characteristics
753
Electrical Characteristics (VCC1 = VCC2 = 5 V)
754
Electrical Characteristics
754
Timing Requirements (Peripheral Functions and Others)
758
Timing Requirements (Memory Expansion Mode and Microprocessor Mode)
764
Switching Characteristics (Memory Expansion Mode and Microprocessor Mode)
766
Electrical Characteristics (VCC1 = VCC2 = 3 V)
773
Electrical Characteristics
773
Appendix 1. Package Dimensions
836
Appendix 2. Differences between M16C/64A and M16C/64C
837
Register Index
838
Advertisement
Renesas M16C Series User Manual (367 pages)
16-BIT SINGLE-CHIP MICROCOMPUTER
Brand:
Renesas
| Category:
Computer Hardware
| Size: 3.57 MB
Table of Contents
Table of Contents
6
Chapter 1. Hardware
10
Chapter 2. Peripheral Functions Usage
12
Protect
13
Overview
13
Protect Operation
14
Timer a
15
Overview
15
Operation of Timer a (Timer Mode)
21
Operation of Timer a (Timer Mode, Gate Function Selected)
23
Operation of Timer a (Timer Mode, Pulse Output Function Selected)
25
Operation of Timer a (Event Counter Mode, Reload Type Selected)
27
Operation of Timer a (Event Counter Mode, Free Run Type Selected)
29
Operation of Timer a (Two-Phase Pulse Signal Process in Event Counter Mode, Normal Mode Selected)
31
Operation of Timer a (Two-Phase Pulse Signal Process in Event Counter Mode, Multiply-By-4 Mode Selected)
33
Operation of Timer a (One-Shot Timer Mode)
35
Operation of Timer a (Pulse Width Modulation Mode, 16-Bit PWM Mode Selected)
37
Operation of Timer a (Pulse Width Modulation Mode, 8-Bit PWM Mode Selected)
40
Precautions for Timer a (Timer Mode)
43
Precautions for Timer a (Event Counter Mode)
44
Precautions for Timer a (One-Shot Timer Mode)
46
Precautions for Timer a (Pulse Width Modulation Mode)
47
Clock-Synchronous Serial I/O
48
Overview
48
Operation of Serial I/O (Transmission in Clock-Synchronous Serial I/O Mode)
54
Operation of Serial I/O (Reception in Clock-Synchronous Serial I/O Mode)
58
Precautions for Serial I/O (in Clock-Synchronous Serial I/O Mode)
62
Clock-Asynchronous Serial I/O (UART)
64
Overview
64
Operation of Serial I/O (Transmission in UART Mode)
73
Operation of Serial I/O (Reception in UART Mode)
77
Serial I/O Precautions (UART Mode)
81
Operation of Serial I/O (Transmission Used for SIM Interface)
82
Operation of Serial I/O (Reception Used for SIM Interface)
86
Clock Signals in Used for the SIM Interface
90
Serial Interface Special Function
94
Overview
94
Operation of Serial Interface Special Function (Transmission in Master Mode Without Delay)
103
Operation of Serial Interface Special Function (Reception in Master Mode with Clock Delay)
107
Operation of Serial Interface Special Function
111
Without Delay)
111
Operation of Serial Interface Special Function
115
Clock Delay)
115
Serial Sound Interface
119
Overview
119
Example of Serial Sound Interface Operation
125
Precautions for Serial Sound Interface
129
Frequency Synthesizer (PLL)
130
Www.datasheet4U.com 2.7.1 Overview
130
Operation of Frequency Synthesizer
133
Precautions for Frequency Synthesizer
135
USB Function
136
Overview
136
USB Function Control
148
USB Interrupt
159
USB Operation (Suspend/Resume Function)
170
USB Operation (Endpoint 0)
178
USB Operation (Endpoints 1 to 4 Receive)
191
USB Operation (Endpoints 1 to 4 Transmit)
202
USB Operation (Interface with DMAC Transfer)
216
Precautions for USB
219
A/D Converter
222
Overview
222
Operation of A/D Converter (One-Shot Mode)
227
Operation of A/D Converter (in One-Shot Mode, an External Trigger Selected)
229
Operation of A/D Converter (in Repeat Mode)
231
Operation of A/D Converter (in Single Sweep Mode)
233
Operation of A/D Converter (in Repeat Sweep Mode 0)
235
Operation of A/D Converter (in Repeat Sweep Mode 1)
237
Precautions for A/D Converter
239
Method of A/D Conversion (10-Bit Mode)
240
Method of A/D Conversion (8-Bit Mode)
242
Absolute Accuracy and Differential Non-Linearity Error
244
Internal Equivalent Circuit of Analog Input
246
Sensor's Output Impedance under A/D Conversion (Reference Value)
247
DMAC Usage
249
Overview of the DMAC Usage
249
Operation of DMAC (One-Shot Transfer Mode)
254
Operation of DMAC (Repeated Transfer Mode)
256
CRC Calculation Circuit
258
Overview
258
Operation of CRC Calculation Circuit
260
SFR Access Snoop Function
261
Watchdog Timer
262
Overview
262
Operation of Watchdog Timer (Watchdog Timer Interrupt)
265
Address Match Interrupt Usage
267
Overview of the Address Match Interrupt Usage
267
Operation of Address Match Interrupt
269
Key-Input Interrupt Usage
271
Overview of the Key-Input Interrupt Usage
271
Operation of Key-Input Interrupt
274
Multiple Interrupts Usage
276
Overview of the Multiple Interrupts Usage
276
Multiple Interrupts Operation
281
Www.datasheet4U.com 2.16 Power Control Usage
283
Overview of the Power Control Usage
283
Stop Mode Set-Up
289
Wait Mode Set-Up
290
Precautions in Power Control
291
Programmable I/O Ports Usage
293
Overview of the Programmable I/O Ports Usage
293
Applications
302
Long-Period Timers
304
Variable-Period Variable-Duty PWM Output
308
Buzzer Output
312
Solution for External Interrupt Pins Shortage
314
Memory to Memory DMA Transfer
316
Buzzer Output
320
CRC Calculation SFR Access Snoop Function in Clock Synchronous Serial Data Transmit
320
Transfer from USB FIFO to Serial Sound Interface
325
Controlling Power Using Stop Mode
330
Controlling Power Using Wait Mode
334
Chapter 4. External Buses
338
Overview of External Buses
339
Data Access
340
Data Bus Width
340
Chip Selects and Address Bus
341
R/W Modes
342
Connection Examples
343
16-Bit Memory to 16-Bit Width Data Bus Connection Example
343
8-Bit Memory to 16-Bit Width Data Bus Connection Example
344
8-Bit Memory to 8-Bit Width Data Bus Connection Example
346
Two 8-Bit and 16-Bit Memory to 16-Bit Width Data Bus Connection Example
347
Chip Selects and Address Bus
348
Connectable Memories
349
Operation Frequency and Access Time
349
Connecting Low-Speed Memory
352
Connectable Memories
355
Precautions for External Bus
358
Www.datasheet4U.com
358
Chapter 5. Standard Characteristics
360
DC Standard Characteristics
361
Port Standard Characteristics
361
VCC-ICC Characteristics
363
Renesas M16C Series Reference Book (32 pages)
16-BIT SINGLE-CHIP MICROCOMPUTER
Brand:
Renesas
| Category:
Computer Hardware
| Size: 0.14 MB
Table of Contents
Table of Contents
4
Usage Precaution
6
Precautions for Power Control
6
Precautions for Protect
7
Precautions for Interrupts
8
Reading Address 0000016
8
Setting the SP
8
Changing the Interrupt Generate Factor
9
Rewrite the Interrupt Control Register
10
Watchdog Timer Interrupt
11
Precautions for DMAC
12
Write to DMAE Bit in Dmicon Register
12
Precautions for Timers
13
Timer a
13
Timer a (Timer Mode)
13
Timer a (Event Counter Mode)
14
Timer a (One-Shot Timer Mode)
15
Timer a (Pulse Width Modulation Mode)
16
Timer B
17
Timer B (Timer Mode)
17
Timer B (Event Counter Mode)
18
Timer B (Pulse Period/Pulse Width Measurement Mode)
19
Precautions for Serial I/O (Clock-Synchronous Serial I/O)
20
Transmission/Reception
20
Transmission
21
Reception
22
Precautions for Serial I/O (UART Mode)
23
Special Mode 2
23
Special Mode 4 (SIM Mode)
23
Precautions for A-D Converter
24
Precautions for Programmable I/O Ports
26
Advertisement
Advertisement
Related Products
Renesas M16C/29
Renesas M16C/64
Renesas M16C/6NM
Renesas M16C/26A
Renesas M16C/6NL
Renesas M16C/6N4
Renesas M16C/6N5
Renesas M16C FAMILY
Renesas M16C/62PT
Renesas M16C/60 Series
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