86
Remote Control
ASa1 Oetol ond Hex fofmots.. Codes 30..37 and 50.SS
Eact\ or 1hoso formals has a �tart ona ond code. and SLmllOr oddteM one! sumcheck spec
lfb:rt
l
oN
.
Too ligure illustrates 4 dote bytes coded In each
°'
1h8 Q ASCII-Odo
!
and Hei,; tormots. Dato in thew
formals Is organized Ir'\ �uen
t
la
l
� sepocated by the exec!Jle cnoroctet ($po08. per-cant.
opostropf1a er commo). Characters tmmedio1ely precee11ng 1fle ex
oou
l
e character ore lnlerpretecJ as
data. ASCII-Hex ond
Oc
!a
l
tofmafs con express 8'blt doto, b'( 2 or 3 octal, or 1 or 2 hex chomcters.
Line faedr;, carriage re1vms aoo olher choroctcrs moy be inch.r,ded In 1ne data stroorri os long C$ o
dato byte directly precedes each execute charoc er,
A
l
1
hough each dote OVI0 ha5 an address, m05l ore
i
m
plied
.
Dale t,vtos ore oddrassad
s
e
q
uen
t
ia
l
!
'(
unleS$ on e-.cpllcn oddr�s
is
lnclve1ed 11'1 !he da1o stream, lhis address
is.
precedea 'o/
o "SN
and or1
''A", musl oon.1ojn 2 lo 4 hei,; or 3 to 6 octal choroclers. and mvst be fo
l
lO\
o;e,ct by o oomma, except ,Or
1he ASCII-Hex (Comma) format, which uses a parioCI Tl1e programmer skips to lhe n,e,,1 oodr8SS lo
store tM next data b'(te; succe8dmg bytes are again stored seouenlio llv,
Eooh rormot hos an end cooe. Which termlnoros input oper
a
l
l
on
$
.
Hoo'1e\lOC ii o r'l8'll start code follows
wi1hln 16 ctioroctars ot on and coda lnpu1 wlCI contlnue unlntOl'l'Upled.
After receNlng U'le nnor end 0000 follOWing an Input operation. 1he programmer oolculot(l$ a
sumcheck ot air Incoming dale. Opt
l
ono
l
i
'(
.
a sumchecl( 0011 also be on19reel in 1he inpul data
S1ream. The programmer compares this sumcheck with its own colcula1ed $Umchecl(. If they malel'I.
the programmer wtll di�loy 1he surnchecl(; Ir not, a surncheck err()( wlll be CIIWIO'l'E}d.
NOTE
The Sllmcheck field cons/sis or eitlier Z-4 001< or 3-6 octor dJgi� sam:Jwicheo betwee
n
"$s ··
onct ··. - cfloroctan. The sumcheck immedlatelv fOlk:t,vs on end ooda It is optlonc;ri In tne
Input mode bvt o.f\lla';'S Included In the out
p
ut mode. The most st'gn,YICanl dig/I of Iha
$1JmCh8Ck mov be O or 1 ,vtien 8Xprening 16 bits as 6 00101 c/mrocter.;,
Output Is be111Jn t,f ln'iOKlrig on ou1put-to-porl Open;rt
l
oo
.
The programmer divid� the output data
l
n
1
0 8-lrne bk.>Cks. Dalo tmnsmlssion is begun wilh lhe start coda. a nonprintobte SJX. optlooolly SOH:
Doto blacks follow. eoctl ooo prefooed t,/ an addr�-s tor the llrst d'ata by1e in the bCoct<
.
The end 01
tronsmls$1on Is slgnollec:I O'f the end coda. a noflprJnlObla BX. Directly followlng
,
� and code is a
�rnche,c;x of the lronstorroo dole.
' ASCII-Octo1 SMS nnd ASCn.fJ,q,: SMS us& SOM tCTRl. RI a, a start Code a� tOM iCTRI. D as an end COde.
•
•
•