-
ds 1990/ ibutton help
i won't read ds1990 ibutton to microcontroller.but i don't understand reset to pic.because of this system isn't working.i will need microcontroller's basic program.i wrote the program:
'************************************************* ***************
'* Name : UNTITLED.BAS *
'* Author : [select VIEW...EDITOR OPTIONS] *
'* Notice : Copyright (c) 2005 [select VIEW...EDITOR OPTIONS] *
'* : All Rights Reserved *
'* Date : 09.07.2005 *
'* Version : 1.0 *
'* Notes : *
'* : *
'************************************************* ***************
define osc 12
trisb=0
temp var byte [8]
symbol ibutton=PortA.0
OWOUT ibutton,1, [%00110011]
Pause 100
OWIN iButton,0,[temp[0],temp[1],temp[2],temp[3],temp[4],temp[5],temp[6],temp[7]]
if temp[0]=2 then 'only family code '
portb.1=1
portb.2=0
else
portb.2=1
portb.1=0
endif
end
thank you for help
-