UartSoftwareTimer component FC9 Help

For general Flowcode discussion that does not belong in the other sections.
Post Reply
d820513
Posts: 56
http://meble-kuchenne.info.pl
Joined: Thu Aug 19, 2021 1:14 pm
Has thanked: 2 times
Been thanked: 1 time

Flowcode v9 UartSoftwareTimer component FC9 Help

Post by d820513 »

Hi Guys!
I can't seem to set up the UartSoftwareTimer component either. Transmit buffer Size and Receive buffer Size are not changed, I can't change their value. by default Transmit buffer Size and Receive buffer Size 50.
this component also does not work if you enable TX and RX

d820513
Posts: 56
Joined: Thu Aug 19, 2021 1:14 pm
Has thanked: 2 times
Been thanked: 1 time

Re: UartSoftwareTimer component FC9 Help

Post by d820513 »

here is the project
Attachments
uart_timer.jpg
uart_timer.jpg (81.77 KiB) Viewed 536 times
test_send_char.fcfx
(10.81 KiB) Downloaded 32 times

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: UartSoftwareTimer component FC9 Help

Post by medelec35 »

Hello.
I have set up the timer UART for 38400 baud on the Arduino UNO.
As the timers are not good on AVR devices, I decided to use the Timer Interval component, to save a lot of calculation and C code within a custom interrupt.
You will need to make some adjustments to the Time Period value within the Timer Interval component. so it may be a little trial and error, but with a logic analyser it was a very quick process.
I have added instructions to the project file.
Here are the end results of incrementing a number at a baud of 38400:
Timer UART  38400 baud.png
Timer UART 38400 baud.png (28.2 KiB) Viewed 499 times
Attachments
Send UART 38400 FC9 Uno.fcfx
(13.75 KiB) Downloaded 33 times
Martin

Post Reply