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?
Thank You
Anuj
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)
Cb1_mobile,
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.
@Anuj,
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...