Reply by Mehmet Kurnaz●September 16, 20082008-09-16
Ok there is no problem.
----- Original Message ----
From: YAP
To: l...
Sent: Tuesday, September 16, 2008 3:48:41 PM
Subject: Re: [lpc2000] Re: 1-wire driver
Hi Mehmet,
is it OK if I use your code in an open source project (http://www.vscp. org)?
Cheers
/Ake
On Tue, Sep 16, 2008 at 1:59 PM, Mehmet Kurnaz
wrote: > Yes you are right for H and J it is error.
> delayUs() really accept microseconds as input.
>
> int. open:
> write vector register
> write ctrl register
> write enable register
> int. close:
> write enable clear register
> int. release:
> VICVectAddr = 0x00000000;
>
> ----- Original Message ----
> From: carlochiesa78
> To: lpc2000@yahoogroups .com
> Sent: Tuesday, September 16, 2008 11:04:12 AM
> Subject: [lpc2000] Re: 1-wire driver
>
> Thank you for your suggestions.
>
> I tryed to compile your code but I got an error in setSpeed() function
> for H and J standard values because I assumed that their size is 8-bits.
>
> ibutton.c(97) : warning: #69-D: integer conversion resulted in truncation
> ibutton.c(99) : warning: #69-D: integer conversion resulted in truncation
>
> And the delayUs() function really accepts microseconds as input?
>
> Moreover what do you mean with the functions
> interrupt[Open| Close|Release] () ?
>
>
--
---
Ake Hedman (YAP - Yet Another Programmer)
D of Scandinavia, Brattbergavagen 17, 820 50 LOS, Sweden
Phone: (46) 73 0533 146
Company home: http://www.dofscand inavia.com
Personal homepage: http://www.dofscand inavia.com/ akhe
Automated home: http://www.vscp. org
On Tue, Sep 16, 2008 at 1:59 PM, Mehmet Kurnaz wrote: > Yes you are right for H and J it is error.
> delayUs() really accept microseconds as input.
>
> int. open:
> write vector register
> write ctrl register
> write enable register
> int. close:
> write enable clear register
> int. release:
> VICVectAddr = 0x00000000;
>
> ----- Original Message ----
> From: carlochiesa78
> To: l...
> Sent: Tuesday, September 16, 2008 11:04:12 AM
> Subject: [lpc2000] Re: 1-wire driver
>
> Thank you for your suggestions.
>
> I tryed to compile your code but I got an error in setSpeed() function
> for H and J standard values because I assumed that their size is 8-bits.
>
> ibutton.c(97) : warning: #69-D: integer conversion resulted in truncation
> ibutton.c(99) : warning: #69-D: integer conversion resulted in truncation
>
> And the delayUs() function really accepts microseconds as input?
>
> Moreover what do you mean with the functions
> interrupt[Open| Close|Release] () ?
>
>
Reply by Mehmet Kurnaz●September 16, 20082008-09-16
Yes you are right for H and J it is error.
delayUs() really accept microseconds as input.
int. open:
write vector register
write ctrl register
write enable register
int. close:
write enable clear register
int. release:
VICVectAddr = 0x00000000;
----- Original Message ----
From: carlochiesa78
To: l...
Sent: Tuesday, September 16, 2008 11:04:12 AM
Subject: [lpc2000] Re: 1-wire driver
Thank you for your suggestions.
I tryed to compile your code but I got an error in setSpeed() function
for H and J standard values because I assumed that their size is 8-bits.
ibutton.c(97) : warning: #69-D: integer conversion resulted in truncation
ibutton.c(99) : warning: #69-D: integer conversion resulted in truncation
And the delayUs() function really accepts microseconds as input?
Moreover what do you mean with the functions
interrupt[Open| Close|Release] () ?
Reply by carlochiesa78●September 16, 20082008-09-16
Thank you for your suggestions.
I tryed to compile your code but I got an error in setSpeed() function
for H and J standard values because I assumed that their size is 8-bits.
ibutton.c(97): warning: #69-D: integer conversion resulted in truncation
ibutton.c(99): warning: #69-D: integer conversion resulted in truncation
And the delayUs() function really accepts microseconds as input?
Moreover what do you mean with the functions
interrupt[Open|Close|Release]() ?
Reply by Mehmet Kurnaz●September 15, 20082008-09-15
You can use ext. int. for rx and any gpio for tx. For first presence pulse you
shold use ext int. and than set that pin as gpio. You can read application note
159 from dallas.
I attached source codes you will need. You can use
----- Original Message ----
From: carlochiesa78
To: l...
Sent: Monday, September 15, 2008 6:53:44 PM
Subject: [lpc2000] 1-wire driver
I'm designing a new board with LPC2378/88 and I have to read the code
inside a Maxim DS2401 chip using the 1-wire protocol.
Which peripheral is suggested for this type of communication?
Any sample code is available for the LPC2xxx family?