EasyManuals Logo
Home>Renesas>Computer Hardware>RL78/G13

Renesas RL78/G13 Manual

Renesas RL78/G13
73 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #52 background imageLoading...
Page #52 background image
RL78/G13 Safety Function (Frequency Detection)
5.8.21 Starting LED Blink
Figure 5.24 shows the flowchart for starting the LED blink.
R_Main_Start_LedBlink()
[Argument]
Enum which represents occurrence
frequency of HALFSEC fixed-frequency
interrupts
Interrupts are set to occur once in 0.5
second (f
SUB
/f
IL
).
Start real-time clock
fixed-frequency interrupts
R_RTC_Set_ConstPeriod
InterruptOn(HALFSEC)
Start real-time clock
R_RTC_Start()
RTCIF bit
0
RTCMK bit 0
RTCE bit 1
Stop SEC-through-YEAR counters,
read counter values and enter write
mode
RWAIT bit
1
Ye s
No
SEC-through-YEAR
counters stopped?
Wait until RWST bit is set to 1.
Set up SEC-through-YEAR counters
RWAIT bit
0
Ye s
No
SEC-through-YEAR
counters started?
Wait until RWST bit is set to 0.
return
Figure 5.24 Starting LED Blink
R01AN0956EJ0100 Rev. 1.00 Page 52 of 70
Feb. 27, 2012

Table of Contents

Other manuals for Renesas RL78/G13

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78/G13 and is the answer not in the manual?

Renesas RL78/G13 Specifications

General IconGeneral
BrandRenesas
ModelRL78/G13
CategoryComputer Hardware
LanguageEnglish

Related product manuals