as far I know 16Fxx device is not having the capability of writing into it's own programe memmorry.Without that capability bootloader mechanism cannot work.kseng2002 said:Hi,
Is there any bootloader for PIC16FXX series ?
Thx for advice !
The bootloader available at www.microchipc.com works another way.The bootloader programe actually resides at the top position in the programe memmory.Whenever power is applied the reset vector points to a long jump to the last 256 byte page in the programe memmory where the real bootloader resides.This bootloader programe looks in the serial port of the PIC for any possible incoming data from the terminal programe running in PC. If the two programes successfully communicated(the bootloader in PIC and the terminal programe in PC,Which is specially done for this bootloader) then the PC programe will download HEX data which the bootloader will collect and write into its own programe memmory. After this process is completed the bootloader will pass controll to the first location of the user programe which will run in the normal way.until next reset the bootloader will be inactive . on every reset the control will go to bootloader which will look into the serial port for a pre determined time for any user downloads otherwise the control will be returned to the previous downloaded user programe.If no download is attempted it will work normally.chinara said:At last the bootloader moves the PC pointer to the reset vector address, and the program downloaded may start working.
chinara said:Bootload must decode the HEX or BIN code, .
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?