Go Down

Topic: how to access 2 byte data. 16 pins data (Read 536 times) previous topic - next topic

EJLED

hi, guys.

i want to read digital high. 16 bit data. so i need 16 pins . how to write code for DUE board, in core configuration. instead digitalRead(1,HIGH);. for example in Arduino MEGA we write DDRA and PINA.
also i need its acquisition time. any sample code with anyone would be thankful.


Thanks in advance.


MorganS

The best advice I can give you is "don't". Use the Arduino functions. Remember the Due runs at 82MHz so it's already more than 5 times faster than the equivalent on a MEGA.

The Due does have 32-bit 'ports' much like the 8-bit Arduinos. It is documented in the datasheet and the Arduino pinout diagram.
"The problem is in the code you didn't post."

Go Up