George Sephton
Senior Member
Hi,
Ive been looking at the DS1807 and Im trying to communicate with it by bit-banging but I can't seem to work out how to use it.
I have looked at the Datasheet and can create a START and STOP condition:
And now I need to look at sending pulses to communicate with it. I need to select both potentiometers (10101111) and then change the position depending on a binary number between 0 and 65. But how do I send those pulses: 10101111 to select and then the binary of the value (I have to create a decimal to binary conversion sub)?
I assume its just pulses ie:
P_P_PPPP (P=Pulse, _ = Pause)
Am I right? But which line is that CLK or DAT? and what does the other line do whilst that happens.
Also how long do these pulses last and will my script above to create a START and STOP condition work.
Any help will be appreciated.
George S.
Ive been looking at the DS1807 and Im trying to communicate with it by bit-banging but I can't seem to work out how to use it.
I have looked at the Datasheet and can create a START and STOP condition:
Code:
DataSTART:
high clkpin
high datpin
low datpin
return
DataSTOP:
high clkpin
low datpin
high datpin
return
I assume its just pulses ie:
P_P_PPPP (P=Pulse, _ = Pause)
Am I right? But which line is that CLK or DAT? and what does the other line do whilst that happens.
Also how long do these pulses last and will my script above to create a START and STOP condition work.
Any help will be appreciated.
George S.