FreqMeasureMulti and pinMode

Status
Not open for further replies.

dauntless89

Well-known member
Hello all,

I am attempting to measure 3 pulse signals. I had this project going on a Due but moved it to a 3.2. My circuitry is configured for internal pullups, and just now, altering the source code to move it over to the Teensy, (implementing FreqMeasureMulti) I cannot find any information on declaring those three pins as INPUT_PULLUP in conjunction with this library.

None of the examples show pinMode being used, which leaves me assuming it's either not needed (and implemented within the library, I checked and didn't see anything that looked like an answer) or it's not compatible, in which case I'd like to add external pullups before this device is back inside it's machine.

Please advise.

Thanks,
Tony
 
PinMode() will cause the pins to be rerouted to the GPIO while FreqMeasure and FreqMeasureMulti configure them as direct FTM channel inputs. So, there is no way to use the internal pullup mechanism (which is handled by the GPIO engine) for use with the FTM. Pull up resistors (if needed) would thus have to be external.
 
Status
Not open for further replies.
Back
Top