Monday, February 11, 2008

K128 usb programmer

JDM programmer is not stable with PIC18FXX family and that may be noticed by expert programmer ...so I decided to buy a usb programmer ;i purchased a usb programmer board and its name is K128 board ...the link for it http://www.kitsrus.com/pic.html ;that programmer is based on a chip named FT232 and that chip is a buffer that store data from usb and prepare them serially to be send to the microcontroller ;we can say it is a usb to serial converter ...
Programming is fast and easy and no pain in verification process ;it is tested by me for PIC18F452 and PIC16F628,PIC16F676 and it is very good

Thursday, February 7, 2008

What is a Bootloader?

A Bootloader is a code that resides in the program memory of any microcontroller and needs a programmer to be programmed in that memory ...but what is used for ???
When you become expert in microcontroller based project you will notice that you have to extract you microcontroller every time from the board of your project and put it in programmer again to program it again to fix a bug or unknown behavior ;and that procedure is waste of time and extra effort and may be pins of your microcontroller are damaged due to many extraction....Here comes the role of bootloder code and circuit...
A bootloader board is attached to PC through a RS232 and the microcontroller is attached all the time to that board;only 2 pins for serial communication are reserved all the time ....And using a bootloader software on your desktop you are able to transfer a new compiled "Hex" file to the microcontroller without the need to program it using a programmer .Only the programmer is used to burn the booloader code once then the code programmed had the capability to upload new code in the program memory without the need of a programmer...amazing
Many bootloader code are found through the web.
One site is : www.microchipc.com/