Hello folks!
First of all: Thank you for all the great work and help you already provided me! I profited a lot from just reading from the forum and other users questions.
For now I am stuck with a little problem, where I need help. I couldn't find the solution or hints so far anywhere in this forum. This may be related to the fact that I don't really know what I have to search for. So here is my problem:
Board: Teensy 4.0
Task:
High speed reading of a couple of inputs into an array/buffer.
Signal:
Distance between Signals:
Zoomed Signal:
The input signal which has to be analyzed looks as in the images above. The input is general high and drops to low upon measurement/programstart. The measurement should be initialized with an interrupt (FALLING).
The zoomed signal contains the part of the signal, which contains the information needed and is repeated several times. In the image above there is one bit out of a total of 16 possible bits low. There may be up to 4 bits low.
I want to read the zoomed signal into a 16bit (or 2x8bit) value. As the zoomed signal contains 16bit.
Timings:
time for one bit: ~40us
time for 16 bits: ~779us
How can I implement this reliably and good? Unfortunately I do not have any possibility in making this signal slower in order to get it to work with digitalRead().
Thank you for any help!
First of all: Thank you for all the great work and help you already provided me! I profited a lot from just reading from the forum and other users questions.
For now I am stuck with a little problem, where I need help. I couldn't find the solution or hints so far anywhere in this forum. This may be related to the fact that I don't really know what I have to search for. So here is my problem:
Board: Teensy 4.0
Task:
High speed reading of a couple of inputs into an array/buffer.
Signal:
Distance between Signals:
Zoomed Signal:
The input signal which has to be analyzed looks as in the images above. The input is general high and drops to low upon measurement/programstart. The measurement should be initialized with an interrupt (FALLING).
The zoomed signal contains the part of the signal, which contains the information needed and is repeated several times. In the image above there is one bit out of a total of 16 possible bits low. There may be up to 4 bits low.
I want to read the zoomed signal into a 16bit (or 2x8bit) value. As the zoomed signal contains 16bit.
Timings:
time for one bit: ~40us
time for 16 bits: ~779us
How can I implement this reliably and good? Unfortunately I do not have any possibility in making this signal slower in order to get it to work with digitalRead().
Thank you for any help!