Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 4th April 2005, 02:24 AM   (permalink)
Default whats this Bootloader thing?

Ok,
what is this boot loader thing u guys are talking about. This isn't the first time i've seen it either.

I heard it when ppl were trying to pirate the satellite signal with their bootleg cards.

What is it? what does it do? what function does it play in microcontrollers? Is it something worth while learning how to do (eventually)?
gimmix is offline  
Old 4th April 2005, 06:50 AM   (permalink)
Default

An bootloder is an program in a PIC that can program the PIC its runing on from an EEPROM or somring else.

this works only whith PICs that have the CPU can "read/write program memory" feture
__________________
Il give you shocking experience.
Someone Electro is offline  
Old 4th April 2005, 09:13 AM   (permalink)
Default

As 'Someone Electro' says, it's a feature only available on some PIC's, basically it allows you to program the PIC without a programmer - usually via a serial port connection from a PC.

However, you still require a programmer to get the bootloader code in the PIC in the first place!.

If your design already includes a serial port (as they often do), this is a simple way to give ICSP capability - with no restrictions or limitations on your hardware design (as with normal ICSP).

I've played with a bootloader on the 16F877/876, it's very easy to use.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 4th April 2005, 12:11 PM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
As 'Someone Electro' says, it's a feature only available on some PIC's, basically it allows you to program the PIC without a programmer - usually via a serial port connection from a PC.

However, you still require a programmer to get the bootloader code in the PIC in the first place!.

If your design already includes a serial port (as they often do), this is a simple way to give ICSP capability - with no restrictions or limitations on your hardware design (as with normal ICSP).

I've played with a bootloader on the 16F877/876, it's very easy to use.
Bootloaders are very useful. Check my attachment.
__________________
"I share, thus I am"
Jay.slovak
Read this!
ICD2 Clone
Best PIC/DsPIC Bootloader

Read my Inchworm ICD2 review!
Jay.slovak is offline  
Old 5th April 2005, 12:44 AM   (permalink)
Default

you can think of boot loader as 'operating system' or 'menu' that allows transfer of new application and selection of program you want to run. you can make it as simple as you want to or complicated as you want to.
you don't have to have it but it can make life much easier if you want to change application without need to remove chip, plug it into programmer etc. or when you want to try some new code to decide if you like it or not.
if you don't, just continue running some other (previous) program.
just imagine that your product has to be used by people who don't have programmer at hand or don't know how to use it.
for example if the controller is embeded into device such as CDROM drive or motherboard and after thousends of them are sold you figured way to improve product by using smarter code.
if you tought about it on time, you could simply release new firmware and simple instruction for end users to load it. imagine alternative which includes removing chip(s) from the unit, finding proper programming device, transfering new files etc. and what if chips are all soldered?
that would require quite good shop with experienced guys to get the job done right - not to mention assembly of something delicate and complicated.
panic mode is offline  
Old 5th April 2005, 06:41 AM   (permalink)
Default

im using ICSP so i dont use an boot loader.I have an conecor and i simply conect it to my breadbord,click the program button,wait a litle and unplug it

I made an conecot for it.

It wod be a a real headace having to pul it out,in the programer,out and back in the bearbord.


Bootloaders can also program an PIC from an EEPROM,EPROM or ROM memory chip that is plugen in.

this makes it wery simple for comercal devices o upgrate the program..So an serviser can come to the home,plug the memory chip i, run the PIC,plug it out and finised

so he can upgrate the firmware whith virtualy no eqipment.
__________________
Il give you shocking experience.
Someone Electro is offline  
Old 6th April 2005, 05:28 AM   (permalink)
Default bootloader as trainer???

I would like to use a bootloader, or some other means to create a small trainer simular to a heathkit etw3800. I would like to be able to some switches, led's, 20 key matrix and a lcd screen to show the code and certain registers....

Am I thinking too much???

Thanks for your responses

David
sruger is offline  
Old 6th April 2005, 03:22 PM   (permalink)
Default

Well one thing i found was when using low voltage circuits (3V) ICSP using a tait programmer can cause problems, like damaging the low voltage parts.

But with a MAX232 + a voltage divider + bootloader i was able to progam the chips in circuit and with my RS232 board
pittuck is offline  
Old 6th April 2005, 03:50 PM   (permalink)
Default

I use diodes on the Vpp and Vdd so i dont power up the whole circuit,so only the PIC gets the power
__________________
Il give you shocking experience.
Someone Electro is offline  
Old 6th April 2005, 04:37 PM   (permalink)
Default

Quote:
Originally Posted by pittuck
Well one thing i found was when using low voltage circuits (3V) ICSP using a tait programmer can cause problems, like damaging the low voltage parts.
Tait type programmers were never designed for ICSP, but there would be no problem running the Tait type designs with a 3V supply to the PIC, the open-collector buffer chip used would make it easy.

Obviously if you stick 5V on the Vdd pin of the chip it will fed 5V to the rest of the circuit, also 5V on the data and clock lines will feed through the protection diodes to the rest of the circuit as well. Vpp shouldn't be a problem, as it's designed to go higher than Vdd.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 6th April 2005, 06:20 PM   (permalink)
Default

ups!!i made an typo.I meant Vss insted of Vpp
__________________
Il give you shocking experience.
Someone Electro is offline  
Old 11th April 2005, 05:29 AM   (permalink)
Default

thanx for all the info guys.. i'll definately try that stuff out later when i get more experience.
gimmix is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 04:06 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker