M37754 Mitsubishi, M37754 Datasheet - Page 27

no-image

M37754

Manufacturer Part Number
M37754
Description
SINGLE-CHIP 16BIT CMOS MICROCOMPUTER
Manufacturer
Mitsubishi
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M37754S4CGP
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
shown in Figure 19 is “1” and counting is stopped when it is “0”.
Count is performed at the fall of the input signal when bit 3 is “0” and
at the rise of the signal when it is “1”.
In event counter mode, whether to increment or decrement the count
can be selected with the up-down bit or the input signal from the
TAi
When bit 4 of the timer Ai mode register is “0”, the up-down bit is used
to determine whether to increment or decrement the count (decre-
ment when the bit is “0” and increment when it is “1”). Figure 24
shows the bit configuration of the up-down register.
When bit 4 of the timer Ai mode register is “1”, the input signal from
the TAi
lect the count direction.
(2) Event counter mode [01]
Figure 23 shows the bit configuration of the timer Ai mode register
during event counter mode. In event counter mode, bit 0 of the timer
Ai mode register must be “1” and bits 1 and 5 must be “0”.
The input signal from the TAi
ment the count. However, note that bit 2 must be “0” if bit 4 is “1.” It is
because if bit 2 is “1”, TAi
pulses.
The count is decremented when the input signal from the TAi
is “L” and incremented when it is “H”. Determine the level of the input
signal from the TAi
An interrupt request signal is generated and the interrupt request bit
in the timer Ai interrupt control register is set when the counter
reaches 0000
the same time, the contents of the reload register is transferred to the
counter and the count is continued.
When bit 2 is “1,” each time the counter reaches 0000
count) or FFFF
versed and is output from TAi
If bit 2 is “0”, TAi
However, if bit 4 is “1” and the TAi
the output from the pin changes the count direction. Therefore, bit 4
must be “0” unless the output from the TAi
OUT
OUT
pin.
pin is used to determine whether to increment or decre-
16
16
OUT
(decrement count) or FFFF
(increment count), the waveform’s polarity is re-
OUT
pin can be used as a normal port pin.
pin before a valid edge is input to the TAi
OUT
IN
OUT
pin is counted when the count start bit
pin becomes an output pin to output
pin.
OUT
pin is used as an output pin,
OUT
16
pin is to be used to se-
(increment count). At
16
M37754M8C-XXXGP, M37754M8C-XXXHP
(decrement
OUT
IN
pin.
pin
Fig. 23
Fig. 24 Up-down register bit configuration
M37754S4CGP, M37754S4CHP
7 6 5 4 3 2 1 0
7 6 5 4 3 2 1 0
0
Timer Ai mode register bit configuration during event
counter mode
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
0
1
MITSUBISHI MICROCOMPUTERS
0 1 : Always “01” in event counter mode
0 : No pulse output
1 : Pulse output
0 : Count at the falling edge of input signal
1 : Count at the rising edge of input signal
0 : Increment or decrement according
1 : Increment or decrement according
0 : Always “0” in event counter mode
Up-down register
Timer A0 up-down bit
Timer A1 up-down bit
Timer A2 up-down bit
Timer A3 up-down bit
Timer A4 up-down bit
Timer A2 two-phase pulse signal
processing select bit
Timer A3 two-phase pulse signal
processing select bit
Timer A4 two-phase pulse signal
processing select bit
Timer A0 mode register
Timer A1 mode register
Timer A2 mode register
Timer A3 mode register
Timer A4 mode register
0 : Two-phase pulse signal processing
1 : Two-phase pulse signal processing
0 : Two-phase pulse signal processing
1 : Two-phase pulse signal processing
0 : Two-phase pulse signal processing
1 : Two-phase pulse signal processing
: Not used in event counter mode
to up/down flag
to TAi
disabled
mode
disabled
mode
disabled
mode
OUT
pin input signal level
Addresses
56
57
58
59
5A
16
16
16
16
16
Address
44
16
27

Related parts for M37754