
USER'S MANUAL
RL78/G11
High-end Gas Cooker
Oct.
Introduction
This user's manual describes a Rene sas ultra-low-power microco ntroller RL78/G11 application for a high-end ga s stove,
through the internal timer array unit, buzze r output control circuit, A/D con ver te r a nd other functions.
Target Device
RL78/G11
R01AN3905EC0101 Rev.1.01 Page 1 of 19
Oct. 08, 2018

RL78/G11 High-end Gas Cooker
Contents
1. Outline of System Function ........................................................................................... 3
1.1 Introduction of High-end Gas Cooker ....................................................................................... 3
1.2 Introduction of Control System ................................................................................................. 3
1.3 Introduction of Operation ........................................................................................................... 4
2. Introduction of Hardware ............................................................................................... 5
2.1 Introduction of PCB .................................................................................................................... 5
2.2 Hardware Block Diagram ............................................................................................................ 6
2.3 Main MC U ..................................................................................................................................... 7
2.4 Power Supply Circuit .................................................................................................................. 8
2.5 High Voltage Pulse Ignition Circui t ........................................................................................... 8
2.6 Micro Switch Circuit .................................................................................................................... 9
2.7 Flame Temperature Detection Circuit ....................................................................................... 9
2.8 Gas Detection Circuit ................................................................................................................ 10
2.9 Anti-dry Protection Circuit ....................................................................................................... 10
2.10 Electromagnetic Valve Control Circuit ................................................................................... 11
2.11 Buzzer Output Controller Circuit ............................................................................................. 11
3. Schematic, PCB and Bill of Materials ......................................................................... 12
3.1 Schematic .................................................................................................................................. 12
3.2 PCB ............................................................................................................................................. 14
3.3 Bill of Materials .......................................................................................................................... 15
4. Introduction of Software .............................................................................................. 17
4.1 Integrated Development Environment .................................................................................... 17
4.2 List of Option Byte Setting ....................................................................................................... 17
4.3 Flow Chart .................................................................................................................................. 18
4.3.1 Flow Chart of Firmware Main Program ............................................................................. 18
5. Sample Code ................................................................................................................ 19
6. Reference Documents .................................................................................................. 19
R01AN3905EC0101 Rev.1.01 Page 2 of 19
Oct. 08, 2018

RL78/G11 High-end Gas Cooker
RL78/G11
Micro Switc h
Flame
thermocouple
detection
High voltage
pulse ignition
Electromagnetic
valve
Anti
-dry
protection
Gas det ec tion
Power
Alarm
1. Outline of System Function
1.1 Introduction of High-end Gas Cooker
Nowadays, gas cooker has been popularized in every household, and this also has a high demand on the cont rol and
safety of gas stove. The introduction of the high-end gas stove in this user's manua l is optimized for handling and
safety.
The high-end gas stove uses a 9V battery as power supply. Lightly press the micro switch to start the ignition. The high
voltage pulse i gnition allows faster gas ignition, and the gas detecting device can effectively alarm to avoid gas leakage
and improve the safety; the flame temperature detection (thermocouple temperature feedback) can get the flame
temperature in real time to avoid flameout; the anti-dry protection device can avoid occurrence of danger and waste of
gas effectively.
1.2 Introduction of Control System
The high-end gas cooker consists of micro switch, high voltage pulse ignition, gas detection, anti-dry protection, flame
temperature detection (thermocouple temperature feedback), alarm and electronic circuit with RL78/G11 MCU as its
core. For schematic diagram of control system, see Figure 1.1.
R01AN3905EC0101 Rev.1.01 Page 3 of 19
Oct. 08, 2018
Figure 1.1 Schematic Diagram of Control System

RL78/G11 High-end Gas Cooker
1.3 Introduction of Operation
(1) The gas detection timer starts automatically after the power is turned on.
(2) When time (10 ms) is up, it begins to detect gas concentration, and if the co ncentration is too high, the buzzer will
sound.
(3) When it is not in burning state, if micro switch is pressed, it will start ignition process (4); otherwise, it returns to (2);
But when it is i n burning st ate, micro switch signals would be blocked, and it enters (5).
(4) The electromagnetic valve is opened and the high voltage pulse ignition starts. Then the flame temperature is
detected, and if the flame temperature is to o low, that means ignition failure, then the ignition failure process starts,
otherwise, it enters (5).
(5) The flame temperature is detected. If the flame temperature is too low, it can prevent accidental flameout, that is, the
electromagnetic valve will be closed and the alarm sounds.
(6) The temperature of the pot bottom is detected. If the temperature is too high, it will start the anti-dry protection, that
is, the electromagnetic valve will be closed and the anti-dry protection alarm sounds.
(7) Repeat (2) ~ (6).
R01AN3905EC0101 Rev.1.01 Page 4 of 19
Oct. 08, 2018

RL78/G11 High-end Gas Cooker
Electromagnetic
valve control
High voltage
pulse ignition
2. Introduction of Hardware
2.1 Introduction of PCB
The demo board of the high-end gas cooker is shown in Figure 2.1.
power
Figure 2.1 Demo Board of High-end Gas Cooker
R01AN3905EC0101 Rev.1.01 Page 5 of 19
Oct. 08, 2018

RL78/G11 High-end Gas Cooker
P55
LDO
V
DD
Powe r supply
5V
RL78/G11
(20Pin)
Lift
ANI17
ANI16
On-Chip Debug
TOOL0
Lift
Right
Al arm control
P30
Left micro switch
P121
Gas detection
P137
9V Battery
P56
Right
Ignition control
Anti-dry
protection
ANI3
ANI2
Lift
Right
Flame
temperature
detection
P122
Right micro
switch
P31
P32
Electromagnetic
val ve c ontrol
P22
P23
2.2 Hardware Block Diagram
The hardware block diagram of the high-end gas cooker lighting is shown in Figure 2.2.
Figure 2.2 High-end Gas Cooker Hardware Block Diagram
R01AN3905EC0101 Rev.1.01 Page 6 of 19
Oct. 08, 2018

RL78/G11 High-end Gas Cooker
10ms timer, plus oscillation
Flame temperature detection
Electromagnetic valve control
Oscillation circuit control
2.3 Main MCU
The demo board of the high-end gas cooker uses RL78/G11 (R5F1056AASP main MCU. The Flash ROM size of
RL78/G11 is 16 KB and the RAM size is 1.5 KB. The used peripheral functions of RL78/G11 and their applications are
shown in Ta ble 2.1.
Table 2.1 The Used Peripheral Functions and Their Applications
The interface control circuit of RL78/G11 is shown in Figure 2.3.
R01AN3905EC0101 Rev.1.01 Page 7 of 19
Oct. 08, 2018
Figure 2.3 Interface Control Circuit of RL78/G11