CAN-GC6 Firmware

Copyrights

Baudrate

For each baud rate we need to calculate the value being placed in the SPBRG differently:

SPBRG = (Fosc / (16 x Baud rate)) - 1, BRGH = 1 High Speed
SPBRG = (Fosc / (64 x Baud rate)) - 1, BRGH = 0 Low Speed 

16.66 KBaud +/-1.5% = 16909.9 - 16410.1

Fosc=32MHz
(32000000 / 16 * 16660) - 1 = 119.05


Links


Personal Tools