Experience with AD5328 DAC
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
Experience with AD5328 DAC

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System
Author Message
damir
Guest





Posted: Sat Dec 24, 2005 5:15 pm    Post subject: Experience with AD5328 DAC Reply with quote

Hi,

Did anyone used this (or similar) DAC from Analog Devices.

I have severe communication protocol problems - I've implemented several
software versions, attached it to SPI - and I cannot get channels to update
correctly or to send commands.

Damir
Back to top
Dan Henry
Guest





Posted: Sun Dec 25, 2005 1:15 am    Post subject: Re: Experience with AD5328 DAC Reply with quote

On Sat, 24 Dec 2005 15:18:28 +0100, "damir" <dzagar@BRISIsrce.hr>
wrote:

Quote:
Hi,

Did anyone used this (or similar) DAC from Analog Devices.

I have severe communication protocol problems - I've implemented several
software versions, attached it to SPI - and I cannot get channels to update
correctly or to send commands.

Damir

Yes, similar and without problems. It's hard to give more help than
that with what little information you have provided. Sorry.

--
Dan Henry
Back to top
damir
Guest





Posted: Mon Dec 26, 2005 9:15 am    Post subject: Re: Experience with AD5328 DAC Reply with quote

As mentioned in the datasheet, I've implemented in software SPI protocol
with CPOL=0, CPHA=1 (clock active low, shift data out on the falling SCLK
edge). The problem is that on DAC update only channel A is updated and only
values 2^n-1 (1, 3,..., 127,...1023, 2047, 4095) are accepted. Even commands
(like 'reset') are not executed. I even tried different versions of the
protocol (allways shifting on falling SCLK edge) but without any success.
LDAC pin is permanently tied low.

Datasheet mentions (in timing diagram) that all values are specified with
tr=tf=5ns. I don't know if this is the constraint, as in my case rise and
fall times are more than 50 ns.

DAC behaviour is really strange... and I'm out of ideas what may me wrong.

Damir

"Dan Henry" <usenet@danlhenry.com> wrote in message
news:pbcrq1t45ehj61evv5b1o4lmfu47vldt6f@4ax.com...
Quote:
On Sat, 24 Dec 2005 15:18:28 +0100, "damir" <dzagar@BRISIsrce.hr
wrote:

Hi,

Did anyone used this (or similar) DAC from Analog Devices.

I have severe communication protocol problems - I've implemented several
software versions, attached it to SPI - and I cannot get channels to
update
correctly or to send commands.

Damir

Yes, similar and without problems. It's hard to give more help than
that with what little information you have provided. Sorry.

--
Dan Henry
Back to top
Dan Henry
Guest





Posted: Mon Dec 26, 2005 5:15 pm    Post subject: Re: Experience with AD5328 DAC Reply with quote

On Mon, 26 Dec 2005 09:43:48 +0100, "damir" <dzagar@BRISIsrce.hr>
wrote:
Quote:
"Dan Henry" <usenet@danlhenry.com> wrote in message
news:pbcrq1t45ehj61evv5b1o4lmfu47vldt6f@4ax.com...
On Sat, 24 Dec 2005 15:18:28 +0100, "damir" <dzagar@BRISIsrce.hr
wrote:

Hi,

Did anyone used this (or similar) DAC from Analog Devices.

I have severe communication protocol problems - I've implemented several
software versions, attached it to SPI - and I cannot get channels to
update
correctly or to send commands.

Damir

Yes, similar and without problems. It's hard to give more help than
that with what little information you have provided. Sorry.

As mentioned in the datasheet, I've implemented in software SPI protocol
with CPOL=0, CPHA=1 (clock active low, shift data out on the falling SCLK
edge). The problem is that on DAC update only channel A is updated and only
values 2^n-1 (1, 3,..., 127,...1023, 2047, 4095) are accepted. Even commands
(like 'reset') are not executed. I even tried different versions of the
protocol (allways shifting on falling SCLK edge) but without any success.
LDAC pin is permanently tied low.

Datasheet mentions (in timing diagram) that all values are specified with
tr=tf=5ns. I don't know if this is the constraint, as in my case rise and
fall times are more than 50 ns.

DAC behaviour is really strange... and I'm out of ideas what may me wrong.

Perhaps a framing problem -- what about the SYNC signal?

--
Dan Henry
Back to top
Dan Henry
Guest





Posted: Mon Dec 26, 2005 5:15 pm    Post subject: Re: Experience with AD5328 DAC Reply with quote

On Mon, 26 Dec 2005 09:24:12 -0700, Dan Henry <usenet@danlhenry.com>
wrote:

Quote:
On Mon, 26 Dec 2005 09:43:48 +0100, "damir" <dzagar@BRISIsrce.hr
wrote:
"Dan Henry" <usenet@danlhenry.com> wrote in message
news:pbcrq1t45ehj61evv5b1o4lmfu47vldt6f@4ax.com...
On Sat, 24 Dec 2005 15:18:28 +0100, "damir" <dzagar@BRISIsrce.hr
wrote:

Hi,

Did anyone used this (or similar) DAC from Analog Devices.

I have severe communication protocol problems - I've implemented several
software versions, attached it to SPI - and I cannot get channels to
update
correctly or to send commands.

Damir

Yes, similar and without problems. It's hard to give more help than
that with what little information you have provided. Sorry.

As mentioned in the datasheet, I've implemented in software SPI protocol
with CPOL=0, CPHA=1 (clock active low, shift data out on the falling SCLK
edge). The problem is that on DAC update only channel A is updated and only
values 2^n-1 (1, 3,..., 127,...1023, 2047, 4095) are accepted. Even commands
(like 'reset') are not executed. I even tried different versions of the
protocol (allways shifting on falling SCLK edge) but without any success.
LDAC pin is permanently tied low.

Datasheet mentions (in timing diagram) that all values are specified with
tr=tf=5ns. I don't know if this is the constraint, as in my case rise and
fall times are more than 50 ns.

DAC behaviour is really strange... and I'm out of ideas what may me wrong.

Perhaps a framing problem -- what about the SYNC signal?

Also, I'd shift data out of the master on the rising edge so the data
is ready for the slave (DAC) to shift in on the falling edge.

--
Dan Henry
Back to top
Rich Webb
Guest





Posted: Mon Dec 26, 2005 11:41 pm    Post subject: Re: Experience with AD5328 DAC Reply with quote

On Mon, 26 Dec 2005 09:43:48 +0100, "damir" <dzagar@BRISIsrce.hr> wrote:

Quote:
DAC behaviour is really strange... and I'm out of ideas what may me wrong.

I haven't used the AD part but I am working with a similar one from TI,
the TLV5628.

It's almost impossible to troubleshoot SPI without looking at the actual
timing. Any chance that you could grab a screen shot and post it to
alt.binaries.schematics.electronic?

You can use a two channel scope if you really have to, by walking up and
down the signals pair-wise, but a logic analyzer makes it much, much
easier.

The Ant8 or Ant16 from Rocky Logic www.rockylogic.com [1] aren't too
expensive and either would do the trick. I used an Ant8 from right when
they became available as a portable, stick-it-in-the-laptop-bag tester.
Recently sold it and got a LogicPort device that I've been very happy
with: http://www.pctestinstruments.com/. Very rarely ever use the boat
anchor "real" logic analyzer in the lab any more.

[1] Their server is reporting 403 Forbidden today. Don't know what's up
with that.

--
Rich Webb Norfolk, VA
Back to top
damir
Guest





Posted: Wed Dec 28, 2005 5:15 pm    Post subject: Re: Experience with AD5328 DAC Reply with quote

Sync is stable low before first clock high-to-low transition, and goes high
after last clock.

I shift out (change) data while SCLK is high and data is stable for 500 ns
before SCLK falling edge - I will try to change protocol and change data on
the SDA line at the SCLK rising edge - but I doubt that this will make any
change.

I will also try to capture screens from the scope and post images on the
binaries group.

Thanks for help - to you and Rich!

Damir



"Dan Henry" <usenet@danlhenry.com> wrote in message
news:2160r1htg28s2gmd5u4n6dqn8gnd21el6n@4ax.com...
Quote:
On Mon, 26 Dec 2005 09:43:48 +0100, "damir" <dzagar@BRISIsrce.hr
wrote:
"Dan Henry" <usenet@danlhenry.com> wrote in message
news:pbcrq1t45ehj61evv5b1o4lmfu47vldt6f@4ax.com...
On Sat, 24 Dec 2005 15:18:28 +0100, "damir" <dzagar@BRISIsrce.hr
wrote:

Hi,

Did anyone used this (or similar) DAC from Analog Devices.

I have severe communication protocol problems - I've implemented several
software versions, attached it to SPI - and I cannot get channels to
update
correctly or to send commands.

Damir

Yes, similar and without problems. It's hard to give more help than
that with what little information you have provided. Sorry.

As mentioned in the datasheet, I've implemented in software SPI protocol
with CPOL=0, CPHA=1 (clock active low, shift data out on the falling SCLK
edge). The problem is that on DAC update only channel A is updated and
only
values 2^n-1 (1, 3,..., 127,...1023, 2047, 4095) are accepted. Even
commands
(like 'reset') are not executed. I even tried different versions of the
protocol (allways shifting on falling SCLK edge) but without any success.
LDAC pin is permanently tied low.

Datasheet mentions (in timing diagram) that all values are specified with
tr=tf=5ns. I don't know if this is the constraint, as in my case rise and
fall times are more than 50 ns.

DAC behaviour is really strange... and I'm out of ideas what may me wrong.

Perhaps a framing problem -- what about the SYNC signal?

--
Dan Henry
Back to top
Dan Henry
Guest





Posted: Thu Dec 29, 2005 9:15 am    Post subject: Re: Experience with AD5328 DAC Reply with quote

On Wed, 28 Dec 2005 17:48:01 +0100, "damir" <dzagar@BRISIsrce.hr>
wrote:

Quote:
Sync is stable low before first clock high-to-low transition, and goes high
after last clock.

I shift out (change) data while SCLK is high and data is stable for 500 ns
before SCLK falling edge - I will try to change protocol and change data on
the SDA line at the SCLK rising edge - but I doubt that this will make any
change.

I will also try to capture screens from the scope and post images on the
binaries group.

Please post here saying that you did. Of my two Usenet access means,
one does not allow access to the alt.* groups. I would like to know
if/when to look for scope captures.

Quote:
"Dan Henry" <usenet@danlhenry.com> wrote in message
news:2160r1htg28s2gmd5u4n6dqn8gnd21el6n@4ax.com...
On Mon, 26 Dec 2005 09:43:48 +0100, "damir" <dzagar@BRISIsrce.hr
wrote:
"Dan Henry" <usenet@danlhenry.com> wrote in message
news:pbcrq1t45ehj61evv5b1o4lmfu47vldt6f@4ax.com...
On Sat, 24 Dec 2005 15:18:28 +0100, "damir" <dzagar@BRISIsrce.hr
wrote:

Hi,

Did anyone used this (or similar) DAC from Analog Devices.

I have severe communication protocol problems - I've implemented several
software versions, attached it to SPI - and I cannot get channels to
update
correctly or to send commands.

Damir

Yes, similar and without problems. It's hard to give more help than
that with what little information you have provided. Sorry.

As mentioned in the datasheet, I've implemented in software SPI protocol
with CPOL=0, CPHA=1 (clock active low, shift data out on the falling SCLK
edge). The problem is that on DAC update only channel A is updated and
only
values 2^n-1 (1, 3,..., 127,...1023, 2047, 4095) are accepted. Even
commands
(like 'reset') are not executed. I even tried different versions of the
protocol (allways shifting on falling SCLK edge) but without any success.
LDAC pin is permanently tied low.

Datasheet mentions (in timing diagram) that all values are specified with
tr=tf=5ns. I don't know if this is the constraint, as in my case rise and
fall times are more than 50 ns.

DAC behaviour is really strange... and I'm out of ideas what may me wrong.

Perhaps a framing problem -- what about the SYNC signal?

--
Dan Henry


--
Dan Henry
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB