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.

  • \$\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, 2014 at 12:03
  • \$\begingroup\$ Can we connect Dq to PSEN~ (PSEN bar)? PSEN~ is I/O pin? \$\endgroup\$ Nov 25, 2014 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, 2014 at 20:57

1 Answer 1


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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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