On 2/1/2017 9:31 PM, Hynek Sladky wrote: > Hi Richard, > > PICprog connection for PIC16F526 needs 5 pins: Vdd, Vss, MCLR, > ICSPCLK, ICSPDAT. You can also do programming out of Your device > (ZIF socket - if You have one - connected to PICkit), so You don't > necessarily need ISCP pins in Your design. But is is quite > convenient to instantly download code when debugging without need > to again and again move IC out and in...
If you have the space, put the ICSP header in your project. I use turned pin sockets for their low height, and have an adapter for the ICSP cable plugged to a PICkit 2/3. Other folks on the Internet have examples of smaller ICSP connectors, some using spring-loaded pins which is pressed on to exposed pads. If there is no space for the ICSP header, it can be socketed. For this, I make a basic prototyping PCB out of a stripboard: put in a 14-pin socket, power connections (2 pin), an ICSP header (5 pin), an optional cap or two, leave some space for prototyping. On the upside, this board can then be used for programming all 14-bit PICs, the pinouts are all compatible I think. > Regarding SDCC for PIC I can't provide any help. I use SDCC for > another processors... For PIC I use (in my job) MPlabX. > > BR, > Hynek > > > > Dne 1.2.2017 13:48, Richard Gray napsal(a): >> Hi Guys, >> >> I need a bit of guidance, and I'm certain you guys will have >> some experience to point me in the right direction. >> >> I have a little problem at home which I am confident that I can >> solve with a PIC16 chip. I /could/ solve the problem using >> discrete logic, but the component count would be problematic >> because I have to work in a physically quite small space. The >> chip I have in mind is a PIC16F526 in it's DIL 14-pin configuration. >> >> I seem to think that the PICKIT 3 is the thing I need, but on my >> actual circuit board I think I need a row of header pins (6 or >> maybe 8) connected somehow to permit in-circuit serial >> programming? On my last PIC project, now many years ago, I had a >> PICstart programmer with a ZIF socket that was driven from an >> RS232 port on a PC, and in-circuit programming wasn't an issue; >> but it looks like that is now obsolete. I have found similar >> programmers (such as one from Dataman); but they're >> frighteningly expensive. >> >> I will probably use SDCC for my project, and although fairly >> simple I'd rather not write the code in assembler! >> >> Can anybody offer me a bit of guidance as to the bits and pieces >> of hardware that I need to buy? >> >> Many thanks! >> >> Richard. -- Cheers, Kein-Hong Man (esq.) Selangor, Malaysia ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user