Have problem with the TIME variable not incrementing once per second when the READTEMP command
is in use. When READTEMP is remmed out the value of TIME is sent to the PC once per second but when
READTEMP is enabled the TIME variable is only being updated approx every 30 seconds. READTEMP takes
about 750mS to execute so this should affect the sending of TIME every second. I thought the TIME counter
was a separate counter on the chip that just started and ran at power up and could be read at any time
to check ellapsed seconds.
Chip version 4.A
PE 5.4.3
is in use. When READTEMP is remmed out the value of TIME is sent to the PC once per second but when
READTEMP is enabled the TIME variable is only being updated approx every 30 seconds. READTEMP takes
about 750mS to execute so this should affect the sending of TIME every second. I thought the TIME counter
was a separate counter on the chip that just started and ran at power up and could be read at any time
to check ellapsed seconds.
Code:
#Picaxe 08m2
#No_Data
do
readtemp C.2,b5
if w3 <> Time then
w3 = Time
BINTOASCII Time, b4, b3, b2, b1, b0
sertxd (b4, b3, b2, b1, b0,13,10)
end if
loop
PE 5.4.3