Page 277 - Amphibionics : Build Your Own Biologically Inspired Robot
P. 277
Amphibionics 06 3/24/03 9:02 AM Page 256
Amphibionics
PROGRAM 6.9
push_button VAR PORTB.2
transmit-test.bas
program listing txmit_led VAR PORTB.1
(continued) start:
low txmit_led
If push_button = 1 then
serout txmit,tx_baud,["ZA"]
high txmit_led
pause 200
endif
goto start
PROGRAM 6.10 :1000000063289200220884000930930003100D2019
transmit-test.hex file :10001000920C930B072803140D2884139F1D1C2892
listing :10002000000820041F1D20068000841700082004FB
:10003000031C20068000272800082004031C20063B
:100040001F192006800084172009800527281F0D0E
:1000500006398C0030208D008C0A302000004A28A0
:1000600000308A000C0882070134753403341534DB
:1000700000343C340C34D9348F018E00FF308E07AD
:10008000031C8F07031C5E2803308D00DF304A20DD
:100090003E288D01E83E8C008D09FC30031C53285E
:1000A0008C07031850288C0764008D0F50280C18FB
:1000B00059288C1C5D2800005D2808008313031359
:1000C00083126400080083161F3085000430860008
:1000D000831286108316861064008312061D802802
:1000E0000630A2000130A00004309F005A300120E9
:1000F00041300120861483168610C83083123C20BC
:0201000069286C
:02400E00F53F7C
:00000001FF
At this stage, we can bring all of the subroutines together into one
set of robot remote control programs. The only thing left to discuss
is the use of the analog-to-digital (A/D) converters on the PIC
256