UIC-S socket

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

UIC-S socket

Postby electrical eng » Tue Aug 28, 2012 6:57 pm

hi
i would like to know how could i let UIC-S socket capable for dspic33 family which is consider as 16 bit while PIC is 8 bit, and it has been stated in the manual that "" Besides 8bit, it can also program 16bit and 32bit PIC MCU. On board ICSPTM (In Circuit Serial Programming) connector offers flexible methods to load program, UART Tool and Logic Tool "". but i didn't get it. what should i do or connect in UIC-S in order to work with dspic33.
thanks.
electrical eng
Freshie
 
Posts: 5
Joined: Tue Aug 28, 2012 6:45 pm

Re: UIC-S socket

Postby ober » Wed Aug 29, 2012 12:11 pm

UIC00B can be use to program 16-bit and 32-bit PIC. However, UIC-S is designed for 8-bit PIC only. Why? Because the pin assignment are same for 8-bit PIC, but different for 16-bit and 32-bit PIC. Therefore, UIC-S cannot be used to load program to 16-bit and 32-bit PIC.

Modifying UIC-S take more effort than you create the connection from UIC00B to your target board in this case. The concept is to connect the necessary connections from UIC00B to your target PIC. All PIC will have what we call ICSP pin.

Vpp - Normally is sharing with MCLR
PGC - ICSP Clock line, you can search it in the datasheet, under pin diagram
PGD - ICSP Data line
GND - Ground pin, VSS
VDD - power pin, dsPIC33F is 3.3V

Let us know what is the dsPIC33F model and we can try to guide on the connection.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: UIC-S socket

Postby electrical eng » Wed Aug 29, 2012 4:22 pm

thanks ober Choo 4 ur reply,
d one that i work in is dspic33FJ128MC802.
electrical eng
Freshie
 
Posts: 5
Joined: Tue Aug 28, 2012 6:45 pm

Re: UIC-S socket

Postby ober » Wed Aug 29, 2012 9:35 pm

electrical eng WROTE: d one that i work in is dspic33FJ128MC802.


Here is the pin diagram of dsPIC33FJ128MC802 that I grab from internet
Image

Here is UIC00B's ICSP pin.



Since there is no ready made socket like UIC-S for dsPIC, the simplest is to plug in on to breadboard and make the following connection:
dsPIC33FJ128MC802 pin UIC00B
Pin 1, MCLR/VPP -----------------------Pin 3, VPP
Pin 8 or 19, Vss ------------------------ Pin 4 or 6, GND
Pin 13, VDD ---------------------------- Pin 8, VDD
Pin 4, PGED1 --------------------------- Pin 7, PGD
Pin 5, PGEC1 -------------------------- Pin 5, PGC

You might need to select the dsPIC under Device Family when you open PICkit 2 Programmer. Try and see
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: UIC-S socket

Postby electrical eng » Thu Aug 30, 2012 5:12 pm

thank you again for this clear explanation about the connection.
I have followed what u said, and when I started with PICkit2 I got this error
Attachments
PICkit2 error.PNG
electrical eng
Freshie
 
Posts: 5
Joined: Tue Aug 28, 2012 6:45 pm

Re: UIC-S socket

Postby robosang » Thu Aug 30, 2012 6:04 pm

Interesting......

I have been using UIC00B to program dsPIC30F, works fine.

Can you capture a photo of the connection? From the UIC00B to the dsPIC, maybe is the connection.

You can also disconnect everything from UIC00B to the dsPIC, and start the PICkit 2 software again, just to check whether is the UIC00B problem or connection error.
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: UIC-S socket

Postby ober » Thu Aug 30, 2012 9:28 pm

Yes, a photo of the hardware setup/wiring would help a lot.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: UIC-S socket

Postby electrical eng » Mon Sep 03, 2012 4:11 pm

hi ober.
sorry i couldn't reply, because i got internet problem.
here is the picture of the connection.
Attachments
pic of d connection.PNG
electrical eng
Freshie
 
Posts: 5
Joined: Tue Aug 28, 2012 6:45 pm

Re: UIC-S socket

Postby ober » Mon Sep 03, 2012 4:55 pm

OK, disconnect the 5 wires from the UIC00B socket, no connection between the UIC00B to the dsPIC, open the PICkit 2 Programmer again, do you still get the Vpp error message?
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: UIC-S socket

Postby electrical eng » Mon Sep 03, 2012 5:13 pm

after i disconnect all d weirs, there is no more error message of Vpp.
electrical eng
Freshie
 
Posts: 5
Joined: Tue Aug 28, 2012 6:45 pm

Next

Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 13 guests