此工具包用于Arduino的嵌入式编程设计。
This file exchange submission is an Embedded Coder custom target for Arduino.
它使用Arduino平台作为示例硬件,通过相关代码的学习,可以应用于任何自定义的目标硬件。
It uses the Arduino platform as the example hardware, yet the examples it shows can be used to learn and then be applied on any custom target.
作为一种应用方式——展示了利用嵌入式编程器的许多特性,以及创建自定义目标的功能和步骤。
In an applied way - it shows capabilities and steps that leverage many features of Embedded Coder and creating custom targets.
之所以选择Arduino,是因为它具有广泛的可获取性,拥有一个大型的DIY社区,是一个伟大的平台,可以随着各种Arduino平台的变化来探索定制目标所需的各种内容。
Arduino has been selected since it is widely accessible, has a large DIY community, and is a great platform to explore the varying things that a custom target would need as the various Arduino platforms change.
自定义目标硬件的工程师可以使用本工具包来扩展/创建更多的Arduino目标,或者轻松地将其作为示例来创建自己的目标。
A custom target author can use this submission to extend/create more Arduino targets, or to simply use this as an example to create your own.
采用嵌入式编程器的最终用户可以将此应用于自己的Arduinos。
An end user that has Embedded Coder can use this submission for their Arduinos.
本工具包的特点包括:
Some highlights included in this custom target include:
展示如何处理不同Arduino板(甚至非Arduino板)的依赖项。
当前支持的内容包括Uno, Leonardo, Mega2560。
Current set includes Uno, Leonardo, Mega2560.
可用于驱动最小管脚和存储的选项。
循环中的处理器(PIL)
探索多种调度和定时模式
Simulink算法中直接暴露的溢出检测,从而允许在检测到溢出时进行算法调整。
关于如何添加/更改外围设备模块/功能(LCD、伺服电机、UART、打印到UART、DIO、超声波传感器、异步中断、I2C主设备、I2C从设备等)的大量示例。
其它相关资源如下:
Additional resources for creating custom targets
嵌入式编程器的产品手册
www.mathworks.com/help/ecoder/index.html (account/license required)
嵌入式开发的咨询服务
www.mathworks.com/services/consulting/proven-solutions/developing-embedded-targets.html
MATLAB问答:开发自定义嵌入式目标示例
www.mathworks.com/matlabcentral/answers/93884
注:只支持Arduino IDE 1.0.5版本。
Note: Only Arduino IDE version 1.0.5 is supported and this submission is not maintained to support new IDEs.
其它更多资源,请参考以下网站:
For additional Arduino support, see www.mathworks.com/hardware-support/arduino-simulink.html.
完整源码下载地址:
http://page2.dfpan.com/fs/cl3c7j32027192a9163/