From 4f8de9489234e307f6460f46012294aa94a6d044 Mon Sep 17 00:00:00 2001 From: Haveachin Date: Thu, 17 Jan 2019 11:08:32 +0100 Subject: [PATCH] initial commit --- luefterstrg.adf | 55 ++++++++ luefterstrg.adf~ | 51 +++++++ luefterstrg.asm | 86 ++++++++++++ luefterstrg.asm~ | 86 ++++++++++++ luefterstrg.bin | Bin 0 -> 116 bytes luefterstrg.bin~ | Bin 0 -> 114 bytes luefterstrg.hex | 10 ++ luefterstrg.hex~ | 10 ++ luefterstrg.lst | 288 +++++++++++++++++++++++++++++++++++++++ luefterstrg.lst~ | 288 +++++++++++++++++++++++++++++++++++++++ luefterstrg.mcu8051ide | 290 ++++++++++++++++++++++++++++++++++++++++ luefterstrg.mcu8051ide~ | 290 ++++++++++++++++++++++++++++++++++++++++ 12 files changed, 1454 insertions(+) create mode 100644 luefterstrg.adf create mode 100644 luefterstrg.adf~ create mode 100644 luefterstrg.asm create mode 100644 luefterstrg.asm~ create mode 100644 luefterstrg.bin create mode 100644 luefterstrg.bin~ create mode 100644 luefterstrg.hex create mode 100644 luefterstrg.hex~ create mode 100644 luefterstrg.lst create mode 100644 luefterstrg.lst~ create mode 100644 luefterstrg.mcu8051ide create mode 100644 luefterstrg.mcu8051ide~ diff --git a/luefterstrg.adf b/luefterstrg.adf new file mode 100644 index 0000000..d22c0d7 --- /dev/null +++ b/luefterstrg.adf @@ -0,0 +1,55 @@ +# Assembler debug file for MCU 8051 IDE v1.4.7 +# Used assembler: MCU 8051 IDE +# Date: 01/17/2019 +1DF369675D2093197BB7EFCAC4026F07 "luefterstrg.asm" +0 11 0 128 90 +0 14 3 128 16 +0 17 19 128 19 +0 20 21 210 168 +0 21 23 229 144 +0 22 25 180 240 2 +0 23 28 128 7 +0 25 30 35 +0 26 31 4 +0 27 32 245 144 +0 28 34 18 0 75 +0 30 37 194 168 +0 31 39 50 +0 34 40 210 170 +0 35 42 229 144 +0 36 44 180 254 2 +0 37 47 128 244 +0 39 49 20 +0 40 50 3 +0 41 51 245 144 +0 42 53 18 0 75 +0 44 56 194 170 +0 45 58 50 +0 48 59 210 136 +0 49 61 210 138 +0 50 63 210 168 +0 51 65 210 170 +0 52 67 194 137 +0 53 69 194 139 +0 54 71 117 144 255 +0 55 74 34 +0 58 75 120 250 +0 59 77 121 198 +0 60 79 122 5 +0 62 81 216 254 +0 63 83 120 250 +0 64 85 217 250 +0 65 87 121 199 +0 66 89 218 246 +0 67 91 34 +0 70 92 18 0 59 +0 72 95 32 165 253 +0 73 98 117 144 254 +0 74 101 210 175 +0 75 103 18 0 75 +0 77 106 48 165 253 +0 79 109 32 165 253 +0 80 112 117 144 255 +0 82 115 18 0 75 +0 84 118 48 165 253 +0 85 121 128 228 \ No newline at end of file diff --git a/luefterstrg.adf~ b/luefterstrg.adf~ new file mode 100644 index 0000000..86272d9 --- /dev/null +++ b/luefterstrg.adf~ @@ -0,0 +1,51 @@ +# Assembler debug file for MCU 8051 IDE v1.4.7 +# Used assembler: MCU 8051 IDE +# Date: 01/17/2019 +8CA566DB9B601C93B117DAA61CB7FFA9 "luefterstrg.asm" +0 11 0 128 82 +0 14 3 128 16 +0 17 19 128 15 +0 21 21 229 144 +0 22 23 180 240 2 +0 23 26 128 7 +0 25 28 35 +0 26 29 4 +0 27 30 245 144 +0 28 32 18 0 67 +0 31 35 50 +0 35 36 229 144 +0 36 38 180 254 2 +0 37 41 128 248 +0 39 43 20 +0 40 44 3 +0 41 45 245 144 +0 42 47 18 0 67 +0 45 50 50 +0 48 51 210 136 +0 49 53 210 138 +0 50 55 210 168 +0 51 57 210 170 +0 52 59 194 137 +0 53 61 194 139 +0 54 63 117 144 255 +0 55 66 34 +0 58 67 120 250 +0 59 69 121 198 +0 60 71 122 5 +0 62 73 216 254 +0 63 75 120 250 +0 64 77 217 250 +0 65 79 121 199 +0 66 81 218 246 +0 67 83 34 +0 70 84 18 0 51 +0 72 87 32 165 253 +0 73 90 117 144 254 +0 74 93 210 175 +0 75 95 18 0 67 +0 77 98 48 165 253 +0 79 101 32 165 253 +0 80 104 117 144 255 +0 82 107 18 0 67 +0 84 110 48 165 253 +0 85 113 128 228 \ No newline at end of file diff --git a/luefterstrg.asm b/luefterstrg.asm new file mode 100644 index 0000000..2854a88 --- /dev/null +++ b/luefterstrg.asm @@ -0,0 +1,86 @@ +; luefterstrg.asm +; Name: Lueftersteuerung +; Autor: Hendrik J. Schlehlein +; Datum: 10.01.2019 + +S EQU P2.5 +Tv EQU P3.2 +Tr EQU P3.3 + +ORG 0 + SJMP main + +ORG 3 + SJMP SR_hoch + +ORG 13h + SJMP SR_runter + +SR_hoch: + SETB EX0 + MOV A, P1 + CJNE A,#240, hoch + SJMP return0 + hoch: + RL A + INC A + MOV P1, A + LCALL UP_warte250ms + return0: + CLR EX0 + RETI + +SR_runter: + SETB EX1 + MOV A, P1 + CJNE A,#254, runter + SJMP return0 + runter: + DEC A + RR A + MOV P1, A + LCALL UP_warte250ms + return1: + CLR EX1 + RETI + +UP_init: + SETB IT0 + SETB IT1 + SETB EX0 + SETB EX1 + CLR IE0 + CLR IE1 + MOV P1,#255 + RET + +UP_warte250ms: + MOV R0, #250;2 + MOV R1, #198;2 + MOV R2, #5;2 + while1: + DJNZ R0, while1;2 + MOV R0, #250 + DJNZ R1, while1 + MOV R1, #199 + DJNZ R2, while1 + RET;2 + +main: + LCALL UP_init + while0: + JB S, while0 + MOV P1,#254 + SETB EA + LCALL UP_warte250ms + while2: + JNB S, while2 + while3: + JB S, while3 + MOV P1,#255 + ;CLR EA + LCALL UP_warte250ms + while4: + JNB S, while4 + SJMP while0 +END \ No newline at end of file diff --git a/luefterstrg.asm~ b/luefterstrg.asm~ new file mode 100644 index 0000000..2854a88 --- /dev/null +++ b/luefterstrg.asm~ @@ -0,0 +1,86 @@ +; luefterstrg.asm +; Name: Lueftersteuerung +; Autor: Hendrik J. Schlehlein +; Datum: 10.01.2019 + +S EQU P2.5 +Tv EQU P3.2 +Tr EQU P3.3 + +ORG 0 + SJMP main + +ORG 3 + SJMP SR_hoch + +ORG 13h + SJMP SR_runter + +SR_hoch: + SETB EX0 + MOV A, P1 + CJNE A,#240, hoch + SJMP return0 + hoch: + RL A + INC A + MOV P1, A + LCALL UP_warte250ms + return0: + CLR EX0 + RETI + +SR_runter: + SETB EX1 + MOV A, P1 + CJNE A,#254, runter + SJMP return0 + runter: + DEC A + RR A + MOV P1, A + LCALL UP_warte250ms + return1: + CLR EX1 + RETI + +UP_init: + SETB IT0 + SETB IT1 + SETB EX0 + SETB EX1 + CLR IE0 + CLR IE1 + MOV P1,#255 + RET + +UP_warte250ms: + MOV R0, #250;2 + MOV R1, #198;2 + MOV R2, #5;2 + while1: + DJNZ R0, while1;2 + MOV R0, #250 + DJNZ R1, while1 + MOV R1, #199 + DJNZ R2, while1 + RET;2 + +main: + LCALL UP_init + while0: + JB S, while0 + MOV P1,#254 + SETB EA + LCALL UP_warte250ms + while2: + JNB S, while2 + while3: + JB S, while3 + MOV P1,#255 + ;CLR EA + LCALL UP_warte250ms + while4: + JNB S, while4 + SJMP while0 +END \ No newline at end of file diff --git a/luefterstrg.bin b/luefterstrg.bin new file mode 100644 index 0000000000000000000000000000000000000000..f85bfe172717fd75af738d6cd43a07edbc1b8774 GIT binary patch literal 116 zcmZo*U}#`K1r5TNRy>`sO9n4Isqnq<6p(E Vo4+cdT!p27ODFuhgv|Rd1OPF}APE2f literal 0 HcmV?d00001 diff --git a/luefterstrg.bin~ b/luefterstrg.bin~ new file mode 100644 index 0000000000000000000000000000000000000000..6322d92d80e3b1955c55defedbcd0cfc1962c435 GIT binary patch literal 114 zcmZo*U}#`K1r7X9Cv5q^1Q#{}a{n + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + 0 + + + 0 + + + + + + + + diff --git a/luefterstrg.mcu8051ide~ b/luefterstrg.mcu8051ide~ new file mode 100644 index 0000000..c79f837 --- /dev/null +++ b/luefterstrg.mcu8051ide~ @@ -0,0 +1,290 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + 0 + + + 23 + + + + + + + +