Skip to content

Commit b514e6b

Browse files
jonmon6691sandeepmistry
authored andcommitted
Add bit timing configurations for 667 kbaud CAN buses
Register definitions maintain the library conventions for sampling modes and other bitfields in the CNF registers according to clock speed.
1 parent a1cd301 commit b514e6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MCP2515.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ int MCP2515Class::begin(long baudRate)
9191
uint8_t cnf[3];
9292
} CNF_MAPPER[] = {
9393
{ (long)8E6, (long)1000E3, { 0x00, 0x80, 0x00 } },
94+
{ (long)8E6, (long)666666, { 0xC0, 0xB8, 0x01 } },
9495
{ (long)8E6, (long)500E3, { 0x00, 0x90, 0x02 } },
9596
{ (long)8E6, (long)250E3, { 0x00, 0xb1, 0x05 } },
9697
{ (long)8E6, (long)200E3, { 0x00, 0xb4, 0x06 } },
@@ -104,6 +105,7 @@ int MCP2515Class::begin(long baudRate)
104105
{ (long)8E6, (long)5E3, { 0x1f, 0xbf, 0x07 } },
105106

106107
{ (long)16E6, (long)1000E3, { 0x00, 0xd0, 0x82 } },
108+
{ (long)16E6, (long)666666, { 0xC0, 0xF8, 0x81 } },
107109
{ (long)16E6, (long)500E3, { 0x00, 0xf0, 0x86 } },
108110
{ (long)16E6, (long)250E3, { 0x41, 0xf1, 0x85 } },
109111
{ (long)16E6, (long)200E3, { 0x01, 0xfa, 0x87 } },

0 commit comments

Comments
 (0)