Did you use this instructable in your classroom? Add a Teacher Note to share how you incorporated it into your lesson. Hi, i cant get the link 2 work at all.. Regards Daz. Which programmer should I use?

Author:Daibar Shalar
Language:English (Spanish)
Published (Last):24 January 2013
PDF File Size:16.81 Mb
ePub File Size:4.70 Mb
Price:Free* [*Free Regsitration Required]

These are reliable and easy to use much easier than serial or parallel port programmers. All you really have to make sure is that it supports your devices and that you have an ICSP interface. The difference is that some programmers allow you to insert the PIC chip into an IC holder to program it and then take it out and place it in a circuit.

Suggested programmers are the pickit2 or pickit3. It can write data to the microcontroller and read it back for verification. The pic programmer translates digital logic levels from the PC to suitable logic levels for the microcontroller - most levels are ok as they are, but for 'normal' or high volt programming of a pic microcontroller the following voltage at the MCLR pin is needed:.

The Typical digital logic levels are nominally 5v so usually these programmers require use of an external power supply to generate the higher voltage. The serial port generates higher voltages and this fact is used by programmers such as a JDM pic programmers. The programmer should isolate the microcontroller so you can test the microcontroller program while the programmer is still attached.

The JDM serial port pic programmer cleverly uses the serial port to provide a high voltage programmer that does not require an external power supply. Its cheap and easy to construct and is useful for programming one off chips but you have to insert and remove the chip that you are programming moving from the programmer to the development board. Personally I don't like doing this as I just want to connect the programmer to my dev board, leave the chip in place, and get on with solving the task.

The problem with these programmers is that they reference the programmer's ground to the -ve serial output voltage. So the programmer's ground reference to the PIC chip is -8V or whatever negative voltage the serial port generates. In practice this means that you can not make any ICSP connection to your development hardware as you can not connect development ground to -8V! I recommend that you use a pic programmer that needs a power block. All pic programmers work the same way except the bootloader - see later - they generate a serial data stream using two signal lines clock and data.

Another pin controls the programming voltage at MCLR and two others supply power and ground. Another program running on the PC the programming software takes the hex file generated from your compiler translating it into a serial data stream. From there the programmer presents the signals to the microcontroller. After all the data is sent, a serial configuration word is sent, and voila - the microcontroller is programmed ready for use.

The disadvantage is that you loose one pin which may be ok for larger 40 pin devices but probably not for 18 pin devices. It would depend on your circuit requirements. See discussion on LVP , for more information. So always pull the PGM line low with 10k approx. There is one other way of programing a pic device and this is using a piece of software called a bootloader. This method is only usable on the newer devices that can re-program parts of their own FLASH memory - these days that is loads of them and it is now more common to expect this self-programming action rather than thinking of it as unusual e.

It is a small program that typically monitors the USART receive data line RX and activates itself if there is any activity on this line within a set time period after reset e. When all data has been loaded and programmed it starts up the new program or boots starts up and loads; Hence the label: Bootloader.

The process of booting bootstrapping or starting a system also seems like an impossible task if you ask the question how can I load and start my program if there is no program in the device to load and start my program! The answer is that you use a simple piece of software to load the more complex one. This simple program then transfers control to the new program. For the PIC micro you program the bootloader code using a standard high volt pic programmer.

Since you need a normal pic programmer or High Volt programmer to get the bootloader into the microcontroller in the first place why bother with it? All you need is a serial interface. The bootloader lets you use any interface depending on how you program the microcontroller to load code. Its main use is in finished equipment where software updates are needed without opening the box up and plugging in a pic programmer.

Equipment that normally uses an RS port could be bootloaded through that port. All you would need is a serial cable and hyperterminal available in Windows. Note other interfaces can be used e. Note: Bootloading is not limited to any specific interface - you could bootload over a network interface or an infrared IRDA interface. This is a list of some of the programmers available as circuits that you can search for on the web.

There are several elements to a programmer but the most important is the ICSP connection. Don't buy a Serial port powered programmer if you use a laptop as its output power may not be good enough to operate the programmer laptops like to make power savings to save their batteries!

The manufacturers get away with this as most uses of RS are short distances on the desk. For a programmer it means there may not be enough voltage to create the 13V for the Vpp signal! Note: If you want to program chips by removing them from the target board you will want a stand alone programmer. To save money you could buy one with a DIL socket - just make sure to remove the chip using a chip extractor and not your fingers and thumb otherwise you may end up using your thumb as a rather nice pin cushion - believe me it hurts.

If you have not got a chip extractor then use a screwdriver - alternately lever up each end of the chip - don't just lever one end up as you will bend all the pins at the other end. The single most important feature you need in a pic programmer is the pic ICSP connection.

This is a set of connections that let you program the pic microcontroller while it is in your circuit - there is no need to remove the chip just program it. This is the most convenient way of developing a prototype apart from bootloading - see earlier as all of the hardware once connected is just left as it is on the bench i.

You can also connect the ICSP wires to a solderless plug block breadboard so this is also quite an easy way to develop circuitry but be careful where the Vpp wire is placed 13V - not all the pins can withstand this voltage so make sure it is at the MCLR pin.

For more details on ICSP click here. You can build your own programmer if you have an older computer with either a serial port or parallel port. Is your programmer not working or showing random data on verify? If you are using long cables then its probably because the cable is behaving as a transmission line. The way to solve this is to add a resistor and capacitor termination. Here is an example of a parallel port programmer. Its actually quite useful and it saves blowing up a laptop!

Serial or Parallel programmers describe the PC interface used not the programming method - all pic microcontrollers are programmed serially. Serial programmers connect to the Serial port and Parallel programmers connect to the parallel port. The signals used at the parallel port interface still generate serial data - this is why a parallel port programmer is no faster than a serial port programmer. In fact the speed of programming is determined by the pic programming algorithm and is much slower than any of the PC interfaces.

In general programming a Flash pic device is quite slow 16FA 30 seconds. Programming seems slow when you make minor code changes and want to see the result quickly but compare this to old style EPROMs - you used to remove the chip from the board and put it under a UV light for 30 minutes!

To be honest I got fed up with the amount of circuits available as there are so many to look at and I also wanted something that was going to work. I decided to follow the one recommended by microchip themselves. It performs well if you add a transmission line terminator - a capacitor and resistor!.

See the following link for building your own parallel port programmer circuit including the transmission line terminator which allows it to work using a six foot parallel port cable. PIC Programmer. Comments Have your say about what you just read! Leave me a comment in the box below. The Arduino shiftOut function can simply control many different serial interfaced chips.

Find out how it works and how fast it operates. Read more. Learn how to use the TP properly. There's a right, and a wrong way, to use it to safely charge Lithium Ion batteries. Find out here. Find out what they are in this page. The MCP chip is a four channel 12 bit DAC, with memory that outputs voltage that you can use for calibration, anywhere you want a fixed voltage. Become a subscriber Free Join 29, other subscribers to receive subscriber sale discounts and other free resources.

Name : E-Mail : Don't worry -- youre-mail address is totally secure. I promise to use it only to send you MicroZine. Note: To program pic devices you need a high voltage programmer but see bootloading. Note: The Arduino range of devices all use a bootloader and this allows immediate upload of a program using only a serial connection.

You lose a small amount of programming memory that is where the bootloader is stored but you probably won't notice as there is a lot of flash memory anyway. Note: This also depends on the PC speed and the hardware capability -I tried using the 1GHz machine and the program cycle was much faster - but you need to have hardware that allows you to go fast.

Recent Articles. Readers Comments. I find here many useful projects and tips. Very useful, uncovered, honest and clear. Thanks so much for your time and works. No reproduction without permission. Name :. E-Mail :. Don't worry -- youre-mail address is totally secure.


Simple PIC Programmer All pic programmer

Everyone has a different requirement for Microcontroller programming, from the basic development programmer or complete training kit, through field updates, to full scale production of thousands of circuit boards. The best solution for you depends on how you answer these simple questions:. My Basket: Your basket is currently empty. Click to view the full basket. Search Site.


any universal programmer kit is available for all pic ic's

These are reliable and easy to use much easier than serial or parallel port programmers. All you really have to make sure is that it supports your devices and that you have an ICSP interface. The difference is that some programmers allow you to insert the PIC chip into an IC holder to program it and then take it out and place it in a circuit. Suggested programmers are the pickit2 or pickit3.

Related Articles