Electronic Components Datasheet Search
  English  ▼

X  

HT46C23 Datasheet(PDF) 10 Page - Holtek Semiconductor Inc

Part # HT46C23
Description  A/D Type 8-Bit MCU
PDF  48 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT46C23 Datasheet(HTML) 10 Page - Holtek Semiconductor Inc

Back Button HT46C23 Datasheet HTML 6Page - Holtek Semiconductor Inc HT46C23 Datasheet HTML 7Page - Holtek Semiconductor Inc HT46C23 Datasheet HTML 8Page - Holtek Semiconductor Inc HT46C23 Datasheet HTML 9Page - Holtek Semiconductor Inc HT46C23 Datasheet HTML 10Page - Holtek Semiconductor Inc HT46C23 Datasheet HTML 11Page - Holtek Semiconductor Inc HT46C23 Datasheet HTML 12Page - Holtek Semiconductor Inc HT46C23 Datasheet HTML 13Page - Holtek Semiconductor Inc HT46C23 Datasheet HTML 14Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 48 page
background image
HT46R23/HT46C23
Rev. 1.60
10
May 3, 2004
The internal timer/event counter interrupt is initialized by
setting the timer/event counter interrupt request flag
(TF; bit 5 of INTC0), caused by a timer overflow. When
the interrupt is enabled, the stack is not full and the TF
bit is set, a subroutine call to location 08H will occur. The
related interrupt request flag (TF) will be reset and the
EMI bit cleared to disable further interrupts.
The A/D converter interrupt is initialized by setting the
A/D converter request flag (ADF; bit 6 of INTC0),
caused by an end of A/D conversion. When the interrupt
is enabled, the stack is not full and the ADF is set, a sub-
routine call to location 0CH will occur. The related inter-
rupt request flag (ADF) will be reset and the EMI bit
cleared to disable further interrupts.
Register Bit No. Label
Function
INTC0
(0BH)
0
EMI
Controls the master (global)
interrupt
(1=enabled; 0=disabled)
1
EEI
Controls the external interrupt
(1=enabled; 0=disabled)
2
ETI
Controls the timer/event
counter interrupt
(1=enabled; 0=disabled)
3
EADI
Controls the A/D converter
interrupt
(1=enabled; 0=disabled)
4
EIF
External interrupt request flag
(1=active; 0=inactive)
5TF
Internal timer/event counter
request flag
(1=active; 0=inactive)
6
ADF
A/D converter request flag
(1=active; 0=inactive)
7
¾
Unused bit, read as
²0²
INTC0 Register
The I
2C Bus interrupt is initialized by setting the I2C Bus
interrupt request flag (HIF; bit 4 of INTC1), caused by a
slave address match (HAAS=
²1²) or one byte of data trans-
fer is completed. When the interrupt is enabled, the stack
is not full and the HIF bit is set, a subroutine call to location
10H will occur. The related interrupt request flag (HIF) will
be reset and the EMI bit cleared to disable further inter-
rupts.
During the execution of an interrupt subroutine, other in-
terrupt acknowledgments are held until the
²RETI² in-
struction is executed or the EMI bit and the related
interrupt control bit are set to 1 (of course, if the stack is
not full). To return from the interrupt subroutine,
²RET² or
²RETI² may be invoked. RETI will set the EMI bit to en-
able an interrupt service, but RET will not.
Interrupts, occurring in the interval between the rising
edges of two consecutive T2 pulses, will be serviced on
the latter of the two T2 pulses, if the corresponding inter-
rupts are enabled. In the case of simultaneous requests
the following table shows the priority that is applied.
These can be masked by resetting the EMI bit.
Interrupt Source
Priority
Vector
External Interrupt
1
04H
Timer/Event Counter Overflow
2
08H
A/D Converter Interrupt
3
0CH
Serial bus interrupt
4
10H
The timer/event counter interrupt request flag (TF), ex-
ternal interrupt request flag (EIF), A/D converter request
flag (ADF), the I
2C Bus interrupt request flag (HIF), en-
able timer/event counter bit (ETI), enable external inter-
rupt bit (EEI), enable A/D converter interrupt bit (EADI),
enable I
2C Bus interrupt bit (EHI) and enable master in-
terrupt bit (EMI) constitute an interrupt control register 0
(INTC0) and an interrupt control register 1 (INTC1)
which are located at 0BH and 1EH in the data memory.
EMI, EEI, ETI, EADI, EHI are used to control the en-
abling/disabling of interrupts. These bits prevent the re-
quested interrupt from being serviced. Once the
interrupt request flags (TF, EIF, ADF, HIF) are set, they
will remain in the INTC0 and INTC1 register until the in-
terrupts are serviced or cleared by a software instruc-
tion.
Register Bit No. Label
Function
INTC1
(1EH)
0
EHI
Controls the I
2C Bus interrupt
(1= enabled; 0= disabled)
1~3
¾
Unused bit, read as
²0²
4
HIF
I
2C Bus interrupt request flag
(1= active; 0= inactive)
5~7
¾
Unused bit, read as
²0²
INTC1 Register
It is recommended that a program does not use the
²CALL subroutine² within the interrupt subroutine. In-
terrupts often occur in an unpredictable manner or
need to be serviced immediately in some applications.
If only one stack is left and enabling the interrupt is not
well controlled, the original control sequence will be dam-
aged once the
²CALL² operates in the interrupt subrou-
tine.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com