3arduino Communications
3arduino Communications
- If USB connection is not used, Pin 0 and Pin 1 can be used communicate with
other devices such as GPS device, etc.
- At every clock tick, a new bit is sent through the data line.
- The master can send data to all other devices at the same time and that is called
as broadcast.
- If you want to send data to a specific device, use the addressing scheme and
simply a number.
- SDA line is also implemented on pin A4, and SCL is implemented on pin A5.
- Data flows in one direction at a time.
3 – SPI (Serial Peripheral Interface)
- Much faster communication compared to TWI
- SPI is full duplex.
- SS (slave select) lines are used to turn on and off one of SPI
slaves.
- Set the line you want to communicate high (On), and set all the
other to low (Off).