找回密码
 注册
搜索
查看: 553|回复: 1

[综合资料] CMP Books - C Programming for Embedded Systems

[复制链接]
发表于 2006-8-14 11:56:00 | 显示全部楼层 |阅读模式
Acknowledgments v
Chapter 1
Introduction
1
Role of This Book 1
Benefits of C in Embedded Systems 2
Outline of the Book 3
Typographical Conventions 3
Updates and Supplementary Information 4
Chapter 2
Problem Specification
5
Product Requirements 5
Hardware Engineering 6
Software Planning 8
Software Architecture 9
Pseudocode 10
Flowchart 11
State Diagram 12
Resource Management 13
Testing Regime 14
Page viii
Chapter 3
Microcontrollers In-depth
17
The Central Processing Unit (CPU) 19
Instruction Sets 20
The Stack 20
Memory Addressing and Types 21
RAM and ROM 22
ROM and Programming 22
von Neumann Versus Harvard Architectures 23
Timers 24
Watchdog Timer 25
Examples 26 26
Interrupt Circuitry 26
Vectored and Nonvectored Arbitration 27
Saving State during Interrupts 29
Executing Interrupt Handlers 30
Multiple Interrupts 31
RESET 31
I/O Ports 32
Analog-to-Digital Conversion 33
Serial Peripheral Buses 34
Development Tools for a Microcontroller 36
Chapter 4
Design Process
37
Product Functionality 37
Hardware Design 38
Software Design 39
Software Architecture 39
Flowchart 40
Resource Management 42
Scratch Pad 42
Interrupt Planning 42
Testing Choices 44
Design for Debugging 44
Code Inspection 44
Execution within a Simulator Environment 45
Execution within an Emulator Environment 45
Target System in a Test Harness 45
Page ix
Chapter 5
C for Embedded Systems
47
In-line Assembly Language 47
Device Knowledge 49
#pragma has 49
#pragma port 51
Endianness 52
Mechanical Knowledge 52
Libraries 54
First Look at an Embedded C Program 54
Chapter 6
Data Types and Variables
57
Identifier Declaration 59
Special Data Types and Data Access 59
Function Data Types 60
The Character Data Type 60
Integer Data Types 61
Byte Craft's Sized Integers 61
Bit Data Types 61
Real Numbers 63
Complex Data Types 63
Pointers 63
Arrays 64
Enumerated Types 65
Structures 66
Unions 68
typedef 69
Data Type Modifiers 70
Value Constancy Modifiers: const and volatile 70
Allowable Values Modifiers: signed and unsigned 71
Size Modifiers: short and long 72
Pointer Size Modifiers: near and far 72
Storage Class Modifiers 73
External Linkage 73
Internal Linkage 73
No Linkage 74
The extern Modifier 74
The static Modifier 75
The register Modifier 76
The auto Modifier 77
Page x
Chapter 7
C Statements, Structures, and Operations
79
Combining Statements in a Block 79
Functions 80
Function Parameters 81
Control Structures 81
The main() Function 81
Initialization Functions 82
Control Statements 82
Decision Structures 82
Looping Structures 84
Control Expression 84
break and continue 84
Operators and Expressions 86
Standard Math Operators 86
Bit Logical Operators 87
Bit Shift Operators 89
Chapter 8
Libraries
91
Creating Libraries 92
Writing the Library 95
Libraries and Linking 97
Chapter 9
Optimizing and Testing Embedded C Programs
99
TEAMFLY
Team-Fly®
Optimization 100
Instruction Set-Dependent Optimizations 101
Hand Optimization 102
Manual Variable Tweaking 103
Debugging Embedded C 104
Register Type Modifier 104
Local Memory 104
Pointers 105
Mixed C and Assembly 105
Calling Conventions 105
Access to C Variables from Assembly 105
Exercising Hardware 106
Debugging by Inspection 106
Page xi
Dummy Loads 108
Working with Emulators and Simulators 108
Simulators 108
Emulators 109
The Packaging of Embedded Software 110
Chapter 10
Sample Project
111
Hardware Exercise Programs 111
"Hello World!" 112
Keypad Test 113
LCD Test 114
Talking to Ports 115
A/D Converter Theory 116
Appendix A
Table of Contents
119
Appendix A
Embedded C Libraries
123
Appendix B
ASCII Chart
163
Appendix C
Glossary
165
Index 171
What's on the CD-ROM? 180
【文件名】:06814@52RD_CMP Books - C Programming for Embedded Systems.pdf
【格 式】:pdf
【大 小】:673K
【简 介】:
【目 录】:
[UseMoney=1]

[/UseMoney]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2006-8-28 10:26:00 | 显示全部楼层
this book is very good, simple and in english, thanks
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-11-27 14:40 , Processed in 0.048272 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表