I am having some issues with programming a dsPIC33FJ32MC302. The link for the data sheet is: http://ww1.microchip...eDoc/70291F.pdf
Two programmers before me created four library files for the dsPIC33. The four files are dsPIC33F_init.c, dsPIC33F_input.c, dsPIC33F_output.c, and dsPIC33F_support.c. These files perform various functions including initializing pins, setting up functions, defining inputs/outputs and various other things. Along with this there is a file called krisys_driver.c. This file creates the pwm arguments, testing functions and a bunch of other stuff. It was set up to have two PWM signals and two direction signals. The dsPIC33F can support 4 PWM signals. The file that I have created is called gsmp_driver.c. It creates 4 PWM signals using the 4 PWM outputs from the PIC and then it uses 4 D I/O's as direction signals. I have begun testing the code and my direction signals are working because I hooked them up to LED's and verified that they are working. I cannot, however, get my PWM signals to work. I have made sure that I have initialized everything and I have double checked for errors. I am completely stuck. Any help would be appreciated. I will include all the files that I am working with as a zip file.
I am using MPLAB IDE v8.70 along with a PICKIT2 to program the processor.
dsPIC33F Files.zip (49.07K)
Number of downloads: 368