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

Marcusedine
Mon Nov 11 2024, 09:35 am
JohnCapse
Mon Nov 11 2024, 04:01 am
Massoenurf
Sun Nov 10 2024, 07:50 pm
Jerrysig
Sun Nov 10 2024, 01:38 pm
Thomascudge
Sun Nov 10 2024, 06:19 am
Emilioevets
Sun Nov 10 2024, 03:27 am
Cazrgll
Sat Nov 09 2024, 11:45 pm
Anya79sa
Sat Nov 09 2024, 07:52 pm