Home

Texas Instruments TMS3320C5515 User's Manual

image

Contents

1. For actual maximum operating frequencies see the device specific data sheet Table 1 10 PLL Clock Frequency Ranges CVpp 1 05 V CVpp 1 3 V Clock Signal Name MIN NOM MAX MIN NOM MAX UNIT CLKIN 11 289 11 28 MHz 6 96 12 12 12 288 12 28 8 RTC Clock 32 768 Fi KHz PLLIN 32 0 170 32 0 170 KHz PLLOUT 60 120 60 120 MHz SYSCLK o 60 or 75 0 1000r MHz PLL_LOCKTIME 4 4 ms 1 These CLKIN values are used when the CLK SEL pin 1 Bootloader assumes one of these CLKIN frequencies 1 4 3 2 4 Setting the Output Frequency for the PLL MODE The clock generator output frequency configured based on the settings programmed in the clock generator control registers The output frequency depends on primarily on three factors the reference divider value the PLL multiplier value and the output divider value see Figure 1 4 Based on the register settings controlling these divider and multiplier values you can calculate the frequency of the output clock using the formulas listed in Table 1 5 28 Follow these steps to determine the values for the different dividers and multipliers of the system clock generator 1 With the desired clock frequency in mind choose a PLLOUT frequency that falls within the range listed in Table 1 10 Keep in mind that you can use the programmable output divider to divide the output frequency of the PLL 2 Determine the divider ratio for the reference divider that wil
2. Each DMA controller contains two channel event source registers DMAnCESR1 and DMAnCESR2 DMANCESR1 controls the synchronization event for DMAn channel 0 and 1 while DMAnCESR2 controls the synchronization event for DMAn channel 2 and 3 The synchronization events available to each DMA controller are shown in Table 1 52 Multiple DMAs and multiple channels within a DMA are allowed to have the same synchronization event Figure 1 44 DMAn Channel Event Source Register 1 DMAnCESR1 1C1Ah 1C1Ch 1C36h and 1C38h 15 12 11 8 7 4 3 0 Reserved CH1EVT Reserved CHOEVT R 0 RW O R 0 RW O LEGEND R W Read Write R Read only n value after reset Figure 1 45 DMAn Channel Event Source E 2 DMAnCESR2 1C1Bh 1C1Dh 1C37h and 1C39h 15 12 11 8 7 4 3 0 Reserved CH3EVT Reserved CH2EVT R 0 RW O R 0 RW O LEGEND R W Read Write R Read only n value after reset Table 1 56 DMAn Channel Event Source Register 1 DMANCESR1 Field Descriptions Bit Field Value Description 15 12 Reserved 0 Reserved 11 8 CHIEVT DEN Channel 1 synchronization events When SYNCMODE 1 in a channel s DUACHmTCR2 the CHI1EVT bits in the DMAnCESR registers specify the synchronization event for activity in the DMA controller See Table 1 52 for a list of available synchronization event options 7 4 Reserved 0 Reserved 3 0 CHOEVT 0 Fh Channel 0 synchronization events when SYNCMODE 1 in a chan
3. issie esse ek ee RR EER RR ER RR RA ER RA ER RR RE RR Re Re RR RE Re Re Re Re ee 1 54 DMA Interrupt Flag Register DMAIFR Field Descriptions EN 1 55 DMA Interrupt Enable Register DMAIER Field Descrptons sees sees see ee Rae RR ER RR EER RR ee RR RR ER Rae RR Re ee 1 56 DMAn Channel Event Source Register 1 DMAnCESR1 Field Descriptions 1 57 DMAn Channel Event Source Register 2 DMAnCESR2 Field Descriptions 1 58 Peripheral Software Reset Counter Register PSRCR Field Descriptions 1 59 Peripheral Reset Control Register PRCR Field Descriptions sesse ese ee sek cece eens sees eens eee RARR RE RR ER Re 1 60 Effect of BYTEMODE Bits on EMIF ACCESSES sesse ee eke ee ke eke ek ee Rae Re ek Re eke Ra ee Re ek Rek ee Rae RR GR Re RR Re 1 61 Effect of USBSCR BYTEMODE Bits on USB Access 1 62 EMIF System Control Register ESCR Field Descriptions sesse ese seek Re ek Re RR RR RR RR RE RR Re RR RR RARR Rek Re RR Re 1 63 EMIF Clock Divider Register ECDR Field Descriptions iese ee ekke Rae Re RR RE RR RR RARR RE RR RR RR RR RARR RR RR ER Re SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated List of Tables 7 8 List of Tables SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUMENTS Preface SPRUFX5A October 2010 Revised November 2010
4. CPU CPUI must also be set 1 5 3 1 3 Clock Configuration Process The clock configuration indicates which portions of the CPU clock domain will be idle and which will be active The basic steps to the clock configuration process are 1 To idle MPORT DMA controller LCD DMA and USB CDMA must not be accessing SARMA or DARAM If any DMA is in active wait for completion of the DMA transfer 2 Write the desired configuration to the idle configuration register ICR Make sure that you use a valid idle configuration see Section 1 5 3 1 2 3 Apply the new idle configuration by executing the IDLE instruction The content of ICR is copied to the idle status register ISTR The bits of ISTR are then propagated through the CPU domain system to enable or disable the specified clocks If the CPU domain was idled then program execution will stop immediately after the idle instruction If the CPU domain was not idled then program execution will continue past the idle instruction but the appropriate domains will be idle The IDLE instruction cannot be executed in parallel with another instruction The CPU DPORT XPORT and IPORT domains are enabled automatically by any unmasked interrupts There is a logic in the DSP core that enables CPU DPORT XPORT and IPORT clears the bits 0 5 6 and 8 of the ISTR register asynchronously upon detecting an interrupt signal Therefore when an unmasked interrupt signal reaches the DSP core these do
5. Read This First About This Manual This document describes various aspects of the TMS320C5515 digital signal processor DSP including system memory device clocking options and operation of the DSP clock generator power management features interrupts and system control Notational Conventions This document uses the following conventions e Hexadecimal numbers are shown with the suffix h For example the following number is 40 hexadecimal decimal 64 40h e 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 Related Documentation From Texas Instruments The following documents describe the TMS320C5515 14 05 04 Digital Signal Processor DSP Digital Signal Processor DSP Copies of these documents are available on the internet at http www ti com SWPU073 TMS320C55x 3 0 CPU Reference Guide This manual describes the architecture registers and operation of the fixed point TMS320C55x digital signal processor DSP CPU SPRU652 TMS320C55x DSP CPU Programmer s Reference Supplement This document describes functional except
6. Read Write R Read only n value after reset SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback System Control 49 Copyright 2010 Texas Instruments Incorporated Power Management 1 5 5 Power Configurations A TEXAS INSTRUMENTS www ti com The power saving features described in the previous sections such as peripheral clock gating and on chip memory power down to name a few can be combined to form a power configuration Many different power configurations can be created by enabling and disabling different power domains and clock domains however this section defines some basic power configurations that may be useful These are shown and described in Table 1 31 Please note that there is no single instruction or register that can place the device in these power configurations Instead these power configurations are achieved by modifying multiple registers NOTE Before you change the power configuration make sure that there is a method for the device to exit the power configuration After exiting a power configuration your software may have to take additional steps to change the clock and power configuration for other domains NOTE The on chip Bootloader idles all peripherals and CPU ports at startup It enables some peripherals as it uses them Your application code should check the idle configuration of peripherals and CPU ports before using them to be sure these are
7. Uint16 scale_flag Ox00ffEdd9 hwafft 16pts 16 pt FFT IFFT Uint16 hwafft 16pts Int32 data Int82 scratch Uint16 fft_flag Uint16 scale_flag OXOOff6f2f hwafft 32pts 32 pt FFT IFFT Uint16 hwafft 32pts Int32 data Int82 scratch Uint16 fft flag Uint16 scale flag 0x00ff7238 hwafft 64pts 64 pt FFT IFFT Uint16 hwafft_64pts Int32 data Int32 scratch Uint16 fft flag Uint16 scale_flag OxOOff73cd hwafft 128pts 128 pt FFT IFFT Uint16 hwafft_128pts Int32 data Int32 scratch Uint16 fft_flag Uint16 scale_flag Ox00ff75de hwafft 256pts 256 pt FFT IFFT Uint16 hwafft_256pts Int32 data Int32 scratch Uint16 fft_flag Uint16 scale_flag 0x00ff77dc hwafft 512pts 512 pt FFT iFFT Uint16 hwafft_512pts Int32 data Int32 scratch Uint16 fft_flag Uint16 scale_flag Ox00ff7a56 hwafft 1024pts 1024 pt FFT IFFT Uint16 hwafft_1024pts Int32 data Int32 scratch Uint16 fft_flag Uint16 scale_flag 14 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com Introduction Note that for the FFT routines output data is dependent on the return value TO If return 0 output data is in place meaning the result will overwrite the input buffer If return 1 output data is placed in the scratch buffer The 32 bit input and output data consist of 16 bit real and 16 bit imaginary data If only real data is used the im
8. the EMIF operates at half the clock rate of its peripheral clock When this bit is set to 1 the EMIF operates at the full rate of its peripheral clock 0 EMIF operates at half the peripheral clock rate 1 EMIF operates at the same rate as the peripheral clock SPRUFX5A October 2010 Revised November 2010 System Control 77 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries Tl 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 Tl 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 appl
9. 00 AOOOh 00 BFFFh 0001 A000h 0001 BFFFh First 192 bytes are reserved for memory mapped registers MMRs SPRUFX5A October 2010 Revised November 2010 System Control 17 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUMENTS System Memory www ti com Table 1 2 DARAM Blocks continued Memory Block CPU Byte Address Range DMA USB Controller Byte Address Range DARAM 6 00 COOOh 00 DFFFh 0001 COOOh 0001 DFFFh DARAM 7 00 E000h 00 FFFFh 0001 EOOOh 0001 FFFFh 1 2 1 2 On Chip Single Access RAM SARAM The SARAM is located at the CPU byte address range 01 0000h O4FFFFh and is composed of 32 blocks of 4K words each see Table 1 3 Each SARAM block can perform one access per cycle one read or one write SARAM can be accessed by the internal program data and DMA buses As shown in Table 1 3 the DMA controllers access SARAM at an address offset 0x0008 0000 from the CPU memory byte address space Table 1 3 SARAM Blocks DMA USB Controller Byte Address Memory Block CPU Byte Address Range Range SARAM 0 01 0000h 01 1FFFh 0009 0000h 0009 1FFFh SARAM 1 01 2000h 01 3FFFh 0009 2000h 0009 3FFFh SARAM 2 01 4000h 01 5FFFh 0009 4000h 0009 SFFFh SARAM 3 01 6000h 01 7FFFh 0009 6000h 0009 7FFFh SARAM 4 01 8000h 01 9FFFh 0009 8000h 0009 9FFFh SARAM 5 01 A000h 01 BFFFh 0009 A000h 0009 BFFFh SARAM 6 01 COOOh 01 DFFFh 0009 COOOh 000
10. 1 Enable the USB oscillator by setting USBOSCDIS 0 in USBSCR 2 Wait for the oscillator to stabilize Refer to the device specific data manual for oscillator stabilization time 3 Enable the USB peripheral clock by setting USBCG 0 in the peripheral clock gating control register 2 PCGCR2 4 Clear the USB clock stop request bit USBCLKSTREQ in the CLKSTOP register 5 Clear the SUSPENDM bit in FADDR register 1 5 3 4 2 USB System Control Register USBSCR 1C32h The USB system control register is used to disable the USB on chip oscillator and to power down the USB The USB system control register USBSCR is shown in Figure 1 17 and described in Table 1 27 Figure 1 17 USB System Control Register USBSCR 1C32h 15 14 13 12 11 USBPWDN USBSESSEND USBVBUSDET USBPLLEN Reserved R W 1 R W 0 R W 1 R W 0 HO 7 6 5 4 3 2 Reserved USBDATPOL Reserved USBOSCBIASDIS USBOSCDIS BYTEMODE HO R W 1 R 0 R W 1 R W 1 R W 0 LEGEND R W Read Write R Read only n value after reset Table 1 27 USB System Control Register USBSCR Field Descriptions Bit Field 15 USBPWDN Value Description USB module power Asserting USBPWDN puts the USB PHY and PLL in their lowest power state The USB peripheral is not operational in this state 0 USB module is powered 1 USB module is powered down 14 USBSESSEND USB VBUS session end comparator enable The USB VBUS pin has two comparators th
11. 1 0 DMA1CHSIE DMA1CH2IE DMA1CH1IE DMA1CHOIE DMAOCHSIE DMAOCH IE DMAOCH1IE DMAOCHOIE RW O RW O RW O RW O RW O RW O RW O RW O LEGEND R W Read Write R Read only n value after reset Table 1 54 DMA Interrupt Flag Register DMAIFR Field Descriptions Bit Field Value Description 15 0 DMAnCHmIF Channel interrupt status bits 0 DMA controller n channel m has not completed its block transfer 1 DMA controller n channel m block transfer complete Table 1 55 DMA Interrupt Enable Register DMAIER Field Descriptions Bit Field Value Description 15 0 DMAnCHmIE Channel interrupt enable bits 0 DMA controller n channel m interrupt is disabled 1 DMA controller n channel m interrupt is enabled 72 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com System Configuration and Control 1 7 4 2 2 DMAn Channel Event Source Registers DMAnCESR1 and DMAnCESR2 1C1Ah 1C1Bh 1C1Ch 1C1Dh 1C36h 1C37h 1C38h and 1C39h When SYNCMODE 1 in a channel s DMACHMTCR2 see the TMS320C5515 1 4 05 04 DSP Direct Memory Access DMA Controller User s Guide SPRUFT 2 activity in the DMA controller is synchronized to a DSP event You can specify the synchronization event used by the DMA channels by programming the CHmEVT bits of the DMAnCESR registers
12. 1 disables the pin s internal pull down Pin pull down is enabled Pin pull down is disabled A18PD EMIF A 18 pin pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down Pin pull down is enabled Pin pull down is disabled A17PD EMIF AT dl pin pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down Pin pull down is enabled Pin pull down is disabled A16PD EMIF A 16 pin pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down Pin pull down is enabled Pin pull down is disabled A15PD EMIF A 15 pin pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down Pin pull down is enabled Pin pull down is disabled The pull down inhibit register 3 PDINHIBR3 is shown in Figure 1 41 and described in Table 1 51 Figure 1 41 Pull Down Inhibit Register 3 PDINHIBR3 1C19h 15 14 13 12 11 10 9 8 PD15PD PD14PD PD13PD PD12PD PD11PD PD10PD PD9PD PD8PD R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 7 6 5 4 3 2 1 0 PD7PD PD6PD PD5SPD PD4PD PD3PD PD2PD Reserved R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R 0 LEGEND R W Read Write R Read only n value after reset Table 1 51 Pull Down Inhibit Register 3 PDINHIBR3 Field Descriptions Bit Field Value Description 15 PD15PD Parallel port pin 15 pull down inhibit bit Setting this bit t
13. E EE 14 122 DARAM BIOCKS EE EE N N RR EN RSR EE N EE df 13 SARAM BlOCKS EG EE EG RE EE ED oe EE 18 1 4 SAROM EE 19 1 5 PLL Output Frequency Configuration sesse ese eke RR eee eee eee eee eee RR RR RR RE RR RE RR RR RARR RE RR RR RR RR RR RR RR RR RR Re 24 1 6 CLKOUT Control Source Select Register CCSSR Field DescriptionS esse ese sae eke RR RR RR RR RARR Rek RE RR Re 25 1 7 Clock Generator Control Register Bits Used In BYPASS MODE AN 27 128 Output Frequency in Bypass Mode iss Es EE EEN meee Ee EE ENNEN 27 1 9 Clock Generator Control Register Bits Used In PLL Mode eee eeeeeeeeeeeeeaeeeeeeeeenee 27 1 10 PLL Clock Frequency Ranges ENEE RARR EER RR RARR RR RR RR AR RR AR RARR RA RR AR RARR RARR ER RARR RARR Rek Re RR Ge 28 1 11 Examples of Selecting a PLL MODE Frequency When CLK SELL siese ese esse eke eke ek Re eke RR GR RR ee Re RR Re 29 1 12 Clock Generator Registers suis ee d Ee Ee e geht ee Ee Ee AR Ee de De GE EE Ge be ee ele 29 1 13 Clock Generator Control Register 1 CGCR1 Field Descriptions sesse see RR RARR RE RR RR RR RR RR RR ER RE RR Re 30 1 14 Clock Generator Control Register 2 CGCR2 Field Descriptions sesse see RR RARR RE RR RR RR RR AR RR ER RE RR Re 30 1 15 Clock Generator Control Register 3 CGCR3 Field Descriptions sesse see Re RR RR RE RR RR RR RR AR RR ER RE RR Re 31 1 16 Clock Generator Control Register 4 CGCR4 Field Descriptions sesse see RR RARR RE RR RR RR RR RR RR
14. ID Register 3 DIEIDR3 15 0 1TCA43h sesse esse eke Re RR RE RR RR RR RR RR RR Rek RR RR RR RR RR RE RR RR RR RR RARR Re eke RR Re 59 1 31 Die ID Register 4 DIEIDR4 1C44h EEN 59 1 32 Die ID R gister 5 DIEIDR5 1TE45h ege EE GE EE EE N EE Ee SE DR ee GE ee dee SEENEN 59 1 33 Die ID Register 6 DIEIDR6 1C46h sesse sees kak RR RR RR RARR KAR RR RR AR RR AR RARR RARR ER RARR RARR RR RA a RR RR R RR RR Ge 60 1 34 Die ID Register 7 DIEIDR7 1C47h esse sesse Rae RR ER RR RARR EER RE RR RR RR GR RE RR RE RR AR RARR RE RR ER RR RR RARR Rek RE RR ae 60 1 35 External Bus Selection Register EBSR 1TCOOR ee ees ese eke ek RR RR ER RE RR RE RR RR RA RR RE RR RR RR RR RARR RR RR RR Re 61 1 36 RTC Power Management Register RTCPMGT 1930h esse ese ee Rek Re RR RR RR RR ER RR ER RE RR AR RR ER RR RR RR RR RR ke 63 1 37 LDO Control Register LDOCNTL 7004h ee RARR KAR RE RR AR RR AR RARR RARR AR RARR RARR RR RARR RARR KAR RR RR AE 65 1 38 Output Slew Rate Control Register OSRCR TD CI hl eise ese eek ke RR RE RR RR RARR RE RR RE RR RR AR RR RR RR RR RR RR Re RE 66 1 39 Pull Down Inhibit Register 1 PDINHIBR1 1C17h sesse esse ese se eke RR ER RE RR RE RR RR RR RR RE RR RR RR RR RARR Rek Re RR Re 67 1 40 Pull Down Inhibit Register 2 PDINHIBR2 1C18h ees ees ee ese se eke RR ER RE RR RE RR RR RARR RE RR RR RR RR RR RR ek Re RR Re 68 1 41 Pull Down Inhibit Register 3 PDINHIBR3 1C19h ees ee
15. Incorporated 1 TEXAS INSTRUMENTS www ti com System Memory 1 2 1 3 On Chip Single Access Read Only Memory SAROM The zero wait state ROM is located at the CPU byte address range FE 0000h FF FFFFh The ROM is composed of four 16K word blocks for a total of 128K bytes of ROM Each ROM block can perform one access per cycle one read or one write ROM can be accessed by the internal program or data buses but not the DMA buses The ROM address space can be mapped by software to the external memory or to the internal ROM via the MPNMC bit in the ST3 status register The standard device includes a Bootloader program resident in the ROM and the bootloader code is executed immediately after hardware reset When the MPNMC bit field of the ST3 status register is set through software the on chip ROM is disabled and not present in the memory map and byte address range FE 0000h FF FFFFh is directed to external memory space extends CS5 address reach A hardware reset always clears the MPNMC bit so it is not possible to disable the ROM at hardware reset However the software reset instruction does not affect the MPNMC bit The ROM can be accessed by the program and data buses Each SAROM block can perform one word read access per cycle Table 1 4 SAROM Blocks Memory Block CPU Byte Address Range CPU Word Address Range SAROMO FE 0000h FE 7FFFh ZE 0000h ZE 3FFFh SAROM1 FE 8000h FE FFFFh ZE 4000h ZE 7FFFh SAROM2 FF 0000h FF 7FFF
16. TMS320C5515 14 05 04 VC05 VC04 DSP Multimedia Card MMC Secure Digital SD Card Controller This document describes the Multimedia Card MMC Secure Digital SD Card Controller on the TMS320C5515 14 05 04 Digital Signal Processor DSP devices The multimedia card MMC secure digital SD card is used in a number of applications to provide removable data storage The MMC SD card controller provides an interface to external MMC and SD cards SPRUFX2 TMS320C5515 14 05 04 Digital Signal Processor DSP Real Time Clock RTC User s Guide This document describes the operation of the Real Time Clock RTC module in the TMS320C5515 14 05 04 Digital Signal Processor DSP devices The RTC also has the capability to wake up the power management and apply power to the rest of the device through an alarm periodic interrupt or external WAKEUP signal SPRUFX4 TMS320C5515 14 05 04 Digital Signal Processor DSP Inter IC Sound I2S Bus User s Guide This document describes the features and operation of Inter IC Sound 12S Bus in the TMS320C5515 14 05 04 Digital Signal Processor DSP devices This peripheral allows serial transfer of full duplex streaming data usually streaming audio between DSP and an external 12S peripheral device such as an audio codec SPRUFX5 TMS320C5515 DSP System User s Guide This document describes various aspects of the TMS320C5515 digital signal processor DSP including system memory device clocking options and operati
17. are enabled 1 On chip LDOs Analog POR and Bandgap reference are disabled shutdown 1 LDO_PD On chip LDOs and Analog POR power down bit This bit shuts down the on chip LDOs ANA_LDO DSP_LDO and USB_LDO and the Analog POR BG_PD and LDO_PD are only intended to be used when the internal LDOs supply power to the chip If the internal LDOs are bypassed and not used then the BG_PD and LDO_PD power down mechanisms should not be used since POR gets powered down and the POWERGOOD signal is not generated properly After this bit is asserted the on chip LDOs and Analog POR can be re enabled by the WAKEUP pin high or the RTC alarm interrupt This bit keeps the Bandgap reference turned on to allow a faster wake up time with the expense power consumption of the Bandgap reference 0 On chip LDOs and Analog POR are enabled 1 On chip LDOs and Analog POR are disabled shutdown 0 RTCCLKOUTEN Clockout output enable bit 0 Clock output disabled 1 Clock output enabled 64 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com System Configuration and Control Figure 1 37 LDO Control Register LDOCNTL 7004h 15 8 Reserved R 0 7 2 1 0 Reserved DSP_LDO_V USB_LDO_EN R 0 R W 0 R W 0 LEGEND R W Read Write R Read only n value after reset Table 1 46 LDOCNTL Register Bit
18. are not allowed In memory retention mode the memory is placed in a low power mode while maintaining its contents The contents are retained as long as there are no access attempts to that memory In active mode the memory is readily accessible by the CPU but consumes more leakage power For the entire duration that the memory is in retention mode there can be no attempts to read or write to the memories address range This includes accesses by the CPU or any DMA If an access is attempted while in retention mode then the memory contents will be lost NOTE You must wait at least 10 CPU clock cycles after taking memory out of a low power mode before initiating any read or write access Table 1 30 summarizes the power modes for both DARAM and SARAM Table 1 30 On Chip Memory Standby Modes SLPZVDD SLPZVSS Mode CVpp Voltage 1 1 Active Normal operational mode Read and write accesses are allowed 1 05 V or 1 3 V Retention Low power mode Contents are retained No read or write access is allowed 1 05 V or 1 3 V Memory Disabled Mode Lowest leakage mode Contents are lost No read or write access is allowed 1 05 V or 1 3 V 1 6 4 3 1 RAM Sleep Mode Control Register 1 RAMSLPMDCNTLR1 1C28h The RAM sleep mode control register 1 RAMSLPMDCNTLR1 is shown in Figure 1 20 through Figure 1 24 Figure 1 2
19. components within its peripheral boundary See the peripheral specific user s guide for more details on these additional power saving features System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com Power Management 1 6 3 2 1 Peripheral Clock Gating Configuration Registers PCGCR1 and PCGCR2 1C02 1C03h The peripheral clock gating configuration registers PCGRC1 and PCGCR2 are used to disable the clocks of the DSP peripherals In contrast to the idle control register ICR these bits take effect within 6 SYSCLK cycles and do not require an idle instruction The peripheral clock gating configuration register 1 PCGCR1 is shown in Figure 1 14 and described in Table 1 24 Figure 1 14 Peripheral Clock Gating Configuration Register 1 PCGCR1 1C02h 15 14 13 12 11 10 9 8 SYSCLKDIS 1282CG TMR2CG TMR1CG EMIFCG TMROCG PS1CG 2SOCG R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 7 6 5 4 3 2 1 0 MMCSD1CG I2CCG Reserved MMCSDOCG DMAOCG UARTCG SPICG l283CG R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 LEGEND R W Read Write R Read only n value after reset Table 1 24 Peripheral Clock Gating Configuration Register 1 PCGCR1 Field Descriptions Bit Field Value Description 15 SYSCLKDIS System clock disable bit This bit can be used to t
20. decreased 1 3 V to 1 05 V care must be taken to ensure device stability The following rules must be followed to maintain stability e When using an external PMIC power management IC the board designer must ensure that the 1 3 V to 1 05 V transition does not have ringing that would violate our Vops minimum rating 1 05 V 5 0 998 V Software must ensure that the clock speed of the device does not exceed the maximum speed of the device at the lower voltage before making the voltage transition For example if the device is running at 100 MHz 1 3 V then the PLL must be changed to 60 MHz for 100 parts or 75 MHz for 120 parts before changing the core voltage to 1 05 V System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated l TEXAS INSTRUMENTS www ti com Interrupts When the core voltage is increased 1 05 V to 1 3 V clock speed is not an issue since the device can operate faster at the higher voltage However when switching from 1 05 V to 1 3 V software must allow time for the voltage transition to reach the 1 3 V range Additionally external regulators might produce an overshoot that must not pass the maximum operational voltage of the core supply see the Recommended Operating Conditions section in device specific data manual Otherwise the device will be operating out of specification This could happen if large current draw occu
21. duration of clock cycles set in the PSRCR register and they should not be accessed during that time Reads of this register return the state of the reset signal for the associated peripherals In other words polling may be used to wait for the reset to become de asserted The Peripheral Reset Control Register PRCR is shown in Figure 1 47 and described in Table 1 59 Figure 1 47 Peripheral Reset Control Register PRCR 1C05h 15 14 13 12 11 10 9 8 Reserved HO 7 6 5 4 3 2 1 0 PG4_RST Reserved PG3_RST DMA_RST USB_RST SAR_RST PG1_RST I2C RST R W 0 HO R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 LEGEND R W Read Write R Read only n value after reset Table 1 59 Peripheral Reset Control Register PRCR Field Descriptions Bit Field Value Description 15 8 Reserved 0 Reserved Always write 0 to these bits 7 PG4_RST Peripheral group 4 software reset bit Drives the LCD I2S2 12S3 UART and SPI reset signal Write 0 Writing zero has no effect Write 1 Writing one starts resetting the peripheral group Read 0 Reading zero means that peripheral group is out of reset Read 1 Reading one means the peripheral group is being held in reset and should not be accessed 6 Reserved 0 Reserved always write 0 to this bit 74 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated l ww
22. fetching instructions from external memory e DPORT this port is used by the CPU when reading and writing data from to external memory e XPORT this port is used by the CPU when reading and writing from to O space peripheral registers e MPORT this port is used by the four DMAs the USB s CDMA and the LCD controller s DMA when accessing SARAM or DARAM e MPORT this port is used by the four DMAs and the USB s CDMA when accessing SARAM or DARAM e HWA this port is the hardware accelerator FFT coprocessor It shares all CPU buses SPRUFX5A October 2010 Revised November 2010 System Control 35 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUMENTS Power Management www ti com 1 5 3 1 1 Idle Configuration Register ICR 0001h and IDLE Status Register ISTR 0002h Table 1 21 describes the read write bits of ICR and Table 1 22 describes the read only bits of ISTR NOTE To prevent an emulation lock up idle requests to these domains may be overridden or ignored when an emulator is connected to the JTAG port of the DSP Figure 1 12 Idle Configuration Register ICR 0001h 15 10 9 8 Reserved HWAI IPORTI R W 0 R W 0 R W 0 T 6 5 4 1 0 MPORTI XPORTI DPORTI IDLECFG CPUI R W 0 R W 0 R W 0 R W 0 R W 0 LEGEND R W Read Write n value after reset Table 1 21 Idle Configuration Register ICR Field Descriptions Bi
23. flag mask bit or the MMC SD1 interrupt flag mask bit The function of this bit is selected depending on the setting of the SP1MODE bit in the external bus selection register If SP1MODE 00b this bit supports MMC SD1 interrupts If SP1MODE 01 this bit supports 12S1 interrupts 8 DMA 1 0 DMA aggregated interrupt flag mask bit 7 PROG1 1 0 Programmable receive interrupt 1 flag mask bit This bit is used as either the I2S0 receive interrupt flag mask bit or the MMC SDO SDIO interrupt flag mask bit The function of this bit is selected depending on the setting of the SPOMODE bit in the external bus selection register If SPOMODE 00b this bit supports MMC SDO SDIO interrupts If SPOMODE 01 this bit supports 1280 interrupts 6 UART 1 0 UART interrupt flag mask bit 5 PROGO 1 0 Programmable transmit interrupt 0 flag mask bit This bit is used as either the I2SO transmit interrupt flag mask bit or the MMC SDO interrupt flag mask bit The function of this bit is selected depending on the setting of the SPOMODE bit in the external bus selection register If SPOMODE 00b this bit supports MMC SDO interrupts If SPOMODE 01 this bit supports 260 interrupts 4 TINT 1 0 Timer aggregated interrupt flag mask bit 3 INT1 1 0 External user interrupt 1 flag mask bit 2 INTO 1 0 External user interrupt 0 flag mask bit 1 0 Reserved 0 Reserved This bit should always be written with 0 54 System Control SPRUFX5A October 2010 Re
24. module are routed to the 21 external signals of the parallel port Mode 5 8 bit LCD Controller SPI and UART 8 bits of pixel data of the LCD Controller module 4 signals of the SPI module and 4 signals of the UART module are routed to the 21 external signals of the parallel port Mode 6 SPI I2S2 1283 and GPIO 7 signals of the SPI module 4 signals of the 1282 module 4 signals of the 12S3 module and 6 GPIO are routed to the 21 external signals of the parallel port Reserved 11 10 SP1MODE 00 01 Serial Port 1 Mode Control Bits The bits control the pin multiplexing of the MMC1 12S1 and GPIO pins on serial port 1 Mode 0 MMC SD1 All 6 signals of the MMC SD1 module are routed to the 6 external signals of the serial port 1 Mode 1 I2 1 and GP 11 10 4 signals of the 12S1 module and 2 GP 11 10 signals are routed to the 6 external signals of the serial port 1 Mode 2 GP 11 6 6 GPIO signals GP 11 6 are routed to the 6 external signals of the serial port 1 Reserved 9 8 SPOMODE 00 01 10 11 Serial Port 0 Mode Control Bits The bits control the pin multiplexing of the MMCO 250 and GPIO pins on serial port 0 Mode 0 MMC SDO All 6 signals of the MMC SDO module are routed to the 6 external signals of the serial port 0 Mode 1 I2S0 and GP 5 0 4 signals of the 12S0 module and 2 GP 5 4 signals are routed to the 6 external signals of the serial port 0 Mode 2 GP 5 0 6 GPIO si
25. not idle Table 1 31 Power Configurations Steps to Enter Clock Available Methods for Power Power Domain and Power Changing Exiting Clock and Configuration State Clock Domain State Configuration Power Configuration RTC only mode DVpprtc LDOI Only RTC clock is Set LDO_PD and A RTC interrupt and CVpparc running BG PD bits in powered all others RTCPMGT register WREDE powered down IDLE3 All power domains RTC clock domain Idle peripheral domain A WAKEUP pin on enabled Other clock domains Idle CPU domain B RTC interrupt disabled Clock generator domain disabled BYPASS MODE and PLL powerdown PLL in BYPASS MODE C External hardware interrupt INTO PLL powerdown or INT1 Master clock disable D Hardware Reset Execute idle instruction IDLE2 All power domains RTC clock domain Idle peripheral domains A WAKEUP pin on enabled Clock generator domain Idle CPU domain B RTC interrupt enabled PLL_MODE Other clock domains Execute idle instruction C External hardware interrupt disabled INTO INT1 D Any unmasked peripheral interrupt E Hardware Reset Active All power domains All clock domains Turn on all power on enabled domains Enable all clock domains 50 System Control SPRUFX5A October 2010 Revised November 2010 Copyright 2010 Texas Instruments Incorporated Submit Documentation Feedback 1 TEXAS INSTRUMENTS www ti com Power Management 1 5 5 1 IDLE2 Procedure In this pow
26. or service and is an unfair and deceptive business practice TI is not responsible or liable for any such statements TI products are not authorized for use in safety critical applications such as life support where a failure of the TI product would reasonably be expected to cause severe personal injury or death unless officers of the parties have executed an agreement specifically governing such use Buyers represent that they have all necessary expertise in the safety and regulatory ramifications of their applications and acknowledge and agree that they are solely responsible for all legal regulatory and safety related requirements concerning their products and any use of TI products in such safety critical applications notwithstanding any applications related information or support that may be provided by TI Further Buyers must fully indemnify TI and its representatives against any damages arising out of the use of TI products in such safety critical applications TI products are neither designed nor intended for use in military aerospace applications or environments unless the TI products are specifically designated by TI as military grade or enhanced plastic Only products designated by TI as military grade meet military specifications Buyers acknowledge and agree that any such use of TI products which TI has not designated as military grade is solely at the Buyer s risk and that they are solely responsible for compliance with all legal and r
27. pin 2 pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down Pin pull down is enabled Pin pull down is disabled SO1PD Serial port 0 pin 1 pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down Pin pull down is enabled Pin pull down is disabled SOOPD Serial port 0 pin O pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down Pin pull down is enabled Pin pull down is disabled The pull down inhibit register 2 PDINHIBR2 is shown in Figure 1 40 and described in Table 1 50 Figure 1 40 Pull Down Inhibit Register 2 PDINHIBR2 1C18h 15 14 13 12 11 10 9 8 Reserved INT1PU INTOPU RESETPU EMU01PU TDIPU TMSPU TCKPU R 0 R W 1 R W 1 R W 0 R W 0 R W 0 R W 0 R W 0 7 6 5 4 3 2 1 0 Reserved A20PD A19PD A18PD A17PD A16PD A15PD R 0 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 LEGEND R W Read Write R Read only n value after reset Table 1 50 Pull Down Inhibit Register 2 PDINHIBR2 Field Descriptions Bit Field Value Description 15 Reserved 0 Reserved 14 INT1PU Interrupt 1 pin pull up inhibit bit Setting this bit to 1 disables the pin s internal pull up Pin pull up is enabled Pin pull up is disabled 13 INTOPU Interrupt 0 pin pull up inhibit bit Setting this bit to 1 disables the pin s internal pull up Pin pull up i
28. pin is set high 2h CLKOUT pin outputs System PLL output clock PLLOUT 3h CLKOUT pin is set low 4h CLKOUT pin outputs System PLL output clock PLLOUT 5h CLKOUT pin is set low 6h CLKOUT pin outputs System PLL output clock PLLOUT 7h CLKOUT pin outputs USB PLL output clock 8h CLKOUT pin outputs System PLL output clock PLLOUT Qh CLKOUT pin outputs SAR clock Ah CLKOUT pin outputs System PLL output clock PLLOUT Bh CLKOUT pin outputs system clock SYSCLK default mode Ch CLKOUT pin outputs System PLL output clock PLLOUT Dh Reserved do not use Eh CLKOUT pin outputs System PLL output clock PLLOUT Fh CLKOUT pin outputs USB PLL output clock SPRUFX5A October 2010 Revised November 2010 System Control 25 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated A TEXAS INSTRUMENTS System Clock Generator www ti com 1 4 2 4 DSP Reset Conditions of the System Clock Generator The following sections describe the operation of the system clock generator when the DSP is held in reset state and the DSP is removed from its reset state 1 4 2 4 1 Clock Generator During Reset During reset the PLL PWRDN bit of the clock generator control register 1 CGCR1 is set to 1 and the PLL does not generate an output clock Furthermore the SYSCLKSEL bit of the clock configuration register 2 CCR2 defaults to 0 BYPASS MODE and the system clock SYSCLK is driven by either the CLKIN pin or the
29. pull down 0 Pin pull down is enabled Pin pull down is disabled 10 S12PD Serial port 1 pin 2 pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down 0 Pin pull down is enabled Pin pull down is disabled 9 11PD Serial port 1 pin 1 pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down 0 Pin pull down is enabled Pin pull down is disabled 8 S10PD Serial port 1 pin 0 pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down 0 Pin pull down is enabled Pin pull down is disabled 7 6 Reserved 0 Reserved 5 SOSPD Serial port 0 pin 5 pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down 0 Pin pull down is enabled Pin pull down is disabled 4 SO4PD Serial port 0 pin 4 pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down 0 Pin pull down is enabled Pin pull down is disabled 3 SO3PD Serial port 0 pin 3 pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down 0 Pin pull down is enabled Pin pull down is disabled SPRUFX5A October 2010 Revised November 2010 System Control 67 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated System Configuration and Control A TEXAS INSTRUMENTS www ti com Table 1 49 Pull Down Inhibit Register 1 PDINHIBR1 Field Descriptions continued Bit Field Value Description S02PD Serial port 0
30. purpose The timer interrupt aggregation flag register TIAFR latches each timer Timer 0 Timer 1 and Timer 2 interrupt signal when the timer counter expires Using this register the programmer can determine which timer generated the timer aggregated CPU interrupt signal TINT Each Timer flag in TIAFR needs to be cleared by the CPU with a write of 1 Note that the IFRO TINT bit is automatically cleared when entering the interrupt service routine ISR Therefore there is no need to manually clear it in the ISR If two or more timers happen to interrupt simultaneously the TIAFR register will indicate the two or more interrupt flags In this case the ISR can choose to service both timer interrupts or only one at a time If the ISR services only one of them then it should clear only one of the TIAFR flags and upon exiting the ISR the CPU will immediately be interrupted again to service the second timer flag If the ISR services all of them then it should clear all of them in the TIAFR flags and upon exiting the ISR the CPU won t be interrupted again until a new timer interrupt comes in For more information see the TMS320C5515 14 05 04 VC05 VC04 DSP Timer Watchdog Timer User s Guide SPRUFO 2 GPIO Interrupt Enable and Aggregation Flag Registers The CPU has only one interrupt flag that is shared among all GPIO pin interrupt signals The CPU s interrupt flag is bit 5 GPIO of the IFR1 amp IER1 registers see Figure 1 26 Since the int
31. selected 1 Reserved 0 Reserved This bit must be written to be 0 0 SYSCLKSEL System clock source select bit This bit is used to select between the two main clocking modes for the DSP bypass and PLL mode In bypass mode the DSP clock generator is bypassed and the system clock is set to either CLKIN or the RTC output as determined by the CLKSEL pin In PLL mode the system clock is set to the output of the DSP clock generator Logic in the system clock generator prevents switching from bypass mode to PLL mode if the PLL is powered down 0 Bypass mode is selected PLL mode is selected 32 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS www ti 1 5 1 5 1 1 5 2 INSTRUMENTS com Power Management Power Management Overview In many applications there may be specific requirements to minimize power consumption for both power supply and battery and thermal considerations There are two components to power consumption active power and leakage power Active power is the power consumed to perform work and for digital CMOS circuits scales roughly with clock frequency and the amount of computations being performed Active power can be reduced by controlling the clocks in such a way as to either operate at a clock frequency just high enough to complete the required operation in the required time
32. waiting 4 msec write a 1 to the SYSCLKSEL bit to get into the PLL MODE Logic within the clock generator ensures that there are no clock glitches during the transition from BYPASS MODE to PLL MODE and vice versa 1 4 3 2 2 Register Bits Used in the PLL Mode Table 1 9 describes the bits of the clock generator control registers that are used in the PLL MODE For detailed descriptions of these bits see Section 1 4 4 Table 1 9 Clock Generator Control Register Bits Used In PLL Mode Register Bit Role in Bypass Mode SYSCLKSEL Allows you to switch to the PLL or bypass modes RDBYPASS Determines whether reference divider should be bypassed or used SPRUFX5A October 2010 Revised November 2010 System Control 27 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated System Clock Generator A TEXAS INSTRUMENTS www ti com Table 1 9 Clock Generator Control Register Bits Used In PLL Mode continued Register Bit Role in Bypass Mode RDRATIO Specifies the divider ratio of the reference divider M Specify the multiplier value for the PLL OUTDIVEN Determines whether the output divider is bypassed ODRATIO Specifies the divider ratio of the output divider 1 4 3 2 3 Frequency Ranges for Internal Clocks There are specific minimum and maximum frequencies for all the internal clocks Table 1 10 lists the minimum and maximum frequencies for the internal clocks for the DSP NOTE
33. 0 RAM Sleep Mode Control Register 0x1C28 15 14 13 12 11 10 9 8 DARAM7 DARAM7 DARAM6 DARAM6 DARAM5 DARAM5 DARAM4 DARAM4 SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 7 6 5 4 3 2 1 0 DARAM3 DARAM3 DARAM2 DARAM2 DARAM1 DARAM1 DARAMO DARAMO SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 LEGEND R W Read Write R Read only n value after reset 48 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com Power Management Figure 1 21 RAM Sleep Mode Control Register2 0x1C2A 15 14 13 12 11 10 9 8 SARAM7 SARAM7 SARAM6 SARAM6 SARAMS SARAMS SARAM4 SARAM4 SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 7 6 5 4 3 2 1 0 SARAM3 SARAM3 SARAM2 SARAM2 SARAM1 SARAM1 SARAMO SARAMO SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 LEGEND R W Read Write R Read only n value after reset Figure 1 22 R
34. 10 Texas Instruments Incorporated Power Management A TEXAS INSTRUMENTS www ti com Table 1 20 DSP Power Domains Power Domains Description Real Time Clock Power Domain CVpprtc This domain powers the real time clock digital circuits and oscillator pins RTC_XI RTC_XO Nominal supply voltage can be 1 05 V through 1 3 V Note This domain must be always powered for proper operation This domain cannot be regulated internally external regulation must be provided Core Power Domain CVpp This domain powers the digital circuits that include the C55x CPU on chip memory and peripherals Nominal supply voltage is either 1 05 V or 1 3 V This domain can be powered from the on chip DSP_LDO Digital VO Power Domain 1 DVppemir This domain powers all I Os except the EMIF I O USB I O USB oscillator VO some of the analog related digital pins and the real time clock power domain I O Nominal supply voltage can be 1 8 2 5 2 75 or 3 3 V This domain cannot be powered by internal LDOs external regulation must be provided Digital VO Power Domain 2 DVppi0 This domain powers all EMIF VO only Nominal supply voltage can be 1 8 2 5 2 75 or 3 3 V This domain cannot be powered by internal LDOs external regulation must be provided RTC I O Power Domain DVppare This domain powers the WAKEUP and RTC_CLKOUT pins Nominal supply voltage can be 1 8 2 5 2 75 or 3 3 V This domain cann
35. 2 1C1Fh 15 6 5 4 3 2 1 0 Reserved SYSCLKSRC Reserved CLKSELSTAT Reserved SYSCLKSEL R 0 R 0 R W 0 R 0 R 0 R W 0 LEGEND R W Read Write R Read only n value after reset Table 1 18 Clock Configuration Register 2 CCR2 Field Descriptions Bit Field Value Description 15 6 Reserved 0 Reserved 5 4 SYSCLKSRC System clock source status bits These read only bits reflect the source for the system clock This status register exists to indicate that switching from the PLL BYPASS MODE to the PLL MODE was successful or not Logic exists on the chip to prevent switching to PLL_MODE if the PLL has its PWRDN bit already asserted However this circuit does not protect against asserting the PWRDN bit after already in PLL_MODE Therefore software must ultimately make sure not to do something that would cause the system clock to be lost 0 The system clock generator is in bypass mode SYSCLK is driven by the RTC oscillator output th The system clock generator is in PLL mode the RTC oscillator output provides the input clock 2h The system clock generator is in bypass mode SYSCLK is driven by CLKIN 3h The system clock generator is in PLL mode the CLKIN pin provides the input clock 3 Reserved 0 Reserved This bit must be written to be 0 CLKSELSTAT CLK_SEL pin status bit This reflects the state of the CLK_SEL pin 0 CLK_SEL pin is low RTC input clock selected CLK_SEL pin is high CLKIN input clock
36. 2 DesignRev 0 Fh Silicon Revision 0 Silicon 2 0 11 0 DIEID3 0 FFFFh Die ID bits 1 7 2 5 Die ID Register 4 DIEIDR4 1C44h The die ID register 4 DIEIDR4 is shown in Figure 1 31 and described in Table 1 40 Figure 1 31 Die ID Register A DIEIDR4 1C44h 15 6 5 0 Reserved DIEID4 R R LEGEND R Read only n value after reset Table 1 40 Die ID Register 4 DIEIDR4 Field Descriptions Bit Field Value Description 15 6 Reserved 0 Reserved 5 0 DIEID4 0 3Fh Die ID bits 1 7 2 6 Die ID Register 5 DIEIDR5 1C45h The die ID register 5 DIEIDR5 is shown in Figure 1 32 and described in Table 1 41 Figure 1 32 Die ID Register 5 DIEIDR5 1C45h Reserved R LEGEND R Read only n value after reset Table 1 41 Die ID Register 5 DIEIDR5 Field Descriptions Bit Field Value 15 0 Reserved 0 Description Reserved SPRUFX5A October 2010 Revised November 2010 System Control 59 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUMENTS System Configuration and Control www ti com 1 7 2 7 Die ID Register 6 DIEIDR6 1C46h The die ID register 6 DIEIDR6 is shown in Figure 1 33 and described in Table 1 42 Figure 1 33 Die ID Register 6 DIEIDR6 1C46h 15 0 Reserved R LEGEND R Read onl
37. 9 DFFFh SARAM 7 01 E000h 01 FFFFh 0009 E000h 0009 FFFFh SARAM 8 02 0000h 02 1FFFh 000A 0000h 000A 1FFFh SARAM 9 02 2000h 02 3FFFh 000A 2000h 000A 3FFFh SARAM 10 02 4000h 02 5FFFh 000A 4000h 000A SFFFh SARAM 11 02 6000h 02 7FFFh 000A 6000h 000A 7FFFh SARAM 12 02 8000h 02 9FFFh 000A 8000h 000A 9FFFh SARAM 13 02 A000h 02 BFFFh 000A A000h 000A BFFFh SARAM 14 02 COOOh 02 DFFFh 000A COOOh 000A DFFFh SARAM 15 02 E000h 02 FFFFh 000A E000h OOOA FFFFh SARAM 16 03 0000h 03 1FFFh 000B 0000h OOOB 1FFFh SARAM 17 03 2000h 03 3FFFh 000B 2000h 000B 3FFFh SARAM 18 03 4000h 03 5FFFh 000B 4000h 000B SFFFh SARAM 19 03 6000h 03 7FFFh 000B 6000h 000B 7FFFh SARAM 20 03 8000h 03 9FFFh 000B 8000h 000B 9FFFh SARAM 21 03 A000h 03 BFFFh 000B A000h 000B BFFFh SARAM 22 03 COOOh 03 DFFFh 000B COOOh 000B DFFFh SARAM 23 03 E000h 03 FFFFh OOOB E000h OOOB FFFFh SARAM 24 04 0000h 04 1FFFh 000C 0000h 000C 1FFFh SARAM 25 04 2000h 04 3FFFh 000C 2000h 000C 3FFFh SARAM 26 04 4000h 04 5FFFh 000C 4000h 000C 5FFFh SARAM 27 04 6000h 04 7FFFh 000C 6000h 000C 7FFFh SARAM 28 04 8000h 04 9FFFh 000C 8000h 000C 9FFFh SARAM 29 04 A000h 04 BFFFh 000C A000h 000C BFFFh SARAM 30 04 COOOh 04 DFFFh 000C COOOh 000C DFFFh SARAM 31 04 E000h 04 FFFFh 000C E000h 000C FFFFh SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback 18 System Control Copyright 2010 Texas Instruments
38. AM Sleep Mode Control Register3 0x1C2B 15 14 13 12 11 10 9 8 SARAM15 SARAM15 SARAM14 SARAM14 SARAM13 SARAM13 SARAM12 SARAM12 SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 7 6 5 4 3 2 1 0 SARAM11 SARAM11 SARAM10 SARAM10 SARAM9 SARAM9 SARAM8 SARAM8 SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 LEGEND R W Read Write R Read only n value after reset Figure 1 23 RAM Sleep Mode Control Register4 0x1C2C 15 14 13 12 11 10 9 8 SARAM23 SARAM23 SARAM22 SARAM22 SARAM21 SARAM21 SARAM20 SARAM20 SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 7 6 5 4 3 2 1 0 SARAM19 SARAM19 SARAM18 SARAM18 SARAM17 SARAM17 SARAM16 SARAM16 SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 LEGEND R W Read Write R Read only n value after reset Figure 1 24 RAM Sleep Mode Control Register5 0x1C2D 15 14 13 12 11 10 9 8 SARAM31 SARAM31 SARAM30 SARAM30 SARAM29 SARAM29 SARAM28 SARAM28 SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 7 6 5 4 3 2 1 0 SARAM27 SARAM27 SARAM26 SARAM26 SARAM25 SARAM25 SARAM24 SARAM24 SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS SLPZVDD SLPZVSS R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 LEGEND R W
39. B has acknowledged a request for its clock to be stopped The USB clock should not be stopped until this bit is set to 1 The request to stop the peripheral clock has not been acknowledged The request to stop the peripheral clock has been acknowledged the clock can be stopped USBCLKSTPREQ USB peripheral clock stop request bit When disabling the USB internal peripheral clock you must set this bit to 1 to request permission to stop the clock After the USB acknowledges the request USBCLKSTPACK 1 you can stop the clock through the peripheral clock gating control register 2 PCGCR2 When enabling the USB internal clock enable the clock through PCGCR2 then set USBCKLSTPREQ to 0 Normal operating mode Request permission to stop the peripheral clock 42 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com Power Management Table 1 26 Peripheral Clock Stop Request Acknowledge Register CLKSTOP Field Descriptions continued Bit Field Value Description 1 EMFCLKSTPACK EMIF clock stop acknowledge bit This bit is set to 1 when the EMIF has acknowledged a request for its clock to be stopped The EMIF clock should not be stopped until this bit is set to 1 0 The request to stop the peripheral clock has not been acknowledged 1 The request to stop the peripheral clock has be
40. CLK is driven by the output of the RTC Otherwise SYSCLK will be driven by the CLKIN pin To exit the BYPASS MODE ensure the PLL has completed its phase locking sequence by waiting at least 4 ms and then write a 1 to the SYSCLKSEL bit The frequency of SYSCLK will then be determined by the multiplier and divider ratios of the PLL System Clock Generator If the clock generator is in the PLL MODE and you want to reprogram the PLL or any of the dividers you must set the clock generator to BYPASS MODE before changing the PLL and divider settings Logic within the clock generator ensures that there are no clock glitches during the transition from PLL MODE to BYPASS MODE and vice versa 26 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com System Clock Generator 1 4 3 1 2 Register Bits Used in the BYPASS MODE Table 1 7 describes the bits of the clock generator control registers that are used in the BYPASS MODE For detailed descriptions of these bits see Section 1 4 4 Table 1 7 Clock Generator Control Register Bits Used In BYPASS MODE Register Bit Role in BYPASS MODE SYSCLKSEL Allows you to switch to the PLL or BYPASS MODES PLL_PWRDN Allows you to power down the PLL 1 4 3 1 3 Setting the System Clock Frequency In the BYPASS MODE In the BYPASS MODE the frequency of SYSCLK is determined by the CLK
41. CS4 Space 1M Bytes Asynchronous FOOOOOh 0500 0000h External CS5 Space 1M Minus 128K Bytes Asynchronous FE0000h 050E 0000h ROM External CS5 Space 128K Bytes Asynchronous if MPNMC 1 if MPNMC 0 if MPNMC 1 128K Bytes ROM if MPNMC 0 FFFFFFh 050F FFFFh A Address shown represents the first byte address in each block B The first 192 bytes are reserved for memory mapped registers MMRs C Out of the four DMA controllers only DMA controller 3 has access to the external memory space D The USB controller does not have access to DARAM E The CSO space can be accessed by CSO only or by CSO and CS1 1 2 1 1 On Chip Dual Access RAM DARAM The DARAM is located in the CPU byte address range 00 00COh 00 FFFFh and is composed of eight blocks of 4K words each see Table 1 2 Each DARAM block can perform two accesses per cycle two reads two writes or a read and a write DARAM can be accessed by the internal program data and DMA buses As shown in Table 1 2 the DMA controllers access DARAM at an address offset 0x0001 0000 from the CPU memory byte address space Table 1 2 DARAM Blocks Memory Block CPU Byte Address Range DMA USB Controller Byte Address Range DARAM 0 00 00COh 00 1FFFh 0001 00COh 0001 1FFFh DARAM 1 00 2000h 00 3FFFh 0001 2000h 0001 3FFFh DARAM 2 00 4000h 00 5FFFh 0001 4000h 0001 5FFFh DARAM 3 00 6000h 00 7FFFh 0001 6000h 0001 7FFFh DARAM 4 00 8000h 00 9FFFh 0001 8000h 0001 9FFFh DARAM 5
42. DE bits of USBSCR only affect CPU accesses to the USB registers Table 1 60 and Table 1 61 summarize the effect of the BYTEMODE bits for different CPU operations NOTE The BYTEMODE bits of the EMIF system control register should only be used for controlling CPU accesses to NAND Flash devices and EMIF registers SPRUFX5A October 2010 Revised November 2010 System Control 75 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated A TEXAS INSTRUMENTS System Configuration and Control www ti com Table 1 60 Effect of BYTEMODE Bits on EMIF Accesses BYTEMODE Setting CPU Access to EMIF Register CPU Access To External Memory BYTEMODE 00b 16 bit Entire register contents are accessed ASIZE 01b 16 bit data bus EMIF generates a word access single 16 bit access to external memory for every CPU word access ASIZE 00b 8 bit data bus EMIF generates two 8 bit accesses to external memory for every CPU word access BYTEMODE 01b 8 bit Only the upper byte of the register is ASIZE 01b 16 bit data bus EMIF generates a access with high byte selected accessed 16 bit access to external memory for every CPU word access only the high byte of the EMIF data bus is used ASIZE 00b 8 bit data bus EMIF generates a single 8 bit access to external memory for every CPU word access BYTEMODE 10b 8 bit Only the lower byte of the register is ASIZE 01b 16 bit data bus EMIF generate
43. DIEIDR6 Field Descrptons sesse ee see ek RE RR ER RR EER RR ER RR RR ER RE ER RR RE RR RE RR RR RE RR RR RR Re ee 60 1 43 Die ID Register 7 DIEIDR7 Field DescriptioNS sesse ese ek RE RR ER RR EER RR ER RR RR ER RARR RR RE RR RE RR RR RE RR Re RR Re ee 60 1 44 EBSR Register Bit Descriptions Field Descriptions sesse e eke ese RR RR RR AR RE RR RR RR RR AR RR ER RR ER RR RR AR RR ER Re RR Re 62 1 45 RTCPMGT Register Bit Descriptions Field Descriptions iese se eke RR ER RE RR RE RR RR RARR RE RR RR RR RR AR RR RR RE RR Re 64 1 46 LDOCNTL Register Bit Descriptions Field Descriptions eee RE RR RE RR RR RARR RE RR RR RR RR RR RR RR RE RR Re 65 1 47 LDO Gontrols MatriX pcos sic ese EE MR RE EE RE ie GE De EE EE EE SEENEN ENEE ENEE Ed EE EDE EER ERGE EER EE ER EU ME DE 65 List of Tables SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com 1 48 Output Slew Rate Control Register OSRCR Field Descrtotions erect REK RR RR RR RR ER RE RR Re 1 49 Pull Down Inhibit Register 1 PDINHIBR1 Field Descriptions EN 1 50 Pull Down Inhibit Register 2 PDINHIBR2 Field Descriptions EN 1 51 Pull Down Inhibit Register 3 PDINHIBR3 Field Descriptions EN 1 52 Channel Synchronization Events for DMA Controllers issie see ek Re ek Re Rek eee RR GE RR RE RR GR ee Ra ee ka Re Re ee 1 53 System Registers Related to the DMA Controllers
44. DMA controllers Use the DMA interrupt enable register DMAIER to enable channel interrupts At the end of a block transfer if the DMA controller channel interrupt enable DMAnCHmlE bit is 1 an interrupt request is sent to the DSP CPU where it can be serviced or ignored Each channel can generate an interrupt although all channel interrupts are aggregated into a single DMA interrupt signal to the CPU To see which channel generated an interrupt your program can read the DMA interrupt flag register DMAIFR The DMA controller channel interrupt flag DMAnCHmIF bits are set to 1 when a DMA channel generates an interrupt Your program must manually clear the bits of DMAIFR by writing a 1 to the bit positions to be cleared Figure 1 42 DMA Interrupt Flag Register DMAIFR 1C30h 15 14 13 12 11 10 9 8 DMA3CHSIF DMA3CH2IF DMA3CH1IF DMA3CHOIF DMA2CHSIF DMA2CH2IF DMA2CH1IF DMA2CHOIF RW 0 RW O RW O RW O RW O RW O RW O RW O 7 6 5 4 3 2 1 0 DMA1CHSIF DMA1CH2IF DMA1CH1IF DMA1CHOIF DMAOCHSIF DMAOCH2IF DMAOCH1IF DMAOCHOIF RW O RW O RW O RW O RW O RW O RW O RW O LEGEND R W Read Write R Read only n value after reset Figure 1 43 DMA Interrupt Enable Register DMAIER 1C31h 15 14 13 12 11 10 9 8 DMA3CHSIE DMA3CH2IE DMA3CH1IE DMA3CHOIE DMA2CHSIE DMA2CH2IE DMA2CH1IE DMA2CHOIE RW O RW O RW O RW O RW O RW O RW O RW O 7 6 5 4 3 2
45. Descriptions Field Descriptions Bit Field Value Description 15 2 Reserved 0 Reserved Read only writes have no effect 1 DSP_LDO_V DSP_LDO voltage select bit 0 DSP_LDOO is regulated to 1 3 V DSP_LDOO is regulated to 1 05 V 0 USB_LDO_EN USB_LDO enable bit 0 USB_LDO output is disabled USB_LDOO pin is placed in high impedance Hi Z state USB_LDO output is enabled USB_LDOO is regulated to 1 3 V Table 1 47 LDO Controls Matrix RTCPMGT Register LDOCNTL Register 0x1930 0x7004 DSP LDO EN BG_PD Bit LDO_PD Bit USB LDO EN Bit Pin D12 ANA LDO Dep LDO USB LDO 1 Don t Care Don t Care Don t Care OFF OFF OFF Don t Care 1 Don t Care Don t Care OFF OFF OFF 0 0 Low ON ON OFF 0 0 0 High ON OFF OFF 0 0 Low ON ON ON SPRUFX5A October 2010 Revised November 2010 System Control 65 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUMENTS System Configuration and Control www ti com 1 7 3 4 Output Slew Rate Control Register OSRCR 1C16h To provide the lowest power consumption setting the DSP has configurable slew rate control on the EMIF and CLKOUT output pins The output slew rate control register OSRCR is used to set a subset of the device I O pins namely CLKOUT and EMIF pins to either fast or slow slew rate The slew rate feature is implemented by staging delaying turn on times of the parallel p chann
46. E GE Rd Ne ee ee 13 ENE Ee EE EE EE EE EE EE SE liant di 1 3 DSP Glo king Diadtam ass ER EE EE EE EE EE E EE EG SE a EE ED EE 22 1 4 Glock Generator s ss ER dine EE EE EE EA GE GER EE EI ED De IE EES EI RE Ge od EE Ie De ei ee ge DiE Eie 24 1 5 CLKOUT Control Source Select Register CCSSR 1C24h ees ee ek Re RR RR RARR RE RR RR RR RR RARR RE RR RR Re 25 1 6 Clock Generator Control Register 1 CGCR1 1020h ee ese ee RE RR eee RE RR RR RR RR RE RR RR RR RR RARR RE ARE RR Re 30 1 7 Clock Generator Control Register 2 CGCR2 D 30 1 8 Clock Generator Control Register 3 CGCR3 Dh 31 1 9 Clock Generator Control Register 4 CGCR4 1023h cccece ke eee ee eee eee eee RR RR ER RR RR RR RR RR RR ER RE RR Re 31 1 10 Clock Configuration Register 1 CCR1 1TC1EP cece center eee eee eee RR RR RARR RE RR RR RR RR AR RR RR RE RR Re 32 1 11 Clock Configuration Register 2 CCR2 TIGER 32 1 12 Idle Configuration Register ICR OOOTh eee ee ence eee RR RR ee eee RE RR RE RR RR RR RR RE RR RR RR RR RARR KAR RE RR Re 36 1 13 Idle Status Register STR 0002h EES ER EE EE SERE SE EE EE BERE DE WER ESE EER RE SERE EEN deeg ee ENER af 1 14 Peripheral Clock Gating Configuration Register 1 PCGCR1 1002h ee ese eek Re RR RR RR RR RARR RE RR ER RE 39 1 15 Peripheral Clock Gating Configuration Register 2 PCGCR2 DCO hl ese ee ee Re RR RR RR RR RARR RA RR RR RE 41 1 16 Peripheral Clock Stop Request Acknowl
47. ENTS System Memory www ti com 1 2 1 2 1 16 modes e Three 32 bit timers with 16 bit prescaler one timer supports watchdog functionality e A USB 2 0 slave e A 10 bit successive approximation SAR analog to digital converter with touchscreen conversion capability e One real time clock RTC with associated low power mode System Memory The DSP supports a unified memory map program code sections and data sections can be mixed and interleaved within the entire memory space composed of both on chip and external memory The on chip memory consists of 320KB of RAM and 128KB of ROM The external memory interface EMIF port provides the means for the DSP to access external memory and devices including mobile and non mobile single data rate SDR SDRAM for limitations see note in Section 1 1 5 NOR Flash NAND Flash and SRAM Separate from the program and data space the DSP also includes a 64K byte VO space for peripheral registers Program Data Memory Map The device provides 16MB of total address space composed of on chip RAM on chip ROM and external memory space supporting a variety of memory types The on chip dual access RAM allows two accesses to a given block during the same cycle The device has 8 blocks of 8K bytes of dual access RAM The on chip single access RAM allows one access to a given block per cycle The device has 32 blocks of 8K bytes of single access RAM Attempts to perform two accesses in a cycle t
48. ER RR RR Re 31 1 17 Clock Configuration Register 1 CCR1 Field Descriptions sesse ese eke RE RR RE RR RR RARR RE RR RR RR RR RR RR RR RE RR Re 32 1 18 Clock Configuration Register 2 CCR2 Field Descriptions sesse ese eke Re RR RE RR RR RARR RE RR RR RR RR AAR Rek RE RR Re 32 1 19 Power Management Features sesse esse RR KERE RE RR ER RR RR ER RR GR ER ER NEEN ENEE ER RE RR RR AE ERA ER ERA AR RE GR RR ARE 33 120 DSP Power DOMAINS srice E EEE E E E 34 1 21 Idle Configuration Register ICR Field Descriptions sesse seek Re RR RR EER RR RR ER RR RR RR RE RR RR RR RR RARR RA eke RR Re 36 1 22 Idle Status Register ISTR Field Descriptions sesse ee Rae RR ER RR RR RR RR RR RE RR RE RR RR RARR RE RR RR RR RR AR RR ER RE RR Re 37 1 23 CPU Clock Domain Idle Reguirements use ese eke ek Re RR RR RE RR RE RR RR RR RR AR RE RR RE RR RR RA RR RE RR RR RR RR RARR RE RR RR Re 37 1 24 Peripheral Clock Gating Configuration Register 1 PCGCR1 Field Descriptions sesse see Rae Re RR ER Re 39 1 25 Peripheral Clock Gating Configuration Register 2 PCGCR2 Field Descriptions sesse see Rae Rek RE RR RE 41 1 26 Peripheral Clock Stop Request Acknowledge Register CLKSTOP Field DescriptionS ccseeeeeeeees 42 1 27 USB System Control Register USBSCR Field Descriptions ss ese ke ek eee eee RARR RE RR RR RR RR RARR Rek RE RR Re A4 1 28 RTC Power Management Register RTCPMGT Field Descriptions sesse eke Ra R
49. GCR1 A PCGCR2 These registers control most of the peripheral clock domains and writes to this register take effect immediately The SYSCLKDIS bit in PCGCR register has global effect and therefore is a superset of the two methods When this bit as asserted the whole device is clock gated with the exceptions of the PLL the USB PLL the RTC and the oscillators NOTE Stopping clocks to a domain or a module within that domain only affects active power consumption it does not affect leakage power consumption NOTE The on chip Bootloader idles all peripherals and CPU ports at startup but it enables some peripherals as it uses them Application code should not assume all peripherals and CPU ports are disabled To get the minimum power consumption make sure to disable all peripherals and CPU ports first and then enable only necessary peripherals and CPU ports before using them 1 5 3 1 CPU Domain Clock Gating Two registers are provided to individually configure and monitor the clock gating modes of the CPU domain the idle configuration register ICR and the idle status register ISTR ICR lets you configure how the CPU domain will respond the next time the idle instruction is executed When you execute the idle instruction the content of ICR is copied to ISTR Then the ISTR values are propagated to the different portions of the CPU domain In the CPU domain there are five CPU ports e PORT this port is used by the CPU for
50. I MPORTI XPORTI DPORTI IPORTI and CPI bits of the idle configuration register ICR Note that the MPORT will not go into idle mode if the USB CDMA LCD or DMA controllers is not idled 7 Apply the new idle configuration by executing the IDLE instruction The content of ICR is copied to the idle status register ISTR The bits of ISTR are then propagated through the CPU domain system to enable or disable the specified clocks The IDLE instruction cannot be executed in parallel with another instruction To exit the IDLE2 power configuration follow these steps 1 Generate the wake up interrupt you specified during the IDLE2 power down procedure 2 After the interrupt is generated the DSP will execute the interrupt service routine 3 After exiting the interrupt service routine code execution will resume from the point where the IDLE instruction was originally executed You can also exit the IDLE2 power configuration by generating a hardware reset However in this case the DSP is completely reset and the state of the DSP before going into IDLE2 is lost SPRUFX5A October 2010 Revised November 2010 System Control 51 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated A TEXAS INSTRUMENTS Power Management www ti com 1 5 5 2 IDLE3 Procedure In this power configuration all the power domains are turned on the CPU and clock generator domains are disabled and the RTC clock domain is
51. KR ENNEN ari se VaN GN EE NEEN DER a Ge N eg 54 1 6 2 Interrupt TIMING EE we vein ale wae ENEE Vena NEE NEE E ENER ENN ENER NEES ve ENNER Ne KS o 55 1 6 3 Timer Interrupt Aggregation Flag Register TIAFR 1C14h ccs eeeeee sees eee ee eee RR RR RR RR ER Rae RR 56 1 6 4 GPIO Interrupt Enable and Aggregation Flag Registers 56 1 6 5 DMA Interrupt Enable and Aggregation Flag Registers sesse ese RR RE RR RE RR RR ER RR ER RR RARR RR ER RR ee 56 System Configuration and Control EN 57 1 71 e EE 57 1 7 2 Device Identification RER KEER RE RE RAAR RR EE KEER ER EER RA AR RR AR AR RE ER ER EER RAAR RR RR RA EE RE RE ER EE AR RR AA EN 57 1 7 3 Device Configuration ENEE RE RARR RARR EER RR RR AR RR AR RA RR RR RR AR Rae RE 61 1 7 4 DMA Gontroller ComfiQuration eege ve ese eege d Ge N Gel ee ele Ee dead dee geed ees 70 1 75 Peripheral Resel sesse ss be se de se gece BEE GE DE GN Se Be AS d e ie Ge EE SNE Se e ge ge SEN AN T3 1 7 6 EMIF and USB Byte ACCESS issue MEE EER EER Ne deu euer a ee we eg Re 15 1 7 7 EMIF Clock Divider Register ECDR 1026h ccc eceeeee eee eee eee ee eee eee seen eee eee RE RR RR RR RR Rae RR d October 2010 Revised November 2010 Contents 3 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated A TEXAS INSTRUMENTS www ti com List of Figures det Functional Block Dilggretg ss ese We Ge de Nk eh ak ek e dE ER Ve We VAN N ek Ge ede ke ER DE vee ek RE RE GR Ee Vee Ve ek D
52. L Nominal supply voltage is 3 3 V This domain cannot be powered by internal LDOs external regulation must be provided LDOI Power Domain LDOI This domain powers LDOs POR comparator and I O supply for some pins Nominal supply voltage is 1 8 V through 3 6 V Note This domain must be always powered for proper operation 1 5 3 Clock Management 34 As mentioned in Section 1 3 2 there are several clock domains within the DSP The device supports clock gating features that allows software to disable clocks to entire clock domains or modules within a domain in order to reduce the domain s active power consumption to very near zero a very small amount of logic will still see a clock System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com Power Management There are two distinct methods of clock gating The first uses the ICR CPU register and the CPU s IDLE instruction This method is used for the following domains CPU IPORT DPORT MPORT XPORT amp HWA See Figure 1 3 for a diagram of these domains In this method the ICR is written with a value indicating the desired clock gating configuration and then possibly much later the IDLE instruction is executed The contents of the ICR do not become effective until the IDLE instruction is executed The second method uses system registers PC
53. NHIBR3 1C17h 1C18h and 1C19h The device allows you to individually enable or disable the internal pull up and pull down resistors You can individually inhibit the pull up and pull down resistors of the I O pins through the pull down up inhibit registers PDINHIBRn There is one pin TRSTN that has a pulldown that is permanently enabled and cannot be disabled The pull down inhibit register 1 PDINHIBR1 is shown in Figure 1 39 and described in Table 1 49 Figure 1 39 Pull Down Inhibit Register 1 PDINHIBR1 1C17h 15 14 13 12 11 10 9 8 Reserved S15PD S14PD S13PD S12PD S11PD S10PD R 0 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 7 6 5 4 3 2 1 0 Reserved SOSPD S04PD SOSPD S02PD SO1PD SOOPD R 0 R W 1 R W 1 R W 1 R W 1 R W 1 R W 1 LEGEND R W Read Write R Read only n value after reset Table 1 49 Pull Down Inhibit Register 1 PDINHIBR1 Field Descriptions Bit Field Value Description 15 14 Reserved 0 Reserved 13 S15PD Serial port 1 pin 5 pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down 0 Pin pull down is enabled Pin pull down is disabled 12 S14PD Serial port 1 pin 4 pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down 0 Pin pull down is enabled Pin pull down is disabled 11 S13PD Serial port 1 pin 3 pull down inhibit bit Setting this bit to 1 disables the pin s internal
54. PORT Clock DMA1 P ICR DPORTI PCGCR2 DMA2CG d DPORT Clock Ma2 OP ICR CPUI PCGCR2 DMA3CG D CPU Clock mH p D a PCGCR1 EMIFCG ECDRIEDIV USBPHYCLK USB Digital USB Mai PCGCR2 USBCG 12 MHz PCGCRI I2CCG PCGCR1 SPICG UDB_MXO q spr Em PCGCR1 I2SO0CG PCGCR1 UARTCG USBOSCDIS UART PCGCR1 I2S1CG PCGCR1 TMR2CG P PEN PCGCR1 I2S2CG PCGCR1 TMR1CG Set EI Se E PCGCR1 I2S3CG PCGCR1 TMROCG O da Dei PCGCR2 SARCG LCD Controller PCGCR1 MMCSDOCG d PCGCR2 ANAREGCG PCGCR1 MMCSD1CG gq erer E Registers 3 Oo Q d a 3 T OO D OO e 1 LS Level Shifter 2 The CLKOUT pin s output driver is enabled disabled through the CLKOFF bit of the CPU ST3 55 register At the beginning of the boot seguence the on chip Bootloader sets CLKOFF 1 and CLKOUT pin is disabled high impedance For more information on the ST3 55 register see the TMS320C55x 3 0 CPU Reference Guide SWPU073 22 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated l TEXAS INSTRUMENTS www ti com System Clock Generator 1 3 2 Clock Domains 1 4 1 4 1 The device has many clock domains defined by individually disabled portions of the clock tree structure Understanding the clock domains and their clock enable disable control registers is very impor
55. R RE RR RR RR RR RR RR RR RE RR Re 46 1 29 RTC Interrupt Flag Register RTCINTFL Field DescriptiOnS sesse eke Re RR RE RR RR RARR RE RR EER RR RR RR RR ER RE RR Re 47 1 30 On Chip Memory Standby ModeS sesse see Rek RE RR EER RR RR AR RR ER RR RR RR RR RR RE RR RE RR RR RA RR RE RR RR RR RR RARR KAR RE RR Re 48 12315 Ween leit le EE 50 1 32 UTS TUL Table ES RE Ge ie SES e See NEE eege 53 1 33 IFRO and IERO Bit Descriptions EEN 54 1 34 JFR1 and IER1 Bit Desefiptions sussies sesse NEE KEEN EENS GEN ee Hi ee De N ee ke ee dE ENGEN eege SN WE ED 55 1 35 Die ID Registers oe se se SE EN NEEN EG N E EN KEN ste DEE Ed N ee EN ENK SEELEN ERKENNEN ege gege ue 57 1 36 Die ID Register 0 DIEIDRO Field Descrptons sesse ee see ek RE RR ER RR EER RR ER RR RR ER RE ER RR RE RR RE RR RR RE RR RR RR Re ee 58 1 37 Die ID Register 1 DIEIDR1 Field Descriptions sesse ee see RR RE RR ER RR RE RR EER RR RR ER RARR RR RE RR RE RR RR RE RR RE RR Re ee 58 1 38 Die ID Register 2 DIEIDR2 Field DescriptionS sesse ee see ek RE RR ER RR EER RR ER RR RR ER RARR RR EER RR ER RR RR ER RR ER RR ee 58 1 39 Die ID Register 3 DIEIDR3 15 0 Field Descriptions EN 59 1 40 Die ID Register 4 DIEIDR4 Field DescriptiONS sesse ee see ek RE RR ER RR EER RR ER RR RR ER RARR RR EER RR ER RR RR RR Re RR Re ee 59 1 41 Die ID Register 5 DIEIDR5 Field Descrptons sesse ese eek RE RR ER RR EER RR ER RR RR ER RARR RR EER RR ER RR RR ER RR ER RR ee 59 1 42 Die ID Register 6
56. RT peripheral clock NOTE You must request permission before stopping the UART clock through the peripheral clock stop request acknowledge register CLKSTOP Peripheral clock is active Peripheral clock is disabled SPICG SPI clock gate control bit This bit is used to enable and disable the SPI controller peripheral clock Peripheral clock is active Peripheral clock is disabled I2S3CG 1283 clock gate control bit This bit is used to enable and disable the I2S3 peripheral clock Peripheral clock is active Peripheral clock is disabled 40 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com Power Management The peripheral clock gating configuration register 2 PCGCR2 is shown in Figure 1 15 and described in Table 1 25 Figure 1 15 Peripheral Clock Gating Configuration Register 2 PCGCR2 1C03h 15 8 Reserved R 0 7 6 5 4 3 2 1 0 Reserved ANAREGCG DMA3CG DMA2CG DMA1CG USBCG SARCG LCDCG R 0 RAN 0 R W 0 R W 0 R W 0 RAN 0 R W 0 R W 0 LEGEND R W Read Write R Read only n value after reset Table 1 25 Peripheral Clock Gating Configuration Register 2 PCGCR2 Field Descriptions Bit Field Value Description 15 7 Reserved 0 Reserved ANAREGCG Analog registers clock gate control bit This bi
57. TMS3320C5515 DSP System Users Guide di TEXAS INSTRUMENTS Literature Number SPRUFX5A October 2010 Revised November 2010 SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated IA TEXAS Preface 1 Sy 1 1 1 2 1 3 1 4 1 5 1 6 1 7 SPRUFX5A INSTRUMENTS Contents See E ee e EE EE 9 Stem Contol E 13 Tale ele 13 LL Block Diagram sou geetu Ek Ee NN EE eg De ER Ee WS Re Oe EG ee RI Ga Ge AE ED We aI od 13 Wd GS GD 14 1 1 3 FFT Hardware Accelerator E 14 1 1 4 Power Management EE 19 1 1 6 Peripherals eegenen spe ege gesot Ke Ek DR in ed Dk ek Va ek eb Re ee ee ke Ge pe Ke Va aI 15 EE BE ul TEE 16 1 2 1 Program Data Memory Map EE 16 14 22 VO Memory Mapi sesse skeie dese Ge Se be ie eie Ese ie Ae e ee See hentia Deg deeg se be bie geeis ie 20 Device Clocking NEE 20 ES e EE 20 1 3 2 Clock DOMAINS RE EE OE EE EE OE ORE EE EE EE rE an 23 deed de RE OE EE OE N ER EE EE EE EE 23 1 41 so EE EE EE OE EE EN 28 1 4 2 Functional Description 24 14 3 SONU ALO dE 26 1 44 Clock Ee 29 Power Management suis res AANEREN SEAN E DEENEN EES 33 E e EE 33 1 5 2 Power D mainS siese ke bee Einin AE N ee wei alee Eaa 33 15 3 Clock nie EI 34 1 5 4 Static Power Management EE 46 15 5 Power GontiguratiOfie susse de sd ND EE deed Eege ee See ee 50 Tale EE EE EE OE OE deu 53 1 61 IFR and IER Registers sis esse vce Ee KEREN EN ENER revere weve EN
58. _SEL pin If CLK_SEL 0 SYSCLK is driven by the output of the RTC Otherwise SYSCLK will be driven by the CLKIN pin NOTE The CLK_SEL pin must be statically tied high or low it cannot be changed after the device has been powered up Table 1 8 Output Frequency in Bypass Mode CLK_SEL SYSCLK Source Frequency 1 CLKIN expected to be one of the following values by the bootloader 11 2896 MHz 12 0MHz or 12 288 MHz 0 RTC clock 32 768 kHz The state of the CLK_SEL pin is read via the CLKSELSTAT bit in the CCR2 register 1 4 3 2 PLL MODE In PLL MODE the frequency of the input clock signal CLKREF can be both multiplied and divided to produce the desired output frequency and the output clock signal is phase locked to the input clock signal 1 4 3 2 1 Entering and Exiting the PLL MODE To enter the PLL_MODE from BYPASS_MODE first program the PLL to the desired frequency You must always ensure the PLL has completed its phase locking sequence before switching to PLL MODE This PLL has no lock indicator as such indicators are notoriously unreliable Instead a fixed amount of time must be allowed to expire while in BYPASS_MODE to allow the PLL to lock After 4 msec write a 1 to the SYSCLKSEL bit in the clock configuration register 2 CCR2 to set the system clock to the output of the PLL Whenever PLL needs to be reprogrammed first the clock generator must be in bypass mode and then changed to PLL configuration After
59. aginary part can be zeroed The Scale flag determines if the butterfly output is divided by 2 to prevent overflow at the expense of resolution For further information on how to use these routines see FFT Implementation on the TMS320VC5505 TMS320C5505 and TMS320C5515 DSPs SPRABBG6 1 1 4 Power Management Integrated into the C5515 14 DSP are the following power management features One low dropout LDO for analog portions of the device DSP PLL Vopa pu SAR and power management circuits Mona ana ANA_LDO One LDO for DSP core CVpp DSP_LDO One LDO for USB core and PHY USB_Vppa1p3 USB_LDO Idle controller with several clock domains CPU domain Clock generator domain Peripheral domain USB domain Real time clock RTC domain Independent voltage and power domains LDOI LDOs and Bandgap Power Supply Analog POR SAR and PLL Vopa ana and Mona pit Real time clock core CVpprrtc Digital core CVpp USB core USB Vppip3 and USB_Vppaip3 USB PHY and USB PLL USB_Vpp0sc USB_Vopase3 aNd USB Moon EMIF VO DVppemic RTC VO DVppatc Rest of the VO DVppio 1 1 5 Peripherals The DSP includes the following peripherals Four direct memory access DMA controllers each with four independent channels One external memory interface EMIF with 21 bit address and 16 bit data The EMIF has support for mobile SDRAM and non mobile SDRAM single level cell SCL NAND with 1 bit ECC and multi level cel
60. al clock is active Peripheral clock is disabled 8 I2S0CG 12S0 clock gate control bit This bit is used to enable and disable the I2S0 peripheral clock 0 Peripheral clock is active Peripheral clock is disabled 7 MMCSD1CG MMC SD1 clock gate control bit This bit is used to enable and disable the MMC SD1 peripheral clock 0 Peripheral clock is active Peripheral clock is disabled SPRUFX5A October 2010 Revised November 2010 System Control 39 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Power Management A TEXAS INSTRUMENTS www ti com Table 1 24 Peripheral Clock Gating Configuration Register 1 PCGCR1 Field Descriptions continued Bit Field Value Description 6 I2CCG 12C clock gate control bit This bit is used to enable and disable the 12C peripheral clock Peripheral clock is active Peripheral clock is disabled Reserved Reserved you must always write 1 to this bit MMCSDOCG MMC SDO clock gate control bit This bit is used to enable and disable the MMC SDO peripheral clock Peripheral clock is active Peripheral clock is disabled DMAOCG DMA controller 0 clock gate control bit This bit is used to enable and disable the peripheral clock the DMA controller 0 Peripheral clock is active Peripheral clock is disabled UARTCG UART clock gate control bit This bit is used to enable and disable the UA
61. also have been previously enabled to allow wakeup or by a previously enabled and configured RTC alarm or by cycling power to the CVpprrc pin ANA_LDO The ANA LDO is only disabled by the BG PD and the LDO_PD mechanism described above Otherwise it is always enabled DSP LDO The DSP_LDO can be statically disabled by the DSP_LDO_EN pin It can be also dynamically disabled via the BG_PD and the LDO_PD mechanism described above The DSP_LDO can change its output voltage dynamically by software via the DSP_LDO_V bit in the LDOCNTL register see Figure 1 37 The DSP_LDO output voltage is set to 1 3 V at reset USB_LDO The USB_LDO can be independently and dynamically enabled or disabled by software via the USB_LDO_EN bit in the LDOCNTL register see Figure 1 37 The USB _LDO is disabled at reset Table 1 47 shows the ON OFF control of each LDO and its register control bit configurations Figure 1 36 RTC Power Management Register RTCPMGT 1930h 15 S Reserved R 0 7 5 4 3 2 1 0 Reserved WU_DOUT WU_DIR BG_PD LDO_PD RTCCLKOUTEN R 0 R W 0 R W 0 R W 0 R W 0 R W 0 LEGEND R W Read Write R Read only n value after reset SPRUFX5A October 2010 Revised November 2010 System Control Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 63 System Configuration and Control A TEXAS INSTRUMENTS www ti com Table 1 45 RTCPMGT Register Bit Description
62. and Control www ti com To reset a peripheral or group of peripherals follow these steps 1 Set COUNT 08h in PSRCR 2 Initiate the desired peripheral reset by setting to 1 the bits of PRCR 3 Do not attempt to access the peripheral for at least the number of clock cycles set in the PSRCR register A repeated NOP may be necessary In some cases a single reset is used for multiple peripherals For example PG4_RST controls the reset to the LCD controller 12S2 1253 UART and SPI 1 7 5 1 Peripheral Software Reset Counter Register PSRCR 1C04h The Peripheral Software Reset Counter Register PSRCR is shown in Table 1 58 and described in Table 1 58 Figure 1 46 Peripheral Software Reset Counter Register PSRCR 1C04h 15 0 COUNT R W 0 LEGEND R W Read Write n value after reset Table 1 58 Peripheral Software Reset Counter Register PSRCR Field Descriptions Bit 15 0 Field COUNT Value 0 FFFFh Description Count bits These bits specify the number of system clock SYSCLK cycles the software reset signals are asserted When the software counter reaches 0 the software reset bits will be cleared to 0 Always initialize this field with a value of at least 08h 1 7 5 2 Peripheral Reset Control Register PRCR 1C05h Writing a 1 to any bits in this register initiates the reset sequence for the associated peripherals The associated peripherals will be held in reset for the
63. ap reference BG_PD and LDO_PD are only intended to be used when the internal LDOs supply power to the chip If the internal LDOs are bypassed and not used then the BG_PD and LDO_PD power down mechanisms should not be used since the POR gets powered down and the POWERGOOD signal would not get generated properly After this bit is asserted the on chip LDOs Analog POR and the Bandgap reference can only be re enabled by the WAKEUP pin being driven HIGH externally or an enabled RTC alarm or an enabled RTC periodic event interrupt Once reenabled the Bandgap circuit takes about 100 msec to charge the external 0 1 uF capacitor on the BG CAP pin via the the internal resistance of aproxmiately 320 kQ 0 On chip LDOs Analog POR and Bandgap reference are enabled On chip LDOs Analog POR and Bandgap reference are disabled shutdown 1 LDO_PD On chip LDOs and Analog POR power down bit This bit shuts down the on chip LDOs ANA_LDO DSP_LDO and USB_LDO and the Analog POR BG_PD and LDO_PD are only intended to be used when the internal LDOs supply power to the chip If the internal LDOs are bypassed and not used then the BG_PD and LDO_PD power down mechanisms should not be used since POR gets powered down and the POWERGOOD signal is not generated properly After this bit is asserted the on chip LDOs and Analog POR can only be re enabled by the WAKEUP pin being driven HIGH externally or an enabled RTC alarm or an enabled RTC periodic event inter
64. at monitor the voltage level on the pin These comparators can be disabled for power savings when not needed 0 USB VBUS session end comparator is disabled 1 USB VBUS session end comparator is enabled 44 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com Power Management Table 1 27 USB System Conirol Register USBSCR Field Descriptions continued Bit Field Value Description 13 USBVBUSDET USB VBUS detect enable The USB VBUS pin has two comparators that monitor the voltage level on the pin These comparators can be disabled for power savings when not needed 0 USB VBUS detect comparator is disabled 1 USB VBUS detect comparator is enabled 12 USBPLLEN USB PLL enable This is normally only used for test purposes 0 Normal USB operation 1 Override USB suspend end behavior and force release of PLL from suspend state 11 7 Reserved 0 Reserved Always write 0 to these bits 6 USBDATPOL USB data polarity bit Changing this bit can be useful since the data polarity is opposite on type A and type B connectors 0 Reverse polarity on DP and DM signals 1 Normal polarity normal polarity matching pin names 5 4 Reserved 0 Reserved 3 USBOSCBIASDIS USB internal oscillator bias resistor disable 0 Internal oscillator bias resistor enabled normal operating mode 1 Inte
65. ber 2010 System Control 61 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated System Configuration and Control A TEXAS INSTRUMENTS www ti com Table 1 44 EBSR Register Bit Descriptions Field Descriptions Bit Field Value Description 15 Reserved 0 Reserved Read only writes have no effect 14 12 PPMODE 000 001 010 011 100 101 110 111 Parallel Port Mode Control Bits These bits control the pin multiplexing of the LCD Controller SPI UART I2S2 1283 and GP 31 27 20 18 pins on the parallel port Mode 0 16 bit LCD Controller All 21 signals of the LCD Bridge module are routed to the 21 external signals of the parallel port Mode 1 SPI GPIO UART and I2S2 7 signals of the SPI module 6 GPIO signals 4 signals of the UART module and 4 signals of the 1252 module are routed to the 21 external signals of the parallel port Mode 2 8 bit LCD Controller and GPIO 8 bits of pixel data of the LCD Controller module and 8 GPIO are routed to the 21 external signals of the parallel port Mode 3 8 bit LCD Controller SPI and 12S3 8 bits of pixel data of the LCD Controller module 4 signals of the SPI module and 4 signals of the 12S3 module are routed to the 21 external signals of the parallel port Mode 4 8 bit LCD Controller 12S2 and UART 8 bits of pixel data of the LCD Controller module 4 signals of the 12S2 module and 4 signals of the UART
66. ce for the CLKOUT pin see Figure 1 5 and Table 1 6 NOTE There is no internal logic to prevent glitches while changing the CLKOUT source Also there is no provision for internally dividing down the CLKOUT frequency other than the options inherently available for selecting the CLKOUT source The CLKOUT pin s output driver is enabled disabled through the CLKOFF bit of the CPU ST3_55 register At hardware reset CLKOFF is cleared to 0 so that the clock is visible for debug purposes But within the bootloader romcode CLKOFF is set to 1 to conserve power After the bootloader finishes the customer application code is free to re enable CLKOUT For more information on the ST3_55 register see the TMS320C55x 3 0 CPU Reference Guide SWPU073 The slew rate i e dV dt of the CLKOUT pin can be controlled by the CLKOUTSR bits in the output slew rate control register OSRCR This feature allows for additional power savings when the CLKOUT pin does not need to drive large loads Figure 1 5 CLKOUT Control Source Select Register CCSSR 1C24h 15 4 3 0 Reserved SRC R 0 R W Bh LEGEND R W Read Write R Read only n value after reset Table 1 6 CLKOUT Control Source Select Register CCSSR Field Descriptions Bit Field Value Description 15 4 Reserved 0 Reserved 3 0 SRC CLKOUT source bits These bits specify the source clock for the CLKOUT pin 0 CLKOUT pin outputs System PLL output clock PLLOUT th CLKOUT
67. cessive Approximation SAR Analog to Digital Converter ADC User s Guide This document provides an overview of the Successive Approximation SAR Analog to Digital Converter ADC on the TMS320C5515 14 05 04 VC05 VC04 Digital Signal Processor DSP devices The SAR is a 10 bit ADC using a switched capacitor architecture which converts an analog input signal to a digital value SPRUFP3 TMS320C5515 05 VC05 Digital Signal Processor DSP Liquid Crystal Display Controller LCDC User s Guide This document describes the liquid crystal display controller LCDC in the TMS320C551 5 14 05 04 VC05 VC04 Digital Signal Processor DSP devices The LCD controller includes a LCD Interface Display Driver LIDD controller SPRUFT2 TMS320C5515 14 05 04 DSP Direct Memory Access DMA Controller User s Guide This document describes the features and operation of the DMA controller that is available on the TMS320C5515 14 05 04 Digital Signal Processor DSP devices The DMA controller is used to move data among internal memory external memory and peripherals without intervention from the CPU and in the background of CPU operation SPRUGU6 TMS320C5515 14 05 04 DSP External Memory Interface EMIF User s Guide This document describes the operation of the external memory interface EMIF in the TMS320C5515 14 05 04 Digital Signal Processor DSP devices The purpose of the EMIF is to provide a means to connect to a variety of external devices SPRUFO6
68. ctional block diagram of the DSP and how it connects to the rest of the device The DSP architecture uses the switched central resource SCR to transfer data within the system 1 1 3 FFT Hardware Accelerator The C55x CPU includes a tightly coupled FFT hardware accelerator that communicates with the C55x CPU through the use coprocessor instructions For ease of use the ROM has a set of C callable routines that use these coprocessor instructions to perform 8 16 32 64 128 or 256 point FFTs The main features of the FFT hardware accelerator are e Support for 8 to 1024 point in powers of 2 real and complex valued FFTs and IFFTs e An internal twiddle factor generator for optimal use of memory bandwidth and more efficient programming e Basic and software driven auto scaling feature provides good precision vs cycle count trade off e Single stage and double stage modes enabling computation of one or two stages in one pass thus handling odd power of two FFT widths 1 1 3 1 Using FFT Accelerator ROM routines The C5505 includes C callable routines in ROM to execute FFT and IFFT using the tightly coupled FFT accelerator The routines reside in the following address Table 1 1 Address Name Description Calling Convention Ox00ff6cd6 hwafft br Vector bit reversal void hwafft_br Int32 data Int32 data br Uint16 data_len Ox00ff6cea hwafft 8pts 8 pt FFT IFFT Uint16 hwafft_8pts Int32 data Int32 scratch Uint16 fft_flag
69. d Idle Configurations Not all of the values that you can write to the idle configuration register ICR provide valid idle configurations The valid configurations are limited by dependencies within the system For example the IDLECFG bits 1 2 and 3 of ICR must always be set to 1 and bit 4 must always be cleared to 0 As another example the XPORT cannot be idled unless the CPU is also idled Before any part of the CPU domain is idled you must observe the requirements outlined in Section 1 5 3 2 A bus error will be generated BERR 1 in IFR1 if you execute the idle instruction under any of the following conditions and the idle command will not take effect 1 If you fail to set IDLECFG 0111 while setting any of these bits DPORTI XPORTI IPORTI or MPORTI 2 If you set DPORTI XPORTI or IPORTI without also setting CPUI Table 1 23 CPU Clock Domain Idle Requirements To Idle the Following Module Port Requirements Before Going to Idle CPU No requirements FFT Hardware Accelerator No requirements MPORT DMA controllers LCD and USB CDMA must not be accessing DARAM or SARAM SPRUFX5A October 2010 Revised November 2010 System Control 37 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUMENTS Power Management www ti com Table 1 23 CPU Clock Domain Idle Requirements continued To Idle the Following Module Port Requirements Before Going to Idle XPORT DPORT
70. ddress bits These registers are the Extended Mode register and the Mode register The extended mode register exists only in mSDRAM and not in non mSDRAM If a non mobile SDRAM memory ignores bits BAO and BA1 the second loaded register value overwrites the first leaving the desired value in the mode register and the non mobile SDRAM works with the device Some timing parameters are programmable such as the refresh rate and CAS latencies The EMIF supports up to 100 MHz SDCLK and has the ability to run the SDCLK at half the system clock to meet the EMIF VO timing requirements and or at lower power if a slower SDCLK can be used Detailed information is available in the Clock Control section of the TMS320C5515 14 05 04 DSP External Memory Interface EMIF User s Guide SPRUGU6 1 2 2 VO Memory Map 1 3 1 3 1 20 The C5x DSP has a separate memory map for peripheral and system registers called VO space This space is 64K words in length and is accessed via word read and write instructions dedicated for VO space Separate documentation for UO space registers related to each peripheral exists and is listed in the preface of this guide System registers which provide system level control and status are described in detail in other sections throughout this guide Unused addresses in VO space should be treated as reserved and should not be accessed Accessing unused I O space addresses may stall or hang the DSP Each of the four DMA controllers
71. divider of the PLL Divider value ODRATIO 1 SPRUFX5A October 2010 Revised November 2010 System Control 31 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUMENTS System Clock Generator www ti com 1 4 4 5 Clock Configuration Register 1 CCR1 1C1Eh The clock configuration register 1 CCR1 is shown in Figure 1 10 and described in Table 1 17 Figure 1 10 Clock Configuration Register 1 CCR1 1C1Eh 15 1 0 Reserved SDCLK_EN HO R W 0 LEGEND R Read only n value after reset Table 1 17 Clock Configuration Register 1 CCR1 Field Descriptions Bit Field Value Description 15 1 Reserved 0 Reserved This bit must be kept as 0 during writes to this register 0 SDCLK_EN SDRAM clock enable control When ON the EM_SDCLK pin will drive the clock signal at the SYSCLK frequency if in full_rate mode or at SYSCLK frequency divided by 2 if in half_rate mode When OFF the EM SDCLK pin will drive low Transitions from ON to OFF and OFF to ON are not guaranteed to be glitchless Therefore the EMIF should be reset after any change 0 EM_SDCLK off default EM_SDCLK on This bit must be set to 1 before using SDRAM or mSDRAM 1 4 4 6 Clock Configuration Register 2 CCR2 1C1Fh The clock configuration register 2 CCR2 is shown in Figure 1 11 and described in Table 1 18 Figure 1 11 Clock Configuration Register 2 CCR
72. e powered down when not in use to reduce switching and bias power Peripheral clock idle Peripheral clocks can be idled to reduce switching power Dynamic Power Management Core Voltage Scaling The DSP LDO and DSP logic support two voltage ranges to allow voltage adjustments on the fly increasing voltage during peak processing power demand and decreasing during low demand Static Power Management DARAM SARAM low power modes The internal memory of the DSP can be placed in a low leakage power mode while preserving memory contents Independent power domains DSP Core CVpp and USB Core USB_Vpp1p3 USB Vppaips can be shut off while other supplies remain powered UO Management VO voltage selection The operating voltage and or slew rate of the I O pins can be reduced at the expense of performance to decrease VO power consumption USB power down The USB peripheral can be powered down when not being used Power Domains The DSP has separate power domains which provide power to different portions of the device The separate power domains allow the user to select the optimal voltage to achieve the lowest power consumption at the best possible performance Note that several power domains have similar voltage requirements and therefore could be grouped under a single voltage domain SPRUFX5A October 2010 Revised November 2010 System Control 33 Submit Documentation Feedback Copyright 20
73. ed bit transfer rate The SPI supports multi chip operation of up to four SPI slave devices The SPI can operate as a master device only SPRUFX5A October 2010 Revised November 2010 Read This First 9 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUMENTS Related Documentation From Texas Instruments www ti com SPRUFO4 TMS320C5515 14 05 04 VC05 VC04 Digital Signal Processor DSP General Purpose Input Output GPIO User s Guide This document describes the general purpose input output GPIO on the TMS320C5515 14 05 04 VC05 VC04 digital signal processor DSP devices The GPIO peripheral provides dedicated general purpose pins that can be configured as either inputs or outputs When configured as an input you can detect the state of an internal register When configured as an output you can write to an internal register to control the state driven on the output pin SPRUFOS TMS320C5515 14 05 04 VC05 VC04 Digital Signal Processor DSP Universal Asynchronous Receiver Transmitter UART User s Guide This document describes the universal asynchronous receiver transmitter UART peripheral in the TMS320C5515 14 05 04 VC05 VC04 Digital Signal Processor DSP devices The UART performs serial to parallel conversions on data received from a peripheral device and parallel to serial conversion on data received from the CPU SPRUFP1 TMS320C5515 05 VC05 Digital Signal Processor DSP Suc
74. edge Register CLKSTOP 1C3AN n ssssssssssssssssnsnnnnrssssssnnns 42 1 17 USB System Control Register USBSCR 1032h eise see eke eke RR RR RR ER RE RR RE RR RR RARR RE ee RR RR RR RARR RE RR RR Re 44 1 18 RTC Power Management Register RTCPMGT Do20Onl cece cece eee eee eee RR ER RR RR AR RR ER RR RR RR RR Re ke 46 1 19 RTC Interrupt Flag Register RTCINTFL 1920h sees ees eke RR ee eee reece eee eee neat eee RE ee RE RR RR RR RR RE RE RR Re 47 1 20 RAM Sleep Mode Control Register TOx 128 48 1 21 RAM Sleep Mode Control Register2 OX1O2A eee ence eee ee eee cence ee RR RR RA RR RE RR RR RR RR AR RR ER RE RR Re 49 1 22 RAM Sleep Mode Control Register3 0X1C2B ccceeeece ence RE RR RR RR RR AR RE RR RE RR RR RARR RE RR RR RR RR RR RR ER Re RR Re 49 1 23 RAM Sleep Mode Control Register4 OX1O2C ese eke RR ER RE RR RR RR ER RE RR RR RR RR AR RR ER RR RR RR RR AR RR GR Re RR Re 49 1 24 RAM Sleep Mode Control Register5 Tv CD 49 1 25 FRO and ERO Bit LOCationS uses oes Nee gek Se KENE ES SG EO E NENNEN ee N ER ENKEN Ee Nee REENEN 54 1 26 JERI and IERT Bit Locations eege Ree E ety ANESEC ENKE ave KSE RR DES GE EE Se EG Ge GE GE Ge 55 1 27 Die ID Register o DIEIDRO 1 C4 ON sesse EE Se DE ER EE E E e S 58 1 28 Die ID Register 1 DIEIDR1 MOCAN esse sesse Rae RR cece RARR REK RE RR AR RR AR RARR RE RR ER RARR RE RR RR RARR RARR Rek RE RR Re 58 1 29 Die ID Register 2 DIEIDR2 1C42h EEN 58 1 30 Die
75. egulatory requirements in connection with such use TI products are neither designed nor intended for use in automotive applications or environments unless the specific TI products are designated by TI as compliant with ISO TS 16949 requirements Buyers acknowledge and agree that if they use any non designated products in automotive applications TI will not be responsible for any failure to meet such requirements 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 DLP Products www dp com Communications and www ti com communications Telecom DSP dsp ti com Computers and www ti com computers Peripherals Clocks and Timers www ti com clocks Consumer Electronics www ti com consumer apps Interface interface ti com Energy www ti com energy Logic logic ti com Industrial www ti com industrial Power Mgmt power ti com Medical www ti com medical Microcontrollers microcontroller ti com Security www ti com security RFID www ti rfid com Space Avionics amp www ti com space avionics defense Defense RF IF and ZigBee Solutions www ti com lprf Video and Imaging www ti com video Wireless www ti com wireless apps Mailing Address Texas Instruments Post Office Box 655303 Dallas Texas 75265 Copyright 2010 Texas In
76. el drive transistors and parallel n channel drive transistors of the output buffer In the slow slew rate configuration the delay is longer but ultimately the same number of parallel transistors are used to drive the output high or low therefore the drive strength is ultimately the same The slower slew rate control can be used for power savings and has the greatest effect at lower DVDDIO and DVDDEMIF voltages The output slew rate control register OSRCR is shown in Figure 1 38 and described in Table 1 48 Figure 1 38 Output Slew Rate Control Register OSRCR 1C16h 15 3 2 1 0 Reserved CLKOUTSR Reserved EMIFSR HO RW 1 HO RW 1 LEGEND R W Read Write R Read only n value after reset Table 1 48 Output Slew Rate Control Register OSRCR Field Descriptions Bit Field Value Description 15 3 Reserved 0 Reserved 2 CLKOUTSR CLKOUT pin output slew rate bits These bits set the slew rate for the CLKOUT pin 0 Slow slew rate 1 Fast slew rate 1 Reserved 0 Reserved 0 EMIFSR EMIF pin output slew rate bits These bits set the slew rate for the EMIF pins 0 Slow slew rate 1 Fast slew rate 66 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com System Configuration and Control 1 7 3 5 Pull Up Pull Down Inhibit Register PDINHIBR1 PDINHIBR2 and PDI
77. en acknowledged the clock can be stopped 0 EMFCLKSTPREQ EMIF peripheral clock stop request bit When disabling the EMIF internal peripheral clock you must set this bit to 1 to request permission to stop the clock After the EMIF acknowledges the request EMFCLKSTPACK 1 you can stop the clock through the peripheral clock gating control register 1 PCGCR1 When enabling the EMIF internal clock enable the clock through PCGCR1 then set EMFCKLSTPREQ to 0 0 Normal operating mode 1 Request permission to stop the peripheral clock 1 6 3 2 3 Clock Configuration Process The clock configuration indicates which portions of the peripheral clock domain will be idle and which will be active The basic steps to the clock configuration process are 1 Wait for completion of all DMA transfers You can poll the DMA transfer status and disable DMA transfers through the DMA registers 2 If idling the EMIF USB and UART clock set the corresponding clock stop request bit in CLKSTOP 3 Wait for confirmation from the module that its clock can be stopped by polling the clock stop acknowledge bits of CLKSTOP 4 Set the clock configuration for the peripheral domain through PCGCR1 and PCGCR2 The clock configuration takes place as soon as you write to these registers the idle instruction is not required 1 5 3 3 Clock Generator Domain Clock Gating To save power the system clock generator can be placed in its BYPASS MODE and
78. enabled The DSP peripherals and the USB are also disabled in this mode When you enter this power configuration all CPU and peripheral activity in the DSP is stopped Since the clock generator domain is disabled you must allow enough time for the PLL to re lock before exiting this power configuration Follow these steps to enter the IDLE3 power configuration 1 Wait for completion of all DMA transfers You can poll the DMA transfer status and disable DMA transfers through the DMA registers 2 Disable the USB clock domain as described in Section 1 5 3 4 3 Idle all the desired peripherals in the peripheral clock domain by modifying the peripheral clock gating configuration registers PCGCR1 and PCGCR2 See Section 1 5 3 2 for more details on setting the DSP peripherals to idle mode 4 Disable the clock generator domain as described in Section 1 5 3 3 5 Clear all interrupts by writing ones to the CPU interrupt flag registers IFRO and IFR1 6 Enable the appropriate wake up interrupt in the CPU interrupt enable registers IERO and IER1 If using the WAKEUP pin to exit this mode configure the WAKEUP pin as input by setting WU_DIR 1 in the RTC power management register RTCPMGT If using the RTC alarm or periodic interrupt as a wake up event the RTCINTEN bit must be set in the RTC interrupt enable register RTCINTEN 7 Disable the CPU domain by setting to 1 the CPUI MPORTI XPORTI DPORTI IPORTI and CPI bits of the idle confi
79. ent has occurred 0 Periodic Day event has not occurred Periodic Day event occurred write 1 to clear 3 HOURFL Hour event has occurred 0 Periodic Hour event has not occurred Periodic Hour event occurred write 1 to clear 2 MINFL Minute Event has occurred 0 Periodic Minute event has not occurred Periodic Minute event occurred write 1 to clear 1 SECFL Second Event occurred 0 Periodic Second event has not occurred Periodic Second event occurred write 1 to clear 0 MSFL Millisecond event occurred 0 Periodic Millisecond event has not occurred Periodic Millisecond event occurred write 1 to clear SPRUFX5A October 2010 Revised November 2010 System Control Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 47 Power Management 1 5 4 3 Internal Memory Low Power Modes A TEXAS INSTRUMENTS www ti com To save power software can place on chip memory DARAM or SARAM in one of two power modes memory retention mode and active mode These power modes are activated through the SLPZVDD and SLPZVSS bits of the RAM Sleep Mode Control Register 1 5 RAMSLPMDCNTLRI1 5 To activate memory retention mode set SLPZVDD bit and clear SLPZVSS bit of each memory bank to be put in retention mode The retention active mode of each 4kW DARAM and SARAM bank is independently controllable When either type of memory is placed in memory retention read and write accesses
80. er configuration all the power domains are turned on the RTC and clock generator domains are enabled the CPU domain is disabled and the DSP peripherals are disabled When you enter this power configuration all CPU and peripheral activity in the DSP is stopped Leaving the clock generator domain enabled allows the DSP to quickly exit this power configuration since there is no need to wait for power domains to turn on or for the PLL to re lock Follow these steps to enter the IDLE2 power configuration 1 Wait for completion of all DMA transfers You can poll the DMA transfer status and disable DMA transfers through the DMA registers 2 Disable the USB clock domain as described in Section 1 5 3 4 3 Idle all the desired peripherals in the peripheral clock domain by modifying the peripheral clock gating configuration registers PCGCR1 and PCGCR2 See Section 1 5 3 2 for more details on setting the DSP peripherals to idle mode 4 Clear all interrupts by writing ones to the CPU interrupt flag registers IFRO and IFR1 5 Enable the appropriate wake up interrupt in the CPU interrupt enable registers IERO and IER1 If using the WAKEUP pin to exit this mode configure the WAKEUP pin as input by setting WU_DIR 1 in the RTC power management register RTCPMGT If using the RTC alarm or periodic interrupt as a wake up event the RTCINTEN bit must be set in the RTC interrupt enable register RTCINTEN 6 Disable the CPU domain by setting to 1 the CPU
81. er contents should not be modified Table 1 12 Clock Generator Registers CPU Word Acronym Register Description Section Address 1C20h CGCR1 Clock Generator Control Register 1 Section 1 4 4 1 1C21h CGCR2 Clock Generator Control Register 2 Section 1 4 4 2 1C22h CGCR3 Clock Generator Control Register 3 Section 1 4 4 3 1C23h CGCR4 Clock Generator Control Register 4 Section 1 4 4 4 1C1Eh CCR1 Clock Configuration Register 1 Section 1 4 4 5 1C1Fh CCR2 Clock Configuration Register 2 Section 1 4 4 6 SPRUFX5A October 2010 Revised November 2010 System Control 29 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated System Clock Generator Clock Generator Control Register 1 CGCR1 1C20h The clock generator control register 1 CGCR1 is shown in Figure 1 6 and described in Table 1 13 1 4 4 1 A TEXAS INSTRUMENTS www ti com Figure 1 6 Clock Generator Control Register 1 CGCR1 1C20h 15 14 13 12 11 8 Reserved Reserved PLL_PWRDN M R W 0 R W 0 R W 1 R W 0 7 6 5 4 3 2 1 0 M R W 0 LEGEND R W Read Write R Read only n value after reset Table 1 13 Clock Generator Control Register 1 CGCR1 Field Descriptions Bit Field Value Description 15 Reserved 0 This bit must be set to 1 for normal operation 14 13 Reserved 0 Reserved This bit must be always written to be zero 12 PLL_PWRDN PLL power down bit This bit is used to po
82. er voltage independently of other I O pins on the DSP Further power savings may be achieved by setting the EMIF VO pins to have slow slew rate as described in Section 1 7 3 4 1 2 1 4 1 Asynchronous EMIF Interface The EMIF provides a configurable 16 or 8 bit data bus with address bus width of up to 21 bits and six dedicated chip selects along with memory control signals The cycle timings of the asynchronous interface are fully programmable allowing for access to a wide range of devices including NAND flash NOR flash and SRAM as well as other asynchronous devices such as a TI DSP HPI interface In NAND mode the asynchronous interface supports 1 bit ECC for 8 and 16 bit NAND flash and 4 bit ECC for 8 bit NAND flash 1 2 1 5 Synchronous EMIF Interface The EMIF provides a 16 bit data bus with one or two dedicated chip selects for mSDRAM Non mobile SDRAM can be supported under certain circumstances The C5515 always uses a mobile SDRAM initialization command sequence but it is able to support SDRAM memories that ignore the BAO and BA1 SPRUFX5A October 2010 Revised November 2010 System Control 19 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated A TEXAS INSTRUMENTS Device Clocking www ti com pins for the load mode register command During the mobile SDRAM initialization the device issues the load mode register initialization command to two different addresses that differ in only the BAO and BA1 a
83. eripheral Reset e EMIF and USB Byte Access 1 7 2 Device Identification The DSP includes a set of device ID registers that are intended for use in TI chip manufacturing but can be used by users as a 128 bit unique ID for each device These registers are summarized in the following table Table 1 35 Die ID Registers CPU Word Acronym Register Description Section Address 1C40h DIEIDRO Die ID Register 0 Section 1 7 2 1 1C41h DIEIDR1 Die ID Register 1 Section 1 7 2 2 1C42h DIEIDR2 Die ID Register 2 Section 1 7 2 3 1C43h DIEIDR3 Die ID Register 3 Section 1 7 2 4 1C44h DIEIDR4 Die ID Register 4 Section 1 7 2 5 1C45h DIEIDR5 Die ID Register 5 Section 1 7 2 6 1C46h DIEIDR6 Die ID Register 6 Section 1 7 2 7 1C47h DIEIDR7 Die ID Register 7 Section 1 7 2 8 SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback System Control 57 Copyright 2010 Texas Instruments Incorporated IA TEXAS INSTRUMENTS System Configuration and Control 1 7 2 1 Die ID Register 0 DIEIDRO 1C40h The die ID register 0 DIEIDRO is shown in Figure 1 27 and described in Table 1 36 www ti com Figure 1 27 Die ID Register 0 DIEIDRO 1C40h 15 0 DIEIDO R LEGEND R Read only n value after reset Table 1 36 Die ID Register 0 DIEIDRO Field Descriptions Bit Field Value 15 0 DIEIDO 0 FFFFh Description Die ID bits 1 7 2 2 Die ID Register 1 DIEIDR1 1C41h The die ID re
84. ernal memory external memory and peripherals to occur without intervention from the CPU and in the background of CPU operation Each DMA has an EVENT input signal per channel that can be used to tell it when to start the block transfer And each DMA has an interrupt output per channel that can signal the CPU when the block transfer is completed While most DMA configuration registers described in the TMS320C5515 14 05 04 DSP Direct Memory Access DMA Controller User s Guide SPRUFT2 the EVENT source and interrupt aggregation is more of a system level concern and therefore they are best described in this guide The following sections provide more details on these features In this section and subsections the following notations will be used e Lowercase italicized n is an integer 0 3 representing each of the 4 DMAs e Lowercase italicized mis an integer 0 3 representing each of the 4 channels within each DMA 70 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com 1 7 4 1 System Configuration and Control DMA Synchronization Events The DMA controllers allow activity in their channels to be synchronized to selected events The DSP supports 20 separate synchronization events and each channel can be tied to separate sync events independent of the other channels Synchronization events are selec
85. errupt flag is shared software must have a means of determining which GPIO pin caused the interrupt Therefore the GPIO interrupt aggregation flag registers IOINTFLG1 and IOINTFLG2 are secondary flag registers that serve this purpose If any of the GPIO pins are configured as inputs they can be enabled to accept external signals as interrupts using the GPIO Interrupt Enable Registers IOINTEN1 and IOINTEN2 The GPIO Interrupt Flag Registers IOINTFLG1 and IOINTFLG2 can be used to determine which of the 32 GPIO pins triggered the interrupt Note that the IFRO GPIO bit is automatically cleared when entering the interrupt service routine ISR Therefore there is no need to manually clear it in the ISR If two or more GPIO pins happen to interrupt simultaneously the IOINTFLG1 IOINTFLG2 register indicates the two or more interrupt flags In this case the ISR can choose to service both all GPIO interrupts or only one at a time If the ISR services only one of them then it should clear only one of the IOINTFLG1 IOINTFLG2 flags and upon exiting the ISR the CPU is immediately interrupted again to service the others For more information see the TMS320C5515 14 05 04 VC05 VC04 DSP General Purpose Input Output GPIO User s Guide SPRUFO4 DMA Interrupt Enable and Aggregation Flag Registers The CPU has only one interrupt flag that is shared among the 16 DMA interrupt sources The CPU s interrupt flag is bit 8 DMA of the IFRO amp IERO registe
86. es place on the next CPU clock cycle Additionally the EBSR controls the function of the upper bits of the EMIF address bus Pins EM_A 20 15 can be individually configured as GPIO pins through the Axx_MODE bits When Axx_MODE 1 the EM_A xx pin functions as a GPIO pin When Axx_MODE 0 the EM_A xx pin retains its EMIF functionality Before modifying the values of the external bus selection register you must clock gate all affected peripherals through the Peripheral Clock Gating Control Register for more information on clock gating peripherals see Section 1 5 3 2 After the external bus selection register has been modified you must reset the peripherals before using them through the Peripheral Software Reset Counter Register After the boot process is complete the external bus selection register must be modified only once during device configuration Continuously switching the EBSR configuration is not supported The external bus selection register EBSR is shown in Figure 1 35 and described in Table 1 44 Figure 1 35 External Bus Selection Register EBSR 1C00h 15 14 12 11 10 9 8 Reserved PPMODE SP1MODE SPOMODE R 0 R W 000 R W 00 R W 00 ih 6 5 4 3 2 1 0 Reserved Reserved A20_MODE A19_ MODE A18_MODE A17_MODE A16_MODE A15_MODE R 0 HO R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 LEGEND R W Read Write R Read only n value after reset SPRUFX5A October 2010 Revised Novem
87. ese eee eee eee RE RR RE RR RR RARR RE RR RR RR RR RR RR RR Re RR Re 69 1 42 DMA Interrupt Flag Register DMAIFR 1C3Oh ese sees eke eke RR RR RR ER RE RR RE RR RR RARR RE RR RR RR RR RARR KAR RR RR Re 72 1 43 DMA Interrupt Enable Register DMAIER TCSTP ese see ese ee se ka ee Re ee Rek Re RR Re RR RR Re RR Re eke RR RR RR ee Re RR Re T2 1 44 DMAn Channel Event Source Register 1 DMAnCESR1 1C1Ah 1C1Ch 1C36h and 1C38h 73 1 45 DMAn Channel Event Source Register 2 DMAnCESR2 1C1Bh 1C1Dh 1C37h and 1C39h 73 1 46 Peripheral Software Reset Counter Register PSRCR DCOAbl eee RR RARR RE RR EER RR RR RR RR ER RE RR Re 74 1 47 Peripheral Reset Control Register PRCR 1COSK ees ese eee eee eee RE RR RR RR RR RARR RE ee RR RR RR RR Rek RE RR Re 74 List of Figures SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com 1 48 EMIF System Control Register ESCR 1C33h sesse esse eke eke eke ence RE RR RE RR RR tees RE RR RR RR RR RR RR ER Re RR Re 76 1 49 EMIF Clock Divider Register ECDR 1C26h ees ee see ee ke ek ee ee Ge RR ER ee Ra ER eee RR RE RR Re Rek Rae RR GR Re Re ee 77 SPRUFX5A October 2010 Revised November 2010 List of Figures 5 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated A TEXAS INSTRUMENTS www ti com List of Tables
88. etting this bit to 1 disables the pin s internal pull down 8 PD8PD Parallel port pin 8 pull down inhibit bit Pin pull down is enabled Pin pull down is disabled Setting this bit to 1 disables the pin s internal pull down 7 PD7PD Parallel port pin 7 pull down inhibit bit Pin pull down is enabled Pin pull down is disabled Setting this bit to 1 disables the pin s internal pull down 6 PD6PD Parallel port pin 6 pull down inhibit bit Pin pull down is enabled Pin pull down is disabled Setting this bit to 1 disables the pin s internal pull down 5 PD5PD Parallel port pin 5 pull down inhibit bit Pin pull down is enabled Pin pull down is disabled Setting this bit to 1 disables the pin s internal pull down 4 PD4PD Parallel port pin 4 pull down inhibit bit Pin pull down is enabled Pin pull down is disabled Setting this bit to 1 disables the pin s internal pull down 3 PD3PD Parallel port pin 3 pull down inhibit bit Pin pull down is enabled Pin pull down is disabled Setting this bit to 1 disables the pin s internal pull down 2 PD2PD Parallel port pin 2 pull down inhibit bit Pin pull down is enabled Pin pull down is disabled Setting this bit to 1 disables the pin s internal pull down 1 0 Reserved 0 Reserved 1 7 4 DMA Controller Configuration The DSP includes four DMA controllers that allow movement of blocks of data among int
89. gister 1 DIEIDR1 is shown in Figure 1 28 and described in Table 1 37 Figure 1 28 Die ID Register 1 DIEIDR1 1C41h 15 14 13 0 Reserved DIEID1 R R LEGEND R Read only n value after reset Table 1 37 Die ID Register 1 DIEIDR1 Field Descriptions Bit Field Value Description 15 14 Reserved 0 Reserved 13 0 DIEID1 0 3FFFh Die ID bits 1 7 2 3 Die ID Register 2 DIEIDR2 1C42h 15 The die ID register 2 DIEIDR2 is shown in Figure 1 29 and described in Table 1 38 Figure 1 29 Die ID Register 2 DIEIDR2 1C42h DIEID2 LEGEND R Read only n value after reset R Table 1 38 Die ID Register 2 DIEIDR2 Field Descriptions Bit Field Value Description 15 0 DIEID2 0 FFFFh Die ID bits 58 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com System Configuration and Control 1 7 2 4 Die ID Register 3 DIEIDR3 15 0 1C43h The die ID register 3 DIEIDR3 is shown in Figure 1 30 and described in Table 1 39 Figure 1 30 Die ID Register 3 DIEIDR3 15 0 1C43h 15 12 11 0 DesignRev DIEID3 R R LEGEND R Read only n value after reset Table 1 39 Die ID Register 3 DIEIDR3 15 0 Field Descriptions Bit Field Value Description 15 1
90. gnals GP 5 0 are routed to the 6 external signals of the serial port 0 Reserved 7 6 Reserved Reserved Read only writes have no effect 5 A20_MODE A20 Pin Mode Bit This bit controls the pin multiplexing of the EMIF address 20 EM_A 20 and general purpose input output pin 26 GP 26 pin functions Pin function is EMIF address pin 20 EM A 20 Pin function is general purpose input output pin 26 GP 26 4 A19_MODE A19 Pin Mode Bit This bit controls the pin multiplexing of the EMIF address 19 EM_A 19 and general purpose input output pin 25 GP 25 pin functions Pin function is EMIF address pin 19 EM_A 19 Pin function is general purpose input output pin 25 GP 25 3 A18_MODE A18 Pin Mode Bit This bit controls the pin multiplexing of the EMIF address 18 EM_A 18 and general purpose input output pin 24 GP 24 pin functions Pin function is EMIF address pin 18 EM_A 18 Pin function is general purpose input output pin 24 GP 24 62 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com System Configuration and Control Table 1 44 EBSR Register Bit Descriptions Field Descriptions continued Bit Field Value Description 2 A17_MODE A17 Pin Mode Bit This bit controls the pin multiplexing of the EMIF address 17 EM_A 17 and general
91. guration register ICR 8 Apply the new idle configuration by executing the IDLE instruction The content of ICR is copied to the idle status register ISTR The bits of ISTR are then propagated through the CPU domain system to enable or disable the specified clocks The IDLE instruction cannot be executed in parallel with another instruction To exit the IDLE3 power configuration follow these steps 1 Generate the wake up interrupt you specified during the IDLE3 power down procedure 2 After the interrupt is generated the DSP will execute the interrupt service routine 3 After exiting the interrupt service routine code execution will resume from the point where the IDLE instruction was originally executed 4 Enable the clock generator domain as described in Section 1 5 3 3 You can also enable the clock generator domain inside the interrupt service routine You can also exit the IDLE3 power configuration by generating a hardware reset however in this case the DSP is completely reset and the state of the DSP before going into IDLE3 is lost 1 5 5 3 Core Voltage Scaling 52 When the core voltage domain CV is ON it can be set to two voltages 1 3 V or 1 05 V nominal The core voltage can be reduced during periods of low processing demand and increased during high demand Core voltage scaling can be accomplished with an external power management IC LDO DC DC etc or with the on chip DSP_LDO When the core voltage is
92. h 7F 8000h 7F BFFFh SAROM3 FF 8000h FF FFFFh 7F COOOh ZE FFFFh 1 2 1 4 External Memory The external memory space of the device is located at the byte address range 05 0000h FF FFFFh The external memory space is divided into five chip select spaces The synchronous space is activated by one chip select pin EM_CS0 or by a pair of chip selects pins EM CSO and EM_CS1 Each asynchronous chip select space has a corresponding chip select pin called EMIF_CS 2 5 that is activated during an access to the chip select space The external memory interface EMIF provides the means for the DSP to access external memories and other devices including NOR Flash NAND Flash SRAM mSDRAM and SDRAM see section 1 5 for limitations Before accessing external memory you must configure the EMIF through its registers For more detail on the EMIF see the TMS320C5515 1 4 05 04 DSP External Memory Interface EMIF User s Guide SPRUGU6 As described in Section 1 2 1 3 when the MPNMC bit field of the ST3 status register is cleared default the byte address range FE 0000h FF FFFFh is reserved for the on chip ROM which decreases the addressable size for EM_CS5 The EMIF provides a configurable 16 bit synchronous or asynchronous or 8 bit asynchronous only data bus an address bus width of up to 21 bits and five dedicated chip selects along with memory control signals To maximize power savings the I O pins of the EMIF can be operated at low
93. has access to a different set of peripherals and their I O space registers This is shown in Section 1 7 4 NOTE Writting to VO space registers incurs in at least 2 CPU cycle latency Thus when configuring peripheral devices wait at least two cycles before accessing data from the peripheral When more than one peripheral register is updated in a sequence the CPU only needs to wait following the final register write For example if the EMIF is being reconfigured the CPU must wait until the very last EMIF register update takes effect before trying to access the external memory The users should consult the respective peripheral user s guide to determine if a peripheral requires additional initialization time Before accessing any peripheral register make sure the peripheral is not held in reset and its internal clock is enabled The peripheral reset control register Section 1 7 5 2 and the peripheral clock gating control registers Section 1 5 3 2 1 control these functions Accessing a peripheral whose clocks are gated will either return the value of the last address read from the peripheral when the clocks were last ON or it may possibly hang the DSP depending on the peripheral Device Clocking Overview The DSP requires two primary reference clocks a system reference clock and a USB reference clock The system clock which is used by the CPU and most of the DSP peripherals is controlled by the system clock generator The syste
94. he system level DMA registers are listed in Table 1 53 The DMA interrupt flag and enable registers DMAIFR and DMAIER are used to control the aggregation and CPU interrupt generation for the four DMA controllers and their associated channels In addition there are two registers per DMA controller which control event synchronization in each channel the DMAn channel event source registers DMAnCESR1 and DMAnCESR2 Table 1 53 System Registers Related to the DMA Controllers G ie Acronym Register Description 1C30h DMAIFR DMA Interrupt Flag Register 1C31h DMAIER DMA Interrupt Enable Register 1C1Ah DMAOCESR 1 DMAO Channel Event Source Register 1 1C1Bh DMAOCESR2 DMAO Channel Event Source Register 2 1C1Ch DMA1CESR1 DMA1 Channel Event Source Register 1 1C1Dh DMA1CESR2 DMA1 Channel Event Source Register 2 1C36h DMA2CESR1 DMA2 Channel Event Source Register 1 1C37h DMA2CESR2 DMA2 Channel Event Source Register 2 1C3ah DMASCESR 1 DMAS3 Channel Event Source Register 1 1C39h DMA3CESR2 DMA3 Channel Event Source Register 2 SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated System Control 71 System Configuration and Control l TEXAS INSTRUMENTS www ti com 1 7 4 2 1 DMA Interrupt Flag Register DMAIFR 1C30h and DMA Interrupt Enable Register DMAIER 1C31h The DSP includes two registers for aggregating the four channel interrupts of the four
95. ications 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 TI 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 Information of third parties may be subject to additional restrictions 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
96. in Figure 1 1 Figure 1 1 Functional Block Diagram DSP System JTAG Interface CSSXT DSP CPU Input PLL Clock FFT Hardware Clock s Generator Accelerator Power 64 KB DARAM Management 256 KB SARAM Pin Multiplexing 128 KB ROM Q Switched Central Resource SCR Peripherals Interconnect Serial Interfaces Program Data Storage DMA S 2 NAND NOR MMC SD App Spec Display Connectivity System 10 Bit USB 2 0 e SAR Eed PHY HS RTC Se SEI LDOs ADC 9 DEVICE SPRUFX5A October 2010 Revised November 2010 System Control 13 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUMENTS Introduction www ti com 1 1 2 CPU Core The C55x CPU is responsible for performing the digital signal processing tasks required by the application In addition the CPU acts as the overall system controller responsible for handling many system functions such as system level initialization configuration user interface user command execution connectivity functions and overall system control Tightly coupled to the CPU are the following components e DSP internal memories Dual access RAM DARAM Single access RAM SARAM Read only memory ROM e FFT hardware accelerator e Ports and buses The CPU also manages controls all peripherals on the device Refer to the device specific data manual for the full list of peripherals Figure 1 1 shows the fun
97. ions to the CPU behavior SPRUFO1A TMS320C5515 14 05 04 VC05 VC04 Digital Signal Processor DSP Inter Integrated Circuit I2C Peripheral User s Guide This document describes the inter integrated circuit 12C peripheral in the TMS320C551 5 1 4 05 04 VC05 VC04 Digital Signal Processor DSP devices The 12C peripheral provides an interface between the device and other devices compliant with Phillips Semiconductors Inter IC bus I2C bus specification version 2 1 and connected by way of an I2C bus This document assumes the reader is familiar with the 12C bus specification SPRUFO2 TMS320C5515 14 05 04 VC05 VC04 Digital Signal Processor DSP Timer Watchdog Timer User s Guide This document provides an overview of the three 32 bit timers in the TMS320C5515 14 05 04 VC05 VC04 Digital Signal Processor DSP devices The 32 bit timers of the device are software programmable timers that can be configured as general purpose GP timers Timer 2 can be configured as a GP a Watchdog WD or both simultaneously SPRUFO3 TMS320C5515 14 05 04 VC05 VC04 Digital Signal Processor DSP Serial Peripheral Interface SPI User s Guide This document describes the serial peripheral interface SPI in the TMS320C551 5 1 4 05 04 VC05 VC04 Digital Signal Processor DSP devices The SPI is a high speed synchronous serial input output port that allows a serial bit stream of programmed length 1 to 32 bits to be shifted into and out of the device at a programm
98. its PLL can be placed in power down mode When the system clock generator is in the BYPASS MODE the clock generator is not used and the system clock SYSCLK is driven by either the CLKIN pin or the real time clock RTC For more information entering and exiting the bypass mode of the clock generator see Section 1 4 3 1 1 When the clock generator is placed in its bypass mode the PLL continues to generate a clock output You can save additional power by powering down the PLL Section 1 4 2 2 provides more information on powering down the PLL 1 5 3 4 USB Domain Clock Gating The USB peripheral has two clock domains The first is a high speed domain that has its clock supplied by a dedicated USB PLL The reference clock for the USB PLL is the 12 0 MHz USB oscillator The clock output from the PLL must support the serial data stream that in high speed mode is at a rate of 480 Mb s The second clock into the USB peripheral handles the data once it has been packetized and transported in parallel fashion This clock supports all of the USB registers CDMA FIFO etc and is clocked by SYSCLK In order to keep up with the serial data stream the USB requires SYSCLK to be at least 30 MHz for low speed full speed modes and at least 60 MHz for high speed mode By stopping both of these clocks it is possible to reduce the USB s active power consumption in the digital logic to zero NOTE Stopping clocks to a peripheral only affects active power c
99. l MLC NAND with 4 bit ECC NOTE The C5515 can support non mobile SDRAM under certain circumstances The C5515 always uses mobile SDRAM initialization but it is able to support SDRAM memories that ignore the BAO and BA1 pins for the load mode register command During the mobile SDRAM initialization the device issues the load mode register initialization command to two different addresses that differ in only the BAO and BA1 address bits These registers are the Extended Mode register and the Mode register The Extended mode register exists only in mSDRAM and not in non mSDRAM If a non mobile SDRAM memory ignores bits BAO and BA1 the second loaded register value overwrites the first leaving the desired value in the Mode register and the non mobile SDRAM will work with C5515 Two serial busses each configurable to support one Multimedia Card MMC Secure Digital SD SDIO controller one inter IC sound bus 12S interface with GPIO or a full GPIO interface One parallel bus configurable to support a 16 bit LCD bridge or a combination of an 8 bit LCD bridge a serial peripheral interface SPI an 12S a universal asynchronous receiver transmitter UART and GPIO One inter integrated circuit l2C multi master and slave interface with 7 bit and 10 bit addressing SPRUFX5A October 2010 Revised November 2010 System Control 15 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUM
100. l Clock Stop Request Acknowledge Register CLKSTOP 1C3Ah 15 S Reserved HO H 6 5 4 3 2 1 0 Reserved URTCLKSTPACK URTCLKSTPREQ USBCLKSTPACK USBCLKSTPREQ EMFCLKSTPACK EMFCLKSTPREQ R 0 R 1 R W 1 R 1 R W 1 R 1 R W 1 LEGEND R W Read Write R Read only n value after reset Table 1 26 Peripheral Clock Stop Request Acknowledge Register CLKSTOP Field Descriptions Bit Field Value Description 15 6 Reserved 0 Reserved URTCLKSTPACK UART clock stop acknowledge bit This bit is set to 1 when the UART has acknowledged a request for its clock to be stopped The UART clock should not be stopped until this bit is set to 1 The request to stop the peripheral clock has not been acknowledged The request to stop the peripheral clock has been acknowledged the clock can be stopped URTCLKSTPREQ UART peripheral clock stop request bit When disabling the UART internal peripheral clock you must set this bit to 1 to request permission to stop the clock After the UART acknowledges the request URTCLKSTPACK 1 you can stop the clock through the peripheral clock gating control register 1 PCGCR1 When enabling the UART internal clock enable the clock through PCGCR1 then set URTCKLSTPREQ to 0 Normal operating mode Request permission to stop the peripheral clock USBCLKSTPACK USB clock stop acknowledge bit This bit is set to 1 when the US
101. l generate the PLLIN frequency that meets the requirements listed in Table 1 10 When possible choose a high value for PLLIN to optimize PLL performance If the DSP is being clocked by the RTC oscillator output the reference divider must bypassed set RDBYPASS 1 PLLIN will be 32 768 kHz 3 Determine a multiplier value that generates the desired PLLOUT frequency given the equation multiplier round PLLOUT PLLIN 4 Using the multiplier figure out the values for M PLL multiplier M 4 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com System Clock Generator Table 1 11 shows programming examples for different PLL MODE frequencies Table 1 11 Examples of Selecting a PLL MODE Frequency When CLK_SEL L RDBYPASS OUTDIVEN M RDRATIO ODRATIO PLL Output Frequency 1 0 173h X X 32 768KHz x 173h 4 12 288 MHz 1 1 E4Ah X 2 32 768KHz x E4Ah 4 3 40 00 MHz 1 0 723h X X 32 768KHz x 723h 4 60 00 MHz 1 0 8EDh X X 32 768KHz x 8EDh 4 75 01 MHz 1 0 BE8h X X 32 768KHz x BE7h 4 100 01 MHz 1 0 E4Ah X X 32 768KHz x E4Ah 4 120 00 MHz 1 4 3 2 5 Lock Time As previously discussed you must place the clock generator in bypass mode before changing the PLL settings The time it takes the PLL to complete its phase locking sequence is referred to as the lock time The PLL has a lock
102. line or to run at a high enough clock frequency until the work is complete and then drastically cut the clocks that is to bypass mode or clock gate until additional work must be performed Leakage power is due to static current leakage and occurs regardless of the clock rate Leakage or standby power is unavoidable while power is applied and scales roughly with the operating junction temperatures Leakage power can only be avoided by removing power completely The DSP has several means of managing the power consumption as detailed in the following sections There is extensive use of automatic clock gating in the design as well as software controlled module clock gating to not only reduce the clock tree power but to also reduce module power by freezing its state while not operating Clock management enables you to slow the clocks down on the chip in order to reduce switching power Independent power domains allow you to shut down parts of the DSP to reduce static power consumption When not being used the internal memory of the DSP can also be placed in a low leakage power mode while preserving the memory contents The operating voltage and drive strength of the VO pins can also be reduced to decrease I O power consumption Table 1 19 summarizes all of the power management features included in the DSP Table 1 19 Power Management Features Power Management Features Description Clock Management PLL power down The system PLL can b
103. lock generator is bypassed and the frequency of SYSCLK is determined by CLKIN or the RTC oscillator output Once the PLL is bypassed the PLL can be powered down to save power e Inthe PLL MODE see Section 1 4 3 2 the input frequency can be both multiplied and divided to produce the desired SYSCLK frequency and the SYSCLK signal is phase locked to the input clock signal CLKREF The clock generator bypass mux controlled by SYSCLKSEL bit in CCR2 register is a glitchfree mux which means that clocks will be switched cleanly and not short cycle pulses when switching among the BYPASS MODE and PLL MODE For debug purposes the CLKOUT pin can be used to see different clocks within the clock generator For details see Section 1 4 2 3 SPRUFX5A October 2010 Revised November 2010 System Control 23 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUMENTS System Clock Generator www ti com Figure 1 4 Clock Generator CLKSEL R CLKIN CGCR4 OUTDIVEN IRTC Clock CGCR2 RDBYPASS SYSCLKSEL RTC XI Ed 1 4 2 Functional Description 1 4 2 1 The following sections describe the multiplier and dividers of the clock generator Multiplier and Dividers The clock generator has a one multiplier and a two programmable dividers one before the PLL input and one on the PLL output The PLL can be programmed to multiply the PLL input clock PLLIN using a x4 to
104. m System Clock Generator 14 4 3 Clock Generator Control Register 3 CGCR3 1C22h The clock generator control register 3 CGCR3 is shown in Figure 1 8 and described in Table 1 15 Figure 1 8 Clock Generator Control Register 3 CGCR3 1C22h 15 0 INIT R W 0806h LEGEND R W Read Write n value after reset Table 1 15 Clock Generator Control Register 3 CGCR3 Field Descriptions Bit Field Value Description 15 0 INIT 0x0806h Initialization bits for the DSP clock generator These bits are used for testing purposes and must be initialized with 0x806 during PLL configuration for proper operation of the PLL 14 4 4 Clock Generator Control Register 4 CGCR4 1C23h The clock generator control register 4 CGCR4 is shown in Figure 1 9 and described in Table 1 16 Figure 1 9 Clock Generator Control Register 4 CGCR4 1C23h 15 10 9 8 7 0 Reserved OUTDIVEN Reserved ODRATIO R 0 R W 0 HO R W 0 LEGEND R W Read Write R Read only n value after reset Table 1 16 Clock Generator Control Register 4 CGCR4 Field Descriptions Bit Field Value Description 15 10 Reserved 0 Reserved 9 OUTDIVEN Output divider enable bit This bit determines whether the output divider of the PLL is are enabled or bypassed 0 The output divider is bypassed 1 The output divider is enabled 8 Reserved 0 Reserved 7 0 ODRATIO O FFh Divider ratio bits for the output
105. m clock generator features a software programmable PLL multiplier and several dividers The system clock generator accepts an input reference clock from the CLKIN pin or the output clock of the 32 768 KHz real time clock RTC oscillator The selection of the input reference clock is based on the state of the CLK_SEL pin The CLK_SEL pin is required to be statically tied high or low and cannot change dynamically after reset The system clock generator can be used to modify the system reference clock signal according to software programmable multiplier and dividers The resulting clock output the DSP system clock is passed to the CPU peripherals and other modules inside the DSP Alternatively the system clock generator can be fully bypassed and the input reference clock can be passed directly to the DSP system clock The USB reference clock is generated using a dedicated on chip oscillator with a 12 MHz external crystal connected to the USB_MXI and USB MXO pins This crystal is not required if the USB peripheral is not being used The USB oscillator cannot be used to provide the system reference clock The RTC oscillator generates a clock when a 32 768 KHz crystal is connected to the RTC_XI and System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com Device Clocking RTC_XO pins RTC core CVpparc Must be powered all the time b
106. mains are un idled automatically Once the CPU is enabled it takes 3 CPU cycles to detect the interrupt in the IFR Note that HWA and MPORT have to be manually enabled after being disabled 1 5 3 2 Peripheral Domain Clock Gating 38 The peripheral clock gating allows software to disable clocks to the DSP peripherals in order to reduce the peripheral s active power consumption to zero Aside from the analog logic the DSP is designed in static CMOS thus when a peripheral clock stops the peripheral s state is preserved and no active current is consumed When the clock is restarted the peripheral resumes operating from the stopping point NOTE Stopping clocks to a peripheral only affects active power consumption it does not affect leakage power consumption If a peripheral s clock is stopped while being accessed the access may not occur completely and could potentially lock up the device To avoid this issue some peripherals have a clock stop request and acknowledge protocol that allows software to ask the peripheral when it is safe to stop the clocks This is described further in Section 1 5 3 2 2 For the peripherals that do not have the request acknowledge protocol the user must ensure that all of the transactions to the peripheral are finished prior to stopping the clocks The procedure to turn peripheral clocks on off is described in Section 1 5 3 2 3 Some peripherals provide additional power saving features by clock gating
107. nel s DMACHmTCR2 the CHOEVT bits in the DMAnCESR registers specify the synchronization event for activity in the DMA controller See Table 1 52 for a list of available synchronization event options Table 1 57 DMAn Channel Event Source Register 2 DMAnCESR2 Field Descriptions Bit Field Value Description 15 12 Reserved 0 Reserved 11 8 CH3EVT 0 Fh Channel 3 synchronization events When SYNCMODE 1 in a channel s DUACHmTCR2 the CH3EVT bits in the DMAnCESR registers specify the synchronization event for activity in the DMA controller See Table 1 52 for a list of available synchronization event options 7 4 Reserved 0 Reserved 3 0 CH2EVT DEN Channel 2 synchronization events When SYNCMODE 1 in a channel s DMACHMTCR the CH2EVT bits in the DMAnCESR registers specify the synchronization event for activity in the DMA controller See Table 1 52 for a list of available synchronization event options 1 7 5 Peripheral Reset All peripherals can be reset through software using the peripheral reset control register PRCR The peripheral software reset counter register PSRCR controls the duration in SYSCLK cycles that the reset signal is asserted low once activated by the bits in PRCR SPRUFX5A October 2010 Revised November 2010 System Control 73 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUMENTS System Configuration
108. nism for data transfer between USB devices SPRABB6 FFT Implementation on the TMS320VC5505 TMS320C5505 and TMS320C5515 DSPs This document describes FFT computation on the TMS320VC5505 and TMS320C5505 15 DSPs devices SPRUFX5A October 2010 Revised November 2010 Read This First 11 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 12 Read This First SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated j Chapter 1 TEXAS SPRUFX5A 0October 2010 Revised November 2010 INSTRUMENTS System Control 1 1 Introduction The TMS320C5515 digital signal processor DSP contains a high performance low power DSP to efficiently handle tasks required by portable audio wireless audio devices industrial controls software defined radio fingerprint biometrics and medical applications The C5515 DSP consists of the following primary components e AC55x CPU and associated memory e FFT hardware accelerator e Four DMA controllers and external memory interface e Power management module e A set of VO peripherals that includes DG 12C SPI UART Timers EMIF 10 bit SAR ADC LCD Controller USB 2 0 For more information on these components see the following documents e TMS320C55x 3 0 CPU Reference Guide SWPU073 e TMS320C55x DSP Peripherals Overview Reference Guide SPRU317 1 1 1 Block Diagram The C5515 DSP block diagram is shown
109. nterrupt XMT2 SINT14 0x70 21 282 transmit interrupt RCV2 SINT15 0x78 22 I2S2 receive interrupt XMT3 SINT16 0x80 4 12S3 transmit interrupt RCV3 SINT17 0x88 8 253 receive interrupt RTC SINT18 0x90 12 Wakeup or real time clock interrupt SPI SINT19 0x98 16 SPI interrupt USB SINT20 OXA0O 19 USB Interrupt GPIO SINT21 OxA8 20 GPIO aggregated interrupt EMIF SINT22 0xB0 23 EMIF error interrupt 12C SINT23 0xB8 24 12C interrupt BERR SINT24 0xCO 2 Bus error interrupt DLOG SINT25 0xC8 25 Data log interrupt RTOS SINT26 0xDO 26 Real time operating system interrupt SINT27 0xD8 14 Software interrupt 27 UI Absolute addresses of the interrupt vector locations are determined by the contents of the IVPD and IVPH registers Interrupt vectors for interrupts 0 15 and 24 31 are relative to IVPD Interrupt vectors for interrupts 16 23 are relative to IVPH The NMI signal is internally tied high not asserted However NMI interrupt vector can be used for SINT SPRUFX5A October 2010 Revised November 2010 System Control 53 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Interrupts Table 1 32 Interrupt Table continued l TEXAS INSTRUMENTS www ti com SOFTWARE RELATIVE NAME TRAP LOCATION PRIORITY FUNCTION EQUIVALENT HEX BYTES UI SINT28 OxEO 15 Software interrupt 28 SINT29 OxE8 16 Software interrupt 29 SINT30 OXFO 17 Software interrupt 30 SINT31 OxF8 18 Software inte
110. o 1 disables the pin s internal pull down Pin pull down is enabled Pin pull down is disabled 14 PD14PD Parallel port pin 14 pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down Pin pull down is enabled Pin pull down is disabled 13 PD13PD Parallel port pin 13 pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down Pin pull down is enabled Pin pull down is disabled 12 PD12PD Parallel port pin 12 pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down Pin pull down is enabled Pin pull down is disabled 11 PD11PD Parallel port pin 11 pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down Pin pull down is enabled Pin pull down is disabled SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback System Control Copyright 2010 Texas Instruments Incorporated System Configuration and Control A TEXAS INSTRUMENTS www ti com Table 1 51 Pull Down Inhibit Register 3 PDINHIBR3 Field Descriptions continued Bit Field Value Description 10 PD10PD Parallel port pin 10 pull down inhibit b Pin pull down is enabled Pin pull down is disabled it Setting this bit to 1 disables the pin s internal pull down 9 PD9PD Parallel port pin 9 pull down inhibit bit Pin pull down is enabled Pin pull down is disabled S
111. o single access memory will cause one access to stall until the next cycle An access is defined as either a read or write operation For the most efficient use of DSP processing power MIPS it is important to pay attention to the memory blocks that are being simultaneously accessed by the code and data operations The external memory space is divided into five spaces Each space has a chip select decode signal called CS that indicates an access to the selected space The external memory interface EMIF supports access to asynchronous memories such as SRAM Flash mobile SDRAM and SDRAM The DSP memory is accessible by different master modules within the DSP including the device CPU the four DMA controllers and the USB The DSP memory map as seen by these modules is illustrated in Figure 1 2 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com System Memory Figure 1 2 DSP Memory Map CPU BYTE DMA USB LCD A A ADDRESS BYTE ADDRESS MEMORY BLOCKS BLOCK SIZE 000000h 0001 0000h B MMR Reserved 0000C0h 0001 00C0h 64K Minus 192 Bytes 010000h 0009 0000h 256K Bytes 050000h 0100 0000h External CS0 Space NE 8M Minus 320K Bytes SDRAM mSDRAM 800000h 0200 0000h External CS2 Space 4M Bytes Asynchronous C00000h 0300 0000h External CS3 Space 2M Bytes Asynchronous E00000h 0400 0000h External
112. on of the DSP clock generator power management features interrupts and system control Read This First SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com Related Documentation From Texas Instruments SPRUGH5 TMS320C5505 DSP System User s Guide This document describes various aspects of the TMS320C5505 digital signal processor DSP including system memory device clocking options and operation of the DSP clock generator power management features interrupts and system control SPRUFX6 TMS320C5514 DSP System User s Guide This document describes various aspects of the TMS320C5514 digital signal processor DSP including system memory device clocking options and operation of the DSP clock generator power management features interrupts and system control SPRUGH6 TMS320C5504 DSP System User s Guide This document describes various aspects of the TMS320C5504 digital signal processor DSP including system memory device clocking options and operation of the DSP clock generator power management features interrupts and system control SPRUGH9 TMS320C5515 DSP Universal Serial Bus 2 0 USB Controller User s Guide This document describes the universal serial bus 2 0 USB in the TMS320C5515 Digital Signal Processor DSP devices The USB controller supports data throughput rates up to 480 Mbps It provides a mecha
113. onsumption it does not affect leakage power consumption USB leakage power consumption can be reduced to zero by not powering the USB SPRUFX5A October 2010 Revised November 2010 System Control 43 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUMENTS Power Management www ti com 1 5 3 4 1 Clock Configuration Process The clock configuration process for the USB clock domain consists of disabling the USB peripheral clock followed by disabling the USB on chip oscillator This procedure will completely shut off USB module which does not comply with USB suspend resume protocol To set the clock configuration of the USB clock domain to idle follow these steps 1 Set the SUSPENDM bit in FADDR register For more information about the SUSPENDM bit see the TMS320C5515 14 05 04 DSP Universal Serial Bus 2 0 USB Controller User s Guide SPRUGHQ 2 Set the USB clock stop request bit USBCLKSTREQ in the CLKSTOP register to request permission to shut off the USB peripheral clock 3 Wait until the USB acknowledges the clock stop request by polling the USB clock stop acknowledge bit USBCLKSTPACK in the CLKSTOP register 4 Disable the USB peripheral clock by setting USBCG 1 in the peripheral clock gating control register 2 PCGCR2 5 Disable the USB oscillator by setting USBOSCDIS 1 in the USB system control register USBSCR To enable the USB clock domain follow these steps
114. ot be powered by internal LDOs external regulation must be provided PLL Power Domain VoDA pu This domain powers the system clock generator PLL Nominal supply voltage is 1 3 V This domain can be powered from the on chip analog LDO output pin ANA LDOO Analog Power Domain Vopa_ana This domain powers the power management analog circuits and the 10 bit SAR Nominal supply voltage is 1 3 V This domain can be powered from the on chip analog LDO output pin ANA LDOO Note When externally powered this domain must be always powered for proper operation USB Analog Power Domain USB_Vppaips This domain powers the USB analog PHY Nominal supply voltage is 1 3 V This domain can be powered from on chip USB_LDO output pin USB LDOO USB Digital Power Domain USB Vooipa This domain powers the USB digital module Nominal supply voltage is 1 3 V This domain can be powered from on chip USB_LDO output pin USB LDOO USB Oscillator Power Domain USB_Vpposc This domain powers the USB oscillator Nominal supply voltage is 3 3 V This domain cannot be powered by internal LDOs external regulation must be provided USB Transceiver amp Analog Power Domain USB_Vppases This domain powers the USB transceiver Nominal supply voltage is 3 3 V This domain cannot be powered by internal LDOs external regulation must be provided USB PLL Power Domain USB_Voppt This domain powers the USB PL
115. pheral clock is active Peripheral clock is disabled LCDCG LCD controller clock gate control bit This bit is used to enable and disable the LCD controller peripheral clock Peripheral clock is active Peripheral clock is disabled SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback System Control 41 Copyright 2010 Texas Instruments Incorporated Power Management A TEXAS INSTRUMENTS www ti com 1 5 3 2 2 Peripheral Clock Stop Request Acknowledge Register CLKSTOP 1C3Ah You must execute a handshaking procedure before stopping the clock to the EMIF USB and UART This handshake procedure ensures that current bus transactions are completed before the clock is stopped The peripheral clock stop request acknowledge register CLKSTOP enables this handshaking mechanism To stop the clock to the EMIF USB or UART set the corresponding clock stop request bit in the CLKSTOP register then wait for the peripheral to set the corresponding clock stop acknowledge bit Once this bit is set you can idle the corresponding clock in the PCGCR1 and PCGCR2 To enable the clock to the EMIF USB or UART first enable the clock the peripheral through PCGCR1 or PCGCR2 then clear the corresponding clock stop request bit in the CLKSTOP register The peripheral clock stop request acknowledge register CLKSTOP is shown in Figure 1 16 and described in Table 1 26 Figure 1 16 Periphera
116. purpose input output pin 23 GP 23 pin functions 0 Pin function is EMIF address pin 17 EM Af17 1 Pin function is general purpose input output pin 23 GP 23 1 A16_MODE A16 Pin Mode Bit This bit controls the pin multiplexing of the EMIF address 16 EM_A 16 and general purpose input output pin 22 GP 22 pin functions 0 Pin function is EMIF address pin 16 EM Af16 1 Pin function is general purpose input output pin 22 GP 22 0 A15 MODE A15 Pin Mode Bit This bit controls the pin multiplexing of the EMIF address 15 EM Af15 and general purpose input output pin 21 GP 21 pin functions 0 Pin function is EMIF address pin 15 EM Af15 1 Pin function is general purpose input output pin 21 GP 21 1 7 3 2 LDO Control Register 7004h When the DSP_LDO is enabled by the DSP LDO EN pin D12 by default the DSP_LDOO voltage is set to 1 3 V The DSP_LDOO voltage can be programmed to be either 1 05 V or 1 3 V via the DSP LDO V bit bit 1 in the LDO Control Register LDOCNTL At reset the USB_LDO is turned off The USB_LDO can be enabled via the USBLDOEN bit bit 0 in the LDOCNTL register 1 7 3 3 LDO Control All three LDOs can be simultaneously disabled via software by writing to either the BG_PD bit or the LDO_PD bit in the RTCPMGT register see Figure 1 36 When the LDOs are disabled via this mechanism the only way to re enable them is by asserting the WAKEUP signal pin which must
117. pyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUMENTS Power Management www ti com 1 5 4 Static Power Management 1 5 4 1 RTC Power Management Register RTCPMGT 1930h This register enables static power management with power down and wake up register bits as described in the device specific data sheet and more generally below The RTC power management register RTCPMGT is shown in Figure 1 18 and described in Table 1 28 Figure 1 18 RTC Power Management Register RTCPMGT 1930h 15 5 4 3 2 1 0 Reserved WU_DOUT WU_DIR BG_PD LDO_PD RTCCLKOUTEN HO RW 0 RW 0 RW 0 RW 0 RW 0 LEGEND R W Read Write R Read only n value after reset Table 1 28 RTC Power Management Register RTCPMGT Field Descriptions Bit Field Value Description 15 5 Reserved 0 Reserved 4 WU_DOUT Wakeup output active low Open drain 0 WAKEUP pin driven low WAKEUP pin driver is in high impedance 3 WU_DIR Wakeup pin direction control 0 WAKEUP pin is configured as input WAKEUP pin is configured as output NOTE The WAKEUP pin when configured as an input is active high When it is configured as an output it is open drain and thus it should have an external pull up and it is active low 2 BG_PD Powerdown control bit for the bandgap on chip LDOs and the analog POR power on reset comparator This bit shuts down the on chip LDOs ANA_LDO DSP_LDO and USB_LDO the Analog POR and Bandg
118. real time clock RTC See Section 1 4 3 1 for more information on the bypass mode of the clock generator 1 4 2 4 2 Clock Generator After Reset After reset the on chip bootloader programs the system clock generator based on the input clock selected via the CLK_SEL pin If CLK_SEL 0 the bootloader programs the system clock generator and sets the system clock to 12 288 MHz multiply the 32 768 kHz RTC oscillator clock by 375 If CLK_SEL 1 the bootloader bypasses the system clock generator altogether and the system clock is driven by the CLKIN pin In this case the CLKIN frequency is expected to be 11 2896 MHz 12 0 MHz or 12 288 MHz While the bootloader tries to boot from the USB the clock generator is programmed to output approximately 36 MHz 1 4 3 Configuration 1 4 3 1 BYPASS MODE When the system clock generator is in the BYPASS MODE the clock generator is not used and the system clock SYSCLK is driven by either the CLKIN pin or the real time clock RTC NOTE In bypass mode the PLL is not automatically powered down and will still consume power For maximum power savings the PLL should be placed in its power down mode See Section 1 4 2 2 for more details 1 4 3 1 1 Entering and Exiting the BYPASS MODE To enter the bypass mode write a 0 to the SYSCLKSEL bit in the clock configuration register 2 CCR2 In bypass mode the frequency of the system clock SYSCLK is determined by the CLK SEL pin If CLK_SEL 0 SYS
119. rnal oscillator bias resistor disabled Disabling the internal resistor is primarily for production test purposes But it can also be used when an external oscillator bias resistor is connected between the USB_MXI and USB_MXO pins but this is not a recommended configuration 2 USBOSCDIS USB oscillator disable bit 0 USB internal oscillator enabled 1 USB internal oscillator disabled Causes the USB_MXO pin to be tristated and the oscillator s clock into the core is forced low 1 0 BYTEMODE USB byte mode select bits 0 Word accesses by the CPU are allowed th Byte accesses by the CPU are allowed high byte is selected 2h Byte accesses by the CPU are allowed low byte is selected 3h Reserved 1 5 3 5 RTC Domain Clock Gating Dynamic RTC domain clock gating is not supported Note that the RTC oscillator and by extension the RTC domain can be permanently disabled by not connecting a crystal and tying off the RTC oscillator pins However in this configuration the RTC must still be powered and the RTC registers starting at VO address 1900h will not be accessible This includes the RTC Power Management Register RTCPMGT that provides powerdown control to the on chip LDO and control of the WAKEUP and RTC_CLKOUT pins See the device specific data manual for more details on permanently disabling the RTC oscillator SPRUFX5A October 2010 Revised November 2010 System Control 45 Submit Documentation Feedback Co
120. rrupt 31 1 6 1 IER and IER Registers The interrupt flag register 0 IFRO and interrupt enable register 0 IERO bit layouts are shown in Figure 1 25 and described in Table 1 33 Figure 1 25 IFRO and IERO Bit Locations 15 14 13 12 11 10 9 8 RCV2 XMT2 SAR LCD PROG3 Reserved PROG2 DMA R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 7 6 5 4 3 2 1 0 PROG1 UART PROGO TINT INT1 INTO Reserved R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 R 0 LEGEND R W Read Write R Read only n value after reset Table 1 33 IFRO and IERO Bit Descriptions Bit Field Value Description 15 RCV2 1 0 1282 receive interrupt flag mask bit 14 XMT2 1 0 12S2 transmit interrupt flag mask bit 13 SAR 1 0 10 BIT SAR A D conversion or pin interrupt flag mask bit 12 LCD 1 0 LCD interrupt bit 11 PROG3 1 0 Programmable receive interrupt 3 flag mask bit This bit is used as either the I2S1 receive interrupt flag mask bit or the MMC SD1 SDIO interrupt flag mask bit The function of this bit is selected depending on the setting of the SP1MODE bit is in external bus selection register If SP1MODE 00b this bit supports MMC SD1 SDIO interrupts If SP1MODE 01 this bit supports 12S1 interrupts 10 Reserved 0 Reserved This bit should always be written with 0 9 PROG2 1 0 Programmable transmit interrupt 2 flag mask bit This bit is used as either the I2S1 transmit interrupt
121. rs see Figure 1 25 Since the interrupt flag is shared software must have a means of determining which DMA instance caused the interrupt Therefore the DMA interrupt aggregation flag registers DMAIFR are secondary flag registers that serve this purpose Each of the four channels of a DMA controller has its own interrupt which you can enable or disable a channel interrupt though the DMAnCHm bits of the DMA Interrupt Enable Register DMAIER see Section 1 7 4 2 1 The interrupts from the four DMA controllers are combined into a single CPU interrupt You can determine which DMA channel generated the interrupt by reading the bits of the DMA interrupt flag register DMAIFR For more information see the TMS320VC5505 VC5504 DSP Direct Memory Access DMA Controller User s Guide SPRUFOS9 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com System Configuration and Control 1 7 System Configuration and Control 1 7 1 Overview The DSP includes system level registers for controlling configuring and reading status of the device These registers are accessible by the CPU and support the following features e Device Identification e Device Configuration Pin multiplexing control Output drive strength configuration Internal pull up and pull down enable disable On chip LDO control e DMA Controller Configuration e P
122. rs while the regulator transitions to the higher voltage For external PMICs the step response varies greatly and it is up to the system designer to ensure that the ringing is maintained within the DSP s core supply high voltage operational tolerance see the Recommended Operating Conditions section in device specific data manual 1 6 Interrupts Vector relative locations and priorities for all internal and external interrupts are shown in Table 1 32 Table 1 32 Interrupt Table SOFTWARE RELATIVE NAME TRAP LOCATION PRIORITY FUNCTION EQUIVALENT HEX BYTES RESET SINTO 0x0 0 Reset hardware and software NMI SINT1 0x8 1 Non maskable interrupt INTO SINT2 0x10 3 External user interrupt 0 INT1 SINT3 0x18 5 External user interrupt 1 TINT SINT4 0x20 6 Timer aggregated interrupt PROGO SINT5 0x28 7 Programmable transmit interrupt 0 250 transmit or MMC SDO interrupt UART SINT6 0x30 9 UART interrupt PROG1 SINT7 0x38 10 Programmable receive interrupt 1 I2S0 receive or MMC SDO SDIO interrupt DMA SINT8 0x40 11 DMA aggregated interrupt PROG2 SINT9 0x48 13 Programmable transmit interrupt 1 2S1 transmit or MMC SD1 interrupt SINT10 0x50 14 Software interrupt PROG3 SINT11 0x58 15 Programmable receive interrupt 3 I12S1 Receive or MMC SD1 SDIO interrupt LCD SINT12 0x60 17 LCD interrupt SAR SINT13 0x68 18 10 bit SAR A D conversion or pin i
123. rupt This bit keeps the Bandgap reference turned on to allow a faster wake up time with the expense power consumption of the Bandgap reference 0 On chip LDOs and Analog POR are enabled On chip LDOs and Analog POR are disabled shutdown 0 RTCCLKOUTEN Clock out output enable 0 Clock output disabled Clock output enabled 46 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com Power Management 1 5 4 2 RTC Interrupt Flag Register RTCINTFL 1920h The RTC interrupt flag register RTCINTFL is shown in Figure 1 19 and described in Table 1 29 Figure 1 19 RTC Interrupt Flag Register RTCINTFL 1920h 15 14 8 ALARMFL Reserved HO HO 7 6 5 4 3 2 1 0 Reserved EXTFL DAYFL HOURFL MINFL SECFL MSFL R 0 HO HO HO HO HO HO LEGEND R W Read Write R Read only n value after reset Table 1 29 RTC Interrupt Flag Register RTCINTFL Field Descriptions Bit Field Value Description 15 ALARMFL Indicates that an alarm interrupt has been generated 0 Alarm interrupt did not occur Alarm interrupt occurred write 1 to clear 14 6 Reserved 0 Reserved 5 EXTFL External event WAKEUP pin assertion has occurred 0 External event interrupt has not occurred External event interrupt occurred write 1 to clear 4 DAYFL Day ev
124. s Field Descriptions Bit Field Value Description 15 5 Reserved 0 Reserved Read only writes have no effect 4 WU_DOUT Wakeup output active low open drain 0 WAKEUP pin driven low 1 WAKEUP pin is in high impedance Hi Z 3 WU_DIR Wakeup pin direction control 0 WAKEUP pin configured as a input 1 WAKEUP pin configured as a output Note When the WAKEUP pin is configured as an input it is active high When the WAKEUP pin is configured as an output is an open drain that is active low and should be externally pulled up via a 10 KO resistor to DVpprtc WU_DIR must be configured as an input to allow the WAKEUP pin to wake the device up from idle modes 2 BG_PD Bandgap on chip LDOs and the analog POR power down bit This bit shuts down the on chip LDOs ANA_LDO DSP_LDO and USB_LDO the Analog POR and Bandgap reference BG PD and LDO PD are only intended to be used when the internal LDOs supply power to the chip If the internal LDOs are bypassed and not used then the BG_PD and LDO_PD power down mechanisms should not be used since POR gets powered down and the POWERGOOD signal is not generated properly After this bit is asserted the on chip LDOs Analog POR and the Bandgap reference can be re enabled by the WAKEUP pin high or the RTC alarm interrupt The Bandgap circuit will take about 100 msec to charge the external 0 1 uF capacitor via the internal 326 kQ resistor 0 On chip LDOs Analog POR and Bandgap reference
125. s a access with low byte selected accessed 16 bit access to external memory for every CPU word access only the low byte of the EMIF data bus is used ASIZE 00b 8 bit data bus EMIF generates a single 8 bit access to external memory for every CPU word access The USB system control register USBSCR is described in Section 1 5 3 4 2 Table 1 61 Effect of USBSCR BYTEMODE Bits on USB Access BYTEMODE Setting CPU Access to USB Register BYTEMODE 00b 16 bit word access Entire register contents are accessed BYTEMODE 01b 8 bit access with high byte selected Only the upper byte of the register is accessed BYTEMODE 10b 8 bit access with low byte selected Only the lower byte of the register is accessed 1 7 6 1 EMIF System Control Register ESCR 1C33h The EMIF system control register ESCR is shown in Figure 1 48 and described in Table 1 62 Figure 1 48 EMIF System Conirol Register ESCR 1C33h 15 2 1 0 Reserved BYTEMODE HO R W 0 LEGEND R W Read Write R Read only n value after reset Table 1 62 EMIF System Control Register ESCR Field Descriptions Bit Field Value Description 15 2 Reserved 0 Reserved 1 0 BYTEMODE EMIF byte mode select bits These bits control CPU data and program accesses to external memory as well as CPU accesses the EMIF registers 0 Word accesses by the CPU are allowed th Byte accesses by the CPU are allowed high byte is selected 2h Byte acce
126. s enabled Pin pull up is disabled 12 RESETPU Reset pin pull up inhibit bit Setting this bit to 1 disables the pin s internal pull up Pin pull up is enabled Pin pull up is disabled 11 EMU01PU EMU1 and EMUO pin pull up inhibit bit Setting this bit to 1 disables the pin s internal pull up Pin pull up is enabled Pin pull up is disabled 10 TDIPU TDI pin pull up inhibit bit Setting this bit to 1 disables the pin s internal pull up Pin pull up is enabled Pin pull up is disabled TMSPU TMS pin pull up inhibit bit Setting this bit to 1 disables the pin s internal pull up Pin pull up is enabled Pin pull up is disabled TCKPU TCK pin pull up inhibit bit Setting this bit to 1 disables the pin s internal pull up Pin pull up is enabled Pin pull up is disabled 7 6 Reserved Reserved 68 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated l TEXAS INSTRUMENTS www ti com System Configuration and Control Table 1 50 Pull Down Inhibit Register 2 PDINHIBR2 Field Descriptions continued Bit Field Value Description A20PD EMIF A 20 pin pull down inhibit bit Setting this bit to 1 disables the pin s internal pull down Pin pull down is enabled Pin pull down is disabled A19PD EMIF A 19 pin pull down inhibit bit Setting this bit to
127. sses by the CPU are allowed low byte is selected 3h Reserved 76 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com System Configuration and Control 1 7 7 EMIF Clock Divider Register ECDR 1C26h The EMIF clock divider register ECDR controls the input clock frequency to the EMIF module When EDIV 1 default the EMIF operates at the same clock rate as the system clock SYSCLK When EDIV 0 the EMIF operates at half the clock rate of the system clock This register affects both asynchronous memory mode timing as well as synchronous mobile SDRAM SDRAM mode But half rate mode is normally only needed to meet synchronous memory timing For more information regarding when half rate mode is required see the mSDRAM timing sections of the device specific data sheet The EMIF clock divider register ECDR is shown in Figure 1 49 and described in Table 1 63 Figure 1 49 EMIF Clock Divider Register ECDR 1C26h 15 1 0 Reserved EDIV R 0 R W 1 LEGEND R W Read Write R Read only n value after reset Table 1 63 EMIF Clock Divider Register ECDR Field Descriptions Bit Field Value Description 15 1 Reserved 0 Reserved 0 EDIV EMIF clock divider select bits The EMIF module can internally divide its input peripheral clock When this bit is set to 0
128. struments Incorporated
129. system clock source Therefore software should always maintain responsibility for bypassing the PLL prior to and whenever it is powered down The SYSCLKDIS bit in PCGCR1 clock gating control register 1 is the master clock gater Asserting this bit causes the main system clock SYSCLK to stop and therefore the CPU and all peripherals no longer receive clocks The WAKEUP pin INTO amp INT1 pin or RTC interrupt can be used to re enable the clock from this condition e The ICR bit in CPUI clock gating control register gates clocks to the CPU and uses the CPU s idle instruction to initiate the clock off mode Any non masked interrupt can be used to re enable the CPU clocks System Clock Generator Overview The system clock generator Figure 1 4 features a software programmable PLL multiplier and several dividers The clock generator accepts an input clock from the CLKIN pin or the output clock of the real time clock RTC oscillator The clock generator offers flexibility and convenience by way of software configurable multiplier and divider to modify the clock rate internally The resulting clock output SYSCLK is passed to the CPU peripherals and other modules inside the DSP A set of registers are provided for controlling and monitoring the activity of the clock generator You can write to the SYSCLKSEL bit in CCR2 register to toggle between the two main modes of operation e Inthe BYPASS MODE see Section 1 4 3 1 the entire c
130. t Field Value Description 15 10 Reserved 0 Reserved 9 HWAI FFT hardware accelerator idle control bit 0 Hardware accelerator remains active after execution of an IDLE instruction Hardware accelerator is disabled after execution of an IDLE instruction 8 IPORTI Instruction port idle control bit The IPORT is used for all external memory instruction accesses 0 IPORT remains active after execution of an IDLE instruction IPORT is disabled after execution of an IDLE instruction 7 MPORTI Memory port idle control bit The memory port is used for all DMA LCD DMA and USB CDMA transactions into on chip memory 0 MPORT remains active after execution of an IDLE instruction MPORT is disabled after execution of an IDLE instruction 6 XPORTI VO port idle control bit The XPORT is used for all CPU VO memory transactions 0 XPORT remains active after execution of an IDLE instruction XPORT is disabled after execution of an IDLE instruction 5 DPORTI Data port idle control bit The data port is used for all CPU external memory data accesses 0 DPORT remains active after execution of an IDLE instruction 1 DPORT is disabled after execution of an IDLE instruction 4 1 IDLECFG 0111b Idle configuration bits You must always set bit 1 2 and 3 to 1 and bit 4 to 0 before executing the idle instruction 0 CPUI CPU idle control bit 0 CPU remains active after execution of an IDLE instruction CPU is disabled after exec
131. t is used to enable and disable the clock to the registers that control the analog domain of the device i e registers in the 7000h 70FFh I O space address range NOTE When SARCG 0 the clocks to the analog domain registers are enabled regardless of the ANAREGCG setting Clock is active Clock is disabled DMA3CG DMA controller 3 clock gate control bit This bit is used to enable and disable the DMA controller 3 peripheral clock Peripheral clock is active Peripheral clock is disabled DMA2CG DMA controller 2 clock gate control bit This bit is used to enable and disable the DMA controller 2 peripheral clock Peripheral clock is active Peripheral clock is disabled DMA1CG DMA controller 1 clock gate control bit This bit is used to enable and disable the DMA controller 1 peripheral clock Peripheral clock is active Peripheral clock is disabled USBCG USB clock gate control bit This bit is used to enable and disable the USB controller peripheral clock NOTE You must request permission before stopping the USB clock through the peripheral clock stop request acknowledge register CLKSTOP This register does not stop the USB PLL Peripheral clock is active Peripheral clock is disabled SARCG SAR clock gate control bit This bit is used to enable and disable the SAR peripheral clock NOTE When SARCG 0 the clock to the analog domain registers is enabled regardless of the ANAREGGG setting Peri
132. tant for managing power and for ensuring clocks are enabled for domains that are needed By disabling the clocks and thus the switching current in portions of the chip that are not used lower dynamic power consumption can be achieved and prolonging battery life Figure 1 3 shows the clock tree structure with the clock gating represented by the AND gates Each AND gate shows the controlling register that allows the downstream clock signal to be enabled disabled Once disabled most clock domains can be re enabled when the associated clock domain logic is needed via software running on the CPU But some domains actually stop the clocks to the CPU and therefore software running on the CPU cannot be responsible for re enabling those clock domains Other mechanism must exist for restarting those clocks and the specific cases are listed below e The System Clock Generator PLL can be powered down by writing a 1 to PLL_PWRDN bit in the clock generator control register CGCR1 This stops the PLL from oscillating and shuts down its analog circuits It is important to bypass the System Clock Generator by writing 0 to SYSCLKSEL bit in CCR2 clock confguration register 2 prior to powering it down else the CPU will loose its clock and not be able to recover without hardware reset NOTE Failsafe logic exists to prevent selecting the PLL clock if it has been powered down but this logic does not protect against powering down the PLL while it is selected as the
133. tector circuit To reliably detect the external interrupts the interrupt signal must have at least 2 SYSCLK high followed by at least 2 SYSCLK low To define the minimum low pulse width in nanoseconds scale you should take into account that the on chip PLL of the device is software programmable and that your application may be dynamically changing the frequency of PLL You should use the slowest frequency that will be used by your application to calculate the minimum interrupt pulse duration in nanoseconds When the system master clock is disabled SYSCLKDIS 1 the external interrupt pins INTO and INTT will be asynchronously latched and held low while the clocks are re enabled Once the clocks are re enabled the DSP will latch the interrupt in the IFR SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated System Control 55 Id TEXAS INSTRUMENTS Interrupts www ti com 1 6 3 Timer Interrupt Aggregation Flag Register TIAFR 1C14h 1 6 4 1 6 5 56 The CPU has only one interrupt flag that is shared among the three timers The CPU s interrupt flag is bit 4 TINT of the IFRO amp IERO registers see Figure 1 25 Since the interrupt flag is shared software must have a means of determining which timer instance caused the interrupt Therefore the timer interrupt aggregation flag register TIAFR is a secondary flag register that serves this
134. ted by programming the CHnEVT field in the DMAn channel event source registers DMAnCESR1 and DMAnCESRz2 where nis an integer 0 3 representing each of the 4 DMAs The synchronization events available to each DMA controller are shown in Table 1 52 Table 1 52 Channel Synchronization Events for DMA Controllers DMAO DMA1 DMA2 DMA3 Synchronization Synchronization Synchronization Synchronization Event CHmEVT Options Event Event Event 0000b Reserved Reserved Reserved Reserved 0001b 12S0 transmit event 1282 transmit event 12C transmit event 12S1 transit event 0010b I2S0 receive event 282 receive event 12C receive event 12S1 receive event 0011b Reserved Reserved SAR A D event Reserved 0100b Reserved Reserved 12S3 transmit event Reserved MMC SDO transmit 0101b event UART transmit event 12S3 receive event Reserved 0110b MMC SDO receive event UART receive event Reserved Reserved 0111b MMC SD1 transmit event Reserved Reserved Reserved 1000b MMC SD1 receive event Reserved Reserved Reserved 1001b Reserved Reserved Reserved Reserved 1010v Reserved Reserved Reserved Reserved 1011b Reserved Reserved Reserved Reserved 1100b Timer 0 event Timer 0 event Timer 0 event Timer 0 event 1101b Timer 1 event Timer 1 event Timer 1 event Timer 1 event 1110b Timer 2 event Timer 2 event Timer 2 event Timer 2 event 1111b Reserved Reserved Reserved Reserved 1 7 4 2 DMA Configuration Registers T
135. time of 4 ms Software is responsible for ensuring the PLL remains in BYPASS_MODE for at least 4 ms before switching to PLL_MODE 1 4 3 2 6 Software Steps To Modify Multiplier and Divider Ratios You can follow the steps below to program the PLL of the DSP clock generator The recommendation is to stop all peripheral operation before changing the PLL frequency with the exception of the device CPU and USB The device CPU must be operational to program the PLL controller Software is responsible for ensuring the PLL remains in BYPASS_MODE for at least 4 ms before switching to PLL_MODE 1 Make sure the clock generator is in BYPASS MODE by setting SYSCLKSEL 0 Set CLR_CNTL 0 in CGCR1 Program RDRATIO M and RDBYPASS in CGCR2 according to your required settings Program ODRATIO and OUTDIVEN in CGCR4 according to your required settings Write 0806h to the INIT field of CGCR3 Set PLL_PWRDN 0 CLR_CNTL 1 Wait 4 ms for the PLL to complete its phase locking sequence Place the clock generator in its PLL MODE by setting SYSCLKSEL 1 mo Ambo 1 4 4 Clock Generator Registers Table 1 12 lists the registers associated with the clock generator of the DSP The clock generator registers can be accessed by the CPU at the 16 bit addresses specified in Table 1 12 Note that the CPU accesses all peripheral registers through its I O space All other register addresses not listed in Table 1 12 should be considered as reserved locations and the regist
136. tting the peripheral group Reading zero means that peripheral group is out of reset Reading one means the peripheral group is being held in reset and should not be accessed PG1_RST Write 0 Write 1 Read 0 Read 1 Peripheral group 1 software reset bit Drives the EMIF and all three timer reset signal Writing zero has no effect Writing one starts resetting the peripheral group Reading zero means that peripheral group is out of reset Reading one means the peripheral group is being held in reset and should not be accessed IC RST Write 0 Write 1 Read 0 Read 1 12C software reset bit Drives the 12C reset signal Writing zero has no effect Writing one starts resetting the peripheral group Reading zero means that peripheral group is out of reset Reading one means the peripheral group is being held in reset and should not be accessed 1 7 6 EMIF and USB Byte Access The C55x CPU architecture cannot generate 8 bit accesses to its data or I O space But in some cases specific to the USB and EMIF peripherals it is necessary to access a single byte of data For example when writing byte commands to NAND Flash devices For these situations the upper or lower byte of a CPU word access can be masked using the BYTEMODE bits of the EMIF system control register ESCR and the USB system control register USBSCR The BYTEMODE bits of ESCR only affect accesses to the external memory and the EMIF registers The BYTEMO
137. urn off the system clock Setting the WAKEUP pin high enables the system clock Since the WAKEUP pin is used to re enable the system clock the WAKEUP pin must be low to disable the system clock NOTE Disabling the system clock disables the clock to most parts of the DSP including the CPU 0 System clock is active System clock is disabled 14 I2S2CG 12S2 clock gate control bit This bit is used to enable and disable the 12S2 peripheral clock 0 Peripheral clock is active Peripheral clock is disabled 13 TMR2CG Timer 2 clock gate control bit This bit is used to enable and disable the Timer 2 peripheral clock 0 Peripheral clock is active Peripheral clock is disabled 12 TMR1CG Timer 1 clock gate control bit This bit is used to enable and disable the Timer 1 peripheral clock 0 Peripheral clock is active Peripheral clock is disabled 11 EMIFCG EMIF clock gate control bit This bit is used to enable and disable the EMIF peripheral clock NOTE You must request permission before stopping the EMIF clock through the peripheral clock stop request acknowledge register CLKSTOP 0 Peripheral clock is active Peripheral clock is disabled 10 TMROCG Timer 0 clock gate control bit This bit is used to enable and disable the Timer 0 peripheral clock 0 Peripheral clock is active Peripheral clock is disabled 9 12S1CG 281 clock gate control bit This bit is used to enable and disable the 12S1 peripheral clock 0 Peripher
138. ust be placed in BYPASS MODE when any PLL dividers or multipliers are changed Then it must remain in BYPASS MODE for at least 4 mS before switching to PLL MODE Table 1 5 PLL Output Frequency Configuration RDBYPASS OUTDIVEN SYSCLK Frequency 0 0 M 4 CLKREF RDRATIO 4 0 1 M 4 1 CLKREF x x RDRATIO 4 ODRATIO 1 1 0 CLKREF x M 4 1 1 1 CLKREF x M 4 x _____ ODRATIO 1 1 4 2 2 Powering Down and Powering Up the System PLL 24 To save power you can put the PLL in its power down mode You can power down the PLL by setting the PLL_PWRDN 1 in the clock generator control register CGCR1 However before powering down the PLL you must first place the clock generator in bypass mode System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com System Clock Generator When the PLL is powered up PLL_PWRDN 0 the PLL will start its phase locking sequence You must keep the clock generator in BYPASS MODE for at least 4 mS while the phase locking sequence is ongoing See Section 1 4 3 2 for more details on the PLL_MODE of the clock generator 1 4 2 3 CLKOUT Pin For debug purposes the DSP includes a CLKOUT pin which can be used to tap different clocks within the clock generator The SRC bits of the CLKOUT control source register CCSSR can be used to specify the sour
139. ut the 32 768 KHz crystal can be disabled if CLKIN is used as the clock source for the DSP However when the RTC oscillator is disabled the RTC peripheral will not operate and the RTC registers I O address range 1900h 197Fh will not be accessible This includes the RTC power management register RTCPMGT which controls the RTCLKOUT and WAKEUP pins To disable the RTC oscillator connect the RTC_XI pin to CVbpare and the RTC_XO pin to ground The USB oscillator is powered down at hardware reset It must be enabled by the NNN register and must be allowed to settle for an amount of time specified by USB Oscillator Startup Time parameter in the device specific manual before using the USB peripheral Figure 1 3 shows the overall DSP clock structure For detailed specifications on clock frequency voltage requirements and oscillator crystal requirements see the device specific data manual SPRUFX5A October 2010 Revised November 2010 System Control 21 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated Id TEXAS INSTRUMENTS Device Clocking www ti com Figure 1 3 DSP Clocking Diagram CLKSEL P CLKIN ST3_55 CLKOFF SYSCLK CLKOUT S 2 AD va FFT Hardware System Clock Generator PCGCR1 SYSCLKDIS Accelerator RTC Clock CCR2 ICR MPORTI RTC_CLKOUT P SYSCLKSEL MPORT Clock RTC_XI 32 768 ICR XPORTI KHz PCGCR1 DMA0CG EN RTC_XO h ICRIFORTI PCGCR2 DMA1CG D I
140. ution of an IDLE instruction 36 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com Power Management Figure 1 13 Idle Status Register ISTR 0002h 15 10 9 8 Reserved HWAIS IPORTIS HO HO HO 7 6 5 4 1 0 MPORTIS XPORTIS DPORTIS Reserved CPUIS HO HO HO HO HO LEGEND R Read only n value after reset Table 1 22 Idle Status Register ISTR Field Descriptions Bit Field Value Description 15 10 Reserved 0 Reserved 9 HWAIS FFT hardware accelerator idle status bit 0 Hardware accelerator is active Hardware accelerator is disabled 8 IPORTIS Instruction port idle status bit The IPORT is used for all external memory instruction accesses 0 IPORT is active IPORT is disabled 7 MPORTIS Memory port idle status bit The memory port is used for all DMA LCD DMA and USB CDMA transactions into on chip memory 0 MPORT is active MPORT is disabled 6 XPORTIS VO port idle status bit The XPORT is used for all CPU VO memory transactions 0 XPORT is active XPORT is disabled 5 DPORTIS Data port idle status bit The data port is used for all CPU external memory data accesses 0 DPORT is active DPORT is disabled 4 1 Reserved 0 Reserved 0 CPUIS CPU idle status bit 0 CPU is active CPU is disabled 1 5 3 1 2 Vali
141. vised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti com Interrupts The interrupt flag register IFR1 and interrupt enable register 1 IER1 bit layouts are shown in Figure 1 26 and described in Table 1 34 Figure 1 26 IFR1 and IER1 Bit Locations 15 11 10 9 8 Reserved RTOS DLOG BERR R 0 R W 0 R W 0 R W 0 7 6 5 4 3 2 1 0 12C EMIF GPIO USB SPI RTC RCV3 XMT3 R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 R W 0 LEGEND R W Read Write R Read only n value after reset Table 1 34 IFR1 and IER1 Bit Descriptions Bit Field Value Description 15 11 Reserved 0 Reserved This bit should always be written with 0 10 RTOS 1 0 Real Time operating system interrupt flag mask bit 9 DLOG 1 0 Data log interrupt flag mask bit 8 BERR 1 0 Bus error interrupt flag mask bit 7 12C 1 0 12C interrupt flag mask bit 6 EMIF 1 0 EMIF error interrupt flag mask bit 5 GPIO 1 0 GPIO aggregated interrupt flag mask bit 4 USB 1 0 USB interrupt flag mask bit 3 SPI 1 0 SPI interrupt flag mask bit 2 RTC 1 0 Wakeup or real time clock interrupt flag mask bit 1 RCV3 1 0 12S3 receive interrupt flag mask bit 0 XMT3 1 0 283 transmit interrupt flag mask bit 1 6 2 Interrupt Timing The interrupt signals on the external interrupts pins INTO and INT1 are detected with a synchronous negative edge de
142. w t TEXAS INSTRUMENTS i com System Configuration and Control Table 1 59 Peripheral Reset Control Register PRCR Field Descriptions continued Bit Field Value Description PG3_RST Write 0 Write 1 Read 0 Read 1 Peripheral group 3 software reset bit Drives the MMC SDO MMC SD1 I2S0 and I2S1 reset signal Writing zero has no effect Writing one starts resetting the peripheral group Reading zero means that peripheral group is out of reset Reading one means the peripheral group is being held in reset and should not be accessed DMA_RST Write 0 Write 1 Read 0 Read 1 DMA software reset bit Drives the reset signal to all four controllers Writing zero has no effect Writing one starts resetting the peripheral group Reading zero means that peripheral group is out of reset Reading one means the peripheral group is being held in reset and should not be accessed USB_RST Write 0 Write 1 Read 0 Read 1 USB software reset bit Drives the USB reset signal Writing zero has no effect Writing one starts resetting the peripheral group Reading zero means that peripheral group is out of reset Reading one means the peripheral group is being held in reset and should not be accessed SAR_RST Write 0 Write 1 Read 0 Read 1 SAR software reset bit and reset for most analog related register in the O space address range of 0x7000 0x70FF Writing zero has no effect Writing one starts rese
143. wer down the PLL when it is not being used 0 PLL is powered up 1 PLL is powered down 11 0 M 0 FFFh PLL multiplier value bits These bits define the PLL multiplier value Multiplier value M 4 1 4 4 2 Clock Generator Control Register 2 CGCR2 1C21h The clock generator control register 2 CGCR2 is shown in Figure 1 7 and described in Table 1 14 Figure 1 7 Clock Generator Control Register 2 CGCR2 1C21h 15 14 12 11 0 RDBYPASS Reserved RDRATIO R W 0 HO R W 0 LEGEND R W Read Write R Read only n value after reset Table 1 14 Clock Generator Control Register 2 CGCR2 Field Descriptions Bit Field Value Description 15 RDBYPASS Reference divider bypass control When this bit is set to 1 the PLL reference divider is bypassed i e Fortin Forkrer When this bit is set to 0 the reference clock to the PLL is divided by the reference divider i e Forun Fouen RDRATIO 4 The RDRATIO bits specify the divider value 0 Use the reference divider 1 Bypass the reference divider 14 12 Reserved 0 Reserved 11 0 RDRATIO 0 FFFh Divider ratio bits for the reference divider Divider value RDRATIO 4 For example setting RDRATIO 0 means divide the input clock rate by 4 30 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated 1 TEXAS INSTRUMENTS www ti co
144. x4099 multiplier value The reference clock divider can be programmed to divide the clock generator input clock from a 4 to 4099 divider ratio and may be bypassed The Reference Divider and RDBYPASS mux must be programmed such that the PLLIN frequency range is 32 786 KHz to 170 KHz At the output of the PLL the output divider can be used to divide the PLL output clock PLLOUT from a 1 to a 128 divider ratio and may also be bypassed The PLL output PLLOUT frequency must be programmed within the range of at least 60 MHz and no more than the maximum operating frequency defined by the datasheet Fsysclk_max parameter See Table 1 10 for allowed values of PLLIN PLLOUT and SYSCLK Keep in mind that programming the output divider with an odd divisor value other than 1 will result in a non 50 duty cycle SYSCLK This is not a problem for any of the on chip logic but the non 50 duty cycle will be visible on chip pins such as EM SDCLK in full rate mode and CLKOUT See Table 1 10 for allowed values of PLLIN PLLOUT and SYSCLK The multiplier and divider ratios are controlled through the PLL control registers The M bits define the multiplier rate The RDRATIO and ODRATIO bits define the divide ratio of the reference divider and programmable output divider respectively The RDBYPASS and OUTDIVEN bits are used to enable or bypass the dividers Table 1 5 lists the formulas for the output frequency based on the setting of these bits The clock generator m
145. y n value after reset Table 1 42 Die ID Register 6 DIEIDR6 Field Descriptions Bit Field Value Description 15 0 Reserved 0 Reserved 1 7 2 8 Die ID Register 7 DIEIDR7 1C47h The die ID register 7 DIEIDR7 is shown in Figure 1 34 and described in Table 1 43 Figure 1 34 Die ID Register 7 DIEIDR7 1C47h 15 14 1 0 Reserved CHECKSUM Reserved R R R LEGEND R Read only n value after reset Table 1 43 Die ID Register 7 DIEIDR7 Field Descriptions Bit Field Value Description 15 Reserved 0 Reserved 14 1 CHECKSUM 0 3FFFh Checksum bits 0 Reserved 0 Reserved 60 System Control SPRUFX5A October 2010 Revised November 2010 Submit Documentation Feedback Copyright 2010 Texas Instruments Incorporated www ti com TEXAS INSTRUMENTS System Configuration and Control 1 7 3 Device Configuration 1 7 3 1 The DSP includes registers for configuring pin multiplexing the pin output slew rate the internal pull ups and pull downs DSP_LDO voltage selection and USB_LDO enable External Bus Selection Register EBSR The external bus selection register EBSR determines the mapping of the LCD controller 252 253 UART SPI and GPIO signals to 21 signals of the external parallel port pins It also determines the mapping of the 12S or MMC SD ports to serial port 1 pins and serial port 2 pins The EBSR register is located at port address 0x1C00 Once the bit fields of this register are changed the routing of the signals tak

Download Pdf Manuals

image

Related Search

Related Contents

パソコンを用いた林野火災の拡大予測に関する研究[PDF 4.2MB]    MCF5307 ColdFire® Integrated Microprocessor User's Manual  Napoleon Grills GVF36N User's Manual  LED COLOR TUBE BEDIENUNGSANLEITUNG  User Manual - Chinavasion  Extrem I / Extrem II Artero technics    

Copyright © All rights reserved.
Failed to retrieve file