参数资料
型号: M37702M2AXXXFP
元件分类: 微控制器/微处理器
英文描述: 16-BIT, MROM, 16 MHz, MICROCONTROLLER, PQFP80
封装: QFP-80
文件页数: 14/61页
文件大小: 760K
代理商: M37702M2AXXXFP
18
MITSUBISHI MICROCOMPUTERS
M37702M2AXXXFP, M37702M2BXXXFP
M37702S1AFP, M37702S1BFP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
(2) Event counter mode [01]
Figure 15 shows the bit configuration of the timer Ai mode register
during event counter mode. In event counter mode, the bit 0 of the
timer Ai mode register must be “1” and bit 1 and 5 must be “0”.
The input signal from the TAiIN pin is counted when the count start
flag shown in Figure 13 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 flag or the input signal
from the TAiOUT pin.
When bit 4 of the timer Ai mode register is “0”, the up-down flag is
used to determine whether to increment or decrement the count
(decrement when the flag is “0” and increment when it is “1”). Fig-
ure 16 shows the bit configuration of the up-down flag.
When bit 4 of the timer Ai mode register is “1”, the input signal
from the TAiOUT pin is used to determine whether to increment or
decrement the count. However, note that bit 2 must be “0” if bit 4
is “1” because if bit 2 is “1”, TAiOUT pin becomes an output pin with
pulse output.
The count is decremented when the input signal from the TAiOUT
pin is “L” and incremented when it is “H”. Determine the level of
the input signal from the TAiOUT pin before valid edge is input to
the TAiIN pin.
An interrupt request signal is generated and the interrupt request
bit in the timer Ai interrupt control register is set when the counter
reaches 000016 (decrement count) or FFFF16 (increment count).
At the same time, the contents of the reload register is transferred
to the counter and the count is continued.
When bit 2 is “1” and the counter reaches 000016 (decrement
count) or FFFF16 (increment count), the waveform reversing polar-
ity is output from TAiOUT pin.
If bit 2 is “0”, TAiOUT pin can be used as a normal port pin. How-
ever, if bit 4 is “1“ and the TAiOUT pin is used as an output pin, the
output from the pin changes the count direction. Therefore, bit 4
should be “0” unless the output from the TAiOUT pin is to be used
to select the count direction.
Fig. 15 Timer Ai mode register bit configuration during event
counter mode
Fig. 16 Up-down flag bit configuration
0 1 : Always “01” in event counter
mode
7 65 43 2 1 0
00 1
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
to up-down flag
1 : Increment or decrement according
to TAiOUT pin input signal level
0 : Always “0” in event counter mode
! ! : Not used in event counter mode
Timer A0 mode register
5616
Timer A1 mode register
5716
Timer A2 mode register
5816
Timer A3 mode register
5916
Timer A4 mode register
5A16
Addresses
!!
Timer A0 up-down flag
7 6 543 2 1 0
4416
Address
Up-down flag
Timer A1 up-down flag
Timer A2 up-down flag
Timer A4 up-down flag
Timer A3 two-phase pulse signal processing
selection bit
0 : Two-phase pulse signal processing disabled
1 : Two-phase pulse signal processing mode
Timer A2 two-phase pulse signal processing
selection bit
0 : Two-phase pulse signal processing disabled
1 : Two-phase pulse signal processing mode
Timer A4 two-phase pulse signal processing
selection bit
0 : Two-phase pulse signal processing disabled
1 : Two-phase pulse signal processing mode
Timer A3 up-down flag
相关PDF资料
PDF描述
M37702S1BFP 16-BIT, 25 MHz, MICROCONTROLLER, PQFP80
M37702S1LGP 16-BIT, 8 MHz, MICROCONTROLLER, PQFP80
M37702S1LHP 16-BIT, 8 MHz, MICROCONTROLLER, PQFP80
M37702M2LXXXHP 16-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP80
M37702M2LXXXGP 16-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP80
相关代理商/技术参数
参数描述
M37702M2A-XXXFP 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M37702M2BXXXFP 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M37702M2B-XXXFP 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M37702M2L 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M37702M2L249HP 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER