寻找方向程序猿、攻城狮
分类: 嵌入式
2014-04-24 21:53:49
Universal EXTension (UEXT) is a connector layout which includes power and three serials buses: , , . The connector layout was specified by Olimex Ltd and declared an open-project that is royalty-free.
The UEXT connector consisting of 10 pins, in a two row by five male pin configuration, with a plastic keyed-shroud. All pins have a spacing of 0.1 inch (2.54 mm). The socket is mated with a 2x5 (10-pin) female connector, and typically connected to a . The UEXT cable assembly is referred to as a 10-pin IDC Connector Ribbon Cable. These cables are readily available and cheap.
The UEXT connector presents power and three serial buses: , , . All pins conform to 3.3 volt digital logic. The asynchronous serial bus requires additional level-shifting circuits and connectors to support , , , , .
Pin | Name | I/O | Logic | Primary Use |
---|---|---|---|---|
1 | 3.3V | S | S | +3.3 |
2 | GND | S | S | Ground |
3 | TXD | O | PP | Transmit Data for Async Serial bus |
4 | RXD | I | PP | Receive Data for Async Serial bus |
5 | SCL | O | OD | Clock for I2C bus |
6 | SDA | I/O | OD | Bidirectional Serial Data for I2C bus |
7 | MISO | I | PP | Serial Data In for SPI bus |
8 | MOSI | O | PP | Serial Data Out for SPI bus |
9 | SCK | O | PP | for SPI bus |
10 | SSEL | O | PP | for SPI bus |
Notes:
The functionality of most microcontroller pins are multipurpose thus allowing the engineer to redefine the purpose of the pin. It is fairly common that a pin will have a choice to be either a general purpose I/O or a peripheral.
If a microcontroller pin is connected to the UEXT connector and redefined to be something other than Asynchronous Serial Bus / I2C Bus / SPI Bus, then some design considerations should be considered before making the changes. To minimize the chance of damaging various UEXT boards or the microcontroller, redefined pins should continue to adhere to the direction of the data in this table or alternately redefined as an input. For a safe design, it is recommended that you don't redefine pins 4 or 7 to be outputs, and use pin 6 as an output with caution.
If a person is concerned about damaging the data lines of the microcontroller, additional and/or separate drivers should be added between the microcontroller and UEXT connector. Additionally, a might be added between the host power and pin 1 to protect against over-current conditions.
Some devices use a layout based on the UEXT connector but have chosen not implement all of the functionality. In particular the asynchronous serial connection may have been omitted. In these cases the spare pins are usually assigned other purposes, such as connecting to a device reset line, so care should be taken to check the exact connector layout on the schematic of a particular device.