English
Language : 

RFM12B_15 Datasheet, PDF (28/41 Pages) List of Unclassifed Manufacturers – Universal ISM Band FSK Transceiver
RFM12B
INTERRUPT HANDLING
In order to achieve low power consumption there is an advanced event handling circuit implemented. The device has a very low
power consumption mode, so called sleep mode. In this mode only a few parts of the circuit are working. In case of an event, the
device wakes up, switches into active mode and an interrupt signal generated on the nIRQ pin to indicate the changed state to the
microcontroller. The cause of the interrupt can be determined by reading the status word of the device (see Status Read Command).
Several interrupt sources are available:
• RGIT – TX register empty interrupt: This interrupt generated when the transmit register is empty. Valid only when the el
(enable internal data register) bit is set in the Configuration Setting Command, and the transmitter is enabled in the Power
Management command.
• FFIT – the number of bits in the RX FIFO reached the preprogrammed level: When the number of received data bits in the
receiver FIFO reaches the threshold set by the f3…f0 bits of the FIFO and Reset Mode Command an interrupt is fired.
Valid only when the ef (enable FIFO mode) bit is set in the Configuration Setting Command and the receiver is enabled in the
Power Management Command.
• POR – power on reset interrupt: An interrupt generated when the change on the VDD line triggered the internal reset circuit or
a software reset command was issued. For more details, see the Reset Modes section.
• RGUR – TX register under run: The automatic baud rate generator finished the transmission of the byte in the TX register
before the register write occurred. Valid only when the el (enable internal data register) bit is set in the Configuration Setting
Command and the transmitter is enabled in the Power Management command.
• FFOV – FIFO overflow: There are more bits received than the capacity of the FIFO (16 bits). Valid only when the ef (enable
FIFO mode) bit is set in the Configuration Setting Command and the receiver is enabled in the Power Management
command
• WKUP – wake-up timer interrupt: This interrupt event occurs when the time specified by the Wake-Up Timer Command has
elapsed. Valid only when the ew bit is set in the Power Management Command.
• EXT – external interrupt: Follows the level of the nINT pin if it is configured as an external Interrupt pin in the Receiver Control
Command.
• LBD – low battery detector interrupt: Occurs when the VDD goes below the programmable low battery detector threshold level
(v3…v0 bits in the Low Battery and Microcontroller Clock Divider Command). Valid only when the eb (enable low battery
detector) bit is set in the Power Management Command.
If any of the sources becomes active, the nIRQ pin will change to logic low level, and the corresponding bit in the status byte will be
HIGH.
Clearing an interrupt actually implies two things:
• Releasing the nIRQ pin to return to logic high
• Clearing the corresponding bit in the status byte
This may be completed with the following interrupt sources:
• RGIT: both the nIRQ pin and status bit remain active until the register is written (if under-run does not occur until the register
write), or the transmitter and the TX latch are switched off.
• FFIT: both the nIRQ pin and status bit remain active until the FIFO is read (a FIFO IT threshold number of bits have been
read), the receiver is switched off, or the RX FIFO is switched off.
• POR: both the nIRQ pin and status bit can be cleared by the read status command
• RGUR: this bit is always set together with RGIT; both the nIRQ pin and the status bit remain active until the transmitter and
the TX latch is switched off.
• FFOV: this bit is always set together with FFIT; it can be cleared by the status read command, but the FFIT bit and hence the
nIRQ pin will remain active until the FIFO is read fully, the receiver is switched off, or the RX FIFO is switched off.
• WKUP: both the nIRQ pin and status bit can be cleared by the read status command
• EXT: both the nIRQ pin and status bit follow the level of the nINT pin
• LBD: the nIRQ pin can be released by the reading the status, but the status bit will remain active while the VDD is below the
threshold.
28
Tel: +86-755-82973805 Fax: +86-755-82973550 E-mail: sales@hoperf.com http://www.hoperf.com