Search found 41 matches

by lukesky333
Fri Jun 14, 2019 10:34 am
Forum: General Discussion and Questions
Topic: Serial - bit banging
Replies: 15
Views: 1221

Re: Serial - bit banging

... Ok I have not yet ever needed to use 9 bit UART so had to do a bit of googling. Seems 9 bit UART on STM32 works by it stores the 9 bits over 2 bytes. The first bytes stores the bottom 8 bits then the second byte stores the 9th bit plus bits reset values of the UART_DR register so you need to us...
by lukesky333
Thu Jun 13, 2019 3:26 pm
Forum: General Discussion and Questions
Topic: Serial - bit banging
Replies: 15
Views: 1221

Re: Serial - bit banging

lukesky333 wrote:
Thu Jun 13, 2019 1:21 pm
What is wrong with the code?

How can I set the M bit in the UART control register
Ok, I've found the mistake...

Code: Select all

d1 = u1.read(2)
I need to read 2 chars to all 9 bits. ;-)

But I still don't see the wakeup bit. How can i do it?
by lukesky333
Thu Jun 13, 2019 1:21 pm
Forum: General Discussion and Questions
Topic: Serial - bit banging
Replies: 15
Views: 1221

Re: Serial - bit banging

... From the reference manual the STM32F407 supports 9 bit serial by setting the M bit in the UART control register UART 9.JPG I've got my NUCLEO-F446RE board and it's running with MicroPython v1.11-37 now. ...so far so good... What is to do to read the serial connection in 9-bit mode? I tried foll...
by lukesky333
Tue Jun 04, 2019 2:52 pm
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 134
Views: 47895

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

mcauser wrote:
Tue Jun 04, 2019 2:43 pm
@lukesky333 board defs updated. Datasheet added to the /docs folder.
Cool, thank you. I've ordered the board and I let you know, what happened. ;-)
by lukesky333
Tue Jun 04, 2019 11:01 am
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 134
Views: 47895

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

mcauser wrote:
Mon Jun 03, 2019 3:00 pm
Edit: Datasheet received. Will update the board def to match.
Thanks a lot. Could you share the datasheet too?
by lukesky333
Mon Jun 03, 2019 2:47 pm
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 134
Views: 47895

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

@lukesky333 I put together these ones for the board: https://github.com/mcauser/MCUDEV_DEVEBOX_F407VGT6 - 1Mbyte flash https://github.com/mcauser/MCUDEV_DEVEBOX_F407VET6 - 512Kbyte flash Both are 100 pin LQFP chips and it looks like larger flash is the main difference. I guessed some of the pin num...
by lukesky333
Mon Jun 03, 2019 9:37 am
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 134
Views: 47895

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Hi,

I want to buy this board (STM32F407VGT6).

Is it possible to run your version of MicroPython on this board? It seems to be the same like STM32F407VET6, only with more memory.
by lukesky333
Fri May 31, 2019 11:52 am
Forum: General Discussion and Questions
Topic: Serial - bit banging
Replies: 15
Views: 1221

Re: Serial - bit banging

The STM32F407 MCUs have 5 UARTS (3 x USART and 2 X UART). I prefer the STM32F407VGT6 with 1 mb of flash on the MCU and this board has another 16M-BIT of flash on a separate IC and is under $10US https://www.aliexpress.com/item/STM32F407VET6-STM32F407VGT6-STM32-System-Board-Development-Board-F407-Si...
by lukesky333
Wed May 29, 2019 8:47 am
Forum: General Discussion and Questions
Topic: Serial - bit banging
Replies: 15
Views: 1221

Re: Serial - bit banging

A Pyboard (V1.1 or D series). Whether they meet your requirement for "as cheap as possible" is moot. I would strongly recommend uasyncio rather than threading for reasons covered in the tutorial in this repo . Writing a soft UART capable of handling two concurrent 19.2Kbaud streams would be a signi...
by lukesky333
Wed May 29, 2019 7:31 am
Forum: General Discussion and Questions
Topic: Serial - bit banging
Replies: 15
Views: 1221

Re: Serial - bit banging

Don't quote me on this but I think ESP32 hardware serial only has 8 bit serial There is no official soft UART implementation. The best option is probably to use hardware which does support it, such as any Pyboard. A soft UART could be written but would probably be restricted to low baud rates becau...