Discussion in "8051 Discussion Forum" started by    tanyp1997    Feb 23, 2016.
Tue Feb 23 2016, 05:11 pm
#1
Hello,
I got some question about the ORG XXXXH instruction...isit there is a must for us to start coding from ORG 0000H before LJMP, why can't we just start our coding from ORG 0001H?
Wed Feb 24 2016, 03:52 pm
#2
8051's reset vector location is 00H, so the first instruction execution starts from 0H location. If you start your code from 01H or any other location, then probably your code will not run at all.
Thu Feb 25 2016, 08:28 am
#3


8051's reset vector location is 00H, so the first instruction execution starts from 0H location. If you start your code from 01H or any other location, then probably your code will not run at all.

ajay_bhargav



Itis still got other instruction can let us to start the coding from 01H or other except LJMP ?
Thu Feb 25 2016, 10:40 am
#4


It is still got other instruction can let us to start the coding from 01H or other except LJMP ?

tanyp1997


When the 8051 starts/resets it starts reading code from 0000.
If you don't put valid code there it will not run.

The first 38 memory bytes are used by interrupts.
You could use this area for your code if you don't enable
any interrupts, but normally you don't.

Why don't you want to use a jump ?
Wed Mar 02 2016, 07:52 pm
#5
Your second interrupt vector address is at 0003H (for INT0) which leaves a room of 3 bytes where only an LJMP (3 byte instruction) can fit properly. Is there a special requirement you want to start from 01H?

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

AntoniaRoons
Fri Apr 19 2024, 09:59 pm
carpinteyrowrl
Fri Apr 19 2024, 02:51 pm
DonaldJAX
Fri Apr 19 2024, 01:08 pm
Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am
DonaldKnown
Thu Apr 18 2024, 12:24 am