參數(shù)資料
型號: HD4074094
廠商: Hitachi,Ltd.
英文描述: 4-Bit Single-Chip Microcomputer(4位單片微計算機)
中文描述: 4位單片機(4位單片微計算機)
文件頁數(shù): 54/101頁
文件大?。?/td> 610K
代理商: HD4074094
HD404054 Series/HD404094 Series
54
Timer D
Timer D Functions: Timer D has the following functions.
Free-running/reload timer
External event counter
Timer output operation (toggle, 0, 1, and PWM outputs)
Input capture timer
The block diagram for each operation mode of timer D is shown in figures 40-1 and 40-2.
Timer D Operations:
Free-running/reload timer operation: The free-running/reload operation, input clock source, and
prescaler division ratio are selected by timer mode register D1 (TMD1: $010).
Timer D is initialized to the value set in timer write register D (TWDL: $011, TWDU: $012) by
software and incremented by one at each clock input. If an input clock is applied to timer D after it has
reached $FF, an overflow is generated. In this case, if the reload timer function is enabled, timer D is
initialized to its initial value set in timer write register D; if the free-running timer function is enabled,
the timer is initialized to $00 and then incremented again.
The overflow sets the timer D interrupt request flag (IFTD: $003, bit 0). IFTD is reset by software or
MCU reset. Refer to figure 3 and table 1 for details.
External event counter operation: Timer D is used as an external event counter by selecting the
external event input as an input clock source. In this case, pin R4
0
/EVND must be set to EVND by port
mode register C (PMRC: $025).
Either falling or rising edge, or both falling and rising edges of input signals can be selected as the
external event detection edge by detection edge select register 2 (ESR2: $027). When both rising and
falling edges detection is selected, the time between the falling edge and rising edge of input signals
must be 2t
cyc
or longer.
Timer D is incremented by one at each detection edge selected by detection edge select register 2
(ESR2: $027). The other operation is basically the same as the free-running/reload timer operation.
Timer output operation: The following four output modes can be selected for timer D by setting timer
mode register D2 (TMD2: $015).
Toggle
0 output
1 output
PWM output
By selecting the timer output mode, pin R3
2
/TOD is set to TOD. The output from TOD is reset low by
MCU reset.
Toggle output: The operation is basically the same as that of timer-C’s toggle output.
0 output: The operation is basically the same as that of timer-C’s 0 output.
1 output: The operation is basically the same as that of timer-C’s 1 output.
相關PDF資料
PDF描述
HD404052 4-Bit Single-Chip Microcomputer(4位單片微計算機)
HD404054 4-Bit Single-Chip Microcomputer(4位單片微計算機)
HD4074054H 4-Bit Single-Chip Microcomputer(4位單片微計算機)
HD40A4054 4-Bit Single-Chip Microcomputer(4位單片微計算機)
HD40A4358 4-bit HMCS400-Series microcomputer
相關代理商/技術參數(shù)
參數(shù)描述
HD4074094H 制造商:未知廠家 制造商全稱:未知廠家 功能描述:4-Bit Microcontroller
HD4074094S 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:microcomputer designed to increase program productivity
HD4074224FP01 制造商:未知廠家 制造商全稱:未知廠家 功能描述:4-Bit Microcontroller
HD4074224FP02 制造商:HITACHI 制造商全稱:Hitachi Semiconductor 功能描述:CMOS 4-bit Single-Chip Microcomputers with the same architecture as the HMCS400 Series
HD4074224FP03 制造商:HITACHI 制造商全稱:Hitachi Semiconductor 功能描述:CMOS 4-bit Single-Chip Microcomputers with the same architecture as the HMCS400 Series