Rev. 1.10
178
October 23, 2020
Rev. 1.10
179
October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
V
DD
LVDEN
LVDO
V
LVD
t
LVDS
LVD Operation
The Low Voltage Detector also has its own interrupt which is contained within one of the Multi-
function interrupts, providing an alternative means of low voltage detection, in addition to polling
the LVDO bit. The interrupt will only be generated after a delay of t
LVD
after the LVDO bit has been
set high by a low voltage condition. In this case, the LVF interrupt request flag will be set, causing
an interrupt to be generated if V
DD
falls below the preset LVD voltage. This will cause the device
to wake-up from the IDLE Mode, however if the Low Voltage Detector wake up function is not
required then the LVF flag should be first set high before the device enters the IDLE Mode.
Interrupts
Interrupts are an important part of any microcontroller system. When an external event or an
internal function such as a Timer Module or an A/D converter requires microcontroller attention,
their corresponding interrupt will enforce a temporary suspension of the main program allowing the
microcontroller to direct attention to their respective needs. The device contains several external
interrupt and internal interrupt functions. The external interrupts are generated by the action of
the external INT0 and INT1 pins, while the internal interrupts are generated by various internal
functions such as TMs, Time Base, LVD, EEPROM, SIM, UART and the A/D converter, etc.
Interrupt Registers
Overall interrupt control, which basically means the setting of request flags when certain
microcontroller conditions occur and the setting of interrupt enable bits by the application program,
is controlled by a series of registers, located in the Special Purpose Data Memory. The registers fall
into three categories. The first is the INTC0~INTC2 registers which setup the primary interrupts,
the second is the MFI0~MFI2 registers which setup the Multi-function interrupts. Finally there is an
INTEG register which setup the external interrupt trigger edge type.
Each register contains a number of enable bits to enable or disable individual registers as well as
interrupt flags to indicate the presence of an interrupt request. The naming convention of these
follows a specific pattern. First is listed an abbreviated interrupt type, then the (optional) number of
that interrupt followed by either an “E” for enable/ disable bit or “F” for request flag.
Function
Enable Bit
Request Flag
Notes
Global
EMI
—
—
INTn Pins
INTnE
INTnF
n=0~1
Comparator
CPE
CPF
—
Multi-function
MFnE
MFnF
n=0~2
A/D Converter
ADE
ADF
—
Time Bases
TBnE
TBnF
n=0~1
SIM
SIME
SIMF
—
UART
UARTE
UARTF
—
LVD
LVE
LVF
—
EEPROM erase or write operation
DEE
DEF
—