how i put my program after 0x800 in pic?

Status
Not open for further replies.

ala aude

Newbie level 4
Joined
Dec 27, 2009
Messages
7
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Location
palastain
Activity points
1,329
bootloader

hi all
i work with pic 18f and i use ubw wheker programmer i hav a problem that how i put my program after bootloader in pic( how i put my program after 0x800 in pic) in mikroC
 

bootloader

Well, in single chip, there is no mmu. So you can access every address you want.
You now just need to recevie programmer, and write these data to your needed address, just like 0x800.
For example, if single chip has 16 bits address, 8 bits data, then:
short addr = 0x800;
*((char *)addr) = 0xFF;
And 0xFF is written to 0x800.
 

Re: bootloader

I DIDNT UNDERSTAND YOU EXACTLY what you mean but i will put example and please put your chang on it

voi main(){
TRISA=0B00000000;
PORTA=0B11001100;
}
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…