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.

A question about 8051 code

Status
Not open for further replies.

wjx197733

Member level 2
Joined
Sep 21, 2004
Messages
53
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
476
I download an 8051 code writed by from http://www.opencore.org, when I simulate the code, I find there has a error: the module ROM has three signals data1,data2,data3, the error message is these three signals has not been defined. in fact, but I do not understand where these three signals is from.

I think I can get help from here.
 

If somewhere in the program you use constants such as Data1, Data2 and Data3 you need to declare them..
This can be done in the following way:
(values are chosen as needed)

Data1 EQU 01h
Data2 EQU 02h
Data3 EQU 03h

and from now on each time you will be using Data1, its code value will be 01h, for Data2 the value will be 02h and so on .. and they will reside in the program memory, in your case it is ROM ..

So, if you don't declare them you will have an error ..
Regards,
IanP

BTW, the link you have provided is dead ..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top