Programming AT89c51

Not rated 21,997

Circuit Image

The project involves creating an LCD digital watch with an alarm and thermometer functionality. The C source code has been downloaded and converted to a HEX file using the KEIL software. The intention is to program this HEX file into a microcontroller using a Universal Programmer BEE PROG+. However, upon selecting the chip and loading the HEX file into the programming software, data is written without issue. Upon reading the data back from the chip, it is observed that the software writes to the middle of the chip's memory, resulting in altered HEX characters. A comparison with HEX Workshop reveals numerous discrepancies, and consequently, the project fails to operate as intended. The PCB is confirmed to be functioning correctly, as evidenced by the backlight being operational on the 16x2 LCD screen.

This project entails the development of an LCD digital watch, which integrates alarm and thermometer functionalities. The core of this project is built around a microcontroller programmed with C language, whose source code has been converted into a HEX file using KEIL, a widely used integrated development environment (IDE) for embedded systems. The HEX file is intended for programming into the microcontroller using the BEE PROG+ universal programmer, which is capable of interfacing with various chip types.

During the programming process, the initial loading of the HEX file into the programming software is successful. However, a critical issue arises when reading data back from the microcontroller. Instead of the expected data structure, it is noted that the software writes to an unexpected section of the chip's memory. This anomaly leads to corrupted HEX characters, which can be indicative of a few potential issues, such as incorrect chip selection, improper configuration settings within the programming software, or even potential hardware faults.

To troubleshoot this problem, it is recommended to verify the following: ensure that the correct microcontroller model is selected in the programming software, check the power supply and connections to the microcontroller, and confirm that the programming voltage levels are appropriate. Additionally, it may be beneficial to examine the integrity of the HEX file generated by KEIL, ensuring that it has not been corrupted during the conversion process.

The operation of the PCB has been verified, as the backlight of the 16x2 LCD screen functions correctly, indicating that the power and basic connections are intact. However, without the proper programming of the microcontroller, the full functionality of the digital watch, alarm, and thermometer cannot be realized. Further analysis and debugging of the programming process are essential to achieve a successful implementation of the project.Making an lcd digital watch alarm and thermometer. C source code downloaded converted that C file to Hex using KEIL and now I want to program it in chip. I have Universal programmer BEE PROG +. When I select chip and load. hex file in software, I write data without problem. When I read data in chip I see that Software Write that in mdle of chip memory and. hex characters are changed. When I compare it with hex workshop I see that there are a lot changes and my project don`t work. My pcb is ok 100% onlay what I have is backlight on my 16X2 lcd screen. 🔗 External reference