Per aspera ad astra !!!!
I write another code :
DQ Var PORTA.4 ' One-wire data pin
i Var Byte
Temp Var Byte
ReadRom Con $33
ID VAR BYTE[8] ' Array storage variable for 64-bit ROM code
Begin:
PAUSE 500 ' Wait .5 second
LCDOUT $FE, 1, $FE, $0C ' Clear display, cursor off
Start_Convert
OWOUT DQ, 1, [$33] ' Issue Read ROM command
ID_Loop:
OWIN DQ, 0, [STR ID\8]' Read 64-bit device data into the 8-byte array "ID"
for i = 0 to 7
LcdOut HEX ID[i]
next i
END
Now I have on display : 28CAC648100A7
I think now it is correct. Can You confirm ? Thanks !
Bookmarks