SW006010 Microchip Technology, SW006010 Datasheet - Page 87

no-image

SW006010

Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
Datasheets

Specifications of SW006010

Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC17C
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
MPLAB®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
 2002 Microchip Technology Inc.
11.3.2.2
There are two ways to enable the external interrupt on the INT pin:
Library Call
To enable the external interrupt on the INT pin through a library call, you must include
the
#include <int16.h>
Modifying Register Bits
This interrupt is edge triggered. You can specify whether this interrupt occurs on the
rising or the falling edge by setting or clearing, respectively, the TMR0 Status/Control
(T0STA) register’s RA0/INT Pin Interrupt Edge Select (INTEDG) bit – [T0STA<7>].
To enable the external interrupt on the INT pin, you must clear the INTSTA register’s
External Interrupt on RA0/INT Pin Flag (INTF) bit – [INTSTA<4>]. This clears any
previous occurrence of external interrupts on the RA0/INT pin. You must set the
INTSTA register’s External Interrupt on RA0/INT Pin Enable (INTE) bit – [INTSTA<0>].
#ifdef _TRIGGER_ON_RISING_EDGE
#else
#endif
#ifdef _TRIGGER_ON_RISING_EDGE
#else
#endif
INTSTAbits.INTF = 0;
INTSTAbits.INTE = 1;
int16.h
OpenRA0INT(INT_ON | INT_RISE_EDGE);
OpenRA0INT(INT_ON | INT_FALL_EDGE);
T0STAbits.INTEDG = 1;
T0STAbits.INTEDG = 0;
EXTERNAL INTERRUPT ON INT PIN
header file and call the
Enabling/Disabling Interrupts
OpenRA0INT
function.
apRNOVM^-page 81
Part
Part
Part
Part
1
2
3
4

Related parts for SW006010