XMOS xCORE-200 Multi-channel Audio board Скачать руководство пользователя страница 5

xCORE-200 Clock Frequency Control

5/8

7

Example System Clock Divider Configurations

7.1

133MHz Reference Clock

To adjust the Reference Clock to 133MHz with a 400MHz System Clock, set

REFDIV

to

2

using the following code:

w r i t e _ n o d e _ c o n f i g _ r e g ( t i l e [0] , X S 1 _ S S W I T C H _ R E F _ C L K _ D I V I D E R _ N U M , 0 x02 ) ;

This will adjust all timers and clock-blocks to run at 133.3MHz, and allow ports to

be configured at 66MHz, 33MHz and so on.

7.2

Slow Switch Clock

For applications where only a single xCORE-200 device is used, the SSwitch is only
used for configuration purposes. Once the system is configured, the SSwitch clock
can be substantially reduced to save on dynamic power. 1MHz is a good option for
a low power SSwitch clock because the SSwitch power is dominated by the static
power at this frequency.

To reduce the SSwitch clock to 1MHz with a system clock of 400MHz, set

SSDIV

to

399

using the following code:

w r i t e _ n o d e _ c o n f i g _ r e g ( t i l e [0] , X S 1 _ S S W I T C H _ C L K _ D I V I D E R _ N U M , 3 9 9 ) ;

7.3

xCORE Tile Clock 200MHz

If your application does not need to run the xCORE tile at full speed to work,
dynamic power can be saved by running the tile at a slower rate. For this to work,
each tile has its own clock divider that is enabled by setting a bit in the Processor
Status Configuration

To run a tile at 200MHz from a system frequency of 400MHz, set

XCDIV

to

1

and

enable the clock divider for this processor by writing

0x10

to

XCORE_CTRL0

:

w r i t e _ t i l e _ c o n f i g _ r e g ( t i l e [0] , X S 1 _ P S W I T C H _ P L L _ C L K _ D I V I D E R _ N U M , 1) ;
s e t p s ( X S 1 _ P S _ X C O R E _ C T R L 0 ,0 x10 ) ;

8

Configuring the Clock System Through the XN File

The PLL and the reference clock frequency can be programmed automatically for an

application by using the xTIMEcomposer tools. The application’s input oscillator
frequency, system frequency and reference frequency can be specified in the XN
file. When the application code is written to a flash device with XFLASH, the code to
reprogram the PLL to the desired system and reference frequencies will be added.

When run with XRUN or XGDB the PLL is reprogrammed via JTAG.

The frequency control attributes should be added to the Node node within the
XN file. Frequencies should be specified with their unit of MHz, kHz or Hz, (for

XM010761A

Содержание xCORE-200 Multi-channel Audio board

Страница 1: ...clock to derive the clocks for the xCORE tiles the RGMII unit the switch and the reference clock XCore0 Tile Clk XCore1 Tile Clk Divider Stage 1 R 1 CLK Multiplier Stage F 1 2 Divider Stage 2 OD 1 Sw...

Страница 2: ...mum RGMII clock System clock maximum USB clock 12 or 24 MHz Figure 2 Clock Frequency Constraints 3 PLL Settings There are three dividers within the PLL R divides the input clock down The next divider...

Страница 3: ...new PLL settings should be written to PLL_CTRL causing a reset The second time the boot code executes the value read back from the PLL_CTRL register will be the reconfigured value and the boot proces...

Страница 4: ...or a 400MHz sys tem clock Figure 4 Node Config uration Registers Register Bitfield Reset Description XS1_PSWITCH_PLL_CLK_DIVIDER_NUM 15 0 0 xCORE Tile clock divider XCDIV 1 Reset value produces 400MHz...

Страница 5: ...pplication does not need to run the xCORE tile at full speed to work dynamic power can be saved by running the tile at a slower rate For this to work each tile has its own clock divider that is enable...

Страница 6: ...ibute is specified 100MHz Figure 6 XN File Frequency Control Attributes example 500MHz 24576kHz or 6745800Hz If the frequency control attributes are not specified in the XN file then the xTIMEcomposer...

Страница 7: ...tp www xmos com Type Board Type Declarations Declaration tileref tile 1 Declaration Declarations Packages Package id 0 Type XS2 UEnA 512 TQ128 Nodes Node Id 0 InPackageId 0 Type XS2 L16A 512 Oscillato...

Страница 8: ...or Information collectively the Information and is providing it to you AS IS with no warranty of any kind express or implied and shall have no liability in relation to its use Xmos Ltd makes no repres...

Отзывы: