本次任务的主要目的是通过远程控制来控制 PIC 微控制器的输出。首先,我们需要禁用项目中的“task1.c”,并添加一个名为“task2.c”的 C 主文件。然后,我们需要编写一个程序,当 PIC 微控制器接收到字符“a”时,将 D1-D4 设置为关闭,将 D5-D8 设置为打开;当接收到字符“q”时,将 D1-D4 设置为打开,将 D5-D8 设置为关闭。最后,我们需要构建和调试项目,并验证程序是否正确。通过这个任务,我们学会了如何通过串口进行远程控制,并加深了对 PIC 微控制器的理解和应用。

The main purpose of this task is to control the output of the PIC MCU through remote control Firstly we need to disable task1 c in the project and add a c main file named task2 c Then we need to write

原文地址: https://www.cveoy.top/t/topic/hiTE 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录