John A. Zoidberg
02-26-2012, 09:21 AM
Hey there ladies and gentlemen,
I'm reproducing one of the example circuits in an old book by Myke Predko "Programming and Customizing the PIC Microcontroller", and found a simple temperature sensor based on the DS18S20.
However, due to the RTOS inside in the particular system, bit-banging is a no-go, I tried doing that and it stalled the system pretty badly.
So, by using hardware UART, I may be able to sample the temperature easily, but in the Maxim's application note: http://www.maxim-ic.com/app-notes/index.mvp/id/214 I need a open-drain buffer.
Unfortunately I may not be able to get 2N7002 in my place, or those specialized drivers mentioned inside. Could I just use a non-inverting buffer (CD4010) to replace these instead?
I'm reproducing one of the example circuits in an old book by Myke Predko "Programming and Customizing the PIC Microcontroller", and found a simple temperature sensor based on the DS18S20.
However, due to the RTOS inside in the particular system, bit-banging is a no-go, I tried doing that and it stalled the system pretty badly.
So, by using hardware UART, I may be able to sample the temperature easily, but in the Maxim's application note: http://www.maxim-ic.com/app-notes/index.mvp/id/214 I need a open-drain buffer.
Unfortunately I may not be able to get 2N7002 in my place, or those specialized drivers mentioned inside. Could I just use a non-inverting buffer (CD4010) to replace these instead?