- 1、本文档共24页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
《《TMS320x28xxPeripherals inc++》.pdf
Application Report
SPRAA85D– November 2005– Revised January 2013
Programming TMS320x28xx and 28xxx Peripherals in
C/C++
Lori Heustess AEC C2000
ABSTRACT
This application report explores a hardware abstraction layer implementation to make C/C++ coding easier
on C28x devices. This method is compared to traditional #define macros and topics of code efficiency and
special case registers are also addressed.
Contents
1 Introduction 1
2 Traditional #define Approach 3
3 Bit Field and Register-File Structure Approach 5
4 Bit Field and Register-File Structure Advantages 11
5 Code Size and Performance Using Bit Fields 12
6 Read-Modify-Write Considerations When Using Bit Fields 16
7 A Special Case: eCAN Control Registers 21
8 References 23
List of Figures
1 SCI SCICCR Register 9
2 SCI SCICTL1 Register 9
3 Code Composer Studio v5.1 Autocomplete Feature 12
4 Code Composer Studio v5.1 Expression Window 12
5 Peripheral Clock Control 0 Register (PCLKCR0) 13
List of Tables
1 SCI-A, SCI-B Configuration and Control Registers 3
2 SCI-A and SCI-B Common Register File 5
3 CPU-Pipeline Activity
您可能关注的文档
- 《《Predictive Current Control of a Voltage Source Inverter》.pdf
- 《《Principles of distributed innovation》.pdf
- 《《Prismark Discovery - iPhone_5 10_12 mvc》.pdf
- 《《Private Equity Investment in China》.pdf
- 《《Program in alternative investment》.pdf
- 《《Proposed Transatlantic Trade and Investment》.pdf
- 《《Proven-Paths-to-Innovation-Success》.pdf
- 《《PSD网页切图制作HTML教程》.doc
- 《《PSPC涂层检查员资格认证规则》.pdf
- 《《PV inverter seminar》.ppt
文档评论(0)