jassu
September 13, 2014, 2:09pm
1
I plan to work on Arduino Mega or Arduino Due Boards for my development work.
For this I plan to integrate and use following
1.8" TFT display shield with joystick and SD card working on SPI.
16/24 bit ADC on I2C.
Temperature and Humidity control ICs working on I2C.
A multichannle DAC chip, again on I2C
Maybe few more chips for future expansion.
My Queries are:
A) Can ARduino Mega/Due handle multiple SPI or I2C devices?
B) Does the maximum devices handles depends on configuring spare digital I/O pins?
C) Can any pin be reconfigured for SPI or I2C, or the only pins mentioned in datasheet of board are allowed?
Please let me know if I can go ahead with these boards or I need to find other development board.
Thnx & Regards
jassu
Well, no one answered probably because all the answers can be found in the respective manuals/datasheets.
Hint: If you find the answer to the first question, you will find the answers to the rest if you keep reading.
I will tell you the short answer to A, Yes.
Valen
September 15, 2014, 10:49am
3
Learning a bit about the protocols themselves would also answer part of your questions in general:
The Arduinos have dedicated i/o pins and internal circuitry for it, but can be so called ‘bitbanged’ with other i/o pins if the need arises. (software controlling the pin states) It would come with a significant bandwith reduction and more lag though.
I2C:
http://en.wikipedia.org/wiki/I2C
SPI:
[<LINK_TEXT text=“http://en.wikipedia.org/wiki/Serial_Per … erface_Bus”>http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus</LINK_TEXT> ](Serial Peripheral Interface - Wikipedia )