Configuration problem by using 13192SARD boards and the SHT11 humidity

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Configuration problem by using 13192SARD boards and the SHT11 humidity

2,840 Views
psy
Contributor I
I have to built up a wireless sensor network by using the 13192SARD boards and the SHT11 humidity sensors.I have a problem in the configuration of the I/O ports of this board and the sensor pins.May anyone experience about it and  tell me about the solution ?Thanks in advance....
Labels (1)
0 Kudos
8 Replies

673 Views
psy
Contributor I
Thanks.And for the hardware configuration,if i want to use the PTB 0 and PTB 1,so i have to connect the DATA pin of the sensor to PTB 0 and SCK pin to PTB 1...It is true ??
0 Kudos

673 Views
bigmac
Specialist III
Hello,
 
You are correct.  However, as explained in a previous thread, the control of the DATA line will need to differ from the sample code, for the HCS08 MCU to be compatible with SHT11 requirements - the DATA signal must never be driven high.  This is achieved by controlling the DDR bit, rather than the port register bit.
 
For example,
Initialise DATA and CLOCK lines with -
PTBD_PTBD0 = 0;    /* This setting not altered */
PTBDD_PTBDD1 = 1;  /* CLOCK line is output */
 
Set DATA line low -
PTBDD_PTBDD0 = 1;  /* Set pin for output */
 
Set DATA line high -
PTBDD_PTBDD0 = 0;  /* Set pin for input/high-Z */
 
Set CLOCK line low -
PTBD_PTBD1 = 0;
 
Set CLOCK line high -
PTBD_PTBD1 = 1;
 
Regards,
Mac
 
0 Kudos

673 Views
psy
Contributor I
For the hardware configuration,if the sensor need 3V of VDD to operate,hw i can get the 3V of VDD from the 13192SARD board?Thanks
0 Kudos

673 Views
peg
Senior Contributor IV
Hi psy,

3 volts is available at J103.
It is marked J103 and 3V and + -.

0 Kudos

673 Views
psy
Contributor I
Hi,
If the sensor need 5V of VDD to operate,hw i can get the 5V of VDD from the 13192SARD board?Thanks
0 Kudos

673 Views
peg
Senior Contributor IV
Hi psy,
Well you can use the :smileyminus: pin from J103 and TP104 on the back is 5V. There is no easy way!

0 Kudos

673 Views
bigmac
Specialist III
Hello,
 
If you wish to operate the SHT11 sensor from Vdd = 5 volt, keep in mind that you will require the complication of additional buffering between the MCU and the sensor - a direct connection would unlikely be feasible.
 
For reliable operation, the minimum logic high input to the sensor needs to be greater than 4.0 volt, well above the output level provided by the MCU.  To prevent damage to the MCU, the pull-up resistor on the data line would need to be sourced from the MCU Vdd.
 
There has been discussion of voltage comptibility issues in the following recent thread -
 
Since the data line interface for the sensor requires an "open drain" configuration, the interface method will need to accommodate this requirement.  Obvioulsy, it would be much simpler if the sensor Vdd is the same as that for the MCU.
 
Regards,
Mac
 
0 Kudos

673 Views
bigmac
Specialist III
Hello, and welcome to the forum.
 
The interface requrements for the SHT11 humidity sensor have previously been discussed on this forum.  The following thread also provides a link to an earlier thread containing additional information -
 
The sample code provided by Sensirion will need some adaption to suit the I/O of the Freescale device.  Another issue might be the avoidance of floating point calculations, tor the calculation of temperature and humidity.  Both these issues were discussed.
 
Regards,
Mac
 
0 Kudos