0% found this document useful (0 votes)
6 views2 pages

Led 1

The document details the compilation of a module named LED1 using the C51 Compiler V8.05a. It includes the source code for a simple program that blinks an LED connected to pin P2 of the 8051 microcontroller, with a delay function implemented. The compilation completed successfully with no warnings or errors.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Led 1

The document details the compilation of a module named LED1 using the C51 Compiler V8.05a. It includes the source code for a simple program that blinks an LED connected to pin P2 of the 8051 microcontroller, with a delay function implemented. The compilation completed successfully with no warnings or errors.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

C51 COMPILER V8.

05a LED1
03/03/2025 10:15:59 PAGE 1

C51 COMPILER V8.05a, COMPILATION OF MODULE LED1


OBJECT MODULE PLACED IN led1.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE led1.c BROWSE DEBUG
OBJECTEXTEND

line level source

1 #include<reg51.h> // special function register


declarations
2 // for the intended 8051
derivative
3
4 sbit LED = P2; // Defining LED pin
5
6 void Delay(void); // Function prototype
declaration
7
8 void main (void)
9 {
10 1 while(1) // infinite loop
11 1 {
12 2 LED = 0; // LED ON
13 2 Delay();
14 2 LED = 1; // LED OFF
15 2 Delay();
16 2 }
17 1 }
18
19 void Delay(void)
20 {
21 1 int j;
22 1 int i;
23 1 for(i=0;i<10;i++)
24 1 {
25 2 for(j=0;j<10000;j++)
26 2 {
27 3 }
28 2 }
29 1 }

MODULE INFORMATION: STATIC OVERLAYABLE


CODE SIZE = 41 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)

You might also like