Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 01, 2024, 05:30:21 05:30


Login with username, password and session length


Pages: [1]
Print
Author Topic: Ibutton  (Read 4606 times)
0 Members and 1 Guest are viewing this topic.
nileshhande
Junior Member
**
Offline Offline

Posts: 70

Thank You
-Given: 23
-Receive: 5


« on: September 04, 2007, 10:24:14 10:24 »

Hi,
Im looking for DALLAS Ibutton interface...DS1990A or DS1991 MultiKey iButton project(PIC)..

http://www.maxim-ic.com/products/ibutton/products/ibuttons.cfm

Thanks&Regards..
Logged
ogul
Newbie
*
Offline Offline

Posts: 15

Thank You
-Given: 169
-Receive: 10


« Reply #1 on: September 04, 2007, 11:51:30 11:51 »

CONTROL1 var byte
K var byte
DATBUF    var byte[8]

tom_wait:
        gosub tom_reset
        if CONTROL1=0 then tom_wait
        gosub tom_read
        lcdout $FE,$01
        For K=0 to 7
           lcdout DATBUF[K]," "
        NEXT K
        pause 2000
        goto tom_wait

tom_reset:     
        CONTROL1=1
        Low PORTB.2           ' Set the data pin low to init
        Pauseus 500             ' wait > 480us
        input PORTB.2
        Pauseus 100             ' Wait > 60us
        If PORTB.2= 1 Then  CONTROL1=0 'no tom
        Return   
tom_read:       '
        OWOUT PORTB.2, 1, [$33]
        OWIN PORTB.2, 0, [STR DATBUF\8]   ' 8-byte "ID"
        return
Logged
nileshhande
Junior Member
**
Offline Offline

Posts: 70

Thank You
-Given: 23
-Receive: 5


« Reply #2 on: September 04, 2007, 12:57:13 12:57 »

if you could Give some more essential information of this code like... Read multiple ibuttons and if button1 = xxxx then high port1 else if button2 = xxxx then high port2...some thing like that........
Thank you very much...
Regards.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC