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

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.2 TXMR Register
Figure 12.1 Timer X Block Diagram
12.1 Timer X
The Timer X is an 8-bit timer with an 8-bit prescaler. Figure 12.1 shows the block diagram of Timer X.
Figures 12.2 and 12.3 show the Timer X-related registers.
The Timer X has five operation modes listed as follows:
Timer X mode register
b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0
I N T
• Timer mode:
• Pulse output mode:
• Event counter mode:
• Pulse width measurement mode: The timer measures an external pulse's pulse width.
• Pulse period measurement mode:The timer measures an external pulse's period.
Jan 27, 2006
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 .
1
C N T R
/ C N T R
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 .
T X C K 1 t o T X C K 0
0
0
f
f
f
f
1
8
32
2
TXOCNT bit
= 0 1
= 1 0
=11
= 0 0
switching
Polarity
TXMOD1 to TXMOD0 bits=01
2
2
2
2
page 71 of 205
T X M O D 1 t o T X M O D 0
B i t s y m b o l
TXMOD0
T X M O D 1
T X S
T X O C N T
T X M O D 2
R 0 E D G
T X E D G
T X U N D
Symbol
TXMR
= 0 0
2
2
o r 0 1
=11
=10
2
2
2
O p e r a t i o n m o d e
s e l e c t b i t 2
O p e r a t i o n m o d e
s e l e c t b i t 0 , 1
I N T 1 / C N T R 0
p o l a r i t y s w i t c h i n g
b i t
T i m e r X c o u n t
s t a r t f l a g
P 3
s e l e c t b i t
A c t i v e e d g e
r e c e p t i o n f l a g
T i m e r X u n d e r
f l o w f l a g
R0EDG =1
R0EDG=0
(1 )
0
The timer counts an internal count source .
The timer counts an internal count source and outputs the pulses
whose polarity is inverted at the timer the timer underflows.
The timer counts external pulses.
/ C N T R
Bit name
TXS bit
0
Q
Q
Address
008B
Toggle flip-flop
16
CLR
b1 b0
0 0 : Timer mode or
0 1 : Pulse output mode
1 0 : Event counter mode
1 1 : Pulse width measurement mode
0 : Stops counting
1 : Starts counting
0 : Except in pulse period measurement mode
1 : Pulse period measurement mode
F u n c t i o n v a r i e s d e p e n d i n g o n e a c h
o p e r a t i o n m o d e .
Function varies with each operation mode
Function varies depending on each
operation mode.
Function varies with each operation mode
R e l o a d r e g i s t e r
PREX register
Counter
pulse period measurement mode
C K
After reset
00
16
F u n c t i o n
Data bus
Write to TX register
TXMOD1 to TXMOD0 bits=01
R e l o a d r e g i s t e r
T X r e g i s t e r
C o u n t e r
2
12.1 Timer (Timer X)
R W
R W
RW
RW
R W
R W
R W
R W
RW
I N T 1 i n t e r r u p t
T i m e r X i n t e r r u p t

Related parts for R5F21133DFP