Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Need Help : STC89C52 Blinking Led Program through STC-ISP Software

Ahmar-47

New Member
1739946126251.png

I wrote a program in C using Keil here is the code
#include <reg51.h>

sbit led1 = P2^0;

// Function to generate a delay in milliseconds
void delay(int ms) {
int i, j;
for (i = 0; i < ms; i++) {
for (j = 0; j < 1275; j++) {
}
}
}

int main() {
while(1){
led1 = 0x01; // Turn on the LED (set P2.0 high)
delay(500); // Delay for 500 ms
led1 = 0x00; // Turn off the LED (set P2.0 low)
delay(500); // Delay for 500 ms
}
}
The i generate Hex file upload that hex file in STC-ISP software as i have attached Screen shot it shows that chechking target mcu it stucks here i resest the board by clicking on reset button again its stuck on chechking target mcu i donot know whats the problem
 
Back
Top