Dear all, I have a working program which has been running for about a year. This project uses the AT89C51ED2 from Atmel. Seeing as I was using uV Version 7.02 which didn't support this chip I decided to upgrade and am now running V7.50a (I believe the latest). I did some alterations on the above mentioned project like changing timers and including the origional keil header file instead of the one I altered myself, and then recompiled. Tested the project in the simulator, everything seems ok. Then I flashed a chip and.... nothing.... Even the Outputs didn't get set to "0". After examining the header files I came accross the following differences. Old altered file: sbit P1_7 = P1^7; sbit P1_6 = P1^6; sbit P1_5 = P1^5; New AT89C51XD2.h file Sbit (P1_7 , 0x90, 7); Sbit (P1_6 , 0x90, 6); Sbit (P1_5 , 0x90, 5); etc...etc...etc... In my progarm I have the following: sbit relais = P1^1; sbit active = P1^0; etc...etc... The question: Could this be the cause of the problem? If so, why don't I get compiler errors? Thanks in advance for any responses. Regards John Garrelts
Have you tried burning the original working hex file into the chip?
I think I've found the problem. It seems like I've got a bad datch of Micro's. 1 out of 5 work..... Thanks for the back-up everyone Regards John
If anything is new it should be tested on hardware that was tested wiyh the old. So often a hardware bug will show up as a software bug and vv. Erik
Sorry if I wasted your time Erik, It wasn't intentional. I did test the program on a tested (working) hardware setup. The only physical difference was a different micro. Same type, serial number, for the rest everything the same. Just the latest batch of micro's don't seem to work. What made me think of the Keil software was that was what I updated last. My mistake... sorry everyone Hope no one's to mad at me..... Regards John Garrelts
If I were to be mad at you, I would have been mad at myself for similar reasons who knows how many times. We all think we follow good practice (In yourcase reprogram the same micro) and often find that we do not. Erik
Which programmer do you use?
I use a HiLo ALL-11 P2... It programmes the flash ok, just the I/O of the micro's aren't functioning Regards John
hi, I've got a bad datch of Micro's. 1 out of 5 work I doubt that Atmel does its work so bad. I have using alot of AT89C51ED2 and there were no bad chips. Do you read its Errata: http://www.atmel.com/dyn/resources/prod_documents/doc4257.pdf - maybe the problem is there. Regards, Oleg
Do you read its Errata: - maybe the problem is there. Maybe, maybe not. I refuse to use Atmel because of something that happened when an error did not appear in the errata till more than a year after I reported it. Erik