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.

can anyone give me a small C code for microcontroller

Status
Not open for further replies.

quris_terris

Junior Member level 3
Joined
May 29, 2005
Messages
30
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,513
can anyone give me a small C language code for 8051 microcontroller . the code is stored in EPROM 27C256 and only give number 2 on port one.The code should run from EPROM
 

All what you need is this:

#asem
CODE: MOV P1, #02h
SJMP CODE
#enasem

or just burn:

75h 90h 02h 80h 0FBh to the first 5 locations of your EPROM .. using the attached HEX file (HEX extention is not allowed, so you will have to rename from code.doc to code.hex ) ..

Regards,
IanP
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top