Component: UART Software (Timer) (Comms: Interface)
From Flowcode Help
Jump to navigationJump to searchAuthor | MatrixTSL |
Version | 1.0 |
Category | Comms: Interface |
Contents
UART Software (Timer) component
Creates a reliable software UART that can be driven using a timer interrupt setup by the user. The timer interrupt must be interrupting at the required baud rate. e.g 9600Hz.
Detailed description
No detailed description exists yet for this component
Examples
Simple example showing how to enable a timer interrupt at the desired baud rate then receive a string. If anything is received then it will be echoed back out and displayed on a LCD
Downloadable macro reference
![]() |
SendString |
Sends an string to the transmit buffer | |
![]() |
Data |
![]() |
Return |
![]() |
ReceiveArray |
Gets an array of values from the receive buffer. Returns number of values received. | |
![]() |
Values |
![]() |
NumValues |
![]() |
Timeout |
Time in milliseconds to wait for data | |
![]() |
Return |
![]() |
SendArray |
Sends an array of values to the transmit buffer | |
![]() |
Values |
![]() |
NumValues |
![]() |
Return |
![]() |
UART_Timer_Process |
Called as part of a timer interrupt at the specific UART baud rate. | |
![]() |
Return |
![]() |
ReceiveValue |
Gets a single value from the receive buffer | |
![]() |
Timeout |
Time in milliseconds to wait for data | |
![]() |
Return |
![]() |
SendValue |
Sends a single value to the transmit buffer | |
![]() |
Value |
![]() |
Return |
![]() |
CheckBuffer |
Returns the number of values in the transmit or receive buffer | |
[[File:]] - | Buffer |
0=Transmit / 1=Receive | |
![]() |
Return |
![]() |
ReceiveString |
Gets a string from the receive buffer | |
![]() |
MaxChars |
![]() |
Timeout |
Time in milliseconds to wait for data | |
![]() |
Return |
![]() |
Initialise |
Initialises the UART component pins ready to send and receive data | |
![]() |
Return |
![]() |
Uninit |
Un-initialize the UART and release the resources | |
![]() |
Return |
![]() |
GetList |
Gets Named property List | |
![]() |
Name |
![]() |
Return |
![]() |
Delay |
Software UART Bit Delay | |
![]() |
Return |
![]() |
SetValue |
set Value of Named property | |
![]() |
Name |
![]() |
Value |
![]() |
Return |
![]() |
Uninit |
Un-initialize the UART and release the resources | |
![]() |
Return |
![]() |
GetList |
Gets Named property List | |
![]() |
Name |
![]() |
Return |
![]() |
GetList |
returns Named property list | |
![]() |
Name |
![]() |
Return |