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.

program change atmel89c2051 ti 89c51

Status
Not open for further replies.

maxim10373

Advanced Member level 4
Full Member level 1
Joined
Feb 26, 2010
Messages
116
Helped
1
Reputation
2
Reaction score
2
Trophy points
1,298
Visit site
Activity points
2,066
I have a program (hex)written for AT89c2051,can I change this program
on AT89c51 without any modification?




thanks
maxim
 

Re: programm change atmel89c2051 ti 89c51

Dear sir
its a three phase motor speed controller circuit
using adc. I dont know it is possible to without using comparator

Please reply
Maxim
 

Re: programm change atmel89c2051 ti 89c51

AT89c2051 doesnot have any ADC. It only has a comparator. Are you using an external ADC IC??? Can you post your code & schematic here??? I know assembly, not C. But maybe I could help you...



Regards
Genovator
 

Re: programm change atmel89c2051 ti 89c51

Dear sir,
I am really sorry I can't post the code or schematic here,
But the circuit contained a linear pot with LM393 comparator.


Thanks again reply
Maxim
 

Re: programm change atmel89c2051 ti 89c51

Okay... At least check by yourself in the schematic if P1.0 & P1.1 are used in AT89C2051. And also in the code, check if P3.6 is used...

If in the code, P3.6 is not used in any way, then the comparator of the 89C2051 is not in use. You can change it to 89C51 by keeping the pin identity same...
 

Re: programm change atmel89c2051 ti 89c51

Sir,
In the schematic P1.0 & P1.1 are used. How to find the P3.6 is used in hex code?
when I checked on proteus simulator,the code working with AT89C2051,doesn't work 51.

Thanks for ur valuable time
maxim
 

Re: programm change atmel89c2051 ti 89c51

In your proteus file, right click on the 89C2051 ic, select "Edit Properties". Under "Advance Properties" check if the "Enable Comparator" is selected as "Yes". As shown below...




If Enable Comparator is Yes, it means the internal comparator of 89C2051 is in use. So you cannot use it with 89C51.
 

Re: programm change atmel89c2051 ti 89c51

Sir,
In proteus file, program working if the comparator enable or not.
 

Re: programm change atmel89c2051 ti 89c51

In proteus file, program working if the comparator enable or not.

Do you mean Enable comparator is "No"???
If Enable Comparator is "No", then there must be some pull up resistors connected between Vcc & P1.0/p1.1. As shown below..

9192848100_1389590222.jpg



With this two criteria,
(1) Enable Comparator is "No"
(2) Pull up resistors on both the comparator pins

you can use this program on 89C51...
 

By the schematic, it seems the comparator of 89c2051 is not in use... There's a voltage divider network between P1.0 & P1.1 by two 10k resistors & a NTC thermistor. No matter what temperature the thermistor faces, voltage level of P1.0 will always remain higher than P1.1. And also no other pins are used, so I conclude the comparator is disabled.
Have you tried this code in 89c51??? Try it first. If it doesn't work, then you cannot use it in 89c51, because you only have its hex code which you cannot modify. In this circuit P1.0 & P1.1 are open collectors, but it C51, these pins are general signal IO pins..
 
Sir,
Yes, I tried first 89c51&52.I didn't get the out put. It was very help full reply.

Thanks
maxim
 

Then I am afraid you cannot change the mcu. :-| If you had the source code, maybe we could do something...
Anyway, thanks... :wink:



Regards
Genovator
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top