SW006010 Microchip Technology, SW006010 Datasheet - Page 87
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
SW006010
Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
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
- Current page: 87 of 160
- Download datasheet (3Mb)
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
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![TC1014-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1014-5.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.8VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-4.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.85VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: