Hi,
I am trying to program a dsPIC33FJ32GP302 chip with the Pickit 2 programmer
and using MPLAB C30 (This chip supports the Pickit 2 as illustrated by the
green light on the "select device" window).
I managed to put the chip on a board and connected it to the pickit 2. I
built a project in MPLAB and the programmer sends power to the target as
expected and it recognizes it.
I imported the header and linker files for this particular target just in
case. Now it's time to write the main.c program. This is what I need
assistance with.
I need help setting up the initial configuration bits for this device. My
goal is to generate a PWM Signal from a single output. That's all I need. I
might need help with the code as well.
Can anyone point me in the right direction? I need some help starting this.
Thank you so much!
---------------------------------------
Posted through http://www.EmbeddedRelated.com
Simon, grab on of the microchip sample / example programs and start with
that. Cut it right back so it does nothing more than say sit in a loop
toggling a pin. Move forward from there.
Reply by Leon●October 31, 20102010-10-31
On 30 Oct, 06:10, "embcontrol" <navasimoN@n_o_s_p_a_m.gmail.com>
wrote:
> Hi,
>
> I am trying to program a dsPIC33FJ32GP302 chip with the Pickit 2 programm=
er
> and using MPLAB C30 (This chip supports the Pickit 2 as illustrated by th=
e
> green light on the "select device" window).
>
> I managed to put the chip on a board and connected it to the pickit 2. I
> built a project in MPLAB and the programmer sends power to the target as
> expected and it recognizes it.
>
> I imported the header and linker files for this particular target just in
> case. Now it's time to write the main.c program. This is what I need
> assistance with.
>
> I need help setting up the initial configuration bits for this device. My
> goal is to generate a PWM Signal from a single output. That's all I need.=
I
> might need help with the code as well.
>
> Can anyone point me in the right direction? I need some help starting thi=
s.
>
> Thank you so much! =A0 =A0 =A0 =A0
>
> --------------------------------------- =A0 =A0 =A0 =A0
> Posted throughhttp://www.EmbeddedRelated.com
Try the Microchip forums. You will get plenty of help there.
Leon
Reply by guyelectronics●October 31, 20102010-10-31
>Hi,
>
>I am trying to program a dsPIC33FJ32GP302 chip with the Pickit 2
programmer
>and using MPLAB C30 (This chip supports the Pickit 2 as illustrated by
the
>green light on the "select device" window).
>
>I managed to put the chip on a board and connected it to the pickit 2. I
>built a project in MPLAB and the programmer sends power to the target as
>expected and it recognizes it.
>
>I imported the header and linker files for this particular target just in
>case. Now it's time to write the main.c program. This is what I need
>assistance with.
>
>I need help setting up the initial configuration bits for this device. My
>goal is to generate a PWM Signal from a single output. That's all I need.
I
>might need help with the code as well.
>
>Can anyone point me in the right direction? I need some help starting
Hi,
What about the config bits? You dont know the syntax? Check the
datasheet(Page 299). If there is a problem in downloading the hex file, do
it from MPLab, i too had this problem that whenever i downloaded the code
using the PICKIT2 downloader it didnt used to write the configuration bits
properly.
---------------------------------------
Posted through http://www.EmbeddedRelated.com
Signal Processing Engineer Seeking a DSP Engineer to tackle complex technical challenges. Requires expertise in DSP algorithms, EW, anti-jam, and datalink vulnerability. Qualifications: Bachelor's degree, Secret Clearance, and proficiency in waveform modulation, LPD waveforms, signal detection, MATLAB, algorithm development, RF, data links, and EW systems. The position is on-site in Huntsville, AL and can support candidates at 3+ or 10+ years of experience.