Code Monkey home page Code Monkey logo

mpc5748gworkspace's Introduction

MPC5748Gworkspace

image

1. testgpio_1_Z4_0

这是第一次使用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 image

如果想要看到详细过程,可以阅读这篇文章:

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

2. testADC_Z4_0

这个工程使用到了八个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.

image

如果想要看到详细过程,可以阅读这篇文章:

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

3. testSTM_Z4_0

这个工程使用了系统定时器模块STM,功能为设定一个1s的延时,控制LED的亮灭。

This project uses the system timer module STM, which sets a 1-second delay to control the LED on and off. image

如果想要看到详细过程,可以阅读这篇文章:

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

4. 待续

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

mpc5748gworkspace's People

Contributors

aprilaaa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.