Programming the Peripherals
5
-1
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.
Summary of Contents for DSP56303
Page 1: ...DSP56303 User s Manual 24 Bit Digital Signal Processor DSP56303UM AD Revision 1 January 2001 ...
Page 52: ...JTAG OnCE Interface 2 22 DSP56303 User s Manual ...
Page 114: ...General Purpose Input Output GPIO 5 10 DSP56303 User s Manual ...
Page 212: ...GPIO Signals and Registers 8 26 DSP56303 User s Manual ...
Page 268: ...Interrupt Equates A 22 DSP56303 User s Manual ...
Page 306: ...Programming Sheets B 38 DSP56303 User s Manual ...
Page 320: ...Index 14 DSP56303 User s Manual ...