SW006010 Microchip Technology, SW006010 Datasheet - Page 111

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.4.2.6
There are two ways to disable the TMR3 overflow interrupt:
Library Call
To disable the TMR3 Overflow Interrupt through a library call, you must include the
timers16.h
Modifying Register Bits
PIC17C7XX DEVICES
To disable the TMR3 overflow interrupt for PIC17C7XX devices, you must clear either
of the following enable bits:
• The Peripheral Interrupt Enable Register1’s (PIE1’s) TMR3 Interrupt Enable
• The INTSTA register’s Peripheral Interrupt Enable (PEIE) bit – [INTSTA<3>].
PIC17C4X DEVICES
To disable the TMR3 overflow interrupt for PIC17C4X devices, you must clear either of
the following enable bits:
• The Peripheral Interrupt Enable Register’s (PIE) TMR3 Interrupt Enable (TMR3IE)
• The INTSTA register’s Peripheral Interrupt Enable (PEIE) bit – [INTSTA<3>].
11.4.2.7
There are two ways to disable the PORTB Interrupt on Change:
Library Call
To disable the PORTB interrupt on change through a library call, you must include the
port16.h
#include <timers16.h>
CloseTimer3();
(TMR3IE) bit – [PIE1<6>].
Note: Clearing the PEIE bit disables all peripheral interrupts.
bit – [PIE<6>].
Note: Clearing the PEIE bit disables all peripheral interrupts.
#include <port16.h>
ClosePORTB();
PIE1bits.TMR3IE = 0; //Disable all
INTSTAbits.PEIE = 0;
PIEbits.TMR3IE = 0;
INTSTAbits.PEIE = 0;
header file and call the
TMR3 OVERFLOW INTERRUPT
PORTB INTERRUPT ON CHANGE
header file and call the
Enabling/Disabling Interrupts
//peripheral interrupts
//Disable all
//peripheral interrupts
ClosePORTB
CloseTimer3
function.
function.
apRNOVM^-page 105
Part
Part
Part
Part
1
2
3
4

Related parts for SW006010