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

xCORE-200 Clock Frequency Control

3/8

If a different PLL configuration is required from that used to boot the application,
the new settings should be written to the PLL_CTRL register. The PLL_CTRL register
comprises five fields (R, F, OD, LOCKN, RESETN), detailed in §

5

That register

contains a bit to instruct the PLL to hold the chip in reset, and a bit to pause the
chip whilst the PLL is not locked.

Small changes to either R or F that result in a frequency change of no more than

+/- 20% can be made by writing a new value to the register with a ‘1’ in the RESETN

bit and a ‘1’ in the LOCKN bit (0xCnnn nnnn). The PLL will gradually adjust to the
new values without either the need for a reset or a lock.

Larger changes to R or F, or changes that require both R and F to be modified,
or changes to OD can be made by writing a ‘0’ in the RESETN bit and a ‘0’ in the
LOCKN bit (0x0nnn nnnn).

If you choose to reset the device (by setting the RESETN bit low), the boot code
should read the value of the PLL_CTRL register and compare it to the reconfigured
value. If there is a difference, then this is the first time the boot code has executed
and the 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 process can continue.

The easiest way to reprogram the PLL is to specify the application’s frequency

requirements in the XN file and use the xTIMEcomposer tools to reprogram the
PLL—see §

8.1

.

5

Frequency Control Registers

To access the frequency control registers packets of data must be constructed

and communicated to the Switch through a channel end. Global PLL settings are
controlled through registers in the Node Configuration control registers. From C or

XC, use the

write_node_config_reg()

and

read_node_config_reg()

functions defined

in

xs1.h

. The bits that can be controlled are shown in Figure

4

.

Settings on an individual tile basis are controlled through registers in the Tile
Configuration control registes. From C or XC, use the

write_tile_config_reg()

and

read_tile_config_reg()

functions defined in

xs1.h

. The bits that can be controlled

are shown in Figure

5

.

6

Example PLL Configurations

6.1

Standard Configuration: 25MHz Oscillator

Use

MODE[1:0] = 11

, ie, leave any mode pins Not Connected. The PLL will configure

to the standard 400MHz, with the xCORE tile and SSwitch running at 400MHz, with
a 100MHz reference clock.

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

Отзывы: