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

Interfacing SM9333 with PIC 18F46K22 using I2C

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



Joined: 29 Jan 2019
Posts: 6
Location: Pakistan

View user's profile Send private message

Interfacing SM9333 with PIC 18F46K22 using I2C
PostPosted: Fri Jan 08, 2021 5:43 am     Reply with quote

I want to interface SM0333 differential pressure sensor with PIC18F46K22 using I2C protocol. Is there any library for this? How could I do this? Kindly help me out for this.

https://www.amsys-sensor.com/products/pressure-sensor/sm9333-sm9336-bidirectional-low-pressure-sensor-in-soic/
temtronic



Joined: 01 Jul 2010
Posts: 9221
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Jan 08, 2021 5:45 pm     Reply with quote

as a start...

1st program to run would be PCM P's 'I2C scanner' from the code library. It will confirm your PIC can 'see' the device.

2nd use the datasheet and confirm you can read the various registers and that they contain the default values.

Creating the driver depends on how many features you need. Usually the mfr will have 'basic test code' that you can use as a 'template' to at least test the device.

Try asking Google for a driver ! Often, others have written one, for another micro, different language BUT by it's not that hard to 'transpose' or 'recode' into CCS C. Start with a basic function, get it working, then add others. Do NOT code the entire driver in one sitting.
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