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

SHT21 Sample Code for PIC

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



Joined: 13 Jan 2011
Posts: 1

View user's profile Send private message

SHT21 Sample Code for PIC
PostPosted: Fri Jan 14, 2011 5:30 am     Reply with quote

hello

I'm just starting out in Micro controllers. I want to get to understand I2C and how to set up the communications for it. I was hoping someone may have sample code for the SHT21 sensor that uses I2C. I would really appreciate it if someone would help me on how to get it going or share the code with me.

Thank you very much
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Fri Jan 14, 2011 9:31 am     Reply with quote

The SHTXX series sensor is not Truely I2C compliant. They do use the standard I2C command structure but the Start sequence is a little different. If you want to learn how I2C functions you might want to grab a small eeprom and start working with that. You would be able to send it commands, write data to it and then read that data back to verify the data was sent properly. This would allow you to verify your actions.

There are several posts regarding I2C communications on this forum. Also, I believe there is code that has been posted to work with the SHT series sensors.

Ronald
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