288 lines
No EOL
16 KiB
Text
288 lines
No EOL
16 KiB
Text
luefterstrg PAGE 1
|
|
1 ; luefterstrg.asm
|
|
2 ; Name: Lueftersteuerung
|
|
3 ; Autor: Hendrik J. Schlehlein
|
|
4 ; Datum: 10.01.2019
|
|
5
|
|
00A5 6 S EQU P2.5
|
|
00B2 7 Tv EQU P3.2
|
|
00B3 8 Tr EQU P3.3
|
|
9
|
|
10 ORG 0
|
|
0000 8052 11 SJMP main
|
|
12
|
|
13 ORG 3
|
|
0003 8010 14 SJMP SR_hoch
|
|
15
|
|
16 ORG 13h
|
|
0013 800F 17 SJMP SR_runter
|
|
18
|
|
19 SR_hoch:
|
|
20 ;SETB EX0
|
|
0015 E590 21 MOV A, P1
|
|
0017 B4F002 22 CJNE A,#240, hoch
|
|
001A 8007 23 SJMP return0
|
|
24 hoch:
|
|
001C 23 25 RL A
|
|
001D 04 26 INC A
|
|
001E F590 27 MOV P1, A
|
|
0020 120043 28 LCALL UP_warte250ms
|
|
29 return0:
|
|
30 ;CLR EX0
|
|
0023 32 31 RETI
|
|
32
|
|
33 SR_runter:
|
|
34 ;SETB EX1
|
|
0024 E590 35 MOV A, P1
|
|
0026 B4FE02 36 CJNE A,#254, runter
|
|
0029 80F8 37 SJMP return0
|
|
38 runter:
|
|
002B 14 39 DEC A
|
|
002C 03 40 RR A
|
|
002D F590 41 MOV P1, A
|
|
002F 120043 42 LCALL UP_warte250ms
|
|
43 return1:
|
|
44 ;CLR EX1
|
|
0032 32 45 RETI
|
|
46
|
|
47 UP_init:
|
|
0033 D288 48 SETB IT0
|
|
0035 D28A 49 SETB IT1
|
|
0037 D2A8 50 SETB EX0
|
|
0039 D2AA 51 SETB EX1
|
|
003B C289 52 CLR IE0
|
|
003D C28B 53 CLR IE1
|
|
003F 7590FF 54 MOV P1,#255
|
|
0042 22 55 RET
|
|
56
|
|
57 UP_warte250ms:
|
|
0043 78FA 58 MOV R0, #250;2
|
|
0045 79C6 59 MOV R1, #198;2
|
|
0047 7A05 60 MOV R2, #5;2
|
|
61 while1:
|
|
0049 D8FE 62 DJNZ R0, while1;2
|
|
004B 78FA 63 MOV R0, #250
|
|
004D D9FA 64 DJNZ R1, while1
|
|
004F 79C7 65 MOV R1, #199
|
|
0051 DAF6 66 DJNZ R2, while1
|
|
0053 22 67 RET;2
|
|
68
|
|
69 main:
|
|
0054 120033 70 LCALL UP_init
|
|
71 while0:
|
|
0057 20A5FD 72 JB S, while0
|
|
005A 7590FE 73 MOV P1,#254
|
|
005D D2AF 74 SETB EA
|
|
005F 120043 75 LCALL UP_warte250ms
|
|
76 while2:
|
|
0062 30A5FD 77 JNB S, while2
|
|
78 while3:
|
|
0065 20A5FD 79 JB S, while3
|
|
0068 7590FF 80 MOV P1,#255
|
|
81 ;CLR EA
|
|
006B 120043 82 LCALL UP_warte250ms
|
|
83 while4:
|
|
006E 30A5FD 84 JNB S, while4
|
|
0071 80E4 85 SJMP while0
|
|
86 END
|
|
ASSEMBLY COMPLETE, NO ERRORS FOUND, NO WARNINGS
|
|
|
|
|
|
SYMBOL TABLE:
|
|
??MCU_8051_IDE . . . . . . . . . . . N NUMB 8051H NOT USED
|
|
??VERSION. . . . . . . . . . . . . . N NUMB 0147H NOT USED
|
|
AC . . . . . . . . . . . . . . . . . B ADDR 00D6H NOT USED
|
|
ACC. . . . . . . . . . . . . . . . . D ADDR 00E0H NOT USED
|
|
ACSR . . . . . . . . . . . . . . . . D ADDR 0097H NOT USED
|
|
ADCF . . . . . . . . . . . . . . . . D ADDR 00F6H NOT USED
|
|
ADCLK. . . . . . . . . . . . . . . . D ADDR 00F2H NOT USED
|
|
ADCON. . . . . . . . . . . . . . . . D ADDR 00F3H NOT USED
|
|
ADDH . . . . . . . . . . . . . . . . D ADDR 00F5H NOT USED
|
|
ADDL . . . . . . . . . . . . . . . . D ADDR 00F4H NOT USED
|
|
AUXR . . . . . . . . . . . . . . . . D ADDR 008EH NOT USED
|
|
AUXR1. . . . . . . . . . . . . . . . D ADDR 00A2H NOT USED
|
|
B. . . . . . . . . . . . . . . . . . D ADDR 00F0H NOT USED
|
|
BDRCON . . . . . . . . . . . . . . . D ADDR 009BH NOT USED
|
|
BDRCON_1 . . . . . . . . . . . . . . D ADDR 009CH NOT USED
|
|
BRL. . . . . . . . . . . . . . . . . D ADDR 009AH NOT USED
|
|
CCAP0H . . . . . . . . . . . . . . . D ADDR 00FAH NOT USED
|
|
CCAP0L . . . . . . . . . . . . . . . D ADDR 00EAH NOT USED
|
|
CCAP1H . . . . . . . . . . . . . . . D ADDR 00FBH NOT USED
|
|
CCAP1L . . . . . . . . . . . . . . . D ADDR 00EBH NOT USED
|
|
CCAP2H . . . . . . . . . . . . . . . D ADDR 00FCH NOT USED
|
|
CCAP3H . . . . . . . . . . . . . . . D ADDR 00FDH NOT USED
|
|
CCAP4H . . . . . . . . . . . . . . . D ADDR 00FEH NOT USED
|
|
CCAPL2H. . . . . . . . . . . . . . . D ADDR 00FCH NOT USED
|
|
CCAPL2L. . . . . . . . . . . . . . . D ADDR 00ECH NOT USED
|
|
CCAPL3H. . . . . . . . . . . . . . . D ADDR 00FDH NOT USED
|
|
CCAPL3L. . . . . . . . . . . . . . . D ADDR 00EDH NOT USED
|
|
CCAPL4H. . . . . . . . . . . . . . . D ADDR 00FEH NOT USED
|
|
CCAPL4L. . . . . . . . . . . . . . . D ADDR 00EEH NOT USED
|
|
CCAPM0 . . . . . . . . . . . . . . . D ADDR 00DAH NOT USED
|
|
CCAPM1 . . . . . . . . . . . . . . . D ADDR 00DBH NOT USED
|
|
CCAPM2 . . . . . . . . . . . . . . . D ADDR 00DCH NOT USED
|
|
CCAPM3 . . . . . . . . . . . . . . . D ADDR 00DDH NOT USED
|
|
CCAPM4 . . . . . . . . . . . . . . . D ADDR 00DEH NOT USED
|
|
CCF0 . . . . . . . . . . . . . . . . B ADDR 00D8H NOT USED
|
|
CCF1 . . . . . . . . . . . . . . . . B ADDR 00D9H NOT USED
|
|
CCF2 . . . . . . . . . . . . . . . . B ADDR 00DAH NOT USED
|
|
CCF3 . . . . . . . . . . . . . . . . B ADDR 00DBH NOT USED
|
|
CCF4 . . . . . . . . . . . . . . . . B ADDR 00DCH NOT USED
|
|
CCON . . . . . . . . . . . . . . . . D ADDR 00D8H NOT USED
|
|
CFINT. . . . . . . . . . . . . . . . C ADDR 0033H NOT USED
|
|
CH . . . . . . . . . . . . . . . . . D ADDR 00F9H NOT USED
|
|
CKCON. . . . . . . . . . . . . . . . D ADDR 008FH NOT USED
|
|
CKCON0 . . . . . . . . . . . . . . . D ADDR 008FH NOT USED
|
|
CKRL . . . . . . . . . . . . . . . . D ADDR 0097H NOT USED
|
|
CKSEL. . . . . . . . . . . . . . . . D ADDR 0085H NOT USED
|
|
CL . . . . . . . . . . . . . . . . . D ADDR 00E9H NOT USED
|
|
CLKREG . . . . . . . . . . . . . . . D ADDR 008FH NOT USED
|
|
CMOD . . . . . . . . . . . . . . . . D ADDR 00D9H NOT USED
|
|
CPRL2. . . . . . . . . . . . . . . . B ADDR 00C8H NOT USED
|
|
CR . . . . . . . . . . . . . . . . . B ADDR 00DEH NOT USED
|
|
CT2. . . . . . . . . . . . . . . . . B ADDR 00C9H NOT USED
|
|
CY . . . . . . . . . . . . . . . . . B ADDR 00D7H NOT USED
|
|
DP0H . . . . . . . . . . . . . . . . D ADDR 0083H NOT USED
|
|
DP0L . . . . . . . . . . . . . . . . D ADDR 0082H NOT USED
|
|
DP1H . . . . . . . . . . . . . . . . D ADDR 0085H NOT USED
|
|
DP1L . . . . . . . . . . . . . . . . D ADDR 0084H NOT USED
|
|
DPH. . . . . . . . . . . . . . . . . D ADDR 0083H NOT USED
|
|
DPL. . . . . . . . . . . . . . . . . D ADDR 0082H NOT USED
|
|
EA . . . . . . . . . . . . . . . . . B ADDR 00AFH
|
|
EC . . . . . . . . . . . . . . . . . B ADDR 00AEH NOT USED
|
|
EECON. . . . . . . . . . . . . . . . D ADDR 0096H NOT USED
|
|
ES . . . . . . . . . . . . . . . . . B ADDR 00ACH NOT USED
|
|
ET0. . . . . . . . . . . . . . . . . B ADDR 00A9H NOT USED
|
|
ET1. . . . . . . . . . . . . . . . . B ADDR 00ABH NOT USED
|
|
ET2. . . . . . . . . . . . . . . . . B ADDR 00ADH NOT USED
|
|
EX0. . . . . . . . . . . . . . . . . B ADDR 00A8H
|
|
EX1. . . . . . . . . . . . . . . . . B ADDR 00AAH
|
|
EXEN2. . . . . . . . . . . . . . . . B ADDR 00CBH NOT USED
|
|
EXF2 . . . . . . . . . . . . . . . . B ADDR 00CEH NOT USED
|
|
EXTI0. . . . . . . . . . . . . . . . C ADDR 0003H NOT USED
|
|
EXTI1. . . . . . . . . . . . . . . . C ADDR 0013H NOT USED
|
|
F0 . . . . . . . . . . . . . . . . . B ADDR 00D5H NOT USED
|
|
FE . . . . . . . . . . . . . . . . . B ADDR 009FH NOT USED
|
|
HOCH . . . . . . . . . . . . . . . . C ADDR 001CH
|
|
IE . . . . . . . . . . . . . . . . . D ADDR 00A8H NOT USED
|
|
IE0. . . . . . . . . . . . . . . . . B ADDR 0089H
|
|
IE1. . . . . . . . . . . . . . . . . B ADDR 008BH
|
|
INT0 . . . . . . . . . . . . . . . . B ADDR 00B2H NOT USED
|
|
INT1 . . . . . . . . . . . . . . . . B ADDR 00B3H NOT USED
|
|
IP . . . . . . . . . . . . . . . . . D ADDR 00B8H NOT USED
|
|
IPH. . . . . . . . . . . . . . . . . D ADDR 00B7H NOT USED
|
|
IPH0 . . . . . . . . . . . . . . . . D ADDR 00B7H NOT USED
|
|
IPH1 . . . . . . . . . . . . . . . . D ADDR 00B3H NOT USED
|
|
IPL0 . . . . . . . . . . . . . . . . D ADDR 00B8H NOT USED
|
|
IPL1 . . . . . . . . . . . . . . . . D ADDR 00B2H NOT USED
|
|
IT0. . . . . . . . . . . . . . . . . B ADDR 0088H
|
|
IT1. . . . . . . . . . . . . . . . . B ADDR 008AH
|
|
KBE. . . . . . . . . . . . . . . . . D ADDR 009DH NOT USED
|
|
KBF. . . . . . . . . . . . . . . . . D ADDR 009EH NOT USED
|
|
KBLS . . . . . . . . . . . . . . . . D ADDR 009CH NOT USED
|
|
MAIN . . . . . . . . . . . . . . . . C ADDR 0054H
|
|
OSCCON . . . . . . . . . . . . . . . D ADDR 0086H NOT USED
|
|
OV . . . . . . . . . . . . . . . . . B ADDR 00D2H NOT USED
|
|
P. . . . . . . . . . . . . . . . . . B ADDR 00D0H NOT USED
|
|
P0 . . . . . . . . . . . . . . . . . D ADDR 0080H NOT USED
|
|
P1 . . . . . . . . . . . . . . . . . D ADDR 0090H
|
|
P1M1 . . . . . . . . . . . . . . . . D ADDR 00D4H NOT USED
|
|
P1M2 . . . . . . . . . . . . . . . . D ADDR 00E2H NOT USED
|
|
P2 . . . . . . . . . . . . . . . . . D ADDR 00A0H NOT USED
|
|
P3 . . . . . . . . . . . . . . . . . D ADDR 00B0H NOT USED
|
|
P3M1 . . . . . . . . . . . . . . . . D ADDR 00D5H NOT USED
|
|
P3M2 . . . . . . . . . . . . . . . . D ADDR 00E3H NOT USED
|
|
P4 . . . . . . . . . . . . . . . . . D ADDR 00C0H NOT USED
|
|
P4M1 . . . . . . . . . . . . . . . . D ADDR 00D6H NOT USED
|
|
P4M2 . . . . . . . . . . . . . . . . D ADDR 00E4H NOT USED
|
|
P5 . . . . . . . . . . . . . . . . . D ADDR 00E8H NOT USED
|
|
PC . . . . . . . . . . . . . . . . . B ADDR 00BEH NOT USED
|
|
PCON . . . . . . . . . . . . . . . . D ADDR 0087H NOT USED
|
|
PPCL . . . . . . . . . . . . . . . . B ADDR 00BEH NOT USED
|
|
PS . . . . . . . . . . . . . . . . . B ADDR 00BCH NOT USED
|
|
PSL. . . . . . . . . . . . . . . . . B ADDR 00BCH NOT USED
|
|
PSW. . . . . . . . . . . . . . . . . D ADDR 00D0H NOT USED
|
|
PT0. . . . . . . . . . . . . . . . . B ADDR 00B9H NOT USED
|
|
PT0L . . . . . . . . . . . . . . . . B ADDR 00B9H NOT USED
|
|
PT1. . . . . . . . . . . . . . . . . B ADDR 00BBH NOT USED
|
|
PT1L . . . . . . . . . . . . . . . . B ADDR 00BBH NOT USED
|
|
PT2. . . . . . . . . . . . . . . . . B ADDR 00BDH NOT USED
|
|
PT2L . . . . . . . . . . . . . . . . B ADDR 00BDH NOT USED
|
|
PX0. . . . . . . . . . . . . . . . . B ADDR 00B8H NOT USED
|
|
PX0L . . . . . . . . . . . . . . . . B ADDR 00B8H NOT USED
|
|
PX1. . . . . . . . . . . . . . . . . B ADDR 00BAH NOT USED
|
|
PX1L . . . . . . . . . . . . . . . . B ADDR 00BAH NOT USED
|
|
RB8. . . . . . . . . . . . . . . . . B ADDR 009AH NOT USED
|
|
RCAP2H . . . . . . . . . . . . . . . D ADDR 00CBH NOT USED
|
|
RCAP2L . . . . . . . . . . . . . . . D ADDR 00CAH NOT USED
|
|
RCLK . . . . . . . . . . . . . . . . B ADDR 00CDH NOT USED
|
|
RD . . . . . . . . . . . . . . . . . B ADDR 00B7H NOT USED
|
|
REN. . . . . . . . . . . . . . . . . B ADDR 009CH NOT USED
|
|
RESET. . . . . . . . . . . . . . . . C ADDR 0000H NOT USED
|
|
RETURN0. . . . . . . . . . . . . . . C ADDR 0023H
|
|
RETURN1. . . . . . . . . . . . . . . C ADDR 0032H NOT USED
|
|
RI . . . . . . . . . . . . . . . . . B ADDR 0098H NOT USED
|
|
RS0. . . . . . . . . . . . . . . . . B ADDR 00D3H NOT USED
|
|
RS1. . . . . . . . . . . . . . . . . B ADDR 00D4H NOT USED
|
|
RUNTER . . . . . . . . . . . . . . . C ADDR 002BH
|
|
RXD. . . . . . . . . . . . . . . . . B ADDR 00B0H NOT USED
|
|
S. . . . . . . . . . . . . . . . . . N NUMB 00A5H
|
|
SADDR. . . . . . . . . . . . . . . . D ADDR 00A9H NOT USED
|
|
SADDR_0. . . . . . . . . . . . . . . D ADDR 00A9H NOT USED
|
|
SADDR_1. . . . . . . . . . . . . . . D ADDR 00AAH NOT USED
|
|
SADEN. . . . . . . . . . . . . . . . D ADDR 00B9H NOT USED
|
|
SADEN_0. . . . . . . . . . . . . . . D ADDR 00B9H NOT USED
|
|
SADEN_1. . . . . . . . . . . . . . . D ADDR 00BAH NOT USED
|
|
SBUF . . . . . . . . . . . . . . . . D ADDR 0099H NOT USED
|
|
SCON . . . . . . . . . . . . . . . . D ADDR 0098H NOT USED
|
|
SINT . . . . . . . . . . . . . . . . C ADDR 0023H NOT USED
|
|
SM0. . . . . . . . . . . . . . . . . B ADDR 009FH NOT USED
|
|
SM1. . . . . . . . . . . . . . . . . B ADDR 009EH NOT USED
|
|
SM2. . . . . . . . . . . . . . . . . B ADDR 009DH NOT USED
|
|
SP . . . . . . . . . . . . . . . . . D ADDR 0081H NOT USED
|
|
SPCON. . . . . . . . . . . . . . . . D ADDR 00C3H NOT USED
|
|
SPCR . . . . . . . . . . . . . . . . D ADDR 00D5H NOT USED
|
|
SPDAT. . . . . . . . . . . . . . . . D ADDR 00C5H NOT USED
|
|
SPDR . . . . . . . . . . . . . . . . D ADDR 0086H NOT USED
|
|
SPSR . . . . . . . . . . . . . . . . D ADDR 00AAH NOT USED
|
|
SPSTA. . . . . . . . . . . . . . . . D ADDR 00C4H NOT USED
|
|
SR_HOCH. . . . . . . . . . . . . . . C ADDR 0015H
|
|
SR_RUNTER. . . . . . . . . . . . . . C ADDR 0024H
|
|
T0 . . . . . . . . . . . . . . . . . B ADDR 00B4H NOT USED
|
|
T1 . . . . . . . . . . . . . . . . . B ADDR 00B5H NOT USED
|
|
T2CON. . . . . . . . . . . . . . . . D ADDR 00C8H NOT USED
|
|
T2MOD. . . . . . . . . . . . . . . . D ADDR 00C9H NOT USED
|
|
TB8. . . . . . . . . . . . . . . . . B ADDR 009BH NOT USED
|
|
TCLK . . . . . . . . . . . . . . . . B ADDR 00CCH NOT USED
|
|
TCON . . . . . . . . . . . . . . . . D ADDR 0088H NOT USED
|
|
TF0. . . . . . . . . . . . . . . . . B ADDR 008DH NOT USED
|
|
TF1. . . . . . . . . . . . . . . . . B ADDR 008FH NOT USED
|
|
TF2. . . . . . . . . . . . . . . . . B ADDR 00CFH NOT USED
|
|
TH0. . . . . . . . . . . . . . . . . D ADDR 008CH NOT USED
|
|
TH1. . . . . . . . . . . . . . . . . D ADDR 008DH NOT USED
|
|
TH2. . . . . . . . . . . . . . . . . D ADDR 00CDH NOT USED
|
|
TI . . . . . . . . . . . . . . . . . B ADDR 0099H NOT USED
|
|
TIMER0 . . . . . . . . . . . . . . . C ADDR 000BH NOT USED
|
|
TIMER1 . . . . . . . . . . . . . . . C ADDR 001BH NOT USED
|
|
TIMER2 . . . . . . . . . . . . . . . C ADDR 002BH NOT USED
|
|
TL0. . . . . . . . . . . . . . . . . D ADDR 008AH NOT USED
|
|
TL1. . . . . . . . . . . . . . . . . D ADDR 008BH NOT USED
|
|
TL2. . . . . . . . . . . . . . . . . D ADDR 00CCH NOT USED
|
|
TMOD . . . . . . . . . . . . . . . . D ADDR 0089H NOT USED
|
|
TR . . . . . . . . . . . . . . . . . N NUMB 00B3H NOT USED
|
|
TR0. . . . . . . . . . . . . . . . . B ADDR 008CH NOT USED
|
|
TR1. . . . . . . . . . . . . . . . . B ADDR 008EH NOT USED
|
|
TR2. . . . . . . . . . . . . . . . . B ADDR 00CAH NOT USED
|
|
TV . . . . . . . . . . . . . . . . . N NUMB 00B2H NOT USED
|
|
TXD. . . . . . . . . . . . . . . . . B ADDR 00B1H NOT USED
|
|
UP_INIT. . . . . . . . . . . . . . . C ADDR 0033H
|
|
UP_WARTE250MS. . . . . . . . . . . . C ADDR 0043H
|
|
WDTCON . . . . . . . . . . . . . . . D ADDR 00A7H NOT USED
|
|
WDTPRG . . . . . . . . . . . . . . . D ADDR 00A7H NOT USED
|
|
WDTRST . . . . . . . . . . . . . . . D ADDR 00A6H NOT USED
|
|
WHILE0 . . . . . . . . . . . . . . . C ADDR 0057H
|
|
WHILE1 . . . . . . . . . . . . . . . C ADDR 0049H
|
|
WHILE2 . . . . . . . . . . . . . . . C ADDR 0062H
|
|
WHILE3 . . . . . . . . . . . . . . . C ADDR 0065H
|
|
WHILE4 . . . . . . . . . . . . . . . C ADDR 006EH
|
|
WR . . . . . . . . . . . . . . . . . B ADDR 00B6H NOT USED |