手把手教你学dspccs3 3setupdocspdfspru594b_第1页
手把手教你学dspccs3 3setupdocspdfspru594b_第2页
手把手教你学dspccs3 3setupdocspdfspru594b_第3页
手把手教你学dspccs3 3setupdocspdfspru594b_第4页
手把手教你学dspccs3 3setupdocspdfspru594b_第5页
已阅读5页,还剩35页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、TMS320VC5503/5507/5509 DSPReal-Time Clock (RTC) Reference GuideLiterature Number: SPRU594B June 2004IMPORTANT NOTICETexastruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications,enhancements, improvements, and other changes to its products and services at

2、any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placingorders and should verify that such information is current and complete. All products are sold subject to TIs terms and conditions of sale supplied at the time of o

3、rder acknowledgment.TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TIs standard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated b

4、y government requirements, testing of all parameters of each product is not necessarily performed.TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and applications using TI components. To minimize the risks associated with c

5、ustomer 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

6、 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 licen

7、se from a third party under the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI.Reproduction of information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompan

8、ied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for such altered documentation.Resale of TI products or services with statements different from or be

9、yond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements.Following are URLs where you can obtain informa

10、tion on other Texas solutions:truments products and applicationProductsAmplifiersData Converters DSPInterface LogicPower MgmtMicrocontrollersApplications Audio Automotive Broadband Digital Control MilitaryOptical Networking Security TelephonyVideo & ImagingW dataconverter.ti.c

11、om /audio /automotive /broadband /digitalcontrol /military /opticalnetwork /security /telephony //wirelessMailing Addres

12、s:TexastrumentsPost Office Box 655303 Dallas, Texas 75265Copyright 2004, Texastruments IncorporatedPrefaceRead ThisFirstAbout This ManualThis manual describes the features and operation of thereal-time clock (RTC) that is on the TMS320VC5503, TMS320VC5507, TMS320VC5509, andTMS320VC5509A digital sign

13、al processors (DSPs) in the TMS320C55x(C55x) DSP generation.Notational ConventionsThis document uses the following conventions:In most cases, hexadecimal numbers are shown with the suffix h. For example, the following number is a hexadecimal 40 (decimal 64):40hSimilarly, binary numbers often are sho

14、wn with the suffix b. For example, the following number is the decimal number 4 shown in binary form:0100bIf a signal or pin is active low, it has an overbar. For example, the RESETsignal is active low.Bits and signals are sometimes referenced with the following notations:NotationDescriptionExampleR

15、egister(nm)Bits n through m of RegisterR(30) represents bits 3 through 0 of register R.Busn:mSignals n through m of BusA21:1 represents signals 21 through 1 of bus A.The following terms are used to name portions of data:TermDescriptionExampleLSBLeast significant bitIn R(70), bit 0 is the LSB.MSBMost

16、 significant bitIn R(70), bit 7 is the MSB.SPRU594BReal-Time Clock (RTC)3Related Documentation From TexastrumentsRelated Documentation From TexastrumentsThe following documents describe the C55x devices and related support tools. Copies of these documents are available on the Internet at .

17、 Tip: Enter the literature number in the search box provided at .TMS320VC5503 Fixed-Point Digital Signal Processor Data Manual (litera- ture number SPRS245) describes the features of the TMS320VC5503 fixed-point DSP and provides signal descriptions, pinouts, electrical specifications, and

18、timings for the device.TMS320VC5507 Fixed-Point Digital Signal Processor Data Manual (litera- ture number SPRS244) describes the features of the TMS320VC5507 fixed-point DSP and provides signal descriptions, pinouts, electrical specifications, and timings for the device.TMS320VC5509 Fixed-Point Digi

19、tal Signal Processor Data Manual (literature number SPRS163) describes the features of the TMS320VC5509 fixed-point DSP and provides signal descriptions, pinouts, electrical specifications, and timings for the device.TMS320VC5509A Fixed-Point Digital Signal Processor Data Manual (literature number S

20、PRS205) describes the features of the TMS320VC5509A fixed-point DSP and provides signal descriptions, pinouts, electrical specifications, and timings for the device.TMS320C55x Technical Overview (literature number SPRU393) introduces the TMS320C55x DSPs, the latest generation of fixed-point DSPs in

21、the TMS320C5000 DSP platform. Like the previous generations, this proc- essor is optimized for high performance and low-power operation. This book describes the CPU architecture, low-power enhancements, and embedded emulation features.TMS320C55x DSP CPU Reference Guide (literature number SPRU371) de

22、scribes the architecture, registers, and operation of the CPU for the TMS320C55x DSPs.TMS320C55x DSP Peripherals Overview Reference Guide (literature number SPRU317) introduces the peripherals, interfaces, and related hardware that are available on TMS320C55x DSPs.TMS320C55x DSP Algebraictruction Se

23、t Reference Guide (literaturenumber SPRU375) describes the TMS320C55x DSP algebraictruc-tions individually. Also includes a summary of thetruction set, a list ofthetruction opcodes, and a cross-reference to the mnemonictruc-tion set.4Real-Time Clock (RTC)SPRU594BRelated Documentation From Texastrume

24、nts / TrademarksTMS320C55x DSP Mnemonictruction Set Reference Guide (literaturenumber SPRU374) describes the TMS320C55x DSP mnemonictruc-tions individually. Also includes a summary of thetruction set, a list ofthetruction opcodes, and a cross-reference to the algebraictruc-tion set.TMS320C55x Optimi

25、zing C/C+ Compiler Users Guide (literature number SPRU281) describes the TMS320C55x C/C+ Compiler. This C/C+ compiler accepts ISO standard C and C+ source code and produces assembly language source code for TMS320C55x devices.TMS320C55x Assembly Language Tools Users Guide (literature number SPRU280)

26、 describes the assembly language tools (assembler, linker, and other tools used to develop assembly language code), assembler directives, macros, common object file format, and symbolic debugging directives for TMS320C55x devices.TMS320C55x DSP Programmers Guide (literature number SPRU376) describes

27、 ways to optimize C and assembly code for the TMS320C55xDSPs and explahow to write code that uses special features andtructions of the DSPs.TrademarksTMS320, TMS320C5000, TMS320C55x, and C55x aretrademarksofTexastruments.Trademarks are the property of their respective owners.SPRU594BReal-Time Clock

28、(RTC)5ContentsContents1Introduction to the Real-Time Clock (RTC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1113131.11.2Real-Time Clock Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Real-Time Clock

29、Reference Clock Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2Using the Real-Time Clock Time and Calendar Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . .141415151616Time/Calendar Data Format . . . . . . . . . . . . . . . . . . . . . .

30、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-Hour and 24-Hour Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Reading and Writing the Time/Calendar Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

31、.22.3.3How to Set the Time/Calendar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .How to Read the Time/Calendar Using the SET Bit . . . . . . . . . . . . . . . . . . . . . . .How to Read the Time/Calendar Without Using the SET Bit . . . . . . . . . . . . . . . .3Us

32、ing the Real-Time Clock Time and Calendar Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .181819191919203.7Time/Calendar Alarm Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Day Alarm . . . . . . . . . . . .

33、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Hours Alarm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Minutes Alarm . . . . . . . . . . . . . . . . . . . .

34、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Seconds Alarm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Reading and Writing the Time/Calendar Alarm Registers . . . . . . . . . . . .

35、. . . . . . . . . . . . . .Examples of Time/Calendar Alarms Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4Real-Time Clock Interrupt Requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .212122244.4Interrupt

36、 Enable and Flag Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Periodic Interrupt Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Alarm Interrupt Request . . . . . . . . . . . . . .

37、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Update-Ended Interrupt Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5Real-Time Clock Update Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

38、. . . . . . . . . . . . . . . . . . .256Power, Emulation, and Reset Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2626262Real-Time Clock Response to Low Power Modes (Idle Configurations) . . . . . . . . . . . . .Emulation Modes of the Real-Time

39、 Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Real-Time Clock After a DSP Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .SPRU594BReal-Time Clock (RTC)7Contents7Real-Time Clock Registers . . . . . . . . . . . . . . .

40、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .272728282929303232333334343537.107.11Seconds Register (RTCSEC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Seconds Alarm Register (RTCSE

41、CA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Minutes Register (RTCMIN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Minutes Alarm Register (RTCMINA) . . . . . . . . . . . . . . . . . . . . . . . . . . .

42、 . . . . . . . . . . . . . . . . .Hours Register (RTCHOUR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Hours Alarm Register (RTCHOURA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Day of the Week and Day A

43、larm Register (RTCDAYW) . . . . . . . . . . . . . . . . . . . . . . . . . . .Day of the Month (Date) Register (RTCDAYM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Month Register (RTCMONTH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

44、 . . . .Year Register (RTCYEAR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Interrupt Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Periodic I

45、nterrupt Selection Register (RTCPINTR) . . . . . . . . . . . . . . . . . . . . . . . .Interrupt Enable Register (RTCINTEN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Interrupt Flag Register (RTCINTFL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Re

46、vision History. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .388Real-Time Clock (RTC)SPRU594BFiguresFigures1234567891011121314Real-Time Clock Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . .

47、. . . . . . . . . . . . . . . . . . . . . . .Seconds Register (RTCSEC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Seconds Alarm Register (RTCSECA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Minu

48、tes Register (RTCMIN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Minutes Alarm Register (RTCMINA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Hours Register (RTCHOUR) . . . . . . . . . . . .

49、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Hours Alarm Register (RTCHOURA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Day of the Week and Day Alarm Register (RTCDAYW) . . . . . . . . . . . . . . . . . . . . . . . . .

50、 . . . .Day of the Month (Date) Register (RTCDAYM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Month Register (RTCMONTH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Year Register (RTCYEAR) . . . . . . . . . . . . .

51、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Periodic Interrupt Selection Register (RTCPINTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Interrupt Enable Register (RTCINTEN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

52、 . . . . . . . . . . .1227282829293032323333343537Interrupt Flag Register (RTCINTFL). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .SPRU594BReal-Time Clock (RTC)9TablesTables12345678910111213141516171819Real-Time Clock Signal Descriptions . . . . . . . . .

53、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Time/Calendar Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Time/Calendar Alarm Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

54、. . . . . . . . . . . . . . . . . .Real-Time Clock Alarm Example Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .RTC Periodic Interrupt Rates Based on RATE Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Real-Time Clock Registers . . .

55、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Seconds Register (RTCSEC) Field Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Seconds Alarm Register (RTCSECA) Field Values . . . . . . . . . . . . . . . . .

56、 . . . . . . . . . . . . . . . .Minutes Register (RTCMIN) Field Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Minutes Alarm Register (RTCMINA) Field Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Hours Register (RTCHOUR) Field

57、Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Hours Alarm Register (RTCHOURA) Field Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Day of the Week and Day Alarm Register (RTCDAYW) Field Values . . . . . . . . . . . . . . . . . .Day of the Month (Date) Register (RTCDAYM) Field Values . . . . . . . .

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论