User Tools

Site Tools


cangc6-firmware-en

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


cangc6-firmware-en.txt · Last modified: 2018/11/12 08:56 (external edit)