转流我的Arduino / TI的MSP430 Launchpad中/能源公司技能,真实世界的项目和C [英] Transfering my arduino/TI-MSP430 Launchpad/Energia skills to real world projects and C

查看:273
本文介绍了转流我的Arduino / TI的MSP430 Launchpad中/能源公司技能,真实世界的项目和C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习电子/单片机编程通过TI的MSP430 Launchpad中(Energia公司)和Arduino的。

I'm learning electronics/microcontroller programming through TI-MSP430 Launchpad(Energia) and Arduino.

两者都基于接线框架,并很好的地方开始对像我这样的初学者。

Both are based on wiring framework, and very good place to start for a beginner like me.

现在我在学习我转发,我想探索更多,想要做一个真实的世界项目。我的项目上都可以轻松完成上述的平台,但我想用STM8S发现(开发板或STM8S系列MCU)本但对STM8S不用布线框架,据我所知,我不希望如果有任何使用。

Now as I'm forwarding in my learning, I'm thinking to explore more and want to do a real world project. My project can be easily done on both above mentioned platforms, but I want to use STM8S-Discovery(Dev board or STM8S series MCU) for this but there is no wiring framework for STM8S as far as I know and I don't want to use if there is any.

其他什么技能/信息,我需要从这些布线基础架构平台,以真实世界的微控制器项目的迁移?

What other skills/information I need to migrate from these wiring framework based platform to real world microcontroller projects?

预先感谢输入!

推荐答案

数据表和用户指南将是你最好的朋友。一定要看看编程实例该设备也是如此。通常,你需要做到以下几点:

The datasheet and user's guide will be your best friend. Be sure to look at programming examples for that device as well. Typically you'll need to do the following:


  1. 初始化时钟系统和安装外设和I / O。 (框架一般做这一切为你)。看了一些能源公司的幕后实际code,看看它是如何实际工作。

  1. Initialize clock system and setup peripherals and I/O. (Frameworks generally do all this for you). Read some of the actual code behind the scenes of Energia to see how it actually works.

在主要硬件初始化,设置你的业务逻辑(变量)。

Once the main hardware is initialized, setup your business logic (variables).

无限循环(像大多数嵌入式系统一样)......而(真)的人?

Loop indefinitely (like most embedded systems do)... while (true) anyone?

我希望帮助。

我贡献了A110LR09扩充包库Energia公司。看看源$ C ​​$ c。如果你有兴趣与如何用C / C特定设备驱动程序++用于MSP430。

I contributed the A110LR09 Booster Pack library for Energia. Take a look at the source code if you're interested with how to write specific device drivers in C/C++ for the MSP430.

这篇关于转流我的Arduino / TI的MSP430 Launchpad中/能源公司技能,真实世界的项目和C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆