Programming The Peripherals; Peripheral Initialization Steps - Motorola DSP56303 User Manual

24-bit digital signal processor
Table of Contents

Advertisement

Chapter 5

Programming the Peripherals

When peripherals are programmed in a given application, a number of possible modes and
options are available for use. Chapters 6 through 9 describe in detail the possible modes and
configurations for peripheral registers and ports. This chapter presents general guidelines for
initializing the peripherals. These guidelines include a description of how the control registers
are mapped in the DSP56303, data transfer methods that are available when the various
peripherals are used, and information on General-Purpose Input/Output (GPIO)
configuration.
5.1

Peripheral Initialization Steps

Each peripheral has its own initialization process. However, all four peripherals share some
common steps, which follow:
1.
Determine the Register values to be programmed, using the following steps:
a.
Find the peripheral register descriptions in the manual.
b.
Choose the appropriate modes to configure for a given application.
c.
Determine the bit settings for programming those modes.
2.
Make sure the peripheral is in individual reset state or disabled.
Note:
Peripheral registers should not be modified while the peripheral is active.
3.
Configure the registers by writing the predetermined values from step 1 into the appro-
priate register locations.
4.
Enable the peripheral. Once the peripheral is enabled, it operates according the pro-
grammed modes determined in step 1.
For detailed initialization procedures unique to each peripheral device, consult the
initialization section in the specific peripheral device chapter.
Programming the Peripherals
5-1

Advertisement

Table of Contents
loading

Table of Contents