[SOLVED] problom in loading program on 89c52.

Status
Not open for further replies.
sbit alarmset=P3^7;

I don't understand what is the use of this pin as per your hardware connection(not Proteus) in early post P3.7 is floating no connection at that pin and all your settings done after checking it is high in main logic.

and I didn't checked whole your code yet.
 

Dear ud,Thank you for yesterday's reply.
Is it possible that one program runs on proteus but does not run in actual hardware?As my problom & investigation shows I think it is possible.
 

Is it possible that one program runs on Proteus but does not run in actual hardware?As my problom & investigation shows I think it is possible.

it might be possible.but your simulation has one button at pin 3.6 and not any button at your real hardware. what is the answer for my yesterday post?
 

Dear ud sir,
Their is no use of p3.7 in circuit.it is left open.Here I change while loop as follow.
Code:
while(1)
{


all_disp();
if(day==friday)
alarm_chk2();
else
alarm_chk1();

if(!set)
{
time_set();
alarm_set1();
alarm_set2();
alarm_set3();
alarm_set4();
alarm_set5();
alarm_set6();
alarm_set7();
alarm_set8();
}
else
no_set();


}

Then problom remains same.Now I observe that If I write code up to 3969 bytes(by removing functions alarm_set3 to alarm_set8) then program runs successfully(lcd & clock running).As I write above 4100 bytes then initial message on LCD blinks.furher I added code then lcd shows totally dotted & not executed. Please reply.
 

which compiler you are using?if using keil then are you using keil evolution version ?if yes then it is limited to generate hex upto 2k.
 

Dear sir,i am using Liscensed keil.Problom occures in step above 4100 bytes.below this limit code runs.can this be a programmer problom?
 

I don't know may be yes.

Some other possibility are there like faulty controller,wrong device selection during loading hex,Wrong compiled hex.Hard to debug.Try with new controller and load code with other programmer for same hex file. OR program the controller with other programmer and check.
 
Reactions: tapu

    tapu

    Points: 2
    Helpful Answer Positive Rating
Dear Ud,
Thank you for your posts in my thread(in previous week)..your posts are helpfull.My problom have solved.Theire is error has been occured in 89c52 chip.( Probably becouse of wrong device selection in first time).I used new 89s52 then running successfully.
 
Reactions: ud23

    ud23

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…