m37702s1afp Mitsumi Electronics, Corp., m37702s1afp Datasheet - Page 20

no-image

m37702s1afp

Manufacturer Part Number
m37702s1afp
Description
Single-chip 16-bit Cmos Microcomputer
Manufacturer
Mitsumi Electronics, Corp.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M37702S1AFP
Manufacturer:
MITSUBISHI
Quantity:
5 510
Part Number:
M37702S1AFP
Manufacturer:
MITSUBISHI
Quantity:
10 000
Part Number:
M37702S1AFP
Quantity:
10
(3) One-shot pulse mode [10]
Figure 20 shows the bit configuration of the timer Ai mode register
during one-shot pulse mode. In one-shot pulse mode, bit 0 and bit
5 must be “0” and bit 1 and bit 2 must be “1”.
The trigger is enabled when the count start flag is “1”. The trigger
can be generated by software or it can be input from the TAi
Software trigger is selected when bit 4 is “0” and the input signal
from the TAi
Bit 3 is used to determine whether to trigger at the fall of the trig-
ger signal or at the rise. The trigger is at the fall of the trigger
signal when bit 3 is “0” and at the rise of the trigger signal when it
is “1”.
Software trigger is generated by setting the bit in the one-shot
start flag corresponding to each timer.
Figure 21 shows the bit configuration of the one-shot start flag.
As shown in Figure 22, when a trigger signal is received, the
counter counts the clock selected by bits 6 and 7.
If the contents of the counter is not 0000
“H” when a trigger signal is received. The count direction is decre-
ment.
When the counter reaches 0001
count is stopped. The contents of the reload register is transferred
to the counter. At the same time, and interrupt request signal is
generated and the interrupt request bit in the timer Ai interrupt
control register is set. This is repeated each time a trigger signal is
received. The output pulse width is
If the count start flag is “0”, TAi
corresponding to the desired pulse width must be written to timer
Ai before setting the timer Ai count start flag.
As shown in Figure 23, a trigger signal can be received before the
operation for the previous trigger signal is completed. In this case,
the contents of the reload register is transferred to the counter by
the trigger and then that value is decremented.
Except when retriggering while operating, the contents of the re-
load register is not transferred to the counter by triggering.
When retriggering, there must be at least one timer count source
cycle before a new trigger can be issued.
Data write is performed to the same way as for timer mode. When
data is written in timer Ai halted, it is also written to the reload reg-
ister and the counter.
When data is written to timer Ai which is busy, the data is written to
the reload register, but not to the counter. The counter is reloaded
with new data from the reload register at the next reload time.
Undefined data is read when timer Ai is read.
20
pulse frequency of the selected clock
IN
pin is used as the trigger when it is “1”.
1
(counter’s value at the time of trigger).
OUT
16
, The TAi
goes “L”. Therefore, the value
16
, the TAi
OUT
pin goes “L” and
OUT
M37702M2AXXXFP, M37702M2BXXXFP
pin goes
IN
pin.
Fig. 20 Timer Ai mode register bit configuration during one-
Fig. 21 One-shot start flag bit configuration
M37702S1AFP, M37702S1BFP
7
7 6 5 4 3 2 1 0
6 5 4 3 2 1
shot pulse mode
0
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
1
MITSUBISHI MICROCOMPUTERS
1 0
0
1 0 : Always “10” in one-shot
Clock source selection
0 0 : Select f
0 1 : Select f
1 0 : Select f
1 1 : Select f
Timer A0 mode register
Timer A1 mode register
Timer A2 mode register
Timer A3 mode register
Timer A4 mode register
0
1 0 : Trigger at the falling edge of
1 1 : Trigger at the rising edge of
One-shot start flag
Timer A0 one-shot start flag
Timer A1 one-shot start flag
Timer A2 one-shot start flag
Timer A3 one-shot start flag
Timer A4 one-shot start flag
0 : Always “0” in one-shot pulse
1 : Always “1” in one-shot pulse
: Software trigger
TAi
TAi
mode
pulse mode
mode
IN
IN
input
input
2
16
64
512
Addresses
56
57
58
59
5A
Address
16
16
16
16
16
42
16

Related parts for m37702s1afp