PreviousNext
clearIOCF
Help > Macros > Control > clearIOCF

Macro

 

Clear the MCU interrupt on pin change flag IOCBF4.

Purpose

 

IOCBF4 is a flag informing that the specified condition for interrupt on pin change has occurred. Once this event is serviced, the flag must be cleared to avoid recursive interrupts.

Syntax

 

void clearIOCF()

Parameters

 

 –

Return value

 

 –

Output values

 

Flag IOCBF4 is cleared.

Preconditions

 

     This macro must be called (often in interrupt service routine) before re-enabling interrupts.

     The pin change can also be serviced by polling this flag (without an interrupt).

Remarks

 

     This macro works with MCU pin RB4. It is the dedicated MCU pin for interrupt on change at TR transceivers. It is connected to TR pin C5 (for TRs for SIM mounting, e.g. TR-72G) or Q12 (for TRs for SMT mounting, e.g.TR-76G).

     IQRF development tools (e.g. CK-USB-04A and DK-EVAL-04A) with a TR module for SIM mounting, e.g. TR-72G (but not with a TR module for SMT mounting, e.g. TR-76G) use this pin to connect the User pushbutton (SW1), active low.

     See MCU datasheet and IQRF OS User’s guide, chapters MCU pins and Interrupt.

Side effects

 

 –

See also

 

setIOCBN, clearIOCBN

Example

 

See clearIOCBN