Development_Notes
代码说明:
说明: 设计功能: 1.实现通过按键中断来控制LED的循环闪烁,分为3种速度循环闪烁。 2.实现定时器的相关功能和PWM信号的生成,当按键中断到来时,实现在开发板的GPIO口改变PWM信号的占空比,以此PWM信号控制电机的运转速度。 3.实现通过虚拟串口发送当前电机信息的功能,每当按下按键后,开发板将电机的转速等级和此时控制电机的占空比通过串口发送到计算机的串口程序中。(Designing function: 1. To control the cyclic flicker of LED by interruption of keys, it can be divided into three kinds of speed cyclic flicker. 2. Realize the function of timer and the generation of PWM signal. When the key interrupt arrives, the duty cycle of PWM signal is changed at the GPIO port of the development board to control the speed of motor. 3. Realize the function of sending the current motor information through the virtual serial port. Whenever the key is pressed, the development board sends the speed level of the motor and the duty cycle of the control motor through the serial port to the serial port program of the computer.)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!