SW006010 Microchip Technology, SW006010 Datasheet - Page 93
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: 93 of 160
- Download datasheet (3Mb)
2002 Microchip Technology Inc.
PIC17C7XX DEVICES
To enable the TMR2 overflow interrupt for PIC17C7XX devices, you must clear the
following bit flags:
• The Peripheral Interrupt Request Register1’s (PIR1’s) TMR2 Interrupt Flag
• The Timer2 On (TMR2ON) bit – [TCON2<1>]. This stops the timer until you are
• The INTSTA register’s Peripheral Interrupt Flag (PEIF) bit – [INTSTA<7>]. This
PIC17C4X DEVICES
To enable the TMR2 overflow interrupt for PIC17C4X devices, you must clear the
following bit flags:
• The Peripheral Interrupt Request Register’s (PIR) TMR2 Interrupt Flag (TMR2IF)
• The Timer2 On (TMR2ON) bit – [TCON2<1>]. This stops the timer until you are
• The INTSTA register’s Peripheral Interrupt Flag (PEIF) bit – [INTSTA<7>]. This
ALL PIC17 DEVICES
To reset Timer2, clear the TMR2 register.
To start Timer2, set the Timer2 On (TMR2ON) bit – [TCON2<1>].
(TMR2IF) bit – [PIR1<5>].
ready to use it. See below for how to start the timer.
clears any previous occurrences of TMR2 overflow interrupts. In addition, you
must set the following enable bits:
- The Peripheral Interrupt Enable Register1’s (PIE1’s) TMR2 Interrupt Enable
- The INTSTA register’s Peripheral Interrupt Enable (PEIE) bit – [INTSTA<3>].
bit – [PIR<5>].
ready to use it. See below for how to start the timer.
clears any previous occurrences of TMR2 overflow interrupts. In addition, you
must set the following enable bits:
- The Peripheral Interrupt Enable Register’s (PIE) TMR2 Interrupt Enable
- The INTSTA register’s Peripheral Interrupt Enable (PEIE) bit – [INTSTA<3>].
TMR2 = 0;
TCON2bits.TMR2ON = 1;
(TMR2IE) bit – [PIE1<5>].
(TMR2IE) bit – [PIE<5>].
TCON2bits.TMR2ON = 0;
PIR1bits.TMR2IF = 0;
PIE1bits.TMR2IE = 1;
INTSTAbits.PEIF = 0;
INTSTAbits.PEIE = 1;
TCON2bits.TMR2ON = 0;
PIRbits.TMR2IF = 0;
PIEbits.TMR2IE = 1;
INTSTAbits.PEIF = 0;
INTSTAbits.PEIE = 1;
Enabling/Disabling Interrupts
apRNOVM^-page 87
Part
Part
Part
Part
1
2
3
4
Related parts for SW006010
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: