Catalog for measurements temperatureFull description
68HC11
Israiliyyat
PptFull description
Descrição completa
Now Available in hard-cover, hand-crafted and signed by the author, from my web-site. Minor Update: 27 January, 2013. (See chapter: The Radian Comma.) The way we measure time and space reflects the...
sacred geometry
Experiment IIT Kharagpur IPC LabFull description
Descripción completa
Robert Scott Fritzsche
68HC11 Temperature measure and Display Introduction This lab is to show how the A/D converter on the 68HC11 works and the the hardware reqired to do it! The ob"ective and reqire#ents o$ the lab were to write code to se the A/D converter and know the hardware reqire#ents to se the te#%eratre sensor! &e were to scale the Te#%eratre sensor to read $ro# ' to 1'' Celsis! (nclded in this ob"ective was the task o$ connectin) the te#%eratre sensor and the *+Ds to the HC11! Also inclded in this ob"ective was the task o$ desi)nin) so$tware to do the $ollowin), initialize the A/D converter and serial sbs-ste#s. control the #easre#ent and stora)e o$ te#%eratre in a RA variable called T+0. and control control the dis%ladis%la- o$ te#%eratre te#%eratre on the *+D ot%ts! ot%ts!
Procedures for testing and Design Fi)re 1
Fi)re 1 shows the interaction between the 68HC11 and the *211 sensor! 0rocedre was to test the *6211 and record data o3 o$ the te#%eratre readin) o$ an ice bath that is )radall- heated! Then on the in%t in%t o$ the ter#inal ter#inal tell the the 68HC11 to read read and dis%ladis%la- the te#% and the corres%ondin) *+D n#ber $or the )iven te#% as well!
Robert Scott Fritzsche
Connecting the Temperature sensor to the 68HC11 The *211 is the sensor that was sed in the lab! The cold not be directl- connected to the 68HC11 becase it ot%t a crrent and the 68HC11 A/D converter can onlbe s%%lied with a 4olta)e sorce between '54! To solve this %roble# a new circit was desi)ned to convert the crrent to volta)e in the %ro%er #anor!
*211 wold
To the ri)ht is the inte)rated o%5a#% that allows $or the *211 to s%%l- a crrent and ths s%%l- a volta)e to the 68HC11!
Testing procedure and results
Ther#o#eter vs &ater :ath vs 68HC11 2' 8' 9' 6' ' ' ' 7' 1' '
'
7
6
8
1'
Ther#o#itor
17
1
16
18
68HC11
&ater :ath Readin)
For the Testin); we had a bath o$ ice water inside $or the water bath heater! To allow $or consistent reslts we also inclded a #ercr- ther#o#eter! ( took readin)s $ro# the lowest %oint we
Robert Scott Fritzsche cold reach and read which was 7 de)rees C and then took readin) at de)ree intervals! At %ot resistor and tned it till the reslts lined %! There are still so#e variations in the reslts! :t $or the #ost %art the readin)s were within a de)ree or so!
Conclusion This re%ort shows how the 68HC11 hardware and so$tware co#bined with the *211 can be sed to #ake a viable te#%eratre sensor! &hile all o$ the readin) were not e=actl- as read b- either the ther#o#eter or the water bath sensor; this cold be
Robert Scott Fritzsche
Appendix: Fi)re 1 shows an accrate re%resentation o$ the 68HC11 hardware! This %ictre was taken $ro# the internet and shows a sli)ht %roble#! - code ses the 0+1 %ort and not the 0+7 %ort on the 68HC11! The second %roble# is that the <)re was desi)ned $or 7'52' de)rees F and not '51'' de)rees C!
lo! Chart
Robert Scott Fritzsche
A"# Code ?+@R 7' (ntrodction to icrocontrollers ?A/D Converter
?Static 4ariables
BTRH*F BTA
+ +
EFF: EFF:8
BTSTR
+
EFFC9
BTCR*F
+
EFFC
BTSTRB
+
EFFCA
(@CHAR
+
EFFCD
ADCT*
+
E1''
.De
Robert Scott Fritzsche 0+1
+
E1'7
?D-na#ic 4ariables
d1
+
ED:'1
d7
+
ED:'7
d
+
ED:'
d
+
ED:'
d
+
ED:'
0ort:
+
or) D((TA*
E1''
E8''' R:
4B*TA+
1
R:
T+0
R:
7
.Reserve b-tes
7
?0ro#%t ser $or ke-board %ress
BR 0ro#%t
E2'''
FCC FC:
Celsis
0ress to dis%la- Te#%
E'
FCC FC:
De)rees Celsis E'
?ain loo%
BR :AC>
EA'''
*DG
0ro#%t
ISR
BTSTR
ISR
BTCR*F
ISR
(@CHAR
ISR
T+0S:
.(n%t .Converts to deci#al
Robert Scott Fritzsche ISR
*+DS:
ISR
:(@:CD
ISR
0rint
I0
:AC>
.Trn on *+Ds .Convert to deci#al .0rints te#%eratre
?Te#% SR
BR
E:'''
*DAA
J'''''''1
STAA
ADCT*
*DA:
16
T+0S:
Ti#e
.Scan once; sin)le channel; 0+1
.wait loo% K7 c-clesL
D+C: :@+
Ti#e
*DAA
0+1
STAA
D((TA*
*DA:
7'
.Decre#ent : Ktwo clock c-clesL
* STD
4B*TA+
*DAA
D((TA*
*DA:
.volta)e in #illivolts
.ste% size
* STD
T+0
.Te#% is in Kde)ress C / 1'L
RTS
?*+D SR
BR
EC'''
*+DS: *DAA D((TA* stored in %ort :L
.*ed 1 trns on $ro# a ran)e $ro# vales $ro# '51 Kall reslts
Robert Scott Fritzsche *DA:
1
STA:
ECF''
C0A
ECF''
:H(
T&B
*DAA
J'''''''1
STAA
0ort:
I0
DB@+
T&B *DAA
D((TA*
*DA:
6
STA:
ECF''
C0A
ECF''
:H(
.*ed 7 trns on $ro# a ran)e $ro# vales $ro# 756
THR++
*DAA
J''''''11
STAA
0ort:
I0
DB@+
THR++ *DAA
D((TA*
*DA:
21
STA:
ECF''
C0A
ECF''
:H(
.*ed trns on $ro# a ran)e $ro# vales $ro# 6521
FBR
*DAA
J'''''111
STAA
0ort:
I0
DB@+
FBR *DAA
D((TA*
.*ed trns on $ro# a ran)e $ro# vales $ro# 275179
Robert Scott Fritzsche *DA:
179
STA:
ECF''
C0A
ECF''
:H(
*DAA
J''''1111
STAA
0ort:
I0
F(4+
D((TA*
*DA:
18
STA:
ECF''
C0A
ECF''
.*ed trns on $ro# a ran)e $ro# vales $ro# 178518
S(G
*DAA
J'''11111
STAA
0ort:
I0
DB@+
*DAA
D((TA*
*DA:
12'
STA:
ECF''
C0A
ECF''
:H(
.*ed 6 trns on $ro# a ran)e $ro# vales $ro# 12512'
S+4+@
*DAA
J''111111
STAA
0ort:
I0
S+4+@
DB@+
*DAA
:H(
S(G
F(4+
DB@+
*DAA
D((TA*
*DA:
777
STA:
ECF''
C0A
ECF''
.*ed 9 trns on $ro# a ran)e $ro# vales $ro# 1215777
Robert Scott Fritzsche :H(
*DAA
J'1111111
STAA
0ort:
I0
+(HT
+(HT
DB@+
*DAA STAA
J11111111 .*ed 8 trns on an-thin) )reater than 777
0ort:
DB@+ RTS
?Conversion SR
BR
ED'''
*DD
T+0
*DG
1'''
:(@:CD
(D(4
GDG STA:
.stores the tens di)it into db'7
GDG *DG
(D(4
GDG STA:
d7
.load di)ital vale
1''
d
.stores the ones di)it into db'
GDG *DG
(D(4
GDG STA:
1'
d
.stores the tenths di)it into d'
Robert Scott Fritzsche
GDG STA:
d
.stores the hndreths di)it into db'
RTS
?0rintin) SR
BR
ED8''
*DAA
d7
0R(@T
ISR
*DAA ISR
*DAA ISR
*DAA ISR
*DAA
BTRH*F
d
.%rints the hndreds di)it
BTRH*F
d
.%rints the tens di)it
BTRH*F
E7+
.%rints the deci#al %oint with the BTA sbrotine