Evening Eric,
So why is Mikes speed well above what the PBP manual shows? Really can't get this to stick mate.
So anything I build that needs to communicate with the Backpack needs to be the same baud rate? If so how would I actually state that in basic?
Stumped.
Al
hi Al, I will unzip Mike's file and try to find out, I dont use 12F PIC's
Eric
EDIT:
He is doing using PIC clock cycles [ counting]
; bit time (cycles) used to sample a serial bit stream
;
; 19200 baud, 104 (104.2) cycles, 0.16% bit rate error
;
57600 baud, 35 ( 34.7)
cycles, 0.80% bit rate error
; 115200 baud, 17 ( 17.4) cycles, 2.08% bit rate error
; 250000 baud, 8 ( 8.0) cycles, 0.00% bit rate error
;
clock equ 8 ; 8 MHz clock
usecs equ clock/4 ; cycles/usec multiplier
msecs equ clock/4*1000 ; cycles/msec multiplier
bRate equ 57600 ; baudrate 19200, 57600 or 115200
bTime equ (usecs*10000000/bRate+5)/10
OT: Yorkshire is the 11th in the Gold medals!