2930| 4
|
由于F103的默认IIC引脚没有引出,所以我把SCL和SDA的端口改成PB8、PB9后发现不能正常通讯 |
1金钱
最佳答案//IO方向设置 宏没改
CRL控制PB0-PB7
CRH控制PB8-PB16
#define SDA_IN() {GPIOB->CRH&=0XFFFFFF0F;GPIOB->CRH|=8CRH|=3
| ||
| ||
He who fights with monsters should look to it that he himself does not become a monster, when you gaze long into the abyss, the abyss also gazes into you.
过于执着就会陷入其中,迷失自己,困住自己。 |
||
| ||
| ||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-2-24 17:59
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网