Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Embedded Controller Hardware Design (Ken Arnold, 2001).pdf
Скачиваний:
145
Добавлен:
12.08.2013
Размер:
1.22 Mб
Скачать

55CHAPTER TWO

Microcontroller Concepts

Indexed addressing (e.g. MOVC A,@A+DPTR) is a combination of direct and register indirect addressing, because the instruction includes an offset address (DPTR), which is added to an index register (A register) to determine the address of the data to transfer.

It should be noted that the nomenclature for the various address modes varies, and the 8051 family address modes used for the examples above are not necessarily the best examples, as other processors support more extensive and flexible address modes.

The Software Development Cycle

The standard software development process consists of the following steps:

1)Create or edit an ASCII text file containing the human readable source code, also known as the program instructions.

2)Translate the source code to machine-readable binary instruction code using a language translator. This is accomplished using an assembler or compiler.

3)Load the program memory with the binary instruction code into the processor’s program memory chip. For the SDK, the program is down­ loaded into program memory on the SDK.

4)Execute the program to test it and find program errors. For the SDK, this “debugging” process is facilitated using a special program (debugger or monitor) resident on the SDK.

5)Once the problem is located, the source code is corrected by repeating this process until all errors are corrected.

Software Development Tools

Software tools include translators, like assemblers and compilers, and debug­ ging tools. Active debugging tools include:

In-circuit emulators (ICE) for HW/SW integration; these are plugged into the application circuit (the “target” system) in place of the CPU, allowing the designer to “see inside” the microcontroller, download, and execute programs selectively.