Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

unaided said:
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.
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top