Skip to content

Commit 668977b

Browse files
author
Anton N
committed
Add information about clock speed into readme
1 parent 82c43aa commit 668977b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,23 @@ mcp2515.setLoopbackMode();
6464
```
6565
<br>
6666
67+
<br>
68+
You can also set oscillator frequency for module when setting bitrate:
69+
```C++
70+
mcp2515.setBitrate(CAN_125KBPS, MCP_8MHZ);
71+
```
72+
<br>
73+
The available clock speeds are listed as follows:
74+
```C++
75+
enum CAN_CLOCK {
76+
MCP_20MHZ,
77+
MCP_16MHZ,
78+
MCP_8MHZ
79+
};
80+
```
81+
Default value is MCP_16MHZ
82+
<br>
83+
6784
Note: To transfer data on high speed of CAN interface via UART dont forget to update UART baudrate as necessary.
6885

6986
##2. Frame data format

0 commit comments

Comments
 (0)