PDA

View Full Version : Help reading DS1990A ibutton with PIC



konzen
- 17th May 2008, 09:23
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/showthread.php?t=180&highlight=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.

skimask
- 17th May 2008, 15:30
My compiler is CCS 4.057.
CCS 4.057 <> PicBasicPro (any version)

konzen
- 23rd May 2008, 08:44
ccs does not use the same syntax?
So can anyone help me with how to change the code to ccs?

skimask
- 23rd May 2008, 13:35
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...

konzen
- 28th May 2008, 12:36
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.

Acetronics2
- 28th May 2008, 12:43
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

konzen
- 28th May 2008, 13:55
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?

mister_e
- 28th May 2008, 14:19
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/

konzen
- 28th May 2008, 15:58
Thanks.
I found the full code from the example files in the CCS folder!! They were there all along!!
Will try them out soon.

konzen
- 29th May 2008, 07:59
hey,

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

mister_e
- 29th May 2008, 18:11
:D yes... purchase PBP (http://www.rentron.com/PicBasic/products/PBP_E.htm), and join us :D