0
\$\begingroup\$

DS18B20 temp sensor IC Dq pin is connected to PSEN of controller in my application.

But in datasheet its mentioned that its connected to I/O port.

And second doubt is how I/O port senses temp? It should be connected to ADC pin of controller.

\$\endgroup\$
  • \$\begingroup\$ The DS18B20 doesn't need to be connected to an ADC, as it works digitally. You probably want to search about how to implement 1-Wire using your microcontroller (I'd guess it's an 8051 because you said PSEN). \$\endgroup\$ – Renan Nov 25 '14 at 12:03
  • \$\begingroup\$ Can we connect Dq to PSEN~ (PSEN bar)? PSEN~ is I/O pin? \$\endgroup\$ – Techknowlogic Nov 25 '14 at 14:27
  • \$\begingroup\$ I don't know (never used the 8051) but from searching around, PSEN is not an I/O pin, therefore you can't. \$\endgroup\$ – Renan Nov 25 '14 at 20:57
4
\$\begingroup\$

DS18B20 is a digital Thermometer, thus you will not need any ADC. DS18B20 communicates with microcontroller through 1-wire protocol. You can also implement 1-wire protocol using GPIO. see below link for more details on software implementation of 1-wire protocol http://www.maximintegrated.com/en/app-notes/index.mvp/id/126

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.