Introduction to Microcontrollers Lab Manual - Microchip
Introduction to Microcontrollers Lab Manual - Microchip
Introduction to Microcontrollers Lab Manual - Microchip
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
LEDs are on the following ports:<br />
LED PIC ® MCU Port<br />
LED1 Port C Bit 2<br />
LED2 Port C Bit 3<br />
LED3 Port C Bit 4<br />
LED4 Port E Bit 9<br />
Reminder From lab2-interrupts:<br />
__OC1Interrupt Output Compare 1 0x00018<br />
__OC2Interrupt Output Compare 2 0x00020<br />
The basic program flow is depicted in Figure 7-6.<br />
FIGURE 7-6: LAB 7 BASIC PROGRAM FLOW<br />
The template assembly file sets up this basic program flow. The student will need <strong>to</strong><br />
add the appropriate code <strong>to</strong> the relevant sections of the file lab7-pwm.s.<br />
2011 <strong>Microchip</strong> Technology Inc. DS51963A-page 55