Code: Select all
program boot_test;
uses boot18_32K;
Org 31720;
begin
// 16Mhz --> 103
// 8Mhz --> 51
// 4Mhz --> 25
// |
// |
// | look for asynchronous high speed table in PDF for your chip
// \ / -------- ----------
// |
SUsart_Init(255); // Init USART at 9600
If SUsart_Write_Loop('g','r')= true then // Send 'g' for 5 sec, if 'r'
Begin // recieved then false else true
start_program; // If true run main
End else
Begin
start_bootload; // If false start bootload
End;
end.
0:0 E-0 Linker error: FLOC_susart_write_loop: argument not found
0:0 E-0 Linker error: Bank not found: FLOC_susart_write_loop
Tull