The arduino appears to have three main forms of communication SPI, TWI, UART. SPINot knowing what anything does, the Serial Peripheral Interface (SPI) looks like an interesting way to go, since the quadrature decoder chip LS7366 (supplier)uses it. It is a "four-wire" serial bus that has the following lines:
The Arduino has a control register for setting the SPI parameters called SPCR. The register is filled as:
TWIAnother communication protocol, this is Two Wire Interface (TWI). Like it sounds it uses two-wires for the serial interface. I might use this for a port expander, check out TI ICs for expanding the port.UARTI checked out the Universal Asynchronous Receiver/Transmitter (UART). I have a feeling this is mostly for the serial interface to the computer. At the moment I don't know what else you can do with it. |