|
Bootloader Development Board as seen in the book; Programming Microchip PICs with PicBasic Background
Original Board
There are two connections, not shown, that are under the board. They connect the Tx pin from the RS232 chip to C6 of the PIC and the RX pin to C7. The PIC 16F876 shown is programmed with the meloader .hex file and also a 4 Mhz resonator is included (shown just above the PIC). This was all that was needed to build this bootloader board out of a 2802 board. Fortunately the replacement is just as easy to build and because we found a free bootloader, it's also cheaper. Replacement Board
The connection wires are not soldered under the board so you can see where to install them. This also demonstrates that you don't need a soldering iron to build this bootloader board. The yellow wire connects the 2840 Rx socket to the C7 socket. The orange wire connects the Tx socket to the C6 socket. The picture below shows a close-up.
These are all the connections you need to make to convert the 2840
board into a bootloader board. The only thing left to add is the PicLoader
PIC16F876 chip and the 4 Mhz resonator.
PicLoader Software
The software comes as a .zip file. Inside the .zip file are many files but all you really need are two of them. The "PIC downloader.exe" file and the "60419 - bootldr-v2-16f876-77-04Mhz-19200bps.hex" file. The .hex file is the bootloader code that needs to be burned into the PIC16F876. The PIC downloader.exe file is the Windows programming software shown in the picture below. From this window you download the .hex file created with PicBasic into the bootloader board PIC 16F876.
There is one hang-up to this free software though. You need a PIC Programmer to burn the "60419 - bootldr-v2-16f876-77-04Mhz-19200bps.hex" file into a blank PIC16F876. This means you either need a friend with a PIC Programmer or you need to buy one, which isn't a bad investment. You can also buy just the PIC chip from us at elproducts.com. More details are below. The PicLoader offers many different .hex files depending on which PIC you use and also what oscillator frequency you want. The proper file to match the PIC16F876 and 4 Mhz used in the book is: 60419 - bootldr-v2-16f876-77-04Mhz-19200bps.hex This will give you a PIC 16F876 running at 4 Mhz and will communicate with the PicLoader software at 19200 bits per second download. The PicLoader uses the COM port and you can select which one in the windows software. Running the Bootloader
The PicLoader is quite easy to use. After you start the software,
you click on the search button to find your .hex file created with PicBasic
or PicBasic Pro (make sure you include the "define loader_used 1" line
in your PBPro program). Then click on the "Write" button. The info window
will display "searching for bootloader". At this point you press the reset
button on the 2840 board and the program should start downloading. You
will see the blue bar, below the info window, increase in size as the program
downloads. When the program is finished downloading, it will immediately
start running in the PIC 16F876.
If the software cannot find the bootloader, it will continue to say
searching for bootloader. That means the serial connection is not correct
(wrong COM port selected) or something is wrong with the bootloader board
(make sure power is on).
Purchasing the PicLoader Chip or Bootloader Package
We also offer just the PIC16F876 with the PicLoader 4mhz .hex file
burned in and a 4 Mhz resonator for $14.00 each. Some may want several
so they can keep each program on a separate chip. For these users we offer
a volume discount. Five PIC16F876 with PicLoader burned in for $10.00 each
or $50.00 total (plus shipping).
We also offer a PIC16F877 40 pin version which will work the same way. You just plug it into the 40 pin socket instead if the 28 pin socket used for the PIC 16F876. This gives you more I/O and your PicBasic program doesn't have to change (unless you access the extra I/O). Hopefully this will help many others get going with the book projects. Any questions regarding this should be directed to chuck@elproducts.com. All content on this site is copyrighted by Elecronic Products and Chuck
Hellebuyck 2000, 2001, 2002, 2003. Reproduction of this is strictly prohibited
without written permission from Chuck Hellebuyck.
|