Discussion in "8051 Discussion Forum" started by    tanyp1997    Feb 23, 2016.
Tue Feb 23 2016, 11:41 AM
#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, 10:22 AM
#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, 02:58 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, 05:10 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, 02:22 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

Conversation

No messages yet.

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 105, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123