r5f21368sdfp Renesas Electronics Corporation., r5f21368sdfp Datasheet - Page 309

no-image

r5f21368sdfp

Manufacturer Part Number
r5f21368sdfp
Description
Renesas Mcu R8c Family / R8c/3xt-a Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
r5f21368sdfp#V0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Under development
R8C/36T-A Group
R01UH0240EJ0001 Rev.0.01
Apr 28, 2011
17.2.2
b15 to b0 16-bit readable/writable register.
After Reset
After Reset
Bit
Address 0013Ah (TRCGRA_0), 0013Ch (TRCGRB_0), 0013Eh (TRCGRC_0), 00140h (TRCGRD_0)
Registers TRCGRA to TRCCRD can be used as output compare or input capture registers. Their functions are
switched by registers TRCIOR0 and TRCIOR1.
The value in the general register set as an output compare register is always compared with the value in the
TRCCNT register. When the values in both registers match (compare match), bits IMFA to IMFD in the
TRCSR register are set to 1. If bits IMIEA to IMIED in the TRCIER register are set to 1 at this time, an
interrupt request is generated. Compare match output can be set by registers TRCIOR0 and TRCIOR1.
When an external input capture is detected, the value in the TRCCNT register is stored in the general register
set as an input capture register, and bits IMFA to IMFD in the TRCSR register are set to 1. If bits IMIEA to
IMIED in the TRCIER register are set to 1 at this time, an interrupt request is generated. The detection edge for
input capture can be selected by registers TRCIOR0 and TRCIOR1.
Also, the TRCGRC register can be used as a buffer register for the TRCRGA register and the TRCGRD register
can be used as a buffer register for the TRCRGB register. These functions are selected by bits BUFEA and
BUFEB in the TRCMR register.
For example, if the TRCGRA register is set as an output compare register and the TRCGRC register is set as a
buffer register for the TRCGRA register, the value in the buffer register TRCGRC is transferred to the
TRCGRA register each time compare match A occurs.
If the TRCGRA register is set as an input capture register and the TRCGRC register is set as a buffer register
for the TRCGRA register, the value in the TRCCNT register is transferred to the TRCGRA register and the
value in the TRCGRA register is transferred to the buffer register TRCGRC when an input capture occurs.
Do not access registers TRCGRA to TRCGRD in 8-bit units. These registers must be accessed in 16-bit units.
The initial values in these registers are FFFFh.
Symbol
Symbol
Bit
Bit
Timer RC General Registers A, B, C, and D (TRCGRA, TRCGRB, TRCGRC,
TRCGRD)
Preliminary document
Specifications in this document are tentative and subject to change.
b15
b7
1
1
b14
b6
1
1
b13
b5
1
1
b12
b4
1
1
Function
b11
b3
1
1
b10
b2
1
1
b1
b9
1
1
b0
b8
1
1
Page 278 of 725
17. Timer RC
R/W
R/W

Related parts for r5f21368sdfp