这是第一次使用MPC5748G时编写的代码,该程序可以使用两个SW按键控制8个LED灯和1个gpio口。
This is the code written when using MPC5748G for the first time. The program can use two SW buttons to control 8bit LED lights and 1bit GPIO port
如果想要看到详细过程,可以阅读这篇文章:
If you want to see the detailed process, you can read this article:
https://blog.csdn.net/guojingyue123/article/details/131283652?spm=1001.2014.3001.5501
这个工程使用到了八个LED灯,一个电位器和一位ADC输入PB[4],通过输入的模拟量来控制LED灯的亮灭。
This project uses eight LED lights, one Potentiometer and one ADC input PB [4] to control the LED lights on and off through the input analog quantity.
如果想要看到详细过程,可以阅读这篇文章:
If you want to see the detailed process, you can read this article:
https://blog.csdn.net/guojingyue123/article/details/131429335?spm=1001.2014.3001.5501
这个工程使用了系统定时器模块STM,功能为设定一个1s的延时,控制LED的亮灭。
This project uses the system timer module STM, which sets a 1-second delay to control the LED on and off.
如果想要看到详细过程,可以阅读这篇文章:
If you want to see the detailed process, you can read this article:
https://blog.csdn.net/guojingyue123/article/details/131556027?spm=1001.2014.3001.5501
CAN总线和UART模块因为某些原因无法测试,PWM我试图驱动一个舵机但是没成功,Timer模块跟STM功能差不多,这四个部分参考这三篇文章:
CAN:https://blog.csdn.net/weifengdq/article/details/103996238
UART:https://blog.csdn.net/weifengdq/article/details/103981747
Timer:https://blog.csdn.net/weifengdq/article/details/103964297
PWM:https://blog.csdn.net/weifengdq/article/details/104012375