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
this.
> > >Thank you so much! > >--------------------------------------- >Posted through http://www.EmbeddedRelated.com
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
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 Dennis October 30, 20102010-10-30
"embcontrol" <navasimoN@n_o_s_p_a_m.gmail.com> wrote in message 
news:POKdnYBpIOvdJVbRnZ2dnUVZ_tGdnZ2d@giganews.com...
> By the way here is a schematic of my setup > > http://picasaweb.google.com/lh/photo/_BTiV8qXyQnPUdTnA2iSFgLecI5QKCSMXtZn4R7H0HQ?feat=directlink > > > --------------------------------------- > 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 embcontrol October 30, 20102010-10-30
By the way here is a schematic of my setup

http://picasaweb.google.com/lh/photo/_BTiV8qXyQnPUdTnA2iSFgLecI5QKCSMXtZn4R7H0HQ?feat=directlink	
  
					
---------------------------------------		
Posted through http://www.EmbeddedRelated.com
Reply by embcontrol October 30, 20102010-10-30
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