Yahoo Groups archive

Lpc2000

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

Message

Re: read with SPI

2004-11-28 by domingos_bento

Hello,
I have analog supply pins hooked up correctly!!! 

One the problem is the following:
the data are not read in the first rising edge. I already put CPHA=0
and CPHA=1 and the result is always the same, read ever SCK falling edge.

Anybody already have this problem??

Thanks
      Domingos







--- In lpc2000@yahoogroups.com, "Richard" <richas@y...> wrote:
> 
> Analog supply pins hooked up correctly?
> 
> 
> 
> --- In lpc2000@yahoogroups.com, "domingos_bento" <dasbento@a...> 
> wrote:
> > 
> > Hello,
> > yes I tryed to change phase and polarity, but continue same.
> > 
> > Another thing that happen is that AD to give the double of the 
> scale.
> > In the datasheet with 0V input would have in hex 0000, midscale 
> (2.5V)
> >  should have 8000 and to 4.999924V should have FFFF. The results 
> that
> > I 'm obtain are: 0V input has 0000, 2.5V has FFFF and 4.999924V 
> has FFFE.
> > 
> > thanks
> >       Domingos
> > 
> > --- In lpc2000@yahoogroups.com, FabioDB <fabiodib@e...> wrote:
> > > Il giorno gio, 25-11-2004 alle 20:59 +0000, dasbento@a... ha
> > > scritto:
> > > > 
> > > > Hello,
> > > > 
> > > > I'm using SPI to read data of ADS7807U. My problem is not get 
> to read
> > > > the last bit, i.e, bit0. How does the SCK work? 
> > > 
> > > Have you tryed to change phase and polarity (CPOL and CPHA bits 
> of SPI
> > > Control Register)?
> > > 
> > > -- 
> > > FabioDB <fabiodib@e...>
> > > Altraqua

Attachments

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.