Chapter5 programming the peripherals, 1 peripheral initialization steps, Chapter – Motorola DSP56301 User Manual

Page 111: Peripheral initialization steps -1, Chapter 5 programming the peripherals

Advertising
background image

Programming the Peripherals

5

-1

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–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 DSP56301, 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.

— 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.

Advertising