Data Sheet
18
ETHERIO24TCPDATASHEET
©
2013ElexolPtyLtd Revision1.3
WritePortPull‐upRegister
WritePortAPullUpRegister
ASCII
Code
Bytes Data Function
%A 3 Enable
Writesdatatoport’sdirectionregister.
Lineswithacorrespondingbitvalueof1have
theirpullupresistorsturnedon,lineswith
abitvalueof0havetheirpullupresistors
turnedoff
ThepowerupdefaultforEnableis0;allpullupresistorsturnedoff
Operation:ThiscommandaffectsalleightlinesofportAwhosedirectionisset
asaninput.TheEnableValueiswrittentotheentireportwitheachofthebits
inthebyteaffectingthecorrespondingI/Oline.TochangeasingleI/Oline’s
behaviourwithoutaffectingtheothersitisnecessarytostoretheoldvalueof
theregisterorreaditscurrentvaluebeforewritinganewvaluewithonlythe
correspondingbitschanged.Tosettheentireportwithpullupresistorsturned
onuseEnable=255or0xFFtoturnallthepullupresistorsoffuseEnable=0
or0x00toset0,1,2and3asonand4,5,6and7asoffuseEnable=15or
0x0F.
WritePortBPullUpRegister
ASCII
Code
Bytes Data Function
%B 3 Enable
Writesdatatoport’sdirectionregister.
Lineswithacorrespondingbitvalueof1have
theirpullupresistorsturnedon,lineswith
abitvalueof0havetheirpullupresistors
turnedoff
ThepowerupdefaultforEnableis0;allpullupresistorsturnedoff
Operation:SameoperationasWritePortAPullupRegisterbutimplementedonPort
B
WritePortCPullUpRegister
ASCII
Code
Bytes Data Function
%C 3 Enable
Writesdatatoport’sdirectionregister.
Lineswithacorrespondingbitvalueof1have
theirpullupresistorsturnedon,lineswith
abitvalueof0havetheirpullupresistors
turnedoff
ThepowerupdefaultforEnableis0;allpullupresistorsturnedoff
Operation:SameoperationasWritePortAPullUpRegisterbutimplementedonPort
C