Sign In
Upload
Manuals
Brands
Renesas Manuals
Microcontrollers
RL78/G1M
Renesas RL78/G1M Manuals
Manuals and User Guides for Renesas RL78/G1M. We have
2
Renesas RL78/G1M manuals available for free PDF download: User Manual
Renesas RL78/G1M User Manual (516 pages)
16-Bit Single-Chip Microcontrollers
Brand:
Renesas
| Category:
Microcontrollers
| Size: 3 MB
Table of Contents
Table of Contents
6
Chapter 1 Outline
17
Features
17
List of Part Numbers
19
Pin Configuration (Top View)
20
RL78/G1M Products
20
RL78/G1N Products
20
Pin Identification
21
Block Diagram
22
RL78/G1M Products
22
RL78/G1N Products
23
Outline of Functions
24
Chapter 2 Pin Functions
26
Port Functions
26
RL78/G1M Products
26
RL78/G1N Products
27
Functions Other than Port Pins
28
Functions for each Product
28
Description of Functions
29
Connection of Unused Pins
30
Block Diagrams of Pins
31
Chapter 3 Cpu Architecture
40
Memory Space
41
Internal Program Memory Space
43
Mirror Area
45
Internal Data Memory Space
46
Special Function Register (SFR) Area
46
Extended Special Function Register (2Nd SFR: 2Nd Special Function Register) Area
46
Data Memory Addressing
47
Processor Registers
48
Control Registers
48
General-Purpose Registers
50
And CS Registers
51
Special Function Registers (Sfrs)
52
Extended Special Function Registers (2Nd Sfrs: 2Nd Special Function Registers)
55
Instruction Address Addressing
58
Relative Addressing
58
Immediate Addressing
58
Register Indirect Addressing
59
Addressing for Processing Data Addresses
60
Implied Addressing
60
Register Addressing
60
Direct Addressing
61
Short Direct Addressing
62
SFR Addressing
63
Register Indirect Addressing
64
Based Addressing
65
Based Indexed Addressing
69
Stack Addressing
70
Chapter 4 Port Functions
74
Port Functions
74
Port Configuration
74
Port Configuration of RL78/G1M Products
74
Port Configuration of RL78/G1N Products
76
Registers Controlling Port Function
78
Port Mode Registers 0, 1, 4 (PM0, PM1, PM4)
79
Port Registers 0, 1, 4, 12, 13 (P0, P1, P4, P12, P13)
80
Pull-Up Resistor Option Registers 0, 1, 4, 12 (PU0, PU1, PU4, PU12)
81
Pull-Down Resistor Option Registers 0, 1 (PD0, PD1) (RL78/G1N Only)
82
Port Output Mode Registers 0, 1 (POM0, POM1)
83
Port Mode Control Registers 0, 1 (PMC0, PMC1)
84
Peripheral I/O Redirection Register (PIOR)
85
Port Function Operations
86
Writing to I/O Port
86
Reading from I/O Port
86
Operations on I/O Port
86
Register Settings When an Alternate Function Is Used
87
Basic Concepts on Using an Alternate Function
87
Register Settings for Alternate Functions that Do Not Use an Output Function
88
Example of Register Settings for Port and Alternate Functions Used
88
8-Seg LED Control Example (RL78/G1N Only)
97
Overview
97
Hardware Connection Example
97
Port Output Timing
98
Flowcharts
99
Register Settings
101
Cautions When Using Port Function
102
Cautions on 1-Bit Manipulation Instruction for Port Register N (Pn)
102
Notes on Specifying the Pin Settings
103
Chapter 5 Clock Generator
104
Functions of Clock Generator
104
Configuration of Clock Generator
105
Registers Controlling Clock Generator
107
Peripheral Enable Register 0 (PER0)
108
Operation Speed Mode Control Register (OSMC)
109
High-Speed On-Chip Oscillator Frequency Selection Register (HOCODIV)
110
System Clock Oscillator
111
High-Speed On-Chip Oscillator
111
Low-Speed On-Chip Oscillator
111
Clock Generator Operation
112
Controlling Clock
113
Example of Setting High-Speed On-Chip Oscillator
113
CPU Clock Status Transition Diagram
114
Chapter 6 Timer Array Unit
115
Functions of Timer Array Unit
117
Independent Channel Operation Function
117
Simultaneous Channel Operation Function
119
8-Bit Timer Operation Function (Channels 1 and 3 Only)
121
Configuration of Timer Array Unit
122
Timer Counter Register 0N (Tcr0N)
125
Timer Data Register 0N (Tdr0N)
127
Registers Controlling Timer Array Unit
129
Peripheral Enable Register 0 (PER0)
130
Timer Clock Select Register 0 (TPS0)
131
Timer Mode Register 0N (Tmr0N)
132
Timer Status Register 0N (Tsr0N)
137
Timer Channel Enable Status Register 0 (TE0, TEH0 (8-Bit Mode))
138
Timer Channel Start Register 0 (TS0, TSH0 (8-Bit Mode))
139
Timer Channel Stop Register 0 (TT0, TTH0 (8-Bit Mode))
140
Timer Output Enable Register 0 (TOE0)
141
Timer Output Register 0 (TO0)
142
Timer Output Level Register 0 (TOL0)
143
Timer Output Mode Register 0 (TOM0)
144
Noise Filter Enable Register 1 (NFEN1)
145
Input Switch Control Register (ISC)
146
Timer I/O Control Register (TIOSC)
147
Registers Controlling Port Functions of Pins to be Used for Timer I/O
148
Basic Rules of Timer Array Unit
149
Basic Rules of Simultaneous Channel Operation Function
149
Basic Rules of 8-Bit Timer Operation Function (Only Channels 1 and 3)
151
Operation of Counter
152
Count Clock (F TCLK )
152
Start Timing of Counter
154
Counter Operation
155
Channel Output (To0N Pin) Control
160
To0N Pin Output Circuit Configuration
160
To0N Pin Output Setting
161
Cautions on Channel Output Operation
162
Collective Manipulation of To0N Bit
166
Timer Interrupt and To0N Pin Output at Count Operation Start
167
Timer Input (Ti0N) Control
168
Ti0N Input Circuit Configuration
168
Noise Filter
168
Cautions on Channel Input Operation
169
Independent Channel Operation Function of Timer Array Unit
170
Operation as Interval Timer/Square Wave Output
170
Operation as External Event Counter
176
Operation as Frequency Divider (Only Channels 0 and 3)
181
Operation as Input Pulse Interval Measurement
186
Operation as Input Signal High-/Low-Level Width Measurement
191
Operation as Delay Counter
196
Simultaneous Channel Operation Function of Timer Array Unit
201
Operation as One-Shot Pulse Output
201
Two-Channel Input with One-Shot Pulse Output Function
210
Operation as PWM Output Function
219
Operation as Multiple PWM Output Function
227
Cautions When Using Timer Array Unit
236
Cautions When Using Timer Output
236
Chapter 7 12-Bit Interval Timer
237
Functions of 12-Bit Interval Timer
237
Configuration of 12-Bit Interval Timer
237
Registers Controlling 12-Bit Interval Timer
238
Peripheral Enable Register 0 (PER0)
238
Operation Speed Mode Control Register (OSMC)
239
Interval Timer Control Register (ITMCH, ITMCL)
240
12-Bit Interval Timer Operation
241
12-Bit Interval Timer Operation Timing
241
Start of Count Operation and Re-Enter to HALT/STOP Mode after Returned from
242
HALT/STOP Mode
242
Chapter 8 Clock Output/Buzzer Output Controller
243
Functions of Clock Output/Buzzer Output Controller
243
Configuration of Clock Output/Buzzer Output Controller
244
Registers Controlling Clock Output/Buzzer Output Controller
244
Clock Output Select Register 0 (CKS0)
245
Registers Controlling Port Functions of Clock Output/Buzzer Output Pin
246
Operations of Clock Output/Buzzer Output Controller
247
Operation as Output Pin
247
Chapter 9 Watchdog Timer
248
Functions of Watchdog Timer
248
Configuration of Watchdog Timer
249
Register Controlling Watchdog Timer
250
Watchdog Timer Enable Register (WDTE)
250
Operation of Watchdog Timer
251
Controlling Operation of Watchdog Timer
251
Setting Time of Watchdog Timer
252
Chapter 10 A/D Converter
253
Function of A/D Converter
253
Configuration of A/D Converter
255
Registers Used in A/D Converter
257
Peripheral Enable Register 0 (PER0)
257
A/D Converter Mode Register 0 (ADM0)
258
A/D Converter Mode Register 2 (ADM2)
262
A/D Conversion Result Higher-Order Bit Storage Register (ADCRH)
262
A/D Conversion Result Lower-Order Bit Storage Register (ADCRL)
263
Analog Input Channel Specification Register (ADS)
264
Registers Controlling Port Function of Analog Input Pins
264
A/D Converter Conversion Operations
265
Input Voltage and Conversion Results
267
A/D Converter Operation Modes
268
A/D Converter Setup Flowchart
269
Setting up A/D Conversion of Voltages on ANI0 to ANI7
269
How to Read A/D Converter Characteristics Table
270
Resolution
270
Overall Error
270
Quantization Error
270
Zero-Scale Error
271
Full-Scale Error
271
Integral Linearity Error
271
Differential Linearity Error
271
Conversion Time
272
Sampling Time
272
Cautions for A/D Converter
273
Operating Current in STOP Mode
273
Input Range of ANI0 to ANI7 Pins
273
Conflicting Operations
273
Noise Countermeasures
273
Analog Input (Anin) Pins
274
Input Impedance of Analog Input (Anin) Pins
274
Interrupt Request Flag (ADIF)
274
Conversion Results Just after A/D Conversion Start
274
A/D Conversion Result Register (ADCRH, ADCRL) Read Operation
274
Internal Equivalent Circuit
275
Starting the A/D Converter
275
Chapter 11 Serial Array Unit
276
Functions of Serial Array Unit
277
3-Wire Serial I/O (CSI00)
277
Uart (Uart0)
278
Configuration of Serial Array Unit
279
Registers Controlling Serial Array Unit
282
Peripheral Enable Register 0 (PER0)
283
Serial Clock Select Register 0 (SPS0)
284
Serial Mode Register 0N (Smr0Nh, Smr0Nl)
285
Serial Communication Operation Setting Register 0N (Scr0Nh, Scr0Nl)
287
Serial Data Register 0N (Sdr0Nh, Sdr0Nl)
289
Serial Flag Clear Trigger Register 0N (Sir0N)
290
Serial Status Register 0N (Ssr0N)
291
Serial Channel Start Register 0 (SS0)
293
Serial Channel Stop Register 0 (ST0)
294
Serial Channel Enable Status Register 0 (SE0)
295
Serial Output Enable Register 0 (SOE0)
296
Serial Output Register 0 (SO0)
297
Serial Clock Output Register (CKO0)
298
Serial Output Level Register 0 (SOL0)
299
Noise Filter Enable Register 0 (NFEN0)
300
Input Switch Control Register (ISC)
301
Registers Controlling Port Functions of Serial Input/Output Pins
302
Operation Stop Mode
303
Stopping the Operation by Units
303
Stopping the Operation by Channels
304
Operation of 3-Wire Serial I/O (CSI00) Communication
305
Master Transmission
306
Master Reception
316
Master Transmission/Reception
325
Slave Transmission
335
Slave Reception
345
Slave Transmission/Reception
352
Calculating Transfer Clock Frequency
362
Procedure for Processing Errors that Occurred During 3-Wire Serial I/O (CSI00) Communication
364
Operation of UART (UART0) Communication
365
UART Transmission
366
UART Reception
376
Calculating Baud Rate
383
Procedure for Processing Errors that Occurred During UART (UART0) Communication
387
CHAPTER 12 REAL-TIME OUTPUT CONTROLLER (RL78/G1M Only)
388
Functions of Real-Time Output Controller
388
Configuration of Real-Time Output Controller
389
Registers Controlling Real-Time Output Controller
389
RTO Source Selection Register (RTOSRC)
390
RTO Forced Cutoff Control Register (RTOSHT)
391
RTO Control Register 0 (RTOOUTC0)
392
RTO Control Register 1 (RTOOUTC1)
393
RTO Forced Cutoff Output Selection Register (RTOCIO)
394
RTO Forced Cutoff Status Register (RTOSTR)
395
Registers Controlling the Port Function of Real-Time Output Pins
396
Operations of Real-Time Output Controller
397
Initial Setup
397
Normal Operation
398
Forced Cutoff Processing (Rtoshtn = 1)
398
Notes on Use
400
Example of Controlling Brushless DC Electric Motor
401
Overview
401
Timing of Controlling Three-Phase BLDC Motors
402
Flowchart of Real-Time Output Initialization
403
Register Setting Example
404
Example of Controlling Stepper Motors
405
Overview
405
Hardware Connection Example
405
Controlling the Stepper Motors
406
Flowchart of RTO Initialization
407
Register Settings
408
Chapter 13 Interrupt Functions
409
Interrupt Function Types
409
Interrupt Sources and Configuration
409
Registers Controlling Interrupt Functions
413
External Interrupt Rising Edge Enable Register 0 (EGP0)
413
Interrupt Request Flag Registers (IF0L, IF0H, IF1L)
414
Interrupt Mask Flag Registers (MK0L, MK0H, MK1L)
415
Priority Specification Flag Registers (PR00L, PR00H, PR10L, PR10H, PR01L, PR11L)
416
External Interrupt Falling Edge Enable Register 0 (EGN0)
417
Program Status Word (PSW)
418
Interrupt Servicing Operations
419
Maskable Interrupt Request Acknowledgment
419
Software Interrupt Request Acknowledgment
421
Multiple Interrupt Servicing
421
Interrupt Request Hold
425
Chapter 14 Key Interrupt Function
426
Functions of Key Interrupt
426
Configuration of Key Interrupt
426
Register Controlling Key Interrupt
428
Key Return Control Register (KRCTL)
428
Key Return Mode Register (KRM0)
429
Key Return Flag Register (KRF)
430
Registers Controlling Port Functions of Key Interrupt Input Pins
430
Key Interrupt Operation
431
When Not Using the Key Interrupt Flag (KRMD = 0)
431
When Using the Key Interrupt Flag (KRMD = 1)
432
Chapter 15 Standby Function
434
Overview
434
Standby Function Operation
435
HALT Mode
435
STOP Mode
437
Chapter 16 Reset Function
440
Timing of Reset Operation
442
Operation States During Reset Periods
444
Register for Confirming Reset Source
446
Reset Control Flag Register (RESF)
446
Chapter 17 Selectable Power-On-Reset Circuit
448
Functions of Selectable Power-On-Reset Circuit
448
Configuration of Selectable Power-On-Reset Circuit
449
Operation of Selectable Power-On-Reset Circuit
450
Cautions for Selectable Power-On-Reset Circuit
451
Chapter 18 Option Byte
452
Functions of Option Bytes
452
User Option Byte (000C0H to 000C2H)
452
On-Chip Debug Option Byte (000C3H)
452
Format of User Option Byte
453
Format of On-Chip Debug Option Byte
455
Setting of Option Byte
456
Chapter 19 Flash Memory
457
Serial Programming by Using Flash Memory Programmer
458
Programming Environment
459
Communication Mode
459
Writing to Flash Memory by Using External Device (that Incorporates UART)
460
Programming Environment
460
Communication Mode
460
Connection of Pins on Board
461
P40/TOOL0 Pin
461
RESET Pin
461
Port Pins
462
Power Supply
462
Serial Programming Method
463
Serial Programming Procedure
463
Flash Memory Programming Mode
464
Communication Mode
465
Communication Commands
465
Processing Time of each Command When Using PG-FP6 (Reference Values)
465
Chapter 20 On-Chip Debug Function
466
Connecting E1, E2, E2 Lite, E20 On-Chip Debugging Emulator
466
On-Chip Debug Security ID
468
Securing of User Resources
468
Chapter 21 Bcd Correction Circuit
470
BCD Correction Circuit Function
470
Registers Used by BCD Correction Circuit
470
BCD Correction Result Register (BCDADJ)
470
BCD Correction Circuit Operation
471
Chapter 22 Instruction Set
473
Conventions Used in Operation List
474
Operand Identifiers and Specification Methods
474
Description of Operation Column
475
Description of Flag Operation Column
476
PREFIX Instruction
476
Operation List
477
Chapter 23 Electrical Specifications
494
Absolute Maximum Ratings
495
Oscillator Characteristics
496
On-Chip Oscillator Characteristics
496
DC Characteristics
497
Pin Characteristics of RL78/G1M
497
Pin Characteristics of RL78/G1N
498
Common Items
500
Supply Current Characteristics
501
AC Characteristics
502
Serial Interface Characteristics
504
Serial Array Unit
504
Analog Characteristics
508
A/D Converter Characteristics
508
SPOR Circuit Characteristics
509
Power Supply Voltage Rising Slope Characteristics
509
RAM Data Retention Characteristics
509
Flash Memory Programming Characteristics
510
Advertisement
Renesas RL78/G1M User Manual (27 pages)
Fast Prototyping Board 16-Bit Single-Chip Microcontrollers
Brand:
Renesas
| Category:
Microcontrollers
| Size: 0 MB
Table of Contents
Table of Contents
6
Overview
7
Package Components
7
Purpose
7
Features
7
Preparation
7
RL78/G1M Fast Prototyping Board: Table of Specifications
8
Block Diagram
9
Board Layout
10
Parts Layout
11
Operating Environment
12
User Circuits
13
Rl78/G1M
13
USB Connector
13
Act Led
13
Power LED
13
User LED
13
Arduino Nano Connectors Multiplexed with the MCU Headers
14
Clock
16
Reset Switch
16
Emulator Reset Headers
16
Power-Supply Selection Header
17
External Power-Supply Header
18
Current Measurement Header
19
Handling Precautions
20
Power to be Supplied
20
Remodeling the Board
20
Limitation on the Number of Connected RL78/G1M Fast Prototyping Boards
20
Power-Supply Circuits and Usage Conditions
20
Developing Code
22
Using the E Studio
22
Using CS
23
Additional Information
24
Advertisement
Related Products
Renesas RL78/G13
Renesas RL78/G10
Renesas RL78/G1A
Renesas rl78/g1g
Renesas RL78/G1H
Renesas RL78/G1P
Renesas RL78/G1N
Renesas RL78/G23-128p
Renesas RL78/G15
Renesas RL78/I1A
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