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

strange i2c issues...
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Nov 01, 2006 8:29 pm     Reply with quote

Quote:

#define DAC_ADDRESS 0b0101100 // 010=factory, 11=517 setting, 0=ad0 grd, 0=ad1 gnd

The Dac slave address is wrong.

The CCS i2c library routines do not use 7-bit i2c addresses.
They expect the R/W bit (which is bit 0) to be present. You need
to add a 0 onto the end of your address, as shown in bold below:
Quote:

#define DAC_ADDRESS 0b01011000
kam



Joined: 15 Jul 2005
Posts: 59

View user's profile Send private message

PostPosted: Wed Nov 01, 2006 9:41 pm     Reply with quote

Very Happy Very Happy Very Happy I LOVE YOU! Very Happy Very Happy Very Happy

That did the trick (I'm sure along with everything else!)

I can hear my muffled voice! Next step is to change from 20mhz to 40 for faster sampling...then pass the data over bluetooth....

Thank you EVERYONE!

~Kam (^8*
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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