国产精品成人VA在线观看-国产乱妇乱子视频在播放-国产日韩精品一区二区三区在线-国模精品一区二区三区

參數資料
型號: W741C20X
廠商: WINBOND ELECTRONICS CORP
英文描述: 4-BIT MICROCONTROLLER
中文描述: 4位微控制器
文件頁數: 12/84頁
文件大小: 486K
代理商: W741C20X
Preliminary W741C20X
- 12 -
Timer 1 (TM1)
Timer 1 (TM1) is also a programmable 8-bit binary down counter, as shown in Figure 6. Timer 1 can
be used as a counter to count external events or to output an arbitrary frequency to the MFP pin. The
input clock of Timer 1 can be one of three sources: Fosc/64, Fosc, or an external clock from the RC.0
input pin. The source can be selected by setting bit 0 and bit 1 of mode register 1 (MR1). At initial
reset, the Timer 1 clock input is Fosc. If an external clock is selected as the clock source of Timer 1,
the content of Timer 1 is decreased by 1 at the falling edge of RC.0. When the MOV TM1L, R or
MOV TM1H,R instruction is executed, the specified data are loaded into the auto-reload buffer and
the TM1 down-counting will be disabled (i.e. MR1.3 is reset to 0). If the bit 3 of MR1 is set (MR1.3 =
1), the contents of the auto-reload buffer will be loaded into the TM1 down counter, Timer 1 starts to
down count, and the event flag 7 is reset (EVF.7 = 0). When the MOV TM1, #I instruction is executed,
the event flag 7 (EVF.7) and MR1.3 are reset and the specified value is loaded into auto-reload buffer
and TM1 by the internal hardware, then the MR1.3 is set, that is the TM1 starts to count by the
hardware. When the timer decrements to FFH, it will generate an underflow (EVF.7 = 1) and be
auto-reloaded with the specified data, after which it will continue to count down. An interrupt is
executed if the interrupt enable flag 7 has been set to 1 (IEF.7 = 1), and the hold state is terminated if
the hold mode release enable flag 7 is set to 1 (HEF.7 = 1). The specified frequency of Timer 1 can
be delivered to the MFP output pin by programming bit 2 of MR1. Bit 3 of MR1 can be used to make
Timer 1 stop or start counting.
If the Timer 1 clock input is F
T, then
:
Desired Timer 1 interval = (preset value +1) / F
T
Desired frequency for MFP output pin = F
T
÷
(preset value + 1)
÷
2 (Hz)
Preset value: Decimal number of Timer 1 preset value, and
F
OSC
: Clock oscillation frequency
Auto-reload buffer
8 bits
MR1.1
External clock
via RC.0
1. MR1.3 = 1
2. MOV TM1, #I
Underflow
signal
EVF.7
MFP
MFP signal
MR1.2
output pin
8-bit Binary
Down Counter
(Timer 1)
2
circuit
Reset
Reset
Disable
Enable
Fosc/64
Fosc
MR1.0
S
R
Q
1. Reset
2. INT 7 accept
3. CLR EVF, #80H
4. Set MR1.3 to 1
5. MOV TM1, #I
T
F
1. MR1.3 = 0
4
4
MOV TM1H, R
MOV TM1L, R
Set MR1.3 to 1
MOV TM1, #I
8
MOV TM1, #I
Figure 6. Organization of Timer 1
相關PDF資料
PDF描述
W741C240 4-BIT Microcontroller(多次可編程4位的微控制器)
W741C250 4-BIT Microcontroller(多次可編程4位的微控制器)
W741C260 4-BIT Microcontroller(多次可編程4位的微控制器)
W741E20X 4-BIT FLASH MICROCONTROLLER
W741E260 4-BIT FLASH MICROCONTROLLER
相關代理商/技術參數
參數描述
W741C250 制造商:未知廠家 制造商全稱:未知廠家 功能描述:4-Bit Microcontroller
W741C260 制造商:WINBOND 制造商全稱:Winbond 功能描述:4-BIT MICROCONTROLLER
W741E200 制造商:未知廠家 制造商全稱:未知廠家 功能描述:4-Bit Microcontroller
W741E201 制造商:WINBOND 制造商全稱:Winbond 功能描述:4-BIT FLASH MICROCONTROLLER
W741E202 制造商:WINBOND 制造商全稱:Winbond 功能描述:4-BIT FLASH MICROCONTROLLER