Project

General

Profile

NexusSI902xSerial » History » Version 7

Paul Kocialkowski, 02/12/2015 09:16 AM

1 2 Paul Kocialkowski
h1. Nexus S (I902x) UART
2 1 Paul Kocialkowski
3 3 Paul Kocialkowski
The Nexus S (I902x) allows accessing an UART serial port through the USB connector. A FSA9480 switch is in charge of switching the USB connector between UART and USB (among other choices).
4
5
According to the Nexus S (I902x) Schematics:
6 4 Paul Kocialkowski
!crespo_fsa9480.jpg!
7 3 Paul Kocialkowski
8
Depending on the resistor value between the USB connector ID and GND pins, the FSA9480 will automatically switch the USB connector to the selected device, as mentioned on the FSA9480 datasheet. A resistor value of 150k Ohm will switch the USB connector to UART.
9 1 Paul Kocialkowski
10
h2. Hardware setup
11
12 5 Paul Kocialkowski
In order to switch the USB connector to UART, a *150k Ohm* resistor has to be placed between the *ID* and *GND* pins of the USB connector.
13
14
According to the FSA9480 datasheet, table 3 (Accessory auto configuration table), *UART Rx* is routed to *USB DP (D+)* and *UART Tx* is routed to *USB DM (D-)*.
15
Hence, the *USB DP (D+)* has to be connected to the UART adapter's *Tx* pin and the *USB DM (D-)* has to be connected to the UART adapter's *Rx* pin.
16
*GND* has to be made common between the USB connector and the UART adapter. There is no need to connect the USB connector's VBUS to a positive voltage.
17
18 7 Paul Kocialkowski
The cable can be connected to the device at any time (the FSA9480 will automatically switch the USB connector to UART, even when the device is already on).
19
20 1 Paul Kocialkowski
h2. Software setup
21 6 Paul Kocialkowski
22
h3. USB connector switch
23
24 1 Paul Kocialkowski
Alternatively, it is possible to switch the USB connector to UART at run-time. It is advised to follow the following procedure:
25 7 Paul Kocialkowski
#