- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I noticed this function in the v2.0.1 API reference guide:
Gets the current state of gpioPortPin.
- Parameters
gpioPortPin The port + pin to sense. period The sampling period in number of 24MHz clock cycles.
- Returns
- The return value is the number of oscillations the capsense input oscillated in period.
Are there any examples of using this function or documentation on the hardware that it uses? Which GPIO pins on the BCM20737/BCM20736S are compatible with this function? What is the oscillation frequency as a function of load capacitance? What (if anything) do I need to do to set up the pin for capacitive measurements?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Based on the comments in captouch_getCurrentState, I was able to figure out how to use the function. A pullup resistor and capacitor on the pin is all that is necessary, and it does not appear to need any other setup (hardware or software). The timing is based on the RC time constant.
Thanks for your help, JT!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello cdarling,
We are researching the oscillation frequency function and will get back to you.
Regarding the Captouch_getCurrentState
- You are correct, these are mentioned in both the BCM2073x devices.
- And we list these in hello_sensor and i2c_temperature_sensor apps.
- Let me check to see if we have had an internal example that implements CapTouch
Thanks
JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Based on the comments in captouch_getCurrentState, I was able to figure out how to use the function. A pullup resistor and capacitor on the pin is all that is necessary, and it does not appear to need any other setup (hardware or software). The timing is based on the RC time constant.
Thanks for your help, JT!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fantastic!
Thanks for sharing!
Let us know if you have further questions.
Have a great Holiday Weekend!
JT