How to use software serial (pio) with 115200bps? #12553
Unanswered
toreis-up
asked this question in
RP2040 / Pico
Replies: 1 comment 3 replies
-
Why don you check examples? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am new to micropython.
I would like to realize software serial (UART) with PIO.
I have looked at https://github.com/micropython/micropython/blob/master/examples/rp2/pio_uart_rx.py and was able to communicate at 9600 bps. However, when I change UART_BAUD in the code and try to communicate at 115200 bps, the characters are garbled like this.
I am wondering if it is possible to make it work with PIO in micropython, since the method using hardware UART in micropython and software serial in the Arduino IDE works fine.
Thank you in advance for any guidance you may be able to provide.
(Original)
こんにちは、初めてmicropythonを触ります。
PIOでソフトウェアシリアル(UART)を実現したいと思っています。
https://github.com/micropython/micropython/blob/master/examples/rp2/pio_uart_rx.py を見て、9600bpsで通信できました。しかし、コード中のUART_BAUDを変更して115200bpsで通信しようとすると、このように文字化けしてしまいます。
micropythonでハードウェアUARTと、Arduino IDEでソフトウェアシリアルを使う方法は問題なく動作するので、micropythonでのPIOでも動作させることができないかと考えています。
ご教示のほどよろしくお願いいたします。
Beta Was this translation helpful? Give feedback.
All reactions