M30620FCAFP Datasheet

  • M30620FCAFP

  • M16C/62(M16C/62A .M16C/62M) Group USER'S MANUAL

  • 8927.88KB

  • Mitsubishi   Mitsubishi

扫码查看芯片数据手册

上传产品规格书

PDF预览

Mitsubishi microcomputers
M16C / 62A Group
Timer A
(2) Event counter mode
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
In this mode, the timer counts an external signal or an internal timer鈥檚 overflow. Timers A0 and A1 can
count a single-phase external signal. Timers A2, A3, and A4 can count a single-phase and a two-phase
external signal. Table 1.14.2 lists timer specifications when counting a single-phase external signal.
Figure 1.14.8 shows the timer Ai mode register in event counter mode.
Table 1.14.3 lists timer specifications when counting a two-phase external signal. Figure 1.14.9 shows
the timer Ai mode register in event counter mode.
Table 1.14.2. Timer specifications in event counter mode (when not processing two-phase pulse signal)
Item
Specification
Count source
鈥?External signals input to TAi
IN
pin (effective edge can be selected by software)
鈥?TB2 overflow, TAj overflow
Count operation
鈥?Up count or down count can be selected by external signal or software
鈥?When the timer overflows or underflows, it reloads the reload register con
tents before continuing counting (Note)
Divide ratio
1/ (FFFF
16
- n + 1) for up count
1/ (n + 1) for down count
n : Set value
Count start condition
Count start flag is set (= 1)
Count stop condition
Count start flag is reset (= 0)
Interrupt request generation timing The timer overflows or underflows
TAi
IN
pin function
Programmable I/O port or count source input
TAi
OUT
pin function
Programmable I/O port, pulse output, or up/down count select input
Read from timer
Count value can be read out by reading timer Ai register
Write to timer
鈥?When counting stopped
When a value is written to timer Ai register, it is written to both reload register and counter
鈥?When counting in progress
When a value is written to timer Ai register, it is written to only reload register
(Transferred to counter at next reload time)
Select function
鈥?Free-run count function
Even when the timer overflows or underflows, the reload register content is not reloaded to it
鈥?Pulse output function
Each time the timer overflows or underflows, the TAi
OUT
pin鈥檚 polarity is reversed
Note: This does not apply when the free-run function is selected.
Timer Ai mode register
b7
b6
b5
b4
b3
b2
b1
b0
0
0 1
Symbol
TAiMR(i = 0, 1)
Bit symbol
TMOD0
TMOD1
MR0
Address
0396
16
, 0397
16
When reset
00
16
Function
RW
Bit name
Operation mode select bit
Pulse output function
select bit
b1 b0
0 1 : Event counter mode (Note 1)
0 : Pulse is not output
(TA
iOUT
pin is a normal port pin)
1 : Pulse is output (Note 2)
(TA
iOUT
pin is a pulse output pin)
0 : Counts external signal's falling edge
1 : Counts external signal's rising edge
0 : Up/down flag's content
1 : TA
iOUT
pin's input signal (Note 4)
MR1
MR2
MR3
TCK0
TCK1
Count polarity
select bit (Note 3)
Up/down switching
cause select bit
0 (Must always be fixed to 鈥?鈥?in event counter mode)
Count operation type
select bit
0 : Reload type
1 : Free-run type
Invalid in event counter mode
Can be 鈥?鈥?or 鈥?鈥?/div>
Note 1: In event counter mode, the count source is selected by the event / trigger select bit
(addresses 0382
16
and 0383
16
).
Note 2: The settings of the corresponding port register and port direction register are invalid.
Note 3: Valid only when counting an external signal.
Note 4: When an 鈥淟鈥?signal is input to the TAi
OUT
pin, the downcount is activated. When 鈥淗鈥?
the upcount is activated. Set the corresponding port direction register to 鈥?鈥?
Figure 1.14.8. Timer Ai mode register in event counter mode
82

M30620FCAFP相关型号PDF文件下载

  • 型号
    版本
    描述
    厂商
    下载
  • 英文版
    Vishay Intertec...
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    MITSUBISHI
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    MITSUBISHI ...
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DE...
    MITSUBISHI
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DE...
    MITSUBISHI ...
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    MITSUBISHI
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    MITSUBISHI ...
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    MITSUBISHI
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    MITSUBISHI ...
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    MITSUBISHI
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    MITSUBISHI ...
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    RENESAS [Renesa...
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    RENESAS [Renesa...
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    RENESAS [Renesa...
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    RENESAS [Renesa...
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    RENESAS [Renesa...
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    RENESAS [Renesa...
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    RENESAS [Renesa...
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    RENESAS [Renesa...
  • 英文版
    SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
    RENESAS [Renesa...

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:
技术客服:

0571-85317607

网站技术支持

13606545031

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!