2
4
38
新手上路
P0.0 P0.1
P5.0 P5.1
使用道具 举报 送花
110
2219
5452
版主
5
16
123
注册会员
xdh*** 发表于 2024-11-5 21:45 测试用的是屠龙刀里面的程序 哪里都没改 只是改了下这里 CANEN = 1; //CAN1模块使能 CANSEL = ...
void GPIO_config(void) { P3_MODE_IO_PU(GPIO_Pin_0 | GPIO_Pin_1); //P3.0,P3.1 设置为准双向口 P5_MODE_IO_PU(GPIO_Pin_LOW); //P5.0~P5.3 设置为准双向口 CAN1_SW(CAN1_P50_P51); //CAN1_P00_P01,CAN1_P50_P51,CAN1_P42_P45,CAN1_P70_P71 CAN2_SW(CAN2_P52_P53); //CAN2_P02_P03,CAN2_P52_P53,CAN2_P46_P47,CAN2_P72_P73 } 复制代码
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|深圳国芯人工智能有限公司 ( 粤ICP备2022108929号-2 )
GMT+8, 2025-5-2 04:34 , Processed in 0.111821 second(s), 70 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.