Careful again... 45h does NOT equal "45" decimal.The memory is incremented by one each time a new datapoint is collected. I am looking at the samples counter to determine the mem_end location which depends on when the user does his rounds. If the user takes the reading early the next time it may be mem_end is 1045h so I will loop until: i = 0 to 45.
It's being sent in binary. Use that Windows calculator, click on hex, enter 45 (or whatever) then click on binary. You can see the relationship this way.I will also add a loop from 0 to 90 and see what happens! So the OWOUT will send the data as hex without the "$"? I don't think I understand how the data is being sent via OWOUT.
I just 'browsed' the datasheet. $CC command just skips the ROM. Data values are "N/A". I don't think you are going to get what you want with this code. Yet, I might be wrong because the last thing I need right now is 'learning' another datasheet.Code:mem_start = 0 mem_end = X 'Is dependant on the samples counter at time of reading for i = 0 to mem_end OWOUT DQ, 1, [$CC, $F0, i, $10] OWIN DQ, 0, [TempRec] goto convert_temp next i




Bookmarks