Monthly Archives: December 2010

Serial data transmission from the dsPIC30F4011 UART

The following program is an example of serial data transmission from the dsPIC30F4011 UART. This program repeatedly reads 10-bit analog readings from AN0-AN7 and then prints the results to the serial output. The baud rate is set to 38,400. However, … Continue reading

Posted in Uncategorized | Leave a comment

Motor PWM example for the dsPIC30F4011

The following program is an example of PWM output from the six motor PWM pins on the dsPIC30F4011. The duty cycle of each of the three PWM channels is controlled by an analog input. The duty cycle of each channel … Continue reading

Posted in Uncategorized | 9 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

Analog input on the dsPIC30F4011

The following example program demonstrates basic analog input on the dsPIC30F4011. Only one of the ADC module’s four converters is used (AD0) and only one channel at a time is read. The sampling time is controlled manually and is currently … Continue reading

Posted in PIC | Tagged , , , , , , | 11 Comments