了解硬件Getting to Know the Hardware
了解硬件Getting to Know the Hardware(中文9000字,应收文5500字)
硬件n。可以被踢出的计算机系统的一部分。
作为一个嵌入式软件工程师,您将有机会在您的职业生涯中使用许多不同的硬件。在这一章中,我将教你一个简单的程序,让我熟悉任何新的电路板。在这个过程中,我将指导您创建一个描述电路板最重要特性的头文件和一个将硬件初始化为已知状态的软件。
5.1了解大图
在为嵌入式系统编写软件之前,您必须先熟悉它将运行的硬件。起初,你只需要了解系统的一般操作。您不需要了解硬件的每个细节;这种知识不会马上需要,而是会随着时间而来。
无论何时你收到新的电路板,你都应该花一些时间阅读提供给它的任何文件。如果电路板是现成的产品,则可能会附带一份由软件开发人员编写的“用户指南”或“程序员手册”。但是,如果电路板是为您的项目定制设计的,那么文档可能会更加模糊或主要是为了硬件设计人员的参考。无论哪种方式,这是您开始的最佳选择。
Getting to Know the Hardware
hardware n. The part of a computer system that can be kicked.
As an embedded software engineer, you'll have the opportunity to work with many different pieces of hardware in your career. In this chapter, I will teach you a simple procedure that I use to familiarize myself with any new board. In the process, I'll guide you through the creation of a header file that describes the board's most important features and a piece of software that initializes the hardware to a known state.
[版权所有:http://DOC163.com]
5.1 Understand the Big Picture
Before writing software for an embedded system, you must first be familiar with the hardware on which it will run. At first, you just need to understand the general operation of the system. You do not need to understand every little detail of the hardware; that kind of knowledge will not be needed right away and will come with time.
Whenever you receive a new board, you should take some time to read whatever documents have been provided with it. If the board is an off-the-shelf product, it might arrive with a "User's Guide" or "Programmer's Manual" that has been written with the software developer in mind. However, if the board was custom designed for your project, the documentation might be more cryptic or written mainly for the reference of the hardware designers. Either way, this is the single best place for you to start.
While you are reading the documentation, set the board itself aside. This will help you to focus on the big picture. There will be plenty of time to examine the actual board more closely when you have finished reading. Before picking up the board, you should be able to answer two basic questions about it: [资料来源:http://www.doc163.com]