This example program shows how to configure and use the A/D Converter of the following microcontroller:
STMicroelectronics ST10F166
After configuring the A/D, the program reads the A/D result and outputs the converted value using the serial port.
To run this program...
Build the project (Project Menu, Build Target)
Start the debugger (Debug Menu, Start/Stop Debug Session)
View the Serial Window (View Menu, Serial Window #1)
View the A/D converter peripheral (Peripheral Menu, A/D Converter)
Run the program (Debug Menu, Go)
A debug script (debug.ini) creates buttons that set different analog values in A/D channels. As the program runs, you will see the A/D input and output change.
Other buttons create signals that generate sine wave or sawtooth PATTERNS as analog inputs. µ Vision3 users may enable the built-in Logic Analyzer to view, measure and compare these input signals graphically.
經典著作《設計模式》中將策略模式定義為:定義一系列的算法,把它們一個個的封裝起來,并且使它們可以相互轉換。這個定義還是比較抽象,下面我將通過一個例子來具體的講解策略模式。感覺這樣更容易幫助新手理解模式,這也是《Head First Design PATTERNS》中講解模式的方法。先來描述一下用到的例子的背景資料:
The Hopfield model is a distributed model of an associative memory. Neurons are pixels and can take the values of -1 (off) or +1 (on). The network has stored a certain number of pixel PATTERNS. During a retrieval phase, the network is started with some initial configuration and the network dynamics evolves towards the stored pattern which is closest to the initial configuration.
Wiley Professional Ajax By Nicholas C. Zakas, Jeremy McPeak & Joe Fawcett
Professional Ajax provides a developer-level tutorial of Ajax techniques, PATTERNS, and use
cases.
Programming C#, the top selling book on Microsoft s high-performance C# programming language, is now in its fourth edition. Aimed at experienced programmers and web developers, this comprehensive guide focuses on the features and programming PATTERNS that are new to C#, and fundamental to the programming of web services and web applications on Microsoft s .NET platform.
This book is intended for "hands-on" developers or advanced students interested in understanding the strategies and tactics of concurrent network programming using C++ and object-oriented design. We describe the key design dimensions, PATTERNS, and principles needed to develop flexible and efficient concurrent networked applications quickly and easily. Our numerous C++ code examples reinforce the design concepts and illustrate concretely how to use the core classes in ACE right away. We also take you "behind the scenes" to understand how and why the IPC and concurrency mechanisms in the ACE toolkit are designed the way they are. This material will help to enhance your design skills and to apply C++ and PATTERNS more effectively in your own object-oriented networked applications.
Metalog is a modern replacement for syslogd and klogd. The logged messages
can be dispatched according to their facility, urgency, program name and/or
Perl-compatible regular expressions. Log files can be automatically rotated
when they exceed a certain size or age. External shell scripts (e.g., mail)
can be launched when specific PATTERNS are found.
Metalog is easier to configure than syslogd and syslog-ng, accepts unlimited
number of rules and has (switchable) memory bufferization for maximal
performance.
軟件開發工程是有趣的、多產的,甚至是大膽的。同時,它也能源源不斷地帶來商業價值,并保持在我們的掌控之下。 極限編程(XP)的構思和發展是針對小型團隊進行軟件開發時,在面對不確知的、變化的需求時所產生的特定需要的。這一新的、輕量級的方法學對許多傳統思維提出了挑戰,這其中包括一個一直以來的假設,即在軟件開發過程中,對軟件進行一個小小的改動就必然會使其開發成本大大增加。極限編程認可軟件開發工程應該節約成本,而且一旦實現了某種節約就應該加以開發利用。 你可以喜歡XP,也可以恨它,但是本書將會使你對如何開發軟件有一個全新的認識。KentBeck擁有并經營著First Class軟件公司,在這里他把主要精力放在兩個最大的興趣上——模式和極限編程。他一直在研究軟件開發的先驅模式、CRC卡、HotDraw畫圖編輯器框架、xUnit單元測試框架以及測試為先的編程。他發表了五十多篇關于編程的文章,并出版了《The Smalltalk Best Practice PATTERNS》(Prentice-Hall出版社)和《Kent Beck’s Guide to Better Smalltalk:A Sorted Collection》(劍橋大學出版社)兩本著作,同時他還是超級暢銷書《重構——改善既有代碼的設計》(中英文版皆由中國電力出版社出版)的特約撰稿人。