參數(shù)資料
型號(hào): HT1130
廠商: Holtek Semiconductor Inc.
英文描述: 4-bit Microcontroller Designed For LCD Product Applications(用于LCD的4位微控制器)
中文描述: 4位微控制器液晶產(chǎn)品應(yīng)用(用于液晶顯示器的4位微控制器設(shè)計(jì))
文件頁(yè)數(shù): 10/31頁(yè)
文件大小: 295K
代理商: HT1130
HT1130
10
May24,1999
·
BCDdecimaladjustforaddition
·
Increment,decrement
·
Datatransfers
·
Branchdecisions
The ALU not only outputs the results of data
operations, but also sets the status of the carry
flag(CF)insomeinstructions.
Timer/counter
The HT1130 contains a programmable 8-bit
count-up counter which can be used to count ex-
ternal events or as a clock to generate an accu-
ratetimebase.
If the 8-bit timer clock is supplied by an exter-
nal source from pin TMCLK then synchroniza-
tion problems may occur when reading the data
from the timer. It is therefore suggested that
the timer is stopped before retrieving the data.
The 8-bit counter will increment on the rising
edge of the clock whether internally or exter-
nallygenerated.
The timer/counter may be set and read with soft-
ware instructions and stopped by a hardware re-
set or a TIMER OFF instruction. To restart the
timer, load the counter with the value XXH and
thenissueaTIMERONinstruction.NotethatXX
is the desired start count immediate value for 8
bits. Once the timer/counter is started, it incre-
mentstoamaximumcountofFFHandthenover-
flowstozero(00H).Itthencontinuestocountuntil
stopped by a TIMER OFF instruction or a reset.
The increment from the maximum count of FFH
to a zero (00H) triggers a timer flag TF and an in-
ternal interrupt request. The interrupt may be
enabled or disabled by executing the EI and DI
instruction. If the interrupt is enabled, the timer
overflowwillcauseasubroutinecalltolocation4.
The state of the timer flag is also testable with the
conditional jump instruction JTMR. The timer
flag is cleared after the interrupt or the JTMR in-
struction is executed.
If an internal source is used, the frequency is
determined by the system clock and the param-
eter n as defined in the equation. The frequency
of the internal frequency source can be selected
bymaskoption.
TIMER Frequency clock =
system clock
2
n
wheren=0,1,2...13selectablebymaskoption
Note that n cannot have the value of 6, which is
reservedforinternaluse.
Interrupt
The HT1130 provides both internal and exter-
nal interrupt modes. The DI and EI instruc-
tions are used to disable and enable the
interrupts. When the INT pin is triggered on a
high to low transition in the enable interrupt
mode and the program is not within a CALL
subroutine, the external interrupt is activated.
This causes a subroutine call to location 8 and
resetstheinterruptlatch.
Likewise when the timer flag is set in the en-
able interrupt mode and the program is not
within a CALL subroutine the internal inter-
rupt is activated. This causes a subroutine call
to location 4 and resets the timer flag. If both
external and internal interrupts arrive at the
same time then the external interrupt will be
servicedfirst.
When running under a CALL subroutine or DI
the interrupt acknowledge is on hold until the
RET or EI instruction is invoked. The CALL in-
struction should not be used within an inter-
rupt routine as unpredictable result may occur.
If within a CALL subroutine both internal and
external interrupts occur, no matter what order
they arrive in, the external interrupt will be
serviced first after leaving the CALL subrou-
tine. This also applies if the two interrupts ar-
riveatthesametime.
The interrupts are disabled by a hardware re-
set or a DI instruction. They remain disabled
untiltheEIinstructionisexecuted.
Each input port bit can be programmed by
mask option to have an external interrupt func-
tionintheHALTmode.
相關(guān)PDF資料
PDF描述
HT1132A SPACE WAR LCD Game
HT1134A Pin Ball LCD Game
HT1136A Football LCD Game
HT1137A Motorcycle LCD Game
HT117 PNP EPITAXIAL PLANAR TRANSISTOR
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HT1132A 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:SPACE WAR LCD Game
HT1134A 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:Pin Ball LCD Game
HT1136A 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:Football LCD Game
HT1137A 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:Motorcycle LCD Game
HT113AA 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:StreetfighterS LCD Game