Motorola DSP56301 user manual Peripheral Initialization Steps, Programming the Peripherals

Models: DSP56301

1 372
Download 372 pages 304 b
Page 111
Image 111

Chapter 5

Programming the Peripherals

When the DSP56301 peripherals (HI32, ESSI, SCI, and Timers) are programmed in a given application, a number of possible modes and options are available for use. Chapters 6–9describe 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 DSP56301, data transfer methods that are available when the various peripherals are used, and information on General-Purpose Input/Output (GPIO) configuration.

5.1Peripheral 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.

Find the peripheral register descriptions in the manual.

Choose the appropriate modes to configure for a given application.

Determine the bit settings for programming those modes.

2.Make sure the peripheral is in individual reset state or disabled.

Peripheral control registers should not be modified while the peripheral is active.

3.Configure the registers by writing the predetermined values to them.

Write the register values determined in step 1 into the appropriate register locations.

4.Enable the peripheral.

Once the peripheral is enabled, it operates according the programmed modes determined in step 1.

For detailed initialization procedures unique to each peripheral, consult the initialization section within each peripheral’s chapter.

Programming the Peripherals

5-1

Page 111
Image 111
Motorola DSP56301 user manual Peripheral Initialization Steps, Programming the Peripherals