Just looked into the DHT11 datasheet. First approach could be done with counters and a piece of logic.
When that works you could try to conquer by using an UDB and the datapath.
Here is a C file program to read the device you will need to mod it to work on PSOC. I am not sure the one wire program for the ds18b22 will work as this device needs a longer delay for the data.
thank you all for help so far 🙂
I actually tried to prog it myself but I am not sure about the bidirectional pin. Do I have to switch somehow the data direction or can I just use the readpin and writepin functions?
pinstate = readpin();
Thank you all again 🙂
Hi Pavloven. I'm dealing with the DHT22. I'm trying to download your project but the link seems to be not working. Can you share the link again?