Sensirion SHT71 with PIC18F2550

Guest #1991049
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
Attached files:
Guest #1992598
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.
Guest #1993048
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.
Attached files:
Guest #1993343
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.

Reply

A question of your own? This thread is over 15 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.