Problem with codes for SHT11 with Bascom 8051

Status
Not open for further replies.

Trishool

Full Member level 1
Joined
Jul 12, 2001
Messages
97
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Location
Himalayas.(mount K2)
Activity points
821
Hi ,

Anyone tried writing codes for SHT11 with bascom 8051 , I am doing but there are some errors ,
all the time the Humidity and temperature O/P is:

Humidity = 5
Temperature = -10

I dont know why this , is the sensor faulty , or there is some probs with the coding . Anyone has done this before using bascom8051 compiler .


Regards
Ts
 

sht11 bascom

Hi,
Since BASCOM allows assembly routines, may be you can write routines in Assembly for basic measurement, have a look at the post for some ideas for assembly routines, if it helps you.
Regards,
Laktronics
 

    Trishool

    Points: 2
    Helpful Answer Positive Rating
Re: SHT11 B@scom-8051

Hi,
I'm using a 8051 based SOC(CC2430 from TI) and it a 32MHz
I went through the sample codes given in the SHT11 data sheet . But they didnt tell about how to get an 1MHz clock cycle..
and also they are using a bi directional pin to put the data OUT and IN..
But My device wont support that bidirectional pin.. How to do that..

Pls help me.. I'm struggling for this...


regards
chethan
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…