CPUConfiguration Struct Reference

Store CPU high and low speed peripheral clock prescaler. More...

#include <cpu.h>

Data Fields

Uint32 oscCLK
 Oscillator frequency.
Uint16 dsp28_DIVSEL
 SYSCLKOUT divider (0,1).
Uint16 dsp28_PLLCR
 PLL (0,10).
Uint16 hspCLK
 High-speed peripheral clock prescaler.
Uint16 lspCLK
 Low-speed peripheral clock prescaler.

Detailed Description

Store CPU high and low speed peripheral clock prescaler.

----------------------------------------------------------------------------- Specify the clock rate of the CPU (SYSCLKOUT) in nS.

Take into account the input clock frequency and the PLL multiplier selected in step 1.

Use one of the values provided, or define your own. The trailing L is required tells the compiler to treat the number as a 64-bit value.

Only one statement should be uncommented.

Example: CLKIN is a 20MHz crystal.

In step 1 the user specified PLLCR = 0xA for a 100Mhz CPU clock (SYSCLKOUT = 100MHz).

In this case, the CPU_RATE will be 10.000L Uncomment the line: define CPU_RATE 10.000L

For a 60 MHz CPU clock (SYSCLKOUT = 60MHz), user specified PLLCR = 0x06 in step 1.

In this case, the CPU_RATE will be 16.667L Uncomment the line: define CPU_RATE 16.667L ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- Specify the SYSCLKOUT max frequency for examples - either 60 MHz (for 60 MHz devices only) or 100 MHz (for all other devices - this is the default SYSCLKOUT frequency for all examples).

Doing so will allow the debugger to compile Example code which is dependent upon CPU frequency for that frequency.

Example: CLKIN is a 20MHz crystal. In step 1 the user specified PLLCR = 0xA for a 100 MHz CPU clock (SYSCLKOUT = 100MHz).

Then define CPU_FRQ_100MHZ is set as 1 (default) and define CPU_FRQ_60MHZ is set as 0 (default).

If PLLCR = 0x06 in step 1, then: define CPU_FRQ_100MHZ is set as 0 and define CPU_FRQ_60MHZ is set as 1. -----------------------------------------------------------------------------

Definition at line 155 of file cpu.h.


Field Documentation

Uint16 dsp28_DIVSEL

SYSCLKOUT divider (0,1).

Definition at line 158 of file cpu.h.

Uint16 dsp28_PLLCR

PLL (0,10).

Definition at line 159 of file cpu.h.

Uint16 hspCLK

High-speed peripheral clock prescaler.

Definition at line 160 of file cpu.h.

Uint16 lspCLK

Low-speed peripheral clock prescaler.

Definition at line 161 of file cpu.h.

Uint32 oscCLK

Oscillator frequency.

Definition at line 157 of file cpu.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Sat Apr 16 11:42:45 2011 for TIMotorLIB by  doxygen 1.6.3