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 805A 11 SJMP main
|
|
12
|
|
13 ORG 3
|
|
0003 8010 14 SJMP SR_hoch
|
|
15
|
|
16 ORG 13h
|
|
0013 8013 17 SJMP SR_runter
|
|
18
|
|
19 SR_hoch:
|
|
0015 D2A8 20 SETB EX0
|
|
0017 E590 21 MOV A, P1
|
|
0019 B4F002 22 CJNE A,#240, hoch
|
|
001C 8007 23 SJMP return0
|
|
24 hoch:
|
|
001E 23 25 RL A
|
|
001F 04 26 INC A
|
|
0020 F590 27 MOV P1, A
|
|
0022 12004B 28 LCALL UP_warte250ms
|
|
29 return0:
|
|
0025 C2A8 30 CLR EX0
|
|
0027 32 31 RETI
|
|
32
|
|
33 SR_runter:
|
|
0028 D2AA 34 SETB EX1
|
|
002A E590 35 MOV A, P1
|
|
002C B4FE02 36 CJNE A,#254, runter
|
|
002F 80F4 37 SJMP return0
|
|
38 runter:
|
|
0031 14 39 DEC A
|
|
0032 03 40 RR A
|
|
0033 F590 41 MOV P1, A
|
|
0035 12004B 42 LCALL UP_warte250ms
|
|
43 return1:
|
|
0038 C2AA 44 CLR EX1
|
|
003A 32 45 RETI
|
|
46
|
|
47 UP_init:
|
|
003B D288 48 SETB IT0
|
|
003D D28A 49 SETB IT1
|
|
003F D2A8 50 SETB EX0
|
|
0041 D2AA 51 SETB EX1
|
|
0043 C289 52 CLR IE0
|
|
0045 C28B 53 CLR IE1
|
|
0047 7590FF 54 MOV P1,#255
|
|
004A 22 55 RET
|
|
56
|
|
57 UP_warte250ms:
|
|
004B 78FA 58 MOV R0, #250;2
|
|
004D 79C6 59 MOV R1, #198;2
|
|
004F 7A05 60 MOV R2, #5;2
|
|
61 while1:
|
|
0051 D8FE 62 DJNZ R0, while1;2
|
|
0053 78FA 63 MOV R0, #250
|
|
0055 D9FA 64 DJNZ R1, while1
|
|
0057 79C7 65 MOV R1, #199
|
|
0059 DAF6 66 DJNZ R2, while1
|
|
005B 22 67 RET;2
|
|
68
|
|
69 main:
|
|
005C 12003B 70 LCALL UP_init
|
|
71 while0:
|
|
005F 20A5FD 72 JB S, while0
|
|
0062 7590FE 73 MOV P1,#254
|
|
0065 D2AF 74 SETB EA
|
|
0067 12004B 75 LCALL UP_warte250ms
|
|
76 while2:
|
|
006A 30A5FD 77 JNB S, while2
|
|
78 while3:
|
|
006D 20A5FD 79 JB S, while3
|
|
0070 7590FF 80 MOV P1,#255
|
|
81 ;CLR EA
|
|
0073 12004B 82 LCALL UP_warte250ms
|
|
83 while4:
|
|
0076 30A5FD 84 JNB S, while4
|
|
0079 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 001EH
|
|
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 005CH
|
|
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 0025H
|
|
RETURN1. . . . . . . . . . . . . . . C ADDR 0038H NOT USED
|
|
RI . . . . . . . . . . . . . . . . . B ADDR 0098H NOT USED
|
|
RS0. . . . . . . . . . . . . . . . . B ADDR 00D3H NOT USED
|
|
RS1. . . . . . . . . . . . . . . . . B ADDR 00D4H NOT USED
|
|
RUNTER . . . . . . . . . . . . . . . C ADDR 0031H
|
|
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 0028H
|
|
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 003BH
|
|
UP_WARTE250MS. . . . . . . . . . . . C ADDR 004BH
|
|
WDTCON . . . . . . . . . . . . . . . D ADDR 00A7H NOT USED
|
|
WDTPRG . . . . . . . . . . . . . . . D ADDR 00A7H NOT USED
|
|
WDTRST . . . . . . . . . . . . . . . D ADDR 00A6H NOT USED
|
|
WHILE0 . . . . . . . . . . . . . . . C ADDR 005FH
|
|
WHILE1 . . . . . . . . . . . . . . . C ADDR 0051H
|
|
WHILE2 . . . . . . . . . . . . . . . C ADDR 006AH
|
|
WHILE3 . . . . . . . . . . . . . . . C ADDR 006DH
|
|
WHILE4 . . . . . . . . . . . . . . . C ADDR 0076H
|
|
WR . . . . . . . . . . . . . . . . . B ADDR 00B6H NOT USED |