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 #29 background imageLoading...
Page #29 background image
RL78/G13 Safety Function (Frequency Detection)
5.8.5 TAU0 Setup
Figure 5.6 shows the flowchart for setting up the TAU0.
R_TAU0_Create()
return
Supply clock signals to timer array unit
TAU0EN bit 1
Set up TAU0 operation
TAU0 operation clock settings
[high-speed on-chip oscillator clock: 32 MHz]
Operation clock 0(CK00): 31.25 kHz
Operation clock 1(CK01): 32 MHz
Operation clock 2(CK02): 16 MHz
Operation clock 3(CK03): 125KHz
Stop all channels of TAU0
TPS0 register 000AH
TT0 register 0AFFH
Disable interrupts for all channels of TAU0
TMMK0n bit 1
n: 0 to 7
Clear interrupt
request flags for all channels of TAU0
TMIF0n bit 0
n: 0 to 7
Set interrupt
priority level for channel 5 of TAU0 to 0
TMPR105 bit 0
TMPR005 bit 0
Set operation of channel 5 of TAU0
Operation clock: CK01
Trigger: TI05 enable edge for
start/capture mode
TI05 enable edge: Falling edge
Operation mode: Capture mode
No interrupt occurs when counting
starts
TMR05 8104H
TO0 register
TO05 = 0
TOE0 register
TOE05 = 0
Select low-speed on-chip oscillator clock
as timer input for channel 5 of TAU0
TIS0
04H
Connect timer input pin to input port
PM0.5
1
Figure 5.6 TAU 0 Setup
R01AN0956EJ0100 Rev. 1.00 Page 29 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