DM163045 Microchip Technology, DM163045 Datasheet - Page 76

no-image

DM163045

Manufacturer Part Number
DM163045
Description
PICDEM Lab Development Kit (with PICkit 3) General Purpose
Manufacturer
Microchip Technology
Series
PICDEM™r
Type
MCUr
Datasheet

Specifications of DM163045

Contents
Board, PIC kit 3
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
For Use With/related Products
PIC Micro® MCU

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM163045
Manufacturer:
MICROCHIP
Quantity:
12 000
PICDEM
DS41369A-page 72
TM
EXAMPLE 4-4:
2. Copy/paste the code in Example 4-5 into the Initialize() over the code
Lab Development Board User’s Guide
void interrupt TMR0_ISR(void)
{
}
from the previous lab:
//Check if Timer0 interrupt has occurred
if(T0IE&&T0IF)
{
}
else PORTC = PORTC;
//if so, clear the interrupt flag
T0IF = 0;
//Turn off Timer1 (stop counting)
TMR1ON = 0;
//Assign the upper 4-bits of the 16-bit
//result to PORTC to light the LEDs connected
//RC0,R1,RC2 and RC3
PORTC = TMR1H>>4;
TMR0 = 10;
//Clear the Timer1 register pair
TMR1L = 0;
TMR1H = 0;
//Turn Timer1 back to start counting again
TMR1ON = 1;
TMR0_ISR CODE FOR LAB 3
© 2009 Microchip Technology Inc.

Related parts for DM163045