SW006010 Microchip Technology, SW006010 Datasheet - Page 109

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.
Modifying Register Bits
To disable the external interrupt on the INT pin, you must clear the INTSTA register’s
External Interrupt on RA0/INT Pin Enable (INTE) bit – [INTSTA<0>].
11.4.2.3
There are two ways to disable the TMR0 overflow interrupt:
Library Call
To disable the TMR0 Overflow Interrupt through a library call, you must include the
timers16.h
Modifying Register Bits
To disable the TMR0 overflow interrupt, you must clear the INTSTA register’s TMR0
Overflow Interrupt Enable (T0IE) bit – [INTSTA<1>].
11.4.2.4
There are two ways to disable the TMR1 overflow interrupt:
Library Call
To disable the TMR1 Overflow Interrupt through a library call, you must include the
timers16.h
Modifying Register Bits
PIC17C7XX DEVICES
To disable the TMR1 overflow interrupt for PIC17C7XX devices, you must clear either
of the following enable bits:
• The Peripheral Interrupt Enable Register1’s (PIE1’s) TMR1 Interrupt Enable
• The INTSTA register’s Peripheral Interrupt Enable (PEIE) bit – [INTSTA<3>].
INTSTAbits.INTE = 0;
#include <timers16.h>
CloseTimer0();
INTSTAbits.T0IE = 0;
#include <timers16.h>
CloseTimer1();
(TMR1IE) bit – [PIE1<4>].
Note: Clearing the PEIE bit disables all peripheral interrupts.
PIE1bits.TMR1IE = 0;
INTSTAbits.PEIE = 0;
TMR0 OVERFLOW INTERRUPT
TMR1 OVERFLOW INTERRUPT
header file and call the
header file and call the
Enabling/Disabling Interrupts
//Disable all
//peripheral interrupts
CloseTimer0
CloseTimer1
function.
function
apRNOVM^-page 103
Part
Part
Part
Part
1
2
3
4

Related parts for SW006010