Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

SCK SPI

SCK SPI

2005-04-08 by dasbento@aeiou.pt

Hello,

Is it possible to generate a continuous serial clock on the SPI?
_________________________________________________________
CEAC Cursos de forma\ufffd\ufffdo profissional - pe\ufffda informa\ufffd\ufffdes aqui.:
http://ceac.online.pt/

Re: [lpc2000] SCK SPI

2005-04-08 by Robert Adsett

At 04:32 PM 4/8/05 +0100, dasbento@... wrote:
>Is it possible to generate a continuous serial clock on the SPI?

I don't believe so.  It would only result in missing data.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

Re: [lpc2000] SCK SPI

2005-04-08 by dasbento@aeiou.pt

Thanks Robert!


I'm using an AD (ADS8325, texas instruments) and i want to comunicate
with SPI. But i don't know how. The ADS8325 not have an internal clock
. Therefore, it is necessary to use the SPI clock to make the conversions.
Any solution to my problem?

    Domingos











Citando Robert Adsett <subscriptions@...>:

> 
> At 04:32 PM 4/8/05 +0100, dasbento@... wrote:
> >Is it possible to generate a continuous serial clock on the SPI?
>
> I don't believe so.  It would only result in missing data.
>
> Robert
>
> " 'Freedom' has no meaning of itself.  There are always
restrictions,   be
> they legal, genetic, or physical.  If you don't believe me, try to
chew a
> radio signal. "  -- Kelvin Throop, III
> http://www.aeolusdevelopment.com/
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
> 

_________________________________________________________
CEAC Cursos de forma\ufffd\ufffdo profissional - pe\ufffda informa\ufffd\ufffdes aqui.:
http://ceac.online.pt/

Re: SCK SPI

2005-04-08 by valdef78

--- In lpc2000@yahoogroups.com, dasbento@a... wrote:
> Thanks Robert!
> 
> 
> I'm using an AD (ADS8325, texas instruments) and i want to comunicate
> with SPI. But i don't know how. The ADS8325 not have an internal 
clock
> . Therefore, it is necessary to use the SPI clock to make the 
conversions.
> Any solution to my problem?
> 
>     Domingos
> 

you had to send/read 3 bytes on the SPI to give the necessary clock to 
the ADS8325 and take the data from it..
you should have a look to the application notes at the bottom of the 
page here :
http://focus.ti.com/docs/prod/folders/print/ads8325.html
look at the "Interfacing the MSOP8EVM to MSP430 Processors". you 
should find the explanation here and sample code..

Re: [lpc2000] SCK SPI

2005-04-08 by Robert Adsett

At 05:06 PM 4/8/05 +0100, dasbento@... wrote:
>I'm using an AD (ADS8325, texas instruments) and i want to comunicate
>with SPI. But i don't know how. The ADS8325 not have an internal clock
>. Therefore, it is necessary to use the SPI clock to make the conversions.
>Any solution to my problem?

It depends on how it works

Option 1 - The device only works when connected.  IE the select line must 
be held low during conversion.  In that case the A/D would presumably have 
a period where dummy bytes were clocked in to perform the conversion.  I 
would expect it to be documented that way, something like send 1 byte 
configuration followed by two dummy bytes for conversion, On the third 
dummy byte the actual converted data is clocked out.

Option 2 - The device clocks data in/out during the period the select is 
low but requires a continuing clock when select is high to actually perform 
the conversion.  In that case you could select the device as normal when 
setting up and reading.  Then deselect it and send out dummy bytes during 
the period it is deselected.  In any case you will be sending & receiving 
data while the clock is running.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

Re: SCK SPI

2005-04-08 by valdef78

--- In lpc2000@yahoogroups.com, Robert Adsett <subscriptions@a...> 
wrote:
> At 05:06 PM 4/8/05 +0100, dasbento@a... wrote:
> >I'm using an AD (ADS8325, texas instruments) and i want to 
comunicate
> >with SPI. But i don't know how. The ADS8325 not have an internal 
clock
> >. Therefore, it is necessary to use the SPI clock to make the 
conversions.
> >Any solution to my problem?
> 
> It depends on how it works
> 
> Option 1 - The device only works when connected.  IE the select 
line must 
> be held low during conversion.  In that case the A/D would 
presumably have 
> a period where dummy bytes were clocked in to perform the 
conversion.  I 
> would expect it to be documented that way, something like send 1 
byte 
> configuration followed by two dummy bytes for conversion, On the 
third 
> dummy byte the actual converted data is clocked out.
> 
> Option 2 - The device clocks data in/out during the period the 
select is 
> low but requires a continuing clock when select is high to 
actually perform 
> the conversion.  In that case you could select the device as 
normal when 
> setting up and reading.  Then deselect it and send out dummy bytes 
during 
> the period it is deselected.  In any case you will be sending & 
receiving 
> data while the clock is running.
> 
> Robert

the clock is not needed continuously. it just need to send/receive 3 
bytes to get the data. that's the way it's done in the application 
note I pointed in my precedent post..
description from the datasheet :
"A falling /CS signal initiates the conversion and data transfer.
The first 4.5 to 5.0 clock periods of the conversion cycle are
used to sample the input signal. After the fifth falling DCLOCK
edge, DOUT is enabled and will output a LOW value for one
clock period. For the next 16 DCLOCK periods, DOUT will
output the conversion result, most significant bit first. After
the least significant bit (B0) has been output, subsequent
clocks will repeat the output data, but in a least significant bit
first format.
After the most significant bit (B15) has been repeated, DOUT
will tri-state. Subsequent clocks will have no effect on the
converter. A new conversion is initiated only when CS has
been taken HIGH and returned LOW."

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.