Help reading DS1990A ibutton with PIC


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    May 2008
    Posts
    6

    Default Help reading DS1990A ibutton with PIC

    Hey guys,

    Can anyone help me with reading the DS1990A ibutton with a 16F series PIC? I have to do it in C. My compiler is CCS 4.057. I've tried running the code by ogradino found on this link
    http://www.picbasic.co.uk/forum/show...ghlight=ds1990 but it returns errors about BYTE,i and data not being valid identifiers.

    Perhaps someone can explain how to make ogradino's code work? I'm lost here thank you in advance.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by konzen View Post
    My compiler is CCS 4.057.
    CCS 4.057 <> PicBasicPro (any version)

  3. #3
    Join Date
    May 2008
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    ccs does not use the same syntax?
    So can anyone help me with how to change the code to ccs?
    Last edited by konzen; - 23rd May 2008 at 12:29.

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by konzen View Post
    ccs does not use the same syntax?
    So can anyone help me with how to change the code to ccs?
    If you don't know that C is different than Basic, major differences in syntax and so on...maybe you've got a bit more homework to do...
    As far as changing the code over...if you knew one or the other it might be possible. If you want somebody to do it for you? rotsaruck...

  5. #5
    Join Date
    May 2008
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    the code on that link is in C. And i think its in CCS compiler format.

    So can anyone help me with the code? I've run it and it doesn't seem to be working.

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by konzen View Post
    the code on that link is in C. And i think its in CCS compiler format.

    So can anyone help me with the code? I've run it and it doesn't seem to be working.
    Hi,

    Don't you think it wouldn't be much more efficient to drop a mail to the code author ???

    ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  7. #7
    Join Date
    May 2008
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    yeah I thought of that but apparently he is not a member as I can't access his profile.
    forgive my ignorance but I don't think he's a member?

  8. #8
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Probably his account have been deleted after all this time. The only place i would suggest you is the CCS forum. Sure you'll find the info you need over there.

    http://www.ccsinfo.com/forum/
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  9. #9
    Join Date
    May 2008
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    Thanks.
    I found the full code from the example files in the CCS folder!! They were there all along!!
    Will try them out soon.

  10. #10
    Join Date
    May 2008
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    hey,

    I've tried out the code but it doesn't work gah!! any alternate of ways of accomplishing this?

  11. #11
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    yes... purchase PBP, and join us
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Reading PIC serout in hyperterminal
    By financecatalyst in forum Schematics
    Replies: 5
    Last Post: - 22nd October 2009, 15:13
  2. Connecting ibutton to pic!
    By jkbpower in forum Schematics
    Replies: 1
    Last Post: - 4th December 2008, 07:09
  3. Reading a slave USB with a pic
    By pcaccia in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 25th October 2008, 12:00
  4. Writing & Reading to iButton EEPROM
    By crhomberg in forum Code Examples
    Replies: 2
    Last Post: - 6th October 2008, 19:40
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts