Mikroelektronika MIKROE-350 データシート

ページ / 526
Soft_UART_Write
354
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure Soft_UART_Write(udata as byte)
Returns
Nothing.
Description
This routine sends one byte via the Software UART bus.
Parameters : 
udata:
data to be sent. 
Requires
Software UART must be initialized before using this function. See the
Soft_UART_Init routine.
Be aware that during transmission, software UART is incapable of receiving
data – data transfer protocol must be set in such a way to prevent loss of infor-
mation.
Example
dim some_byte as byte
...
' Write a byte via Soft Uart
some_byte = 0x0A
Soft_Uart_Write(some_byte)