CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

AD7731

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
TL



Joined: 15 Sep 2003
Posts: 75

View user's profile Send private message

AD7731
PostPosted: Wed Feb 28, 2007 9:18 am     Reply with quote

I'm working on the AD7731 (24 bit sigma delta ADC) but am having 2 problems:

1. After I configured the filter and mode registers, and performed calibrations, the contents of the status register were read but it is wrong because the STEADY bit is 1 instead of 0. This means the internal AD7731 filter is not settled (i.e. not steady).

2. In bipolar mode, Vref=2.5V and input vdiff = 0V (AIN1=2.5V, AIN2=2.5V), the DOUT pin sends out 16,777,215 instead of 8,388,608 (mid count).

Has anyone had the above problems? Has anyone got the AD7731 working?

Thanks.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Feb 28, 2007 11:48 am     Reply with quote

One possible reason for these two symptoms is that your software
driver is "off by 1". It's losing the first bit (the MSB), so everything
is shifted left by 1 bit position. This could also account for the \STDY
bit being in a constant high state. Because of the left-shift, you would
not be reading the correct bit.

Another possibility is that you have the chip in the wrong mode.
The \STDY bit acts differently if the chip is in FASTStep� mode.
TL



Joined: 15 Sep 2003
Posts: 75

View user's profile Send private message

PostPosted: Fri Mar 02, 2007 9:45 am     Reply with quote

Thanks PCM Programmer for replying.

After more investigation, I found out the actual cause was due to the mode register set incorrectly, hence the 2 problems found.
joven



Joined: 30 Jan 2007
Posts: 56
Location: Viana do Castelo - Portugal

View user's profile Send private message

PostPosted: Thu Mar 08, 2007 7:38 am     Reply with quote

Hi TL

Can you post the driver?

Thanks
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group