參數(shù)資料
型號: HT36A2
廠商: Holtek Semiconductor Inc.
英文描述: 8-Bit Music Synthesizer MCU
中文描述: 8位微控制器音樂合成器
文件頁數(shù): 14/24頁
文件大?。?/td> 215K
代理商: HT36A2
HT36A2
Rev. 1.00
14
June 19, 2003
Timer 0/1
Timer 0 is an 8-bit counter, and its clock source comes
from the system clock divided by an 8-stage prescaler.
There are two registers related to Timer 0; TMR0L(0DH)
and TMR0C(0EH). One physical registers are mapped
to TMR0L location; writing TMR0L makes the starting
value be placed in the Timer 0 preload register and
readingtheTMR0getsthecontentsoftheTimer0coun-
ter. The TMR0C is a control register, which defines the
division ration of the prescaler and counting enable or
disable.
Writing data to B2, B1 and B0 (bits 2, 1, 0 of TMR0C)
can yield various clock sources.
One the Timer 0 starts counting, it will count from the
current contents in the counter to FFH. Once an over-
flow occurs, the counter is reloaded from a preload reg-
ister, and generates an interrupt request flag (T0F; bit 2
of INTCH). To enable the counting operation, the timer
On bit (TON; bit 4 of TMR0C) should be set to 1 . For
proper operation, bit 7 of TMR0C should be set to 1
and bit 3, bit 6 should be set to 0 .
There are two registers related to the Timer Counter1;
TMR1L(10H), TMR1C(11H). The Timer Counter 1 oper-
ates in the same manner as Timer Counter 0.
TMR0C/TMR1C
T0F
B2
B1
B0
0
0
0
SYS CLK/16
0
0
1
SYS CLK/32
0
1
0
SYS CLK/64
0
1
1
SYS CLK/128
1
0
0
SYS CLK/256
1
0
1
SYS CLK/512
1
1
0
SYS CLK/1024
1
1
1
SYS CLK/2048
TMR0C Bit 4 to enable/disable timer counting
(1=enable; 0=disable)
TMR0C Bit 3, always write 0 .
TMR0C Bit 5, always write 0 .
TMR0C Bit 6, always write 0 .
TMR0C Bit 7, always write 1 .
Input/Output Ports
There are 20 bidirectional input/output lines labeled
from PA to PC0~3, which are mapped to the data mem-
oryof[12H],[14H],[16H]respectively.AlltheseI/Oports
can be used for input and output operations. For input
operation, these ports are non-latching, that is, the in-
puts must be ready at the T2 rising edge of instruction
MOV A,[m] (m=12H, 14H or 16H). For output operation,
all data is latched and remains unchanged until the out-
put latch is rewritten.
Each I/O line has its own control register (PAC, PBC,
PCC0~3) to control the input/output configuration. With
this control register, CMOS output or Schmitt trigger in-
put with or without pull-high resistor (mask option) struc-
tures can be reconfigured dynamically under software
control. To function as an input, the corresponding latch
of the control register must write a 1 . The pull-high re-
sistance will exhibit automatically if the pull-high option
is selected. The input source also depends on the con-
trol register. If the control register bit is 1 , input will
read the pad state. If the control register bit is 0 , the
contents of the latches will move to the internal bus. The
latter is possible in read-modify-write instruction. For
output function, CMOS is the only configuration. These
control registers are mapped to locations 13H, 15H and
17H.
Afterachipreset,theseinput/outputlinesremainathigh
levels or floating (mask option). Each bit of these in-
put/output latches can be set or cleared by the SET [m].i
or CLR [m].i (m=12H, 14H or 16H) instruction.
Some instructions first input data and then follow the
output operations. For example, the SET [m].i, CLR
[m].i, CPL [m] and CPLA [m] instructions read the entire
port states into the CPU, execute the defined operations
(bit-operation), and then write the results back to the
latches or the accumulator.
Each line of port A has the capability to wake-up the de-
vice.
" 1
9
: 0 4
<
0
, 9
(
:
(
<
, 9
(
$
(
:
A
; : >
,
-
,
.
Timer 0/1
相關(guān)PDF資料
PDF描述
HT36A3 8-Bit Music Synthesizer MCU
HT36A4 8-Bit Music Synthesizer MCU
HT3810 128 NOTE MELODY GENERATORS
HT3810A 128 NOTE MELODY GENERATORS
HT3810B 128 NOTE MELODY GENERATORS
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HT36A3 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:8-Bit Music Synthesizer MCU
HT36A4 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:Music Synthesizer 8-Bit MCU
HT36A4_07 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:Music Synthesizer 8-Bit MCU
HT36ARP 功能描述:兩端交流開關(guān)元件 32-40V RoHS:否 制造商:STMicroelectronics 轉(zhuǎn)折電流 VBO:45 V 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:SOT-23 封裝:Reel
HT36B 功能描述:兩端交流開關(guān)元件 34-38V RoHS:否 制造商:STMicroelectronics 轉(zhuǎn)折電流 VBO:45 V 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:SOT-23 封裝:Reel