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 support@ccsinfo.com

MCP3021 not working only able to read upper 4 bits

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



Joined: 12 Oct 2010
Posts: 1
Location: Indore, India

View user's profile Send private message Send e-mail Visit poster's website

MCP3021 not working only able to read upper 4 bits
PostPosted: Tue Oct 12, 2010 8:44 am     Reply with quote

Hi there!
I make a code to comunicate with a i2c mcp3021 device.
But I am only able to read read upper 4 bits of ADC and after that it gives NAK bit on next pulse and I am not able to receive any more data.
_________________
Regards
Girish
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Tue Oct 12, 2010 9:12 am     Reply with quote

You may want to show the code.
trirath



Joined: 14 Jun 2010
Posts: 20
Location: Pathunthanee Thailand

View user's profile Send private message

PostPosted: Sat Nov 20, 2010 8:24 am     Reply with quote

There are many example code in this forum you can search MCP3202, MCP3204 or MCP32.
Anyway, CCS Complier provided driver in directory Driver MCP3204 and MCP3208 that work. When I adapted to MCP3202 that work fine.
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