I am looking for some guidance on reliably detecting external pulses with the Teensy 3.1. I'm using an ISR to detect a pin state change and this is all working well.
The question is about interfacing with the Teensy digital input.
The application is to sense when a normally high signal (2v) momentarily pulses low (1.2v). I'm using voltage divider now to adjust to this voltage level from 13v high, 8v low, but it's not super reliable. Note that the signal never gets to 0v.
The datasheet I'm looking at says that:
VIH HIGH = .70 * 3.3Vdd = 2.31 min for a logic high
VIL LOW = .35 * 3.3Vdd = 1.15 max for a logic low
I measure the digital input voltages at 1.5v = logical low, 1.6v = logical high on the Teensy 3.1. However I understand that perhaps I can't count on this and need to use the datasheet values.
I'm starting to learn about comparators, but it looks like Teensy 3.1 only supports 2 and I would need 4 of these.
Perhaps I need to use an external comparator IC? Trying to keep this simple.
Thanks for any input
The question is about interfacing with the Teensy digital input.
The application is to sense when a normally high signal (2v) momentarily pulses low (1.2v). I'm using voltage divider now to adjust to this voltage level from 13v high, 8v low, but it's not super reliable. Note that the signal never gets to 0v.
The datasheet I'm looking at says that:
VIH HIGH = .70 * 3.3Vdd = 2.31 min for a logic high
VIL LOW = .35 * 3.3Vdd = 1.15 max for a logic low
I measure the digital input voltages at 1.5v = logical low, 1.6v = logical high on the Teensy 3.1. However I understand that perhaps I can't count on this and need to use the datasheet values.
I'm starting to learn about comparators, but it looks like Teensy 3.1 only supports 2 and I would need 4 of these.
Perhaps I need to use an external comparator IC? Trying to keep this simple.
Thanks for any input
Last edited: