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.

Keil Compiler AT89c2051 Setting

Status
Not open for further replies.

Help

Advanced Member level 2
Joined
Feb 15, 2005
Messages
617
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,298
Activity points
7,065
at89c2051 compiler

Hi,

Please anyone can tell me how to do the setting for 2051 MCU in Keil compiler?

I'm not sure whether the setting is correct not, after i burn the firmware into the MCU with successfull but it look like not function at all. But when i burn it into AT89C52. It working fine.

In the coding i'm include <reg52.h>.
The total program size:
data = 24.4
code = 727

May i know where's the problem?

Thank you.
 

include file for at89c2051

dear friend

i think it's because you've selected the wronng header file
for the compiler you are using a '52 device
and it will compile according to the resources of the same
in keil there's a header file for at89c2051
include the same and try
it should work fine


ml
 

    Help

    Points: 2
    Helpful Answer Positive Rating
setting keil

Dear Friend,

Thank you very much. Yes, finally it work. I just simply include this library
Code:
#include<reg2051.h>
:)

I have another question. In Keil compiler where can find the library file?

Thank you.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top