Intel MCS-80/85 Computer Hardware User Manual


 
Temperature Sensor Code (Cont'd)
I S I
s-
II
8888/8885
Ift:RO
RSSEPllLER,
Y2.
9
LOC
OOJ
SEQ
5(U(CE
STATEIENT
53
;
1:,1
2829
CD6828
54
CALL
fl>JUST
;
caMRTS
8155
rom
TO
~TlR.
~T
55;
56;
SETlf
INITIILIZATI~
F~
SEARCH
ROOTINE.
ROOTINE
LOOCS
F~
TEIFERfITlRE
II
57
.;
RfNlE
IF
emn
(SEE
TEXT).
SEARCH
MV
F~
Lfm<
IR.F
TO
SIIRIFV
COOE.
58;
II
282C
2E88
59
""I
L88H
;
SET
II.
TO
BEGII.UI«l
IF
SEARCH
:1
292E
2628
68
""I
H,28H
;
STRII«l
IN
IEIGV.
2839
88
61
~
B ;
CLE~
CARRV
F~
ROUTINE.
2831
78
62
I«lY
A,B
;
PUM:E
B
INTO
ACCtJU..AT~
2832
8E91
63
""I
e,iH
;
SET
TIlES
~
SEARCH
2834
Cl>9228
64
CALL
SEARCH
;
LOOCS
F~
TEfF
RAta:
rom
IS
IN
I
65;
66;
Cl£eI(
IF
SEARCH
IfIS
SOCCESSfU..
IF
NOT
TI£N
OUTSIDE
InEPTABLE
67.;
RfNE.
68;
28373E88
69
""I
A,88H
;
DID
L
FIN>
LESS
1WW
AT
2939
f()
78
XRA
l
;
AT.
BEGIIfHI«l
IF
STRII«l?
283A
CM29
71
JZ
TL~
;
TEfF
BEL~
ILLMD
Ll"ITS,
SET
~l
A
2930
3E98
72
""I
fl.llllH
;
DID
e
GET
DECRB£NTED?
293F
B9
n
CIF
e ;
IF
SO,
SEARCH
DID
NOT
FIN>
2948
CfIl829
74
JZ
lHlGH
;
TEfF
fIB(M
LI"ITS,
SET
~l
B
75;
76
;
5(fTIftE
IIAP
TIE
IftTCH
TO
A
TEIFERfIME
IN
DEGREES
C
BV
fl>Dll«l
n;
18
TO
SEARCH
fl>DRESS
PLtU
TEIflERATlft
IN
REGISTER
E.
78;
2943
JEeR
79
""I
A,8fIl
;
SHIFT
II.
BV
11l
(S!FT1ftE
1flP)
2945
85
88
ADD
L
2946
6F'
81
I«lY
LA
28475E
82
I«lY
E,"
;
REfI>
IN
TEIflERAME
83
;
84;
SET
If
INITIALIZATION
F~
DISPLAVII«l
TElFERATlft
USII«l
SOl(
85;
I()NIT~
ROOTINES.
FIRST
EXPAIIi
DE
REGISTER
AN)
TIEN
DISPLAV
86;
F~
OELAV
PER
I
00.
87;
2848
9689
88
""I
B,88H
;
CLEAR
DOT
AT
fl>DRESS
FIELD
284A
eD6C82
89
(;ALL
HXl)SP
;
CILL
EXPAI()
2840
3E98
98
""1
A,8(!H
294F
Cl>B782
91
CALL
OUTPUT
;
\)JTPUT
TO
SOl(
DISPLAV
2852
l1FF911
92
LXI
D,8FFH
;
SET
DELAY
PERIOD
2955
CDF185
93
CILL
DELAY
;
DIg>LAV
F~
DElAY
PERIOO
2858
CF
94
RST
1 ;
5(FTIfIRE
RESTAI<T
95;
96
.;
stmJUTlNES
97;
28ff"
98011G
28AFH
99;
1911
;
29AF
3Efj}
191
TlOW
11\11
A,83H
2f.IB1
D329
192
ooT
29H
2883
3EFF
193
""I
A,9FFH
;
SET
PORT
A
AS
1'5
2885
D321
184
OUT
21H
2887
CF
195
RST
1
186
;
1fj7
;
A1-45