'Encoder for Rookey Kit 'v1.0, 04/29/07 'G.Heron, N2APB ' 'This is the code for the general purpose encoding of two bits (code0 and code1) 'that will be decoded in the Decoder program to select one of four functions. ' '116 is approx 1000 Hz in sound command 'pin 0 is dedicated to programming' 'pins 1-3 are inputs; high is active 'pin 4 is tone output symbol code0 = pin1 symbol code1 = pin2 '**************** 'START OF PROGRAM '**************** main: sound 4, (116,50) 'output 500ms start pulse pause 50 'wait 50ms for start pulse delimiter ;Send codes 0 and 1, based on state of jumper block if code0 = 0 then m1 sound 4, (116,5) goto m2 m1: pause 50 m2: if code1 = 0 then m3 sound 4, (116,5) goto Send_Stop m3: pause 50 ;Issue 500ms stop delay Send_Stop: pause 500 'output stop pulse goto main 'and go do again