Pyboard with RS485

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
marc4444
Posts: 14
Joined: Sat Aug 03, 2019 12:16 pm

Pyboard with RS485

Post by marc4444 » Wed Jul 15, 2020 8:21 pm

Hi,

I'm doing some tests with the Pyboard and a RS485 driver chip. The chip is connected to one of the UARTs and has an 'enable' pin which is connected to an IO. The pin needs to be raised before the UART sends and then lowered after. Currently i'm doing this in software and it works, but I'm hoping to set up a REPL over RS485 and so I won't be able to manually raise and lower the 'enable' pin before the REPL sends data over the UART (unless there is some way to create a 'software repl' that I am missing?).

I wondered if it was possible to change the source code in the STM32 library to automatically do this for all UART writes on this UART? I had a look in uart.c but it's not totally clear to me how it would work. Any help would be great!

Thanks,
Marc

Post Reply