Hi!
I have a Teensy 3.5 and multiple digital sensors whose output pins are connected to the Teensy. I want to obtain the data from the sensors as fast as possible. For that, I think I have 3 options:
1) read them with digitalReadFast
2) port manipulation
3) DMA (the data from the pins directly go to the memory, although I don't know if this is possible, and I have no knowledge on how to implement the DMA)
Which method do you think is the fastest? I really need help as I have a contest in a few days and I really need this.
Thank you very much!
Mihai
I have a Teensy 3.5 and multiple digital sensors whose output pins are connected to the Teensy. I want to obtain the data from the sensors as fast as possible. For that, I think I have 3 options:
1) read them with digitalReadFast
2) port manipulation
3) DMA (the data from the pins directly go to the memory, although I don't know if this is possible, and I have no knowledge on how to implement the DMA)
Which method do you think is the fastest? I really need help as I have a contest in a few days and I really need this.
Thank you very much!
Mihai