M38513E4FP#U0 Renesas Electronics America, M38513E4FP#U0 Datasheet - Page 17

IC 740 MCU ROM 16K 42SSOP

M38513E4FP#U0

Manufacturer Part Number
M38513E4FP#U0
Description
IC 740 MCU ROM 16K 42SSOP
Manufacturer
Renesas Electronics America
Series
740/38000r
Datasheets

Specifications of M38513E4FP#U0

Core Processor
740
Core Size
8-Bit
Speed
8MHz
Connectivity
SIO, UART/USART
Peripherals
PWM, WDT
Number Of I /o
34
Program Memory Size
16KB (16K x 8)
Program Memory Type
OTP
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 5x10b
Oscillator Type
External
Operating Temperature
-20°C ~ 85°C
Package / Case
42-SSOP
Package
42SSOP
Family Name
740
Maximum Speed
8 MHz
Operating Supply Voltage
5 V
Data Bus Width
8 Bit
Number Of Programmable I/os
34
Interface Type
I2C-BUS
On-chip Adc
5-chx10-bit
Number Of Timers
4
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Eeprom Size
-
TIMERS
The 3851 group has four timers: timer X, timer Y, timer 1, and
timer 2.
The division ratio of each timer or prescaler is given by 1/(n + 1),
where n is the value in the corresponding timer or prescaler latch.
All timers are count down. When the timer reaches “00
derflow occurs at the next count pulse and the corresponding
timer latch is reloaded into the timer and the count is continued.
When a timer underflows, the interrupt request bit corresponding
to that timer is set to “1”.
Fig. 11 Structure of timer XY mode register
Fig. 12 Structure of timer count source selection register
14
b7
b 7
b0
b 0
Timer count source selection register
(TCSS : address 0028
Timer X count source selection bit
Timer 12 count source selection bit
0 : f(X
1 : f(X
Timer Y count source selection bit
0 : f(X
1 : f(X
0 : f(X
1 : f(X
Not used (returns “0” when read)
b 1 b 0
b5b4
T i m e r X Y m o d e r e g i s t e r
( T M : a d d r e s s 0 0 2 3
T i m e r X o p e r a t i n g m o d e b i t s
T i m e r Y o p e r a t i n g m o d e b i t
0 0 : T i m e r m o d e
0 1 : P u l s e o u t p u t m o d e
1 0 : E v e n t c o u n t e r m o d e
1 1 : 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
C N T R
T i m e r X c o u n t s t o p b i t
0 0 : T i m e r m o d e
0 1 : P u l s e o u t p u t m o d e
1 0 : E v e n t c o u n t e r m o d e
1 1 : 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
C N T R
T i m e r Y c o u n t s t o p b i t
0 : C o u n t s t a r t
1 : I n t e r r u p t a t r i s i n g e d g e
0 : C o u n t s t a r t
1 : C o u n t s t o p
0 : I n t e r r u p t a t f a l l i n g e d g e
1 : I n t e r r u p t a t r i s i n g e d g e
1 : C o u n t s t o p
0 : I n t e r r u p t a t f a l l i n g e d g e
IN
IN
IN
IN
IN
CIN
C o u n t a t r i s i n g e d g e i n e v e n t
C o u n t a t f a l l i n g e d g e i n e v e n t
C o u n t a t r i s i n g e d g e i n e v e n t
C o u n t a t f a l l i n g e d g e i n e v e n t
)/16 (f(X
)/2 (f(X
)/16 (f(X
)/2 (f(X
)/16 (f(X
c o u n t e r m o d e
c o u n t e r m o d e
c o u n t e r m o d e
c o u n t e r m o d e
)
0
1
a c t i v e e d g e s e l e c t i o n b i t
a c t i v e e d g e s e l e c t i o n b i t
CIN
CIN
CIN
CIN
CIN
)/2 at low-speed mode)
)/2 at low-speed mode)
)/16 at low-speed mode)
)/16 at low-speed mode)
)/16 at low-speed mode)
16
)
1 6
)
16
”, an un-
Timer 1 and Timer 2
The count source of prescaler 12 is the oscillation frequency di-
vided by 16. The output of prescaler 12 is counted by timer 1 and
timer 2, and a timer underflow sets the interrupt request bit.
Timer X and Timer Y
Timer X and Timer Y can each select in one of four operating
modes by setting the timer XY mode register.
(1) Timer Mode
The timer counts the count source selected by Timer count source
selection bit.
(2) Pulse Output Mode
The timer counts the count source selected by Timer count source
selection bit. Whenever the contents of the timer reach “00
signal output from the CNTR
CNTR
at “ H”.
If it is “1”, output starts at “L”. When using a timer in this mode, set
the corresponding port P2
put mode.
(3) Event Counter Mode
Operation in event counter mode is the same as in timer mode, ex-
cept that the timer counts signals input through the CNTR
CNTR
When the CNTR
rising edge of the CNTR
When the CNTR
falling edge of the CNTR
(4) Pulse Width Measurement Mode
If the CNTR
counts the selected signals by the count source selection bit while
the CNTR
tive edge selection bit is “1”, the timer counts it while the CNTR
(or CNTR
The count can be stopped by setting “1” to the timer X (or timer Y)
count stop bit in any mode. The corresponding interrupt request
bit is set each time a timer overflows.
When switching the count source by the timer 12, X and Y count
source bit, the value of timer count is altered in unconsiderable
amount owing to generating of a thin pulses in the count input
signals.
Therefore, select the timer count source before set the value to
the prescaler and the timer.
Note
0
1
pin.
(or CNTR
1
0
) pin is at “L”.
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
(or CNTR
0
(or CNTR
0
0
1
(or CNTR
) active edge selection bit is “0”, output begins
(or CNTR
1
MITSUBISHI MICROCOMPUTERS
) pin is at “H”. If the CNTR
1
0
) active edge selection bit is “0”, the timer
0
(or CNTR
7
(or CNTR
( or port P4
1
1
) active edge selection bit is “0”, the
) active edge selection bit is “1”, the
0
(or CNTR
(Built-in 16 KB ROM)
1
) pin is counted.
1
) pin is counted.
0
) direction register to out-
3851 Group
1
) pin is inverted. If the
0
(or CNTR
16
1
”, the
) ac-
0
or
0

Related parts for M38513E4FP#U0