Data Sheet

26
ETHERIO24TCPDATASHEET
BASICOVERVIEWOFSERIALCOMMUNICATIONSTOSPIACCESSORYBOARDS
Listedbelowisabasicoverviewoftheprocedurethatneedstobe
followedinordertocommunicatewiththeboard.
1. ConfigurethePortforSPIModeusingtheWebbasedJava
Application.
2. SetupPortValuesonEtherIO24TCPforidlestateonSPIBoard
3. LowertheCSpinforchipcommunication
4. StartSPIcommunicationbysendingstartbyte
5. SendControlByteorwritecommandregisters
6. SendNullBytesifresponseisrequired.Thisisdonetokeepthe
SPIclockgoingornoresponseswillbeclockedin
7. RaisetheCSpinbacktoidlestate.
8. RepeatfromStep3forothercommands.
Thecodingexamplesbelowgointomoredetailofwhatcommandsareissued
totheboard.InthiscasethecommandsoutlinedarefortheAnalogboard.
SETTINGUPTHEPORTONTHEETHERIO24TCPFORSPICOMMUNICATIONSTOTHE
ANALOGBOARD
CommunicationtotheAnalogboardisviaSPIfromtheportofEtherIO24
TCP.Howevertheportdirectionandpinswillneedtobesetupbefore
communicationcanbeginwiththeboard.Belowaretheconfigurationsthat
needtobesetupontheEtherIO24TCPfortheanalogboard.
I/024
COMMAND
DESCRIPTION
A0x79 SetCSforA/DandD/Atoidlestate
A0x71 LowerCSforA/DandD/Atoidlestate
A0x78 LowerCSforD/AandA/Dtoidlestate
A0x38 LowerCSforD/AandsetLDACtohigh
A0x68 LowerLDAC

©
2013ElexolPtyLtd Revision1.3