SPI功能
i2C-MP15X-B底板上已经预留了一个SPI扩展接口(J23),扩展座规格为xH 2.54mm。
i2C-MP15X-B位置 | 丝印 | 功能名称 | i2S-MP15X核心板位置 | i2S-MP15X核心板 Pinout |
J23.1 | VDD_3V3 | VDD_3V3 | ||
J23.2 | GND | GND | ||
J23.3 | SCLK | SPI6_SCK | J2.105 | PI1 |
J23.4 | MOSI | SPI6_MOSI | J2.109 | PI2 |
J23.5 | MISO | SPI6_MISO | J2.107 | PI3 |
J23.6 | CS0 | SPI6_NSS | J2.111 | PI0 |
J23.7 | IO | IO | J2.40 | PD10 |
使用spidev应用来测试
# ./spidev_test -D /dev/spidevB.C
spi mode: 0
bits per word: 8
max speed: 500000 Hz (500 KHz)
02 E0 00 00 00 00
00 00 02 E0 02 E0
02 E0 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00
作者:SteveChen 创建时间:2024-09-18 16:36
最后编辑:SteveChen 更新时间:2024-09-18 16:36
最后编辑:SteveChen 更新时间:2024-09-18 16:36