[[labs.beatcraft.com]]

#Contents
* Establish a serial connection between Parallella board and a PC. [#i6f7e77b]
>
This article explains how to establish a serial connection between a Parallella board and any device, which is equipped with a serial terminal. This article uses a PC for a device that the Parallella board is connected to.

** Overview [#s68f69e8]
>
The Parallella board is equipped with UART HEADER (J2). These pins are C-MOS 3.3V and single end, and attached to UART of Zyng. These pins are going to be connected to a serial terminal of a PC.~
Since The level of a signal at RS-232C (EIA-574) of the PC is between 5 and 12V, the serial connection of PC cannot directly be connected to UART HEADER (J2) of Parallarella. The connection can be established via the voltage converters, which are placed at both PC and Parallella sides.~
A LSI, which can be used for a voltage converter, is sold from several chip producers. This article uses the voltage conversion board, which is equipped with ADM3202 of Analog Devices. To use this voltage conversion board, 3.3V or 5V is produced from the power supply of the parallella board. 5V of power source is pulled out from near the DC power jack on the Parallella board. The power is provided from this DC power jack to the voltage conversion board.~

** Preparation [#q143b583]
>
- Requirements

>
||Names of Products|Qty.|Memo|
|1|RS232 Level Conversion Board (equipped withADM3202ARU)|1| [[Available at Akizuki's net shop>http://akizukidenshi.com/catalog/g/gK-06464/]]|
|2|D-Sub 9-pin female (the board above is soldered)|1|[[Available at Akizuki's net shop>http://akizukidenshi.com/catalog/g/gC-00030/]]|
|3|D-Sub 9-pin connector shell|1|[[Available at Akizuki's net shop>http://akizukidenshi.com/catalog/g/gC-00034/]]|
|4|Cable AWG 26 – 28|4|Four different colors (Red, Black, White , and Green)|
|5|Pin Housing (for 3-pin)|2|For 2.54mm pitch MIL connector|
|6|Pin Contact |5|For 2.54mm pitch MIL connector|
※ You may select any Pin Housing and Pin Contact as long as they can fit with 2.54mm pitch pin header.~

** Assembly [#l0e1412f]
>
+ JP1 at RS232 level conversion board (employing ADM 3202ARU) is going to be soldered.
+ The connector of D-Sub 9-pin is soldered to the level conversion board.
+ The cables are attached to the level conversion board. In this article, the colors of cables are red, black, white, and green. If you may apply different colors of cables, please attach the cables to their expected pins.
+ Each cable is soldered to its counter part, a specific pin of CN1 of the level conversion board. The details of the connections are shown in the table below.
|Pin #|Color of Cable|Type of Signal|
|1|Black|GND|
|2|Green|TX-IN|
|3|White|RX-OUT|
|4| |Not Connected|
|5|Red|DC 5V|
~
An example of soldering~
#ref(DSCF3261.JPG,,25%);~
~
+ As soldering is completed, the level conversion board is stored into the connector case for D-Sub 9-pin.
~
#ref(DSCF3262.JPG,,25%);~
~
+ At the other side of the cables, please modify as they are shown below. Then, the modified ends are stored into pin sockets.
++ Pin contacts are attached to the end of the black, white, and green cables, providing pressure on them. These pin contacts are inserted to the pin housing. The allocation of pins are shown below.
|Pin #|Color of Cable|Type of Signal|
|1|Green|TX|
|2|White|RX|
|3|Black|GND|
~
++ The other end of the red cable is divided into two. Then, These ends are connected to the 1st terminal and 2nd terminal.~
In the picture below, these divided ends of the red cable are held at only the 2nd terminal by giving pressure.  Also, you can pull apart the end of the cable into Y-shape, and the ends are held at both the 1st and 2nd terminals by giving pressure. The latter way is easier way to modify the end of the red cable then former one. 
|1|Red|DC 5V|
|2|Red|DC 5V|
|3||Not Connected|

>
An example of cables which connectors are attached.
>>
#ref(DSCF3264.JPG,,25%);~

** Connecting to the Parallella board [#sd68d09b]
>
To attach the cables to the Parallella board, please follow the directions shown below.~
+ Remove the jumper, which is inserted at J14.
+ Two connectors of the red cable are attached there. The 1st terminal of the red cable is inserted at J12, which is located near the power jack. The order of the attaching connectors are red, red and empty from the power jack. If the power is supplied from the USB connector side, the order of attaching connector is reversed, and it will be empty, red, and red.
+ The connectors of green, white, and black cables are inserted at J2. The first pin of J2 is located near RJ-45 Giga-Ether, and the third pin near the outside of the board.~
~
An example of the parallella board, which is connected to the cables and D-Sub 9-pin connector.
#ref(DSCF3265.JPG,,25%);~ 
~
- Reference Schematic
#ref(SPEC-012-0001A.pdf);~

* Revision History [#e444f2d4]
>
- 2015/01/26 This article is initially uploaded

Front page   Edit Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   RSS of recent changes