I put this code in the initialization:
ldx #REGBLK
bset DDRD,x %00111000
bclr PortD,x SCLK
bset PortD,x RSTTEMP
ldaa #$EE
ldab #8
ZS1:
bclr PortD,x I_O
lsra
bcc NS1
bset PortD,x I_O
NS:
bset PortD,x SCLK
nop
nop
nop
bclr PortD,x SCLK
decb
bne ZS1
When I done this I begin to get different readings such as 3=, 2> and so on.
So I put this code for the convertion from BCD to degrees, showing on LCD:
clra
ldx #10
idiv
orab #$30
stab str2+10
xgdx
ldx #10
idiv
orab #$30
stab str2+9
When I put it I begin to get from 40oC to 65-70oC, but without any marks or unknown symbols.
I'm surprised of this reading, because the temperature on the corpus of the device is not more than 25-27oC, even colder.
Is there an error in the code for the conversion?
Can somebody tell me better method?