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

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
Figure 12.6 TXMR Register in Event Counter Mode
Table 12.4 Event Counter Mode Specifications
Count source
Count operation
Divide ratio
Count start condition
Count stop condition
Interrupt request
generation timing
INT1/CNTR
CNTR
Read from timer
Write to timer
Select function
Timer X mode register
b7 b6 b5 b4 b3 b2 b1 b0
0 0
12.1.3 Event Counter Mode
N O T E S :
1 . T h e I R b i t i n t h e I N T 1 I C r e g i s t e r m a y b e s e t t o “ 1 ” ( i n t e r r u p t r e q u e s t e d ) w h e n t h e R 0 E D G b i t i s r e w r i t t e n .
In this mode, the timer counts an external signal fed to INT1/CNTR
Counter Mode Specifications”). Figure 12.6 shows TXMR register in event counter mode.
Jan 27, 2006
0
R e f e r t o t h e p a r a g r a p h 1 9 . 2 . 5 “ C h a n g i n g I n t e r r u p t F a c t o r ” i n t h e U s a g e N o t e s R e f e r e n c e B o o k .
pin function
0
Item
0
0
pin function
1
page 75 of 205
0
External signals fed to CNTR
• Down count
• When the timer underflows, the contents in the reload register is reloaded and the count
1/(n+1)(m+1)
Write “1” (count start) to TXS bit in TXMR register
Write “0” (count stop) to TXS bit in TXMR register
• When Timer X underflows [Timer X interrupt]
Count source input (INT1 interrupt input)
Programmable I/O port
Count value can be read by reading TX register
Same applies to PREX register.
Value written to TX register is written to both reload register and counter.
Same applies to PREX register.
• INT1/CNTR
B i t s y m b o l
T X M O D 0
T X M O D 1
R 0 E D G
T X S
T X O C N T
TXMOD2
T X U N D
T X E D G
is contiuned.
Active edge of count source can be selected with R0EDG.
Symbol
TXMR
I N T 1 / C N T R
s w i t c h i n g b i t
0
Operation mode
select bit 0, 1
T i m e r X c o u n t
s t a r t f l a g
S e t t o " 0 " i n e v e n t c o u n t e r m o d e
Set to "0" in event counter mode
S e t t o " 0 " i n e v e n t c o u n t e r m o d e
S e t t o " 0 " i n e v e n t c o u n t e r m o d e
polarity switching function
n: set value of PREX register, m: set value of TX register
Bit name
_______
0
(1 )
p o l a r i t y
Address
008B
0
16
pin (Active edge is selected by program)
b1 b0
1 0 : Event counter mode
Specification
0 : R i s i n g e d g e
1 : F a l l i n g e d g e
0 : S t o p s c o u n t i n g
1 : S t a r t s c o u n t i n g
After reset
00
16
F u n c t i o n
0
pin (See “Table 12.4 Event
12.1 Timer (Timer X)
RW
R W
R W
R W
R W
R W
RW
R W
R W

Related parts for R5F21133DFP