When trying to read the scratchpad you send:
OWOUT portc.0,1,[$CC,$BE] ' send Read Scratchpad command
$CC is the "SKIP ROM" command which is ok,
but the "READ SCRATCHPAD" command for the DS1992 is $AA and not $BE
Try the following:
spad VAR Byte[16] ' Scratchpad Data
OWOut portc.0,1,[$cc] 'cmd Skip ROM
OWOut portc.0,0,[$aa] 'cmd Read Scratchpad
OWOut portc.0,0,[$00] 'Start adr 00h
OWIN portc.0,0,[STR spad\16] ' read scratchpad
LCDOUT $FE,1, HEX2 spad[0]....
Bookmarks