Help a newbie connect the PSOC 5 dev kit to a digital temperature sensor! | Cypress Semiconductor
Help a newbie connect the PSOC 5 dev kit to a digital temperature sensor!
Hello, I'm working with a LMT01LPG temperature sensor from Texas Instruments and am trying to interface with the PSOC 5 kit. The LMT01 outputs a square wave every 54 ms that lasts for up to 50 ms (duration of the communication not size of the wave). The number of pulses during this 50 ms corresponds to the temperature.
I've been trying to figure out how to count the number of pulses properly. Currently I am taking in the input on a standard GPIO with a resistor to bias it per the datasheet's instructions. I have a comparator running with a VDAC as a reference voltage to ensure a good signal. Currently I've been trying to count using a Counter block. The second Counter I have is to theoretically act as what causes a capture of the signal at the end of 50 ms (i don't think this is right). Anyway, none of this works and I get a 0 outputted to my display.
I feel like I'm doing this very wrong. Should I be counting the data entirely on the software side and avoid blocks? I think I'm probably making a number of stupid mistakes. Please point them out and help please!
Attached is a picture of the top design. I can attach the code, but its essentially just read the counter, and display it to my seven segment display.