I am using LM3S615 to monitor a sensor which has two signals one is output and the other is bidirectional, I wanted to know how to configure a GPIO pin as bidirectional should i keep it under hardware control?
Suspect response will be more coherent if you post sensor doc or link... Safest if you can employ Open Drain Stellaris Output Config - using pull-up R. You must prevent sensor & Stellaris outputs both active @ the same time - series R good preventive mechanism... (we need sensor data sheet)
The link to the sensor datasheet is as below.
http://www.sensirion.com/en/pdf/product_information/Datasheet-humidity-sensor-SHT1x.pdf, I cant use the R series of stellaris as I have to use only LM3S615.
The "R" I was referring to was a series resistor - placed between your Stellaris GPIO and the bi-directional pin of the sensor. It is used as a safety mechanism - just in case. (unaware of any Stellaris "R" Series) Once you've tested/verified your code - know that it's stable - you can remove or shunt out this series R - but it can "save" both your MCU & sensor should you make a serious mistake.
As you've identified the sensor - seem to recall that exact device was very well covered right here - on this forum. (use the "Search Community" (this forum) box above these posts - enter SHT sensor.) Believe that sensor is I2C - which does employ the Open Drain technique I mentioned - you will need pull up resistors on both clock and data (bi-di) lines. Do search for the past post - should have everything that you need...
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.