Spru 879 A
Spru 879 A
Reference Guide
Preface ............................................................................................................................... 5
1 Overview .................................................................................................................... 7
2 Functional Description................................................................................................. 9
2.1 Multiplier and Dividers .............................................................................................. 9
2.2 Reset Controller ..................................................................................................... 9
3 Configuration ............................................................................................................ 11
3.1 Initialization ......................................................................................................... 11
3.2 Changing Divider/Multiplier Ratio............................................................................... 12
3.3 PLL Power Down .................................................................................................. 13
3.4 PLL Wake Up ...................................................................................................... 13
3.5 Oscillator Power Down ........................................................................................... 13
4 Registers .................................................................................................................. 14
4.1 PLL Controller Peripheral Identification Register (PLLPID) .................................................. 14
4.2 PLL Control/Status Register (PLLCSR) ........................................................................ 15
4.3 PLL Multiplier Control Register (PLLM) ........................................................................ 16
4.4 PLL Controller Divider Registers (PLLDIV0-PLLDIV3) ....................................................... 17
4.5 PLL Controller Command Register (PLLCMD) ................................................................ 18
4.6 PLL Controller Status Register (PLLSTAT) .................................................................... 19
4.7 PLL Controller Clock Align Control Register (ALNCTL) ...................................................... 20
4.8 Clock Enable Control Register (CKEN) ........................................................................ 21
4.9 Clock Status Register (CKSTAT) ............................................................................... 22
4.10 SYSCLK Status Register (SYSTAT) ............................................................................ 23
Appendix A Board Connections to Select CLKIN or OSCIN as Reference Clock Source ........... 24
List of Tables
1 PLL Controller Registers .................................................................................................. 14
8 PLL Controller Clock Align Control Register (ALNCTL) Field Descriptions ........................................ 20
Notational Conventions
This document uses the following conventions.
• Hexadecimal numbers are shown with the suffix h. For example, the following number is 40
hexadecimal (decimal 64): 40h.
• Registers in this document are shown in figures and described in tables.
– Each register figure shows a rectangle divided into fields that represent the fields of the register.
Each field is labeled with its bit name, its beginning and ending bit numbers above, and its
read/write properties below. A legend explains the notation used for the properties.
– Reserved bits in a register figure designate a bit that is used for future device expansion.
1 Overview
The PLL controller (Figure 1) features software-configurable PLL multiplier controller (PLLM), dividers (D0,
D1, D2, and D3), and reset controller. The PLL controller accepts an input clock from the CLKIN pin or
from the on-chip oscillator output signal OSCIN. The PLL controller offers flexibility and convenience by
way of software-configurable multiplier and dividers to modify the input signal internally. The resulting
clock outputs are passed to the DSP core, peripherals, and other modules inside the DSP.
• The input reference clocks to the PLL controller:
– CLKIN: input signal from external oscillator (3.3V)
– OSCIN: output signal from on-chip oscillator (1.2V)
• The resulting output clocks from the PLL controller:
– AUXCLK: internal clock output signal directly from CLKIN or OSCIN.
– SYSCLK1: internal clock output of divider D1.
– SYSCLK2: internal clock output of divider D2.
– SYSCLK3: internal clock output of divider D3.
Refer to your device-specific data manual on how these inputs and outputs of the PLL controller are used.
Overview
PLL controller
(A)
CLKIN Divider D0
÷1, ÷2,...÷32 PLL(B) PLLOUT
OSCIN
PLLM
x4 − x25
0 1 PLLEN
Functional Description
2 Functional Description
The following sections describe the multiplier, dividers, and reset controller in the PLL controller.
Functional Description
RESET pin
Configuration
3 Configuration
The following sections provide procedures for initialization, power down, and wake up of the PLL
controller.
3.1 Initialization
The PLL and PLL controller are to be initialized by software after reset. The PLL controller registers should
be modified only by the CPU or via emulation. The HPI should not be used to directly access the PLL
controller registers. The initialization of the PLL controller should be performed as soon as possible at the
beginning of the program, before initializing any peripherals. Upon device reset, one of the following two
software initialization procedures must be done to properly set up the PLL and PLL controller.
Configuration
3.2 Changing Divider/Multiplier Ratio
This section discusses how to change the various divider/multiplier ratios.
3.2.1.1 GO Operation
Writes to the RATIO field in PLLDIV1-PLLDIV3 do not change the dividers’ actual divide ratios
immediately. The PLLDIVn dividers only change to the new RATIO rates during a GO operation. This
section discusses the GO operation and how the SYSCLKs are aligned.
The PLL controller clock align control register (ALNCTL) determines which SYSCLKs must be aligned.
Before a GO operation, you must program ALNCTL according to the device-specific data manual
requirement so that the appropriate clocks are aligned during the GO operation. All SYSCLKs must be
aligned; therefore, the ALNn bits in ALNCTL should always be set to 1 before a GO operation.
A GO operation is initiated by setting the GOSET bit in PLLCMD to 1. During a GO operation:
• Any SYSCLKn with the corresponding ALNn bit in ALNCTL set to 1 is paused at the low edge. Then
the PLL controller restarts all these SYSCLKs simultaneously, aligned at the rising edge. When the
SYSCLKs are restarted, SYSCLKn toggles at the rate programmed in the RATIO field in PLLDIVn.
• Any SYSCLKn with the corresponding ALNn bit in ALNCTL cleared to 0 remains free-running during a
GO operation. SYSCLKn is not modified to the new RATIO rate in PLLDIVn. SYSCLKn is not aligned
to other SYSCLKs.
• The GOSTAT bit in PLLSTAT is set to 1 throughout the duration of a GO operation.
Figure 3 shows how the clocks are rising-edge aligned during a GO operation. Even though SYSCLK3
ratio remains the same, you must still program ALN3 = 1 in ALNCTL so that during the GO operation the
PLL controller aligns SYSCLK3 to SYSCLK1 and SYSCLK2.
SYSCLK1
/1 to /2,
set ALN1=1
SYSCLK2
/2 to /4,
set ALN2=1
SYSCLK3
/3 to /3,
set ALN3=1
All SYSCLKs rising−edge aligned
Configuration
3.2.1.2 Software Steps to Modify PLLDIVn Ratios
Perform the following steps to modify PLLDIVn.
1. Check that the GOSTAT bit in PLLSTAT is cleared to 0 to show that no GO operation is currently in
progress.
2. Program the RATIO field in PLLDIVn to the desired new divide-down rate.
3. Set the ALN1-3 bits in ALNCTL to 1 so that SYSCLK1-3 are aligned after the GO operation.
4. Set the GOSET bit in PLLCMD to 1 to initiate the GO operation to change the divide values and align
SYSCLK1-3.
5. Read the GOSTAT bit in PLLSTAT to make sure the bit goes back to 0 to indicate that the GO
operation has completed.
Registers
4 Registers
The PLL controller registers configure the operation of the PLL controller. The PLL controller registers are
listed in Table 1. See the device-specific data manual for the memory address of these registers. All other
register offset addresses not listed in Table 1 should be considerd as reserved locations and the register
contents should not be modified.
15 8 7 0
CLASS REV
R-08h R-01h
LEGEND: R = Read only; -n = value after reset
Registers
15 7 6 5 4 3 2 1 0
Reserved STABLE Rsvd PLLPWRDN PLLRST OSCPWRDN Rsvd PLLEN
R-0 R-1 R/W-0 R/W-1 R/W-1 R/W-0 R/W-0 R/W-0
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Registers
4.3 PLL Multiplier Control Register (PLLM)
The PLL multiplier control register (PLLM) is shown in Figure 6 and described in Table 4. The PLLM
defines the input reference clock frequency multiplier in conjunction with the PLL divider ratio bits (RATIO)
in the PLL controller divider 0 register (PLLDIV0).
15 5 4 0
Reserved PLLM
R-0 R/W-Dh
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Registers
4.4 PLL Controller Divider Registers (PLLDIV0-PLLDIV3)
The PLL controller divider register (PLLDIV0-PLLDIV3) is shown in Figure 7 and described in Table 5.
Figure 7. PLL Controller Divider Register (PLLDIVn) [Offset 114h, 118h, 11Ch, 120h]
31 16
Reserved
R-0
15 14 5 4 0
DnEN Reserved RATIO(A)
R/W-1 R-0 R/W-n
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
A For DIV0 and DIV1, the default value is 0h (÷1); for DIV2, the default value is 1h (÷2); for DIV3, the default value is 2h (÷3).
Registers
4.5 PLL Controller Command Register (PLLCMD)
The PLL controller command register (PLLCMD) contains the command bit for GO operation. PLLCMD is
shown in Figure 8 and described in Table 6.
15 1 0
Reserved GOSET
R-0 R/W-0
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Registers
4.6 PLL Controller Status Register (PLLSTAT)
The PLL controller status register (PLLSTAT) shows the PLL controller status. PLLSTAT is shown in
Figure 9 and described in Table 7.
15 1 0
Reserved GOSTAT
R-0 R-0
LEGEND: R = Read only; -n = value after reset
Registers
4.7 PLL Controller Clock Align Control Register (ALNCTL)
The PLL controller clock align control register (ALNCTL) is shown in Figure 10 and described in Table 8.
Figure 10. PLL Controller Clock Align Control Register (ALNCTL) [Offset 140h]
31 16
Reserved
R-0
15 3 2 1 0
Reserved ALN3 ALN2 ALN1
R-0 R/W-0 R/W-0 R/W-0
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 8. PLL Controller Clock Align Control Register (ALNCTL) Field Descriptions
Bit Field Value Description
31-3 Reserved 0 Reserved. The reserved bit location is always read as 0. A value written to this field has no effect.
2 ALN3 SYSCLK3 alignment.
0 Do not use this setting. Do not change SYSCLK3 divide ratio nor align SYSCLK3 to other SYSCLKs
during GO operation. SYSCLK3 is left free-running when the GOSET bit in PLLCMD is set to 1.
1 Use this setting. Align SYSCLK3 to other SYSCLKs selected in ALNCTL when the GOSET bit in
PLLCMD is set to 1. Change SYSCLK3 rate to the ratio programmed in the RATIO bit in PLLDIV3.
1 ALN2 SYSCLK2 alignment.
0 Do not use this setting. Do not change SYSCLK2 divide ratio nor align SYSCLK2 to other SYSCLKs
during GO operation. SYSCLK2 is left free-running when the GOSET bit in PLLCMD is set to 1.
1 Use this setting. Align SYSCLK2 to other SYSCLKs selected in ALNCTL when the GOSET bit in
PLLCMD is set to 1. Change SYSCLK2 rate to the ratio programmed in the RATIO bit in PLLDIV2.
0 ALN1 SYSCLK1 alignment.
0 Do not use this setting. Do not change SYSCLK1 divide ratio nor align SYSCLK1 to other SYSCLKs
during GO operation. SYSCLK1 is left free-running when the GOSET bit in PLLCMD is set to 1.
1 Use this setting. Align SYSCLK1 to other SYSCLKs selected in ALNCTL when the GOSET bit in
PLLCMD is set to 1. Change SYSCLK1 rate to the ratio programmed in the RATIO bit in PLLDIV1.
Registers
4.8 Clock Enable Control Register (CKEN)
The clock enable control register (CKEN) enables/disables the PLL controller output clock, AUXCLK.
CKEN is shown in Figure 11 and described in Table 9.
15 3 2 1 0
Reserved Reserved AUXEN
R-0 R/W-1 R/W-1
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Registers
4.9 Clock Status Register (CKSTAT)
The clock status register (CKEN) shows the status of all PLL controller output clock, AUXCLK. CKSTAT is
shown in Figure 12 and described in Table 10.
15 3 2 1 0
Reserved Reserved AUXON
R-0 R-1 R-1
LEGEND: R = Read only; -n = value after reset
Registers
4.10 SYSCLK Status Register (SYSTAT)
The SYSCLK status register (SYSTAT) shows the status of SYSCLK1, SYSCLK2, and SYSCLK3.
SYSTAT is shown in Figure 13 and described in Table 11.
15 3 2 1 0
Reserved SYS3ON SYS2ON SYS1ON
R-0 R-1 R-1 R-1
LEGEND: R = Read only; -n = value after reset
Appendix A
The following figures show the board connections to select CLKIN or OSCIN as the reference clock
source to the PLL controller. Figure A-1 shows the case when the CLKIN pin is used as the
reference clock source. Figure A-2 shows the case when the OSCIN pin is used as the reference
clock source.
OSCIN
PLL
controller
OSCOUT
On−chip
Open oscillator
OSCVSS
TMS320C672x DSP
24 Board Connections to Select CLKIN or OSCIN as Reference Clock Source SPRU879A – May 2005
www.ti.com
Appendix A
CLKIN ”0”
Deglitch
OSCVDD
OSCIN
PLL
controller
OSCOUT On−chip
oscillator
OSCVSS
TMS320C672x DSP
SPRU879A – May 2005 Board Connections to Select CLKIN or OSCIN as Reference Clock Source 25
IMPORTANT NOTICE
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications,
enhancements, improvements, and other changes to its products and services at any time and to discontinue
any product or service without notice. Customers should obtain the latest relevant information before placing
orders and should verify that such information is current and complete. All products are sold subject to TI’s terms
and conditions of sale supplied at the time of order acknowledgment.
TI warrants performance of its hardware products to the specifications applicable at the time of sale in
accordance with TI’s standard warranty. Testing and other quality control techniques are used to the extent TI
deems necessary to support this warranty. Except where mandated by government requirements, testing of all
parameters of each product is not necessarily performed.
TI assumes no liability for applications assistance or customer product design. Customers are responsible for
their products and applications using TI components. To minimize the risks associated with customer products
and applications, customers should provide adequate design and operating safeguards.
TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right,
copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process
in which TI products or services are used. Information published by TI regarding third-party products or services
does not constitute a license from TI to use such products or services or a warranty or endorsement thereof.
Use of such information may require a license from a third party under the patents or other intellectual property
of the third party, or a license from TI under the patents or other intellectual property of TI.
Reproduction of information in TI data books or data sheets is permissible only if reproduction is without
alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction
of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for
such altered documentation.
Resale of TI products or services with statements different from or beyond the parameters stated by TI for that
product or service voids all express and any implied warranties for the associated TI product or service and
is an unfair and deceptive business practice. TI is not responsible or liable for any such statements.
Following are URLs where you can obtain information on other Texas Instruments products and application
solutions:
Products Applications
Amplifiers amplifier.ti.com Audio www.ti.com/audio
Data Converters dataconverter.ti.com Automotive www.ti.com/automotive
DSP dsp.ti.com Broadband www.ti.com/broadband
Interface interface.ti.com Digital Control www.ti.com/digitalcontrol
Logic logic.ti.com Military www.ti.com/military
Power Mgmt power.ti.com Optical Networking www.ti.com/opticalnetwork
Microcontrollers microcontroller.ti.com Security www.ti.com/security
Telephony www.ti.com/telephony
Video & Imaging www.ti.com/video
Wireless www.ti.com/wireless