@SiberiaBear
2015-09-25T10:54:42.000000Z
字数 3200
阅读 2271
Edison
这篇文档是我翻译intel官方的breakout管脚映射说明写的,表格中
MRAA Number
是对应MRAA库的映射,可以直接参考并编程。官方文档中有关SSP部分管教的说明应该是错的,因为使用edison时间还很短,所以没办法验证,暂时是猜想。有问题请尽情指出。
更新时间:2015年8月28日
固定链接:https://www.zybuluo.com/SiberiaBear/note/162376
当引脚设置为GPIO功能时,可以编程输出模式或输入模式。当编程作为输入模式,每个GPIO可以作为中断或唤醒源。输入可以编程为上拉或下拉。上拉电阻值为2、20、50k欧姆。I2C引脚还支持额外的910欧姆。
当选择GPIO功能时,输入的GPIO信号会在到达边沿检测寄存器之前默认通过一个消抖滤波器。为了确保每个边沿信号都可以检测到,脉冲应该至少有5个时钟周期。
- 当SoC为S0状态时,50MHz的时钟最少100ns。
- 当SoC为S0i1或S0i2状态时,19.2MHz的时钟最少260ns。
- 当Soc为S0i3状态时,32kHz的时钟最少155.5us。
大多数GPIO兼容引脚在复位状态可以配置成输入模式,直到配置其他模式之前,都是输入模式。
作为输出,GPIO可以独立的输出1或者0。它们可以提前编程决定状态,输出驱动电流是+-3mA。同时,输出高电平电压是1.8V。
Number (board) | Physical Pin | Edison Pin (sysfs) | Pinmode0 | Pinmode1 | Note |
---|---|---|---|---|---|
0 | J17-1 | GP182 | GPIO-182 | PWM2 | GPIO capable of PWM output |
1-Z | J17-2 | NC | No connect | ||
2-Z | J17-3 | NC | No connect | ||
3-N | J17-4 | VIN | 7 to 15V input | ||
4 | J17-5 | GP135 | JPIO-135 | UART-2-TX | GPIO,UART2 transmit output |
5-N | J17-6 | RCVR_MODE | Firmware recovery mode | ||
6 | J17-7 | GP27 | GPIO-27 | I2C-6-SCL | GPIO,I2C6 SCL output open collector |
7 | J17-8 | GP20 | GPIO-20 | I2C-1-SDA | GPIO,I2C1 data open collector |
8 | J17-9 | GP28 | GPIO-28 | I2C-6-SDA | GPIO,I2C6 data open collector |
9 | J17-10 | GP111 | GPIO-111 | SSP-5-FS1 | GPIO,SSP5 frame sync output 1(官方文档错误) |
10 | J17-11 | GP109 | GPIO-109 | SSP-5-CLK | GPIO,SSP5 clock output |
11 | J17-12 | GP115 | GPIO-115 | SSP-5-TXD | GPIO,SSP5 transmit data output |
12-N | J17-13 | OSC_CLK_OUT_0 | High speed clock output | ||
13 | J17-14 | GP128 | GPIO-128 | UART-1-CTS | GPIO,UART1 clear to send input |
14 | J18-1 | GP13 | GPIO-13 | PWM1 | GPIO capable of PWM output |
15 | J18-2 | GP165 | GPIO-165 | GPIO | |
16-N | J18-3 | GPI_PWRBTN_N | Power button input | ||
17-N | J18-4 | MSIC_SLP_CLK2 | 32kHz sleep clock | ||
18-N | J18-5 | V_VBAT_BKUP | RTC backup battery input | ||
19 | J18-6 | GP19 | GPIO-19 | I2C-1-SCL | GPIO,I2C1 SCL output open collector |
20 | J18-7 | GP12 | GPIO-12 | PWM0 | GPIO capable of PWM output |
21 | J18-8 | GP183 | GPIO-183 | PWM3 | GPIO capable of PWM output |
22-Z | J18-9 | NC | No connect | ||
23 | J18-10 | GP110 | GPIO-110 | SSP-5-FS0 | GPIO,SSP5 frame sync output 0(官方文档是错的) |
24 | J18-11 | GP114 | GPIO-114 | SSP-5-RX | GPIO,SSP5 receive data input |
25 | J18-12 | GP129 | GPIO-129 | UART-1-RTS | GPIO,UART1 ready to send output |
26 | J18-13 | GP130 | GPIO-130 | UART-1-RX | GPIO,UART1 receive data input |
27-N | J18-14 | FW_RCVR | Firmware recovery, active high on boot | ||
28-Z | J19-1 | NC | No connect | ||
29-N | J19-2 | V_V1P80 | System 1.8V I/O output power | ||
30-N | J19-3 | GND | Ground | ||
31 | J19-4 | GP44 | GPIO-44 | ALS_INT_N | GPIO,ALS interrupt input |
32 | J19-5 | GP46 | GPIO-46 | ACCELEROMETER_INT_1 | GPIO,accelerometer interrupt input |
33 | J19-6 | GP48 | GPIO-48 | GYRO_DRDY | GPIO,gyro data ready input |
34-N | J19-7 | RESET_OUT# | System reset out low | ||
35 | J19-8 | GP131 | GPIO-131 | UART-1-TX | GPIO,UART 1 TX output |
36 | J19-9 | GP14 | GPIO-14 | AUDIO_CODEC_INT | GPIO,audio codec interrupt input |
37 | J19-10 | GP40 | GPIO-40 | SSP-2-CLK | GPIO,SSP2 clock output |
38 | J19-11 | GP43 | GPIO-43 | SSP-2-TXD | GPIO,SSP2 transmit data output |
39 | J19-12 | GP77 | GPIO-77 | SD_CDN | GPIO,SD card detect low input |
40 | J19-13 | GP82 | GPIO-82 | SD_DAT2 | GPIO,SD data 2 |
41 | J19-14 | GP83 | GPIO-83 | SD_DAT3 | GPIO,SD data 3 |
42-N | J20-1 | V_VSYS | System input power | ||
43-N | J20-2 | V_V3P30 | System 3.3V output | ||
44 | J20-3 | GP134 | GPIO-134 | UART-2-RX | GPIO,UART2 RX input |
45 | J20-4 | GP45 | GPIO-45 | COMPASS_DRDY | GPIO,compass data ready input |
46 | J20-5 | GP47 | GPIO-47 | ACELEROMETER_INT_2 | GPIO,accelerometer interrupt intput 2 |
47 | J20-6 | GP49 | GPIO-49 | GYRO_INT | GPIO,gyro interrupt input |
48 | J20-7 | GP15 | GPIO-15 | GPIO | |
49 | J20-8 | GP84 | GPIO-84 | SD_CLK_FB | GPIO,SD clock feedback input |
50 | J20-9 | GP42 | GPIO-42 | SSP-2-RXD | GPIO,SSP2 RX data input |
51 | J20-10 | GP41 | GPIO-41 | SSP-2-FS | GPIO,SSP2 frame sync output |
52 | J20-11 | GP78 | GPIO-78 | SD-CLK | GPIO,SD clock output |
53 | J20-12 | GP79 | GPIO-79 | SD-CMD | GPIO,SD command |
54 | J20-13 | GP80 | GPIO-80 | SD-DAT0 | GPIO,SD data 0 |
55 | J20-14 | GP81 | GPIO-81 | SD-DAT1 | GPIO,SD data 1 |
注:MRAA Number列中,带
-Z
为空置引脚,带-N
为非GPIO引脚。