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.

[51] STC89C52 Blinking Led Program through STC-ISP Software

ahmar123

Newbie level 5
Newbie level 5
Joined
Jul 10, 2024
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
52
1739946806816.png

I wrote a program in C using Keil here is the code

Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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
 
Last edited by a moderator:
Check if our USB-to-serial driver is correctly installed.If using a CH340 or CP2102-based adapter, check the device manager for the COM port.
 

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top