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.
經(jīng)典著作《設(shè)計(jì)模式》中將策略模式定義為:定義一系列的算法,把它們一個(gè)個(gè)的封裝起來(lái),并且使它們可以相互轉(zhuǎn)換。這個(gè)定義還是比較抽象,下面我將通過(guò)一個(gè)例子來(lái)具體的講解策略模式。感覺(jué)這樣更容易幫助新手理解模式,這也是《Head First Design Patterns》中講解模式的方法。先來(lái)描述一下用到的例子的背景資料:
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.
軟件開(kāi)發(fā)工程是有趣的、多產(chǎn)的,甚至是大膽的。同時(shí),它也能源源不斷地帶來(lái)商業(yè)價(jià)值,并保持在我們的掌控之下。 極限編程(XP)的構(gòu)思和發(fā)展是針對(duì)小型團(tuán)隊(duì)進(jìn)行軟件開(kāi)發(fā)時(shí),在面對(duì)不確知的、變化的需求時(shí)所產(chǎn)生的特定需要的。這一新的、輕量級(jí)的方法學(xué)對(duì)許多傳統(tǒng)思維提出了挑戰(zhàn),這其中包括一個(gè)一直以來(lái)的假設(shè),即在軟件開(kāi)發(fā)過(guò)程中,對(duì)軟件進(jìn)行一個(gè)小小的改動(dòng)就必然會(huì)使其開(kāi)發(fā)成本大大增加。極限編程認(rèn)可軟件開(kāi)發(fā)工程應(yīng)該節(jié)約成本,而且一旦實(shí)現(xiàn)了某種節(jié)約就應(yīng)該加以開(kāi)發(fā)利用。 你可以喜歡XP,也可以恨它,但是本書(shū)將會(huì)使你對(duì)如何開(kāi)發(fā)軟件有一個(gè)全新的認(rèn)識(shí)。KentBeck擁有并經(jīng)營(yíng)著First Class軟件公司,在這里他把主要精力放在兩個(gè)最大的興趣上——模式和極限編程。他一直在研究軟件開(kāi)發(fā)的先驅(qū)模式、CRC卡、HotDraw畫(huà)圖編輯器框架、xUnit單元測(cè)試框架以及測(cè)試為先的編程。他發(fā)表了五十多篇關(guān)于編程的文章,并出版了《The Smalltalk Best Practice Patterns》(Prentice-Hall出版社)和《Kent Beck’s Guide to Better Smalltalk:A Sorted Collection》(劍橋大學(xué)出版社)兩本著作,同時(shí)他還是超級(jí)暢銷書(shū)《重構(gòu)——改善既有代碼的設(shè)計(jì)》(中英文版皆由中國(guó)電力出版社出版)的特約撰稿人。