+ 3
+ 4 bit lightoff = 1;
+ 5 bit lighton = 0;
+ 6 sbit P1_0 = P1^0;
+ 7 sbit P1_1 = P1^1;
+ 8 sbit P1_2 = P1^2;
+ 9 sbit P1_3 = P1^3;
+ 10 sbit P1_4 = P1^4;
+ 11 sbit P1_5 = P1^5;
+ 12 sbit P1_6 = P1^6;
+ 13 sbit P1_7 = P1^7;
+ 14 void delay_1500ms();
+ 15
+ 16 int main () {
+ 17 1 P1 = 0xFF;
+ 18 1 while (1) {
+ 19 2 delay_1500ms();
+ 20 2
+ 21 2 P1_0 = lighton;
+ 22 2 delay_1500ms();
+ 23 2
+ 24 2 P1_1 = lighton;
+ 25 2 delay_1500ms();
+ 26 2
+ 27 2 P1_2 = lighton;
+ 28 2 delay_1500ms();
+ 29 2
+ 30 2 P1_3 = lighton;
+ 31 2 delay_1500ms();
+ 32 2
+ 33 2 P1_4 = lighton;
+ 34 2 delay_1500ms();
+ 35 2
+ 36 2 P1_5 = lighton;
+ 37 2 delay_1500ms();
+ 38 2
+ 39 2 P1_6 = lighton;
+ 40 2 delay_1500ms();
+ 41 2
+ 42 2 P1_7 = lighton;
+ 43 2 delay_1500ms();
+ 44 2
+ 45 2 P1_7 = lightoff;
+ 46 2 delay_1500ms();
+ 47 2
+ 48 2 P1_6 = lightoff;
+ 49 2 delay_1500ms();
+ 50 2
+ 51 2 P1_5 = lightoff;
+ 52 2 delay_1500ms();
+ 53 2
+ 54 2 P1_4 = lightoff;
+C51 COMPILER V9.54 LED 04/22/2018 23:23:55 PAGE 2
+
+ 55 2 delay_1500ms();
+ 56 2
+ 57 2 P1_3 = lightoff;
+ 58 2 delay_1500ms();
+ 59 2
+ 60 2 P1_2 = lightoff;
+ 61 2 delay_1500ms();
+ 62 2
+ 63 2 P1_1 = lightoff;
+ 64 2 delay_1500ms();
+ 65 2
+ 66 2 P1_0 = lightoff;
+ 67 2 } // end of while(1)
+ 68 1 } // end of main()
+ 69
+ 70 void delay_1500ms() {
+ 71 1 unsigned short kk;
+ 72 1 for (kk = 0; kk < 33000; kk++);
+ 73 1 }
+
+
+MODULE INFORMATION: STATIC OVERLAYABLE
+ CODE SIZE = 143 ----
+ CONSTANT SIZE = ---- ----
+ XDATA SIZE = ---- ----
+ PDATA SIZE = ---- ----
+ DATA SIZE = ---- ----
+ IDATA SIZE = ---- ----
+ BIT SIZE = 2 ----
+END OF MODULE INFORMATION.
+
+
+C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
diff --git a/Objects/LED b/Objects/LED
new file mode 100644
index 0000000..3b8d0ba
Binary files /dev/null and b/Objects/LED differ
diff --git a/Objects/LED.build_log.htm b/Objects/LED.build_log.htm
new file mode 100644
index 0000000..b6baff5
--- /dev/null
+++ b/Objects/LED.build_log.htm
@@ -0,0 +1,33 @@
+
+
+
+µVision Build Log
+Tool Versions:
+IDE-Version: £gVision V5.14.2
+Copyright (C) 2015 ARM Ltd and ARM Germany GmbH. All rights reserved.
+License Information: jane jane, no, LIC=----
+
+Tool Versions:
+Toolchain: PK51 Prof. Develpers Kit Version: 9.54
+Toolchain Path: C:\Keil_v5\C51\BIN
+C Compiler: C51.exe V9.54
+Assembler: A51.exe V8.02c
+Linker/Locator: BL51.exe V6.22
+Library Manager: LIB51.exe V4.30.1.0
+Hex Converter: OH51.exe V2.7.0.0
+CPU DLL: S8051.DLL V3.100.0.0
+Dialog DLL: DP51.DLL V2.62.0.1
+Project:
+C:\Users\jj971\Desktop\LED\LED.uvproj
+Project File Date: 04/22/2018
+
+Output:
+Rebuild target 'Target 1'
+compiling led.c...
+linking...
+Program Size: data=9.2 xdata=0 code=313
+creating hex file from ".\Objects\LED"...
+".\Objects\LED" - 0 Error(s), 0 Warning(s).
+
+
+
diff --git a/Objects/LED.lnp b/Objects/LED.lnp
new file mode 100644
index 0000000..ebcb7ac
--- /dev/null
+++ b/Objects/LED.lnp
@@ -0,0 +1,3 @@
+".\Objects\led.obj"
+TO ".\Objects\LED"
+PRINT(".\Listings\LED.m51") RAMSIZE(256)
diff --git a/led.c b/led.c
new file mode 100644
index 0000000..6a16490
--- /dev/null
+++ b/led.c
@@ -0,0 +1,73 @@
+#include "reg51.h"
+//#include
+
+bit lightoff = 1;
+bit lighton = 0;
+sbit P1_0 = P1^0;
+sbit P1_1 = P1^1;
+sbit P1_2 = P1^2;
+sbit P1_3 = P1^3;
+sbit P1_4 = P1^4;
+sbit P1_5 = P1^5;
+sbit P1_6 = P1^6;
+sbit P1_7 = P1^7;
+void delay_1500ms();
+
+int main () {
+ P1 = 0xFF;
+ while (1) {
+ delay_1500ms();
+
+ P1_0 = lighton;
+ delay_1500ms();
+
+ P1_1 = lighton;
+ delay_1500ms();
+
+ P1_2 = lighton;
+ delay_1500ms();
+
+ P1_3 = lighton;
+ delay_1500ms();
+
+ P1_4 = lighton;
+ delay_1500ms();
+
+ P1_5 = lighton;
+ delay_1500ms();
+
+ P1_6 = lighton;
+ delay_1500ms();
+
+ P1_7 = lighton;
+ delay_1500ms();
+
+ P1_7 = lightoff;
+ delay_1500ms();
+
+ P1_6 = lightoff;
+ delay_1500ms();
+
+ P1_5 = lightoff;
+ delay_1500ms();
+
+ P1_4 = lightoff;
+ delay_1500ms();
+
+ P1_3 = lightoff;
+ delay_1500ms();
+
+ P1_2 = lightoff;
+ delay_1500ms();
+
+ P1_1 = lightoff;
+ delay_1500ms();
+
+ P1_0 = lightoff;
+ } // end of while(1)
+} // end of main()
+
+void delay_1500ms() {
+ unsigned short kk;
+ for (kk = 0; kk < 33000; kk++);
+}