I plan on using a 16 bit parallel ADC with the Teensy4.0. Currently, I only know how to read each of the 16 pins individually:
//ADC bit 0 (LSB) //bit 1 //bit 2 //bit 3
ADC_result = digitalRead(PIN_C2) + digitalRead(PIN_C3) <<1 + digitalRead(PIN_C4) <<2 + digitalRead(PIN_D2) <<3 ...etc.
Is there a way to "group" GPIO pins together, so that I can read all of the 16 inputs "at the same time"?
//ADC bit 0 (LSB) //bit 1 //bit 2 //bit 3
ADC_result = digitalRead(PIN_C2) + digitalRead(PIN_C3) <<1 + digitalRead(PIN_C4) <<2 + digitalRead(PIN_D2) <<3 ...etc.
Is there a way to "group" GPIO pins together, so that I can read all of the 16 inputs "at the same time"?