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

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.2 Timer Mode Specifications
Figure 12.4 TXMR Register in Timer Mode
Count source
Count operation
Divide ratio
Count start condition
Count stop condition
Interrupt request generation timing When Timer X underflows [Timer X interruption]
INT1/CNTR
CNTR
Read from timer
Write to timer
12.1.1 Timer Mode
Timer X mode register
b 7 b 6 b 5 b 4 b 3 b2 b 1 b 0
In this mode, the timer counts an internally generated count source (See “Table 12.2 Timer Mode
Specifications”). Figure 12.4 shows the TXMR register in timer mode.
0 0
Jan 27, 2006
0
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 .
2 . T h i s b i t i s u s e d t o s e l e c t t h e p o l a r i t y o f I N T 1 i n t e r r u p t i n t i m e r m o d e .
pin function
Item
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 .
0
0
pin function
0
page 73 of 205
0
0
f
• 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
Programmable I/O port, or 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.
1
is contiuned.
Bit symbol
, f
TXOCNT
TXMOD0
TXMOD1
R0EDG
TXS
TXMOD2
TXEDG
T X U N D
2
, f
Symbol
TXMR
8
, f
32
I N T 1 / C N T R
s w i t c h i n g b i t
Operation mode
select bit 2
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
M u s t s e t t o " 0 " i n t i m e r m o d e
M u s t s e t t o " 0 " i n t i m e r m o d e
Must set to "0" in timer mode
Bit name
n: set value of PREX register, m: set value of TX register
0
(1 , 2 )
p o l a r i t y
Address
008B
16
b1 b0
0 0 : T i m e r m o d e o r p u l s e p e r i o d
0 : O t h e r t h a n p u l s e p e r i o d m e a s u r e m e n t m o d e
0 : Rising edge
1 : Falling edge
0 : Stops counting
1 : Starts counting
Specification
m e a s u r e m e n t m o d e
After reset
00
16
F u n c t i o n
12.1 Timer (Timer X)
RW
RW
RW
RW
RW
RW
RW
RW
R W

Related parts for R5F21133DFP