參數(shù)資料
型號: HD40C4384
廠商: Hitachi,Ltd.
英文描述: Low-Voltage AS Microcomputers with On-Chip A/D Converter(帶片上A/D轉(zhuǎn)換器的低壓微計算機(jī))
中文描述: 低電壓如同在微機(jī)芯片的A / D轉(zhuǎn)換器(帶片上的A / D轉(zhuǎn)換器的低壓微計算機(jī))
文件頁數(shù): 75/162頁
文件大?。?/td> 482K
代理商: HD40C4384
HD404374/HD404384/HD404389/HD404082/HD404084 Series
75
Timer B Operation
Free-running/reload timer:
Free-running/reload timer operation, the input clock source, and the prescaler division ratio are selected
by means of timer mode register B1 (TMB1).
Timer B is initialized to the value written to timer write register B (TWBL, TWBU) by software, and
counts up by 1 each time the input clock is input. When the input clock is input after the timer B value
reaches $FF, overflow output is generated. Timer B is then set to the value in timer write register B if
the reload timer function is selected, or to $00 if the free-running timer function is selected, and starts
counting up again.
Overflow output sets the timer B interrupt request flag (IFTB). This flag is reset by the program or by
an MCU reset.
For details, see figure 3, Interrupt Control Bit and Register Flag Area Configuration, and table 1, Initial
Values after MCU Reset.
External event counter operation:
When external event input is designated for the input clock, timer B operates as an external event
counter. When external event input is used, the R1
0
/EVNB pin is designated as the EVNB pin by port
mode register 2 (PMR2).
The external event detected edge for timer B can be designated as a falling edge, rising edge, or both
falling and rising edges in the input signal by means of timer mode register B2 (TMB2). If both falling
and rising edges are selected, the input signal falling and rising edge interval should be at least 2tcyc.
Timer B counts up by 1 each time a falling edge is detected in the signal input at the EVNB pin. Other
operations are the same as for the free-running/reload timer function.
Timer output operation:
With timer B, the R13/TOB pin is designated as the TOB pin by the setting of bit 3 of port mode
register 2 (PMR2), and toggle waveform output or PWM waveform output can be selected by timer
mode register B2 (TMB2).
Toggle output:
With toggle output, the output level is changed upon input of the next clock pulse after the timer B
value reaches $FF. Use of this function in combination with the reload timer allows a clock signal
with any period to be output, enabling it to be used as buzzer output. The output waveform is
shown in figure 35 (1).
PWM output:
With PWM output, variable-duty pulses are output. The output waveform is as shown in figure 35
(2), according to the contents of timer mode register B1 (TMB1) and timer write register B (TWBL,
TWBU). When the waveform is output with bit 3 (TMB13) of timer mode register B1 cleared to 0,
the write to timer write register B to change the duty is effective from the next frame, whereas if the
waveform is output with the TMB13 bit set to 1 (reload setting), the next frame is output
immediately after the timer write register write.
Module standby:
With timer B, the supply of the system clock to the timer/counter can be halted by setting bit 0 of
module standby register 1 (MSR1: $00D) to 1. In the module standby state, the mode register value is
retained but the counter value is not guaranteed.
相關(guān)PDF資料
PDF描述
HD40C4388 Low-Voltage AS Microcomputers with On-Chip A/D Converter(帶片上A/D轉(zhuǎn)換器的低壓微計算機(jī))
HD40C4389 Low-Voltage AS Microcomputers with On-Chip A/D Converter(帶片上A/D轉(zhuǎn)換器的低壓微計算機(jī))
HD404394 4-bit HMCS400-series microcomputer(4位單片微計算機(jī))
HD4074344S 4-bit HMCS400-series microcomputer(4位單片微計算機(jī))
HD4074394S 4-bit HMCS400-series microcomputer(4位單片微計算機(jī))
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HD40L4818H 制造商:Renesas Electronics Corporation 功能描述:
HD40-M 制造商:Tamura Corporation of America 功能描述:
HD40WS/EHOOD/PLUG 制造商:Lapp 功能描述:HD 40 way side entry assembled plug 制造商:Lapp Group 功能描述:HD 40 way side entry assembled plug
HD-41494-1 功能描述:環(huán)形MIL規(guī)格工具、五金與附件 RoHS:否 制造商:Amphenol Industrial MIL 類型:MIL-DTL-5015 系列:97 產(chǎn)品類型:Dummy Receptacles 用于:97 Series Plugs
HD4-15530/883 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Encoder/Decoder