Electronic Components Datasheet Search
  English  ▼

X  

HT45R36 Datasheet(PDF) 10 Page - Holtek Semiconductor Inc

Part # HT45R36
Description  C/R to F Type 8-Bit OTP MCU
PDF  40 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT45R36 Datasheet(HTML) 10 Page - Holtek Semiconductor Inc

Back Button HT45R36 Datasheet HTML 6Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 7Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 8Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 9Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 10Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 11Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 12Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 13Page - Holtek Semiconductor Inc HT45R36 Datasheet HTML 14Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 40 page
background image
HT45R36
Rev. 1.00
10
September 28, 2006
Interrupt
The devices provides two external interrupts, one inter-
nal 8-bit timer/event counter interrupt and one external
RC oscillation converter interrupt. The interrupt control
register 0 (INTC0;0BH) and interrupt control register 1
(INTC1;1EH) both contain the interrupt control bits that
are used to set the enable/disable and interrupt request
flags.
Once an interrupt subroutine is serviced, all the other in-
terrupts will be blocked, by clearing the EMI bit. This
scheme may prevent further interrupt nesting. Other in-
terrupt requests may happen during this interval but only
the interrupt request flag is recorded. If a certain inter-
rupt requires servicing within the service routine, the
EMI bit and the corresponding bit of the INTC0 and
INTC1 registers may be set to allow interrupt nesting.
If the stack is full, the interrupt request will not be ac-
knowledged, even if the related interrupt is enabled, un-
til the SP is decremented. If immediate service is
desired, the stack must be prevented from becoming
full.
All interrupts have a wake-up capability. As an interrupt
is serviced, a control transfer occurs by pushing the pro-
gram counter onto the stack, followed by a branch to a
subroutine at a specified location in the program mem-
ory. Only the program counter is pushed onto the stack.
If the contents of the accumulator or status register are
altered by the interrupt service program, this may cor-
rupt the desired control sequence, therefore their con-
tents should be saved in advance.
External interrupts are triggered by an edge transition
on pins INT0 or INT1. A configuration option enables
these pins as interrupts and selects if they are active on
high to low or low to high transitions. If active their re-
lated interrupt request flag, EIF0; bit 4 in INTC0, and
EIF1; bit 5 in INTC0, will be set. After the interrupt is en-
abled, the stack is not full, and the external interrupt is
active, a subroutine call to location
²04H² or ²08H² will
occur. The interrupt request flags, EIF0 or EIF1, and the
EMI bit will all be cleared to disable other interrupts.
The internal Timer/Event Counter interrupt is initialised
by setting the Timer/Event Counter interrupt request
flag, TF; bit 6 in INTC0. A timer interrupt will be gener-
ated when the timer overflows. After the interrupt is en-
abled, and the stack is not full, and the TF bit is set, a
subroutine call to location
²0CH² will occur. The related
interrupt request flag, TF, is reset, and the EMI bit is
cleared to disable other interrupts.
The external RC oscillation converter interrupt is initial-
ized by setting the external RC oscillation converter in-
terrupt request flag, RCOCF; bit 4 of INTC1. This is
caused by a Timer A or Timer B overflow. When the in-
terrupt is enabled, and the stack is not full and the
RCOCF bit is set, a subroutine call to location
²10H² will
occur. The related interrupt request flag, RCOCF, 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, if the stack is not full. To
return from the interrupt subroutine, a
²RET² or ²RETI²
instruction may be invoked. RETI will set the EMI bit to
enable 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.
No.
Interrupt Source
Priority Vector
a
External Interrupt 0
1
04H
b
External Interrupt 1
2
08H
c
Timer/Event Counter Overflow
3
0CH
d
External RC Oscillation
Converter Interrupt
4
10H
Interrupt Priority
The Timer/Event Counter interrupt request flag, TF, ex-
ternal interrupt 1 request flag, EIF1, external interrupt 0
request flag, EIF0, enable Timer/Event Counter inter-
rupt bit, ETI, enable external interrupt 1 bit, EEI1, enable
external interrupt 0 bit, EEI0, and enable master inter-
rupt bit, EMI,
form the interrupt control register 0,
INTC0, which is located at
²0BH² in the RAM.
The external RC oscillation converter interrupt request
flag, RCOCF, enable external RC oscillation converter
interrupt bit, ERCOCI, form the interrupt control register
1 (INTC1) which is located at
²1EH² in the RAM.
EMI, EEI0, EEI1, ETI and ERCOCI are all used to con-
trol the enable/disable status of interrupts. These bits
prevent the requested interrupt from being serviced.
Once the interrupt request flags, TF, RCOCF, EIF1 and
EIF0, are all set, they remain in the INTC1 or INTC0 reg-
isters respectively until the interrupts are serviced or
cleared by a software instruction.
It is recommended that a program does not use the
²CALL subroutine² within the interrupt subroutine. Inter-
rupts 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 may be dam-
aged once the
²CALL² is executed in the interrupt sub-
routine.



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


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