Difference between revisions of "How to use UARTs"

From IGEP - ISEE Wiki

Jump to: navigation, search
Line 1: Line 1:
 
= Overview<br>  =
 
= Overview<br>  =
  
This How-To is meant to be a starting point for people to learn use UART for IGEP v2 devices as quickly and easily as possible. In this how-to, we use a program'''(upload source code)''', executed twice in separated progres at the same IGEP.&nbsp; Its function is get a number from UART, increase it and send result via other UART, the result will be a infinite loop between 2 UARTs. This program was tested in [http://releases.linaro.org/platform/linaro-m/headless/final/linaro-m-headless-tar-20101108-2.tar.gz Linaro Headless] with [[Linux Kernel 2.6.35.y|Kernel 2.6.35.y]].  
+
This How-To is meant to be a starting point for people to learn use UART for IGEP v2 devices as quickly and easily as possible. In this how-to, we use a program '''(upload source code)''', executed twice, at the same time inside the same IGEP.&nbsp; Its function is get a number via UART, increase it and send result to other UART, the result will be a infinite loop between 2 UARTs. This program was testedin [http://releases.linaro.org/platform/linaro-m/headless/final/linaro-m-headless-tar-20101108-2.tar.gz Linaro Headless] with [[Linux Kernel 2.6.35.y|Kernel 2.6.35.y]].  
  
More information about [http://en.wikipedia.org/wiki/UART UART].
+
More information about [http://en.wikipedia.org/wiki/UART UART].<br> Note: This program have a debug option using GPIOs to debug via oscilloscope, this option is useful to learnt about the Kernel latencies and IRQ. Debug has set to "write" and "select" functions.
 
 
Note: This program have a debug option using GPIOs to debug via <span lang="en" id="result_box" class="short_text"><span class="hps">oscilloscope</span></span> the Kernel latencies between "write" and "select" functions.<br>
 
  
 
= Feedback and Contributing  =
 
= Feedback and Contributing  =

Revision as of 11:42, 19 January 2012

Overview

This How-To is meant to be a starting point for people to learn use UART for IGEP v2 devices as quickly and easily as possible. In this how-to, we use a program (upload source code), executed twice, at the same time inside the same IGEP.  Its function is get a number via UART, increase it and send result to other UART, the result will be a infinite loop between 2 UARTs. This program was testedin Linaro Headless with Kernel 2.6.35.y.

More information about UART.
Note: This program have a debug option using GPIOs to debug via oscilloscope, this option is useful to learnt about the Kernel latencies and IRQ. Debug has set to "write" and "select" functions.

Feedback and Contributing

At any point, if you see a mistake you can contribute to this How-To.

Preparing IGEP

Check UARTs devices

Wire connectors


Compile and run program


Testing UART

Under Construction