Sanity check needed regarding a possible PulsePosition modification.
I am trying to capture data at 48MHz, similar to what was done here:
https://trmm.net/Lighthouse
https://github.com/osresearch/lighthouse/blob/master/firmware/InputCapture.cpp
But, instead of using the simpler TS3633, I am using its successor:
https://www.triadsemi.com/product/ts4231/
The problem is that the TS4231 uses two pins, E and D, as input as well as output.
There is a somewhat involved (and timing dependent) setup and configuration to be done:
https://github.com/TriadSemi/TS4231/blob/master/ts4231.cpp
My question is this: is it reasonable to attempt to do this setup and config using PulsePosition?
Is it at least theoretically possible to modify PulsePosition to do I/O in this manner, on the same pin?
Is it sensible to try to add something like
bool begin(uint8_t txPin);
bool end(uint8_t txPin);
to allow for switching back and forth between PulsePositionOutput and PulsePositionInput on the same pin?
Thanks!
I am trying to capture data at 48MHz, similar to what was done here:
https://trmm.net/Lighthouse
https://github.com/osresearch/lighthouse/blob/master/firmware/InputCapture.cpp
But, instead of using the simpler TS3633, I am using its successor:
https://www.triadsemi.com/product/ts4231/
The problem is that the TS4231 uses two pins, E and D, as input as well as output.
There is a somewhat involved (and timing dependent) setup and configuration to be done:
https://github.com/TriadSemi/TS4231/blob/master/ts4231.cpp
My question is this: is it reasonable to attempt to do this setup and config using PulsePosition?
Is it at least theoretically possible to modify PulsePosition to do I/O in this manner, on the same pin?
Is it sensible to try to add something like
bool begin(uint8_t txPin);
bool end(uint8_t txPin);
to allow for switching back and forth between PulsePositionOutput and PulsePositionInput on the same pin?
Thanks!