M30622SAFP MITSUBISHI [Mitsubishi Electric Semiconductor], M30622SAFP Datasheet - Page 92

no-image

M30622SAFP

Manufacturer Part Number
M30622SAFP
Description
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M30622SAFP
Manufacturer:
AVAGO
Quantity:
18
Part Number:
M30622SAFP
Manufacturer:
MITSUBISHI
Quantity:
852
Part Number:
M30622SAFP
Manufacturer:
MITSUBISHI
Quantity:
20 000
Part Number:
M30622SAFP#U5
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Timer B
92
Table 1.14.8. Timer specifications in pulse period/pulse width measurement mode
Note 1: An interrupt request is not generated when the first effective edge is input after the timer has started counting.
Note 2: The value read out from the timer Bi register is indeterminate until the second effective edge is input after the timer.
Figure 1.14.19. Timer Bi mode register in pulse period/pulse width measurement mode
(3) Pulse period/pulse width measurement mode
Count source
Count operation
Count start condition
Count stop condition
Interrupt request generation timing • When measurement pulse's effective edge is input (Note 1)
TBi
Read from timer
Write to timer
In this mode, the timer measures the pulse period or pulse width of an external signal. (See Table 1.14.8.)
Figure 1.14.19 shows the timer Bi mode register in pulse period/pulse width measurement mode. Figure
1.14.20 shows the operation timing when measuring a pulse period. Figure 1.14.21 shows the operation
timing when measuring a pulse width.
IN
pin function
Timer Bi mode register
b7
b6
Item
b5
b4
b3
b2
1
b1
b0
0
Note 1: The timer Bi overflow flag changes to “0” when the count start flag is “1” and a value is written to the
Note 2: Timer B0, timer B3.
Note 3: Timer B1, timer B2, timer B4, timer B5.
Bit symbol
TMOD0
TMOD1
f
• Up count
• Counter value “0000
Count start flag is set (= 1)
Count start flag is reset (= 0)
• When an overflow occurs. (Simultaneously, the timer Bi overflow flag
Measurement pulse input
When timer Bi register is read, it indicates the reload register’s content
(measurement result) (Note 2)
Cannot be written to
TCK0
TCK1
MR0
MR1
MR2
MR3
1
pulse's effective edge and the timer continues counting
changes to “1”. The timer Bi overflow flag changes to “0” when the count
start flag is “1” and a value is written to the timer Bi mode register.)
Symbol
TBiMR(i=0 to 5)
, f
timer Bi mode register. This flag cannot be set to “1” by software.
8
, f
32
Timer Bi overflow
flag ( Note 1)
Operation mode
select bit
Measurement mode
select bit
0 (Fixed to “0” in pulse period/pulse width measurement mode; i = 0, 3)
Nothing is assigned (i = 1, 2, 4, 5).
In an attempt to write to this bit, write “0”. The value, if read, turns out to be
indeterminate.
Count source
select bit
, f
C32
Bit name
039B
035B
Address
16
16
to 039D
to 035D
16
b1 b0
1 0 : Pulse period / pulse width
0 0 : Pulse period measurement (Interval between
0 1 : Pulse period measurement (Interval between
1 0 : Pulse width measurement (Interval between
1 1 : Inhibited
b7 b6
b3 b2
0 : Timer did not overflow
1 : Timer has overflowed
0 0 : f
0 1 : f
1 0 : f
1 1 : f
” is transferred to reload register at measurement
16
16
measurement mode
measurement pulse's rising edge to rising edge)
measurement pulse's falling edge to falling edge)
measurement pulse's falling edge to rising edge,
and between rising edge to falling edge)
1
8
32
C32
When reset
00XX0000
00XX0000
Specification
2
2
Function
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M16C / 62A Group
Mitsubishi microcomputers
(Note 2)
(Note 3)
R
W

Related parts for M30622SAFP