使用 Atmel 89C2051 微控制器开发固件应用程序需要哪些软件?
请列出一些可以帮助我为 Atmel 89C2051 微控制器构建固件的软件和链接。谢谢。
Please list some software/s and links which can help me build firmware for Atmel 89C2051 micro-controller. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Atmel AT89C2051 是流行的 8051 的 20 引脚版本微控制器。程序存储器(闪存)限制为 2K,并且所有与跳转或分支相关的指令都应受到限制,以便目标地址落在设备的物理程序存储器空间内。 Atmel AT89C2051 还具有所有正常的 128 字节RAM 以及内置 UART。
数据表(PDF 链接)通常是一个不错的起点为微控制器开发固件。
由于 Atmel AT89C2051 与 MCS-51 架构,并且可以使用 MCS-51 指令集,http://www.8052.com 应该是一个很好的资源。
http://www.google.com/search?q= 89C2051+site:www.8052.com
开源小型设备 C 编译器 (SDCC)工具链可用于生成对 Atmel 芯片进行编程所需的固件文件。
Atmel C51ASM 汇编器是一个两遍宏汇编器,用于Atmel AT89 系列 8051 微控制器,并且根据文档,支持 AT89C2051。
Stack Overflow 问题标记为 8051 也可能有用。
The Atmel AT89C2051 is a 20 pin version of the popular 8051 microcontroller. The program memory (Flash) is limited to 2K and all the instructions related to jumping or branching should be restricted such that the destination address falls within the physical program memory space of the device. The Atmel AT89C2051 also has all of the normal 128 bytes of RAM as well as the built-in UART.
The datasheet (PDF link) is often a good place to start when developing firmware for a microcontroller.
Since the Atmel AT89C2051 is fully compatible with the MCS-51 architecture, and can be programmed using the MCS-51 instruction set, http://www.8052.com should be a good resource.
http://www.google.com/search?q=89C2051+site:www.8052.com
The open source Small Device C Compiler (SDCC) toolchain can be used to produce the necessary firmware files for programming the Atmel chip.
The Atmel C51ASM assembler is a two-pass macro assembler for the Atmel AT89 Family of 8051 microcontrollers and, according to the documentation, supports the AT89C2051.
The Stack Overflow questions tagged 8051 may also be of use.
我使用 Keil µVision 为具有 MCS51 指令集的微控制器开发固件。它很方便,但不是免费的,而且试用版对固件大小有一些限制。
I used Keil µVision for developing firmware for microcontrollers with MCS51 instruction set. It was convenient, but it was not free and trial version had some limitations on size of firmware.
您需要 2 或 3 件事:
开发固件:根据您擅长的编程语言,您可以使用汇编语言 [a51 & asem51是很好的汇编器],c交叉编译器[keil c51免费试用版应该足够了]甚至是基本的[你可以在网上找到8051的基本编译器] .
固件应为 Intel 十六进制格式;如果您的汇编器/编译器输出是二进制代码,则需要一个
bin2hex
实用程序将二进制代码转换为十六进制格式。您可以在网上找到免费软件bin2hex
实用程序。编程器[这是硬件],用于将固件加载到微控制器的程序存储器中。
You need 2 or 3 things:
Develop the firmware: Depending on what programming language you are good at, you may use assembly language [a51 & asem51 are good assemblers], c cross-compiler [keil c51 free trial version should be sufficient] or even basic [you can find a basic compiler for 8051 on the net].
The firmware should be in Intel hex format; if your assembler/compiler output is binary code, you need a
bin2hex
utility to convert the binary code to hex format. You can find freewarebin2hex
utilities on the web.A programmer [this is hardware] for loading the firmware into the microcontroller's program memory.