摘要: 1,选择芯片新建工程 2.时钟模块的设置 分别设置HSE,LSE,MCO 3. 时钟系统配置 分别配置PLL,SYSCLK,AHB,APB1,APB2等等,配置修改如下红色标记部分 4. Cortex内核配置 分别配置SYS(DEBUG),NVIC(优先级分组) 5. GPIO引脚配置 我的板子的原 阅读全文
posted @ 2024-03-02 20:53 navysummer_hardware 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 1.LCD驱动程序 1.1 驱动头文件 lcd1602.h #ifndef LCD1602_H #define LCD1602_H #include <reg51.h> // 定义LCD1602端口 sbit RS = P2^0; // 指令/数据选择 sbit RW = P2^1; // 读/写选 阅读全文
posted @ 2024-01-14 00:04 navysummer_hardware 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1.plc梯形图 2.仿真 3.仿真效果 阅读全文
posted @ 2024-01-09 23:54 navysummer_hardware 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 1.PLC设备组态 2.梯形图 3.仿真效果 阅读全文
posted @ 2024-01-09 22:31 navysummer_hardware 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1.项目结构 2.源代码 main.c #include <reg52.h> sbit led = P1^0; void main(){ while(1){ led = 0; } } 3.仿真电路 4. 仿真效果 6.项目仓库 https://gitee.com/navysummer/at89c51 阅读全文
posted @ 2024-01-08 23:14 navysummer_hardware 阅读(10) 评论(0) 推荐(0) 编辑