Data Sheet
24
ETHERIO24TCPDATASHEET
OverviewofSPIMode
TheSPIinterfacethatisimplementedontheEtherIO24TCPisavery
basicSPImasterdevicethatallows4differentmodes.TheSPImodeonly
hastheoneclockspeedwhichismentionedbelowinthespecifications.
TheSPIinterfacecanbeusedtocommunicatewithA/D,GPIOExpander,
EEPROMchipstonameafew.Showninthediagrambelowisthetypical
connectionofanSPIdevicetotheEtherIO24TCP.
ConnectiondiagrambetweenEtherIO24TCPPortAandanSPIdevice
Po rt A 0
Po rt A 1
Po rt A 2
Po rt A x
SPI D e v i c
e
Et h e r I/O 2 4
SC L
SD I
SD O
SS / C S
(usually active low)
ListedbelowaretheSPIpinconnectionsusedbytheEtherIO24TCPonall
Ports.
• PortBit0isSerialClock(SCL)andwillbesetasanoutputwhen
inSPIMode
• PortBit1isSerialDataOut(SDO)andwillbesetasanoutput
wheninSPIMode
• PortBit2isSerialDataIn(SDI)andwillbesetasaninputwhen
inSPIMode
• AllotherPortpinsactasnormal
• AnyoftheotherpinscanbeusedasSSorCSwhenSPIisused.CS
pinscanbeactivehighoractivelowdependingonthesetupused.
©
2013ElexolPtyLtd Revision1.3