Skip to content

Commit

Permalink
bms-c1 v0.4: Fix CAN sending by deactivating RS485 transceiver
Browse files Browse the repository at this point in the history
When using CAN, it is necessary to deactivate the RS485 transceiver. This commit sets the DE and RE_NOT pins to the correct states to deactivate the transceiver as described in chapter "9.4 Device Functional Modes" in the "SN65HVD7x 3.3-V Supply RS-485 With IEC ESD protection" datasheet.
  • Loading branch information
pasrom authored and martinjaeger committed Jun 13, 2024
1 parent 01c50a9 commit 3a17a5d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boards/riscv/bms_c1/bms_c1_0_4_0.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
};
};

&gpio0 {
deactivate-rs485 {
gpio-hog;
gpios = <6 GPIO_ACTIVE_HIGH>, <7 GPIO_ACTIVE_LOW>;
output-low;
};
};

&pinctrl {
i2c0_default: i2c0_default {
group1 {
Expand Down

0 comments on commit 3a17a5d

Please sign in to comment.