Data Sheet
22
ETHERIO24TCPDATASHEET
SerialCommunicationsModes(ViaI/OPorts)
SerialCommunicationsModesincludeSPIModeandI2CMode.ThePortMode
issetaspartofthePower‐upOptionsintheEtherIO24TCPJavaApplet.
OncetheModeisset,allcommunicationsaredoneusingtheSCommandas
setoutbelow.
SENDSERIALDATAONPORTA
Command
Sent
ASCII
Code
Bytes Data
Function
SendsoutSerial*dataonPORTA.The
numberofdatabytesissentoutfirst
followedbythedata.Thereturndatawill
automaticallybeclockedinandsentback
inthecommandreply.
*SerialDatamaybeSPIorI2C,depending
onPortMode
SA
2+#data
bytes+
data
#data
bytes+
data
Command
Reply
(SPIMode)
ASCII
Code
Bytes Data
SA
2+#data
bytes+
data
Return
data
Command
Reply
(I2CMode)
1
ASCII
Code
Bytes Data
SA
2+#data
bytes+
data
Data
1
I2CModeonlyreturnsdataonReadCommands.
Operation:SendsoutSerialdataonPORTA.ThecommandconsistsofSAwhichtells
thefirmwarethatSerialdatawillbesentonPORTA,thenthenumberofdatabytes
tobesentoutfollowedbythedatabytes.Belowaresomeexamplesofthecommands
©
2013ElexolPtyLtd Revision1.3