
Rev. 1.00
11� of ���
�an�a�� 1�� �01�
Standard 8051 8-Bit Flash MCU
HT85F2260/HT85F2270/HT85F2280
Interrupts
Interrupts
SPI Interface Interrupt
A SPI Interrupt request will take place when one of the SPI Interrupt request flags, SPIF, WCOL,
SSERR or MODF, is set, which occurs when a byte of data has been received or when there is
a write collision or when there is a Serial Slave error or transmitted by the SPI interface or the
Master mode or Slave mode is mismatched with the mode selected input pin level. To allow the
program to branch to its respective interrupt vector address, the global interrupt enable bit, EAL,
and the Serial Interface Interrupt enable bit, ESPI
, must first be set. When the interrupt is enabled,
the stack is not full and a byte of data has been transmitted or received by the SPI interface, or the
Mode mismatch, a subroutine call to the respective Interrupt vector, will take place. When the SPI
Interface Interrupt is serviced, the EAL bit must be cleared by the application program to disable
other interrupts, and
the SPIF, WCOL, SSERR and MODF flags also must be cleared using the
application program.
UART Interface Interrupt
A UARTn Interrupt request will take place when the UARTn Interrupt request flags, RIn or TIn, is
set, which occurs when a byte of data has been received or transmitted by the UARTn interface. To
allow the program to branch to its respective interrupt vector address, the global interrupt enable
bit, EAL, and the UART Interrupt enable bit, ESn, must first be set. When the interrupt is enabled,
the stack is not full and a byte of data has been transmitted or received by the UARTn interface,
will take place. When the UARTn Interface Interrupt is serviced, the EAL bit must be cleared by
the application program
to disable other interrupts, and the RIn or TIn flag
also must be cleared
using the application program.
LVD Interrupt
A LVD Interrupt request will take place when the LVD Interrupt request flag, LVDF, is set, which
occurs when the Low Voltage Detector function detects a low power supply voltage. To allow the
program to branch to its respective interrupt vector address, the global interrupt enable bit, EAL,
Low Voltage Interrupt enable bit, ELVD, must first be set. When the interrupt is enabled, the stack
is not full and a low voltage condition occurs, a subroutine call to the Interrupt vector, will take
place. When the Low Voltage Interrupt is serviced, the EAL bit will be automatically cleared to
disable other interrupts and the LVDF flag will be automatically cleared
.