Changes

How to use UARTs

20 bytes added, 19:17, 22 January 2012
no edit summary
You can see that RS232 have some lag between transmisions. This caused mainly by kernel process management. UART peripheral is controlled by Linux and It isn't a real time operation system. 
This program have three I/O functions that connect to UART driver via ioctl (read(), write() and select()), but only select() and write() and put program in sleep mode, the proceess awake when I/O task is completed. Select functions is used to prevent that readswas blocked when there aren't data avaliable.The next captures are do it with GPIO debug mode and 300 bauds speed. Blue=UART1, Violet=write function time and Green=select function time.<br>
{| width="200" cellspacing="1" cellpadding="1" border="1" align="center"
|-
| [[Image:Uart select5.JPG|260x172px]]
| [[Image:Uart write to select0.JPG|260x172px]]
|-
| select function time| Time between select and write| write function time
| Time between write and select
|}
Click to enlarge image
Conclusions:
<br> '''Under Construction'''
[[Category:Communications]] [[Category:Work_in_progress]] [[Category:How_to_forge]]
4,199
edits