EmbDev.net

Forum: µC & Digital Electronics Sensirion SHT71 with PIC18F2550


Author: Marius H. (Guest)
Posted on:
Attached files:

Rate this post
0 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

Author: oli (Guest)
Posted on:

Rate this post
0 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.

Author: Marius H. (Guest)
Posted on:
Attached files:

Rate this post
0 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.

Author: oli (Guest)
Posted on:

Rate this post
0 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.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.