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

Sazrzhk
Sun Oct 06 2024, 01:34 am
Sazrjgz
Sun Oct 06 2024, 01:23 am
Dnrthvf
Sat Oct 05 2024, 08:39 pm
Dnrthwo
Sat Oct 05 2024, 08:27 pm
Mofredka
Sat Oct 05 2024, 03:43 pm
ErnestClagS
Sat Oct 05 2024, 06:44 am
Arisha4Et
Fri Oct 04 2024, 05:53 pm
LancenuT
Fri Oct 04 2024, 02:15 pm