EmbDev.net

Forum: µC & Digital Electronics Sensirion SHT71 with PIC18F2550


von Marius H. (Guest)


Attached files:

Rate this post
useful
not useful
Hi,

I'm having problems interfacing a Sensirion SHT71 with a PIC18F2550. I 
want to measure the humidity and send it via EUSART to the PC, but I get 
nothing on the PC side. I've used the EUSART several times so that is 
not the problem. I've attached my assemblerlisting and I hope someone 
can help me.

Thanks in advance,
Marius

von oli (Guest)


Rate this post
useful
not useful
You should use a scope an check out the communication step by step.
Get some Debug-Informations too. I guess you are using MPLAB. So check 
out the Debug-mode (View->Watch) It's very helpfull.

Btw: The error is hard to tell, if you dont name the problem more 
precisely.

von Marius H. (Guest)


Attached files:

Rate this post
useful
not useful
Unfortunately I don't have a scope. It seems like there's a problem with 
sending a command. On the ACK impulse I can see that the sensor pulls 
the DATA line low (line 144), but it doesn't pull it high afterwards 
like it's shown in the datasheet.

von oli (Guest)


Rate this post
useful
not useful
my assembler isn't that good.
maybe it's a timing problem. try to slow the clock down. but it could be 
one of many things. you should really use that debugger and check all 
signals step by step.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.