Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ORG 0
Goto Bootloader
Jay.slovak said:Bootloader is autostarting by default, but this takes ~1second, so sometimes this is a problem. Every Reset is triggering bootloader, because:
is in the PIC.Code:ORG 0 Goto Bootloader
;*****************************************************************
list p=18F452 R=DEC
#include <P18F452.INC>
ERRORLEVEL 2
Because I am Slovak:
Podprogramy Zdrzania @20Mhz (Delay subprograms @ 20Mhz)
Hlavny Program (Main Program)
Yes, Ignore that. It's for formating purposes only.(;********* ) ignore?
instead:
MOVF 7h,1
you can write:
MOVF PORTB,f
so does it mean when i upload this prog ... i have to set it in the mplab i use?? if so .. how do i do it?? .... or do i just upload the program u sent me straight into the PIC thru MPLAB?? and are all the protection flags off so that i can reuse the PIC??Jay.slovak said:No, I set the Config Bits directly in MPLAB, it's faster to do than in code and I wanted to make it fast for you. In other cases I always put them in the code.
Just set the fuses like on the picture.kupikupi said:so wat do i do now Jay ?? do i have to make any changes to the program ??
OK I found a workaround, go to File/Export and save HEX. This way it WILL have Cinfig bits inside HEX.Exo said:For pic16F devices, setting the configuration bits in MPLAB only tells the debugger (MPLAB SIM for example) how to run. You still have to add the configuration bits to your code if you want them to be incorporated into the HEX file...
Is it diffirent for Pic18F devices Jay ? Could be, i didnt try yet...
eblc1388 said:Yes, RS232 works, but that comes after the PIC been programmed with the necessary code to make sense of the communication.
But at first the PIC is totally blank, don't understand anything about RS232.