离线
蓝色组测试脚本, PE4 - PE9 全部 OK:
###蓝色组:
#########D7 控制PE9 4*32 + 9 = 137
echo 137 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio137/direction
echo 0 > /sys/class/gpio/gpio137/value
echo 1 > /sys/class/gpio/gpio137/value
#########D3 控制PE5 4*32 + 5 = 133
echo 133 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio133/direction
echo 0 > /sys/class/gpio/gpio133/value
echo 1 > /sys/class/gpio/gpio133/value
#########D2 控制PE4 4*32 + 4 = 132
echo 132 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio132/direction
echo 0 > /sys/class/gpio/gpio132/value
echo 1 > /sys/class/gpio/gpio132/value
离线
绿色组测试脚本, PE10 - PE12 OK, PE13 - PE15 失败, 无论写0写1都是0V:
###绿色组:
###FAIL######D15 控制PE15 4*32 + 15 = 143
echo 143 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio143/direction
echo 0 > /sys/class/gpio/gpio143/value
echo 1 > /sys/class/gpio/gpio143/value
###FAIL######D14 控制PE14 4*32 + 14 = 142
echo 142 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio142/direction
echo 0 > /sys/class/gpio/gpio142/value
echo 1 > /sys/class/gpio/gpio142/value
###FAIL######D13 控制PE13 4*32 + 13 = 141
echo 141 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio141/direction
echo 0 > /sys/class/gpio/gpio141/value
echo 1 > /sys/class/gpio/gpio141/value
###OK######D12 控制PE12 4*32 + 12 = 140
echo 140 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio140/direction
echo 0 > /sys/class/gpio/gpio140/value
echo 1 > /sys/class/gpio/gpio140/value
###OK######D11 控制PE11 4*32 + 11 = 139
echo 139 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio139/direction
echo 0 > /sys/class/gpio/gpio139/value
echo 1 > /sys/class/gpio/gpio139/value
###OK######D10 控制PE10 4*32 + 10 = 138
echo 138 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio138/direction
echo 0 > /sys/class/gpio/gpio138/value
echo 1 > /sys/class/gpio/gpio138/value
离线
红色组全部不受控制:
#########D18 控制PE16 4*32 + 16 = 144
echo 144 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio144/direction
echo 0 > /sys/class/gpio/gpio144/value
echo 1 > /sys/class/gpio/gpio144/value
#########D23 控制PE24 4*32 + 24 = 152
echo 152 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio152/direction
echo 0 > /sys/class/gpio/gpio152/value
echo 1 > /sys/class/gpio/gpio152/value
离线
同样的软件, 在别的板子显示正常, io控制也都正常.
离线
这是原理图.
离线
芯片是不是有问题?换块板子看看,同时对比下那个行的板子的电路图
离线
终于找到问题了, 上次改版的时候把 V3s 12脚 VCC-PE0 与 3V3 连接的网络给删除了, 现在飞线就好了.
离线