R5F21122FP#U0 Renesas Electronics America, R5F21122FP#U0 Datasheet - Page 73

IC R8C MCU FLASH 8K 32LQFP

R5F21122FP#U0

Manufacturer Part Number
R5F21122FP#U0
Description
IC R8C MCU FLASH 8K 32LQFP
Manufacturer
Renesas Electronics America
Series
M16C™ M16C/R8C/Tiny/12r
Datasheets

Specifications of R5F21122FP#U0

Core Processor
R8C
Core Size
16-Bit
Speed
16MHz
Connectivity
SIO, UART/USART
Peripherals
LED, WDT
Number Of I /o
22
Program Memory Size
8KB (8K x 8)
Program Memory Type
FLASH
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-20°C ~ 85°C
Package / Case
32-LQFP
For Use With
R0K521134S000BE - KIT EVAL STARTER FOR R8C/13R0E521134EPB00 - KIT EMULATOR PROBE FOR PC7501R0E521134CPE00 - EMULATOR COMPACT R8C/13
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
R5F21122FP#U0R5F21122FP#V0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
R8C/12 Group
Rev.1.20
REJ09B0110-0120
Table 12.5 Pulse Width Measurement Mode Specifications
Figure 12.7 TXMR Register in Pulse Width Measurement Mode
Count source
Count operation
Count start condition
Count stop condition
Interrupt request
generation timing
INT1/CNTR0 pin function
CNTR
Read from timer
Write to timer
Select function
12.1.4 Pulse Width Measurement Mode
T i m e r X m o d e r e g i s t e r
In this mode, the timer measures the pulse width of an external signal fed to INT1/CNTR0 pin (See
“Table 12.5 Pulse Width Measurement Mode Specifications”). Figure 12.7 shows the TXMR register
in pulse width measurement mode. Figure 12.8 shows an operation example in pulse width measure-
ment mode.
b 7 b 6 b 5 b 4 b 3 b 2 b1 b 0
0 0
Jan 27, 2006
0
pin function
N O T E S :
Item
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 .
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 .
0
page 61 of 181
1
1
f
• Down-count
• Continuously counts the selected signal only when the measurement pulse is "H" level,
• When the timer underflows, it reloads the reload register contents before continuing
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 interruption]
• Rising or falling of CNTR0 input (end of measurement period) [INT1 interrupt]
Measurement pulse 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
“H” or “L” level duration can be selected with R0EDG bit as the input pulse measurement
1
or conversely only "L" level.
counting
B i t s y m b o l
, f
T X M O D 2
TXMOD0
TXMOD1
TXS
TXOCNT
R0EDG
T X U N D
TXEDG
2
, f
S y m b o l
T X M R
8
, f
32
0
I N T 1 / C N T R
s w i t c h i n g b i t
O p e r a t i o n m o d e
s e l e c t b i t 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 p u l s e w i d t h m e a s u r e m e n t m o d e
S e t t o " 0 " i n p u l s e w i d t h m e a s u r e m e n t m o d e
S e t t o " 0 " i n p u l s e w i d t h m e a s u r e m e n t m o d e
S e t t o " 0 " i n p u l s e w i d t h m e a s u r e m e n t m o d e
polarity switching function
B i t n a m e
0
(1 )
A d d r e s s
p o l a r i t y
0 0 8 B
1 6
b 1 b 0
[ C N T R 0 ]
0 : M e a s u r e s “ H ” l e v e l w i d t h
1 : M e a s u r e s “ L ” l e v e l w i d t h
[ I N T 1 ]
0 : R i s i n g e d g e
1 : F a l l i n g e d g e
0 : Stops counting
1 : Starts counting
1 1 : Pulse width measurement mode
Specification
A f t e r r e s e t
0 0
1 6
Function
_____
12.1 Timer (Timer X)
RW
R W
R W
R W
R W
R W
R W
R W
RW

Related parts for R5F21122FP#U0