SW006010 Microchip Technology, SW006010 Datasheet - Page 91

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.
PIC17C7XX DEVICES
To enable the TMR1 overflow interrupt for PIC17C7XX devices, you must clear the
following bit flags:
• The Peripheral Interrupt Request Register1’s (PIR1’s) TMR1 Interrupt Flag
• The Timer1 On (TMR1ON) bit – [TCON2<0>]. This stops the timer until you are
• The INTSTA register’s Peripheral Interrupt Flag (PEIF) bit – [INTSTA<7>]. This
PIC17C4X DEVICES
To enable the TMR1 overflow interrupt for PIC17C4X devices, you must clear the
following bit flags:
• The Peripheral Interrupt Request Register’s (PIR) TMR1 Interrupt Flag (TMR1IF)
• The Timer1 On (TMR1ON) bit – [TCON2<0>]. This stops the timer until you are
• The INTSTA register’s Peripheral Interrupt Flag (PEIF) bit – [INTSTA<7>]. This
(TMR1IF) bit – [PIR1<4>].
ready to use it. See below for how to start the timer.
clears any previous occurrences of TMR1 overflow interrupts. In addition, you
must set 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>].
bit – [PIR<4>].
ready to use it. See below for how to start the timer.
clears any previous occurrences ofTMR1 overflow interrupts. In addition, you
must set the following enable bits:
- The Peripheral Interrupt Enable Register’s (PIE) TMR1 Interrupt Enable
- The INTSTA register’s Peripheral Interrupt Enable (PEIE) bit – [INTSTA<3>].
(TMR1IE) bit – [PIE1<4>].
(TMR1IE) bit – [PIE<4>].
TCON2bits.TMR1ON = 0;
PIR1bits.TMR1IF = 0;
PIE1bits.TMR1IE = 1;
INTSTAbits.PEIF = 0;
INTSTAbits.PEIE = 1;
TCON2bits.TMR1ON = 0;
PIRbits.TMR1IF = 0;
PIEbits.TMR1IE = 1;
INTSTAbits.PEIF = 0;
INTSTAbits.PEIE = 1;
Enabling/Disabling Interrupts
apRNOVM^-page 85
Part
Part
Part
Part
1
2
3
4

Related parts for SW006010