'------------------------------------------------------------------------------- ' Mega2560 R2 ARDUINO board ' Arduiono-1.0 , Bootloader file=stk500v2\stk500boot_v2_mega2560.hex ' ' BASCOM Select Programmer 'ARDUINO STK500V2' , 115200 baud , ' Timeout 3000 and "Arduino Mega 2560" COM port Number ' AutoVerify ON ' BACOM Another Parameter set default '------------------------------------------------------------------------------- $regfile= "m2560def.dat" ' used micro $crystal=16000000 ' used xtal $baud=57600 ' baud rate we want 'config clockdiv=1 ' either use this or change the divider fuse byte '------------------------------------------------------------------------------- config portb=output ' make portb an output do toggle portb ' toggle level waitms 1000 ' wait 1 sec print "MEGA" ' test serial com loop