R5F21133DFP RENESAS [Renesas Technology Corp], R5F21133DFP Datasheet - Page 94

no-image

R5F21133DFP

Manufacturer Part Number
R5F21133DFP
Description
16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY/R8C/Tiny SERIES
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
R5F21133DFP#U0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
R8C/13 Group
Rev.1.20
REJ09B0111-0120
Table 12.7 Timer Mode Specifications
NOTES:
1. The IR bit in the TYIC register is set to "1" (interrupt requested) if you write to the TYPR or PREY register while both
Count source
Count operation
Divide ratio
Count start condition
Count stop condition
Interrupt request
generation timing
INT2/CNTR
Read from timer
Write to timer
Select function
of the following conditions are met.
12.2.1 Timer Mode
To write to the TYPR or PREY register in the above state, disable interrupts before writing.
In this mode, the timer counts an internally generated count source (see “Table 12.7 Timer Mode
Specifications”). An external signal input to the CNTR1 pin can be counted. The TYSC register is
unused in timer mode. Figure 12.15 shows the TYZMR and PUM registers in timer mode.
Jan 27, 2006
Conditions:
• TYWC bit in TYZMR register is "0" (write to reload register and counter simultaneously)
• TYS bit is "1" (count start)
Item
1
pin function
(1)
page 83 of 205
f
• Down-count
• When the timer underflows, it reloads the reload register contents before continuing
1/(n+1)(m+1)
Write “1” (count start) to TYS bit in TYZMR register
Write “0” (count stop) to TYS bit in TYZMR register
• When Timer Y underflows [Timer Y interrupt]
Programmable I/O port, count source input or INT2 interrupt input
• When the TYCK1 to TYCK0 bits in the TCSS register are set to “00b”, “01b” or “10b”
• When the TYCK1 to TYCK0 bits are set to “11b” (Timer Y count source is CNTR
Count value can be read out by reading TYPR register.
Same applies to PREY register.
Value written to TYPR register is written to both reload register and counter or written to
only reload register. Selected by program.
Same applies to PREY register.
• Event counter function
• INT2/CNTR1 switching bit
1
(Timer Y count source is f
counting (When the Timer Y underflows, the contents of the Timer Y primary reload
register is reloaded.)
input), count source input (INT2 interrupt input)
When setting TYCK1 to TYCK0 bits to “11
counted.
Active edge of count source is selected by R1EDG bit.
, f
_______
8
, f
RING
, external signal fed to CNTR1 pin
n: set value in PREY register, m: set value in TYPR register
1
, f
_______
8
or f
Specification
RING
), programmable I/O port or INT2 interrupt input
2
”, an external signal fed to CNTR1 pin is
12.2 Timer (Timer Y)
_______
1

Related parts for R5F21133DFP