Tag Archives: Timer 1

Simple interrupt-driven sampling example for the dsPIC30F4011

Reader Swetha wrote in with a query about performing 10Hz sampling on a dsPIC30F4011 in some kind of energy monitoring system. The following example illustrates a basic structure for interrupt-driven sampling using Timer 1. I compiled this program with Microchip’s … Continue reading

Posted in PIC | Tagged , , , , , , , , | 7 Comments

Timer 1 Interrupt Example for the dsPIC30F4011

// // This is a Timer 1 interrupt example for the dsPIC30F4011. // Timer 1 is a 16-bit Type A timer. // It toggles an LED on pin RD0 8 times a second. // // Written by Ted Burke – … Continue reading

Posted in PIC | Tagged , , , , , , | 5 Comments