PIC programming

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
The MicroChip site (www.microchip.com) is loaded with useful info and software. You'll find a free assembler/debugger (MPLAB), the schematic of a programmer that connects to the pc parallel port, a bootloader for pics having a UART, and so on...
And of course, reference manual of each pic model.


BTW, I've written an utility that takes a .hex file and programs a pic using the parallel port programmer from an application note as described above. It uses the routines of the AN but can work on NT/2000/XP machines (which the original routines can't because they use biosprint).
If you or anyone else wants it, I can try to put it in a package and post it here for download (I'll have to check dll dependencies first).

best,

Guilherme.
 
You could also take a look at this book
http://www.amazon.com/exec/obidos/tg/detail/-/0071361723/qid=1053119846/sr=8-1/ref=sr_8_1/102-4556497-9297706?v=glance&s=books&n=507846

It's all you need about PIC... A lot of example projects, how to interface with various components such as relays, polariod sonar transducer, keypad, lcd etc... This book is a must. Yeah, you can find everything free on the net but everything you'll ever need is included in this book.

The best of all is that the book comes with a PIC programmer PCB :)

Regards,
 
;) ;) ;)
Don't forget to ask for samples at Microchip!!

I've received today more samples, and I'm learning PIC programming!
Tha links above have a lot of useful information. I've learned a lot!

Mark Hennessy, how about sharing with us the code of your pic? I've here 3 samples of the 16F877 :cool: and some PGA's!

Pedro Martins
 
I made an input selector in the past using a PIC16F84.
Selection was made using a 2-bits encoder and the PIC was connected to a '2803 which is driving the input relays.

You can also see that I added a 45sec delay before enabling any input (to let my preamp tube to warm up...). A bicolor led is blinking red/green during warmup delay and turns green when delay is passed.

There's no volume control yet but you can easily add a remote control decoder chip and drive a motorized potentiometer with 2803's output remaining. (Or even easier : simply add a digital potentiometer)

I hope this helps :)
 
There's a lot of PIC programmer schematics on the Internet.

Here's my recommandations :

Solution A
If you're really serious about PICs and you plan to use several models of PIC microcontroller, you can buy a Picstart Plus development programmer. Even if it is cheap for a programmer that support almost every PIC (except 18FXXX), it is supported by the free Microchip development environment MPLAB and you don't have to build it yourself. But maybe you're not ready to spend 250$ so there's alternative "B"

Solution B
If you plan to use mostly 16F877 microcontroller (and all midrange PIC microcontroller supporting ICD - In Circuit Debugging), you can go for MPLAB ICD. It is an In-circuit emulator that allows programming too. Very handy when you need to debug an application. Best of all, it is much cheaper than Pictstart Plus (around 170$ for the complete kit). This one is also fully supported by MPLAB. You can trace in your code etc... very handy. (Note that there's also the MPLAB ICD2 which supports PIC18FXXX at the same price as the normal ICD)

Solution C
If you wish to get the equivalent of a Picstart Plus programmer, you can look for the PicAll programmer. You need to build it yourself which means that it is much cheaper solution.
http://www.picallw.com/hardware.htm
Very Interesting solution... It even supports Atmel's AVR. However, you can't use it through MPLAB environment. You have to compile your hex file and then use an another application to program your chip.

Solution D
The final solution that I'm recommending is to buy this book : http://www.amazon.com/exec/obidos/tg/detail/-/0071361723/qid=1053289458/sr=8-1/ref=sr_8_1/104-5999045-6020761?v=glance&s=books&n=507846
As I said previously in this thread, this is the ultimate ressource for PIC programming, from code examples, programming algorythm, hardware interfacing, etc.... This book is a must, and it comes with a printed circuit board to build your own programmer. This is the best way to begin in the world of PIC.

Solution "Crazy" about programming
I don't recommend this solution as it is by far the most expensive but you can go for an universal programmer. The programmer supports almost programmable ICs but they're a bit hard for a hobbyist to afford those. (Galep 4 shown on the picture)

On the software side, you should stick to MPLAB development environment as it support many external compiler. MPLAB has an internal ASM compiler but if you wish to program in C language, take a look at Hitech C compiler. http://www.htsoft.com

I hope this helps !
 

Attachments

  • programmers.jpg
    programmers.jpg
    35.8 KB · Views: 369
audioPT said:
;) ;) ;)
Don't forget to ask for samples at Microchip!!

I've received today more samples, and I'm learning PIC programming!
Tha links above have a lot of useful information. I've learned a lot!

Mark Hennessy, how about sharing with us the code of your pic? I've here 3 samples of the 16F877 :cool: and some PGA's!

Pedro Martins


samples? from microchip? (runs to website and orders some) and ive been buying them all this time?
 
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.