A Hardware Interfacing And Control Protocol: Using RobotBASIC And The Propeller Chip
暫譯: 硬體介面與控制協定:使用 RobotBASIC 與 Propeller 晶片
John Blankenship, Samuel Mishal
- 出版商: W. W. Norton
- 出版日期: 2011-02-15
- 售價: $1,010
- 貴賓價: 9.5 折 $960
- 語言: 英文
- 頁數: 338
- 裝訂: Paperback
- ISBN: 1438272847
- ISBN-13: 9781438272849
-
相關分類:
機器人製作 Robots
海外代購書籍(需單獨結帳)
相關主題
商品描述
The PC used to allow control of electronic hardware by interfacing through its I/O ports and operating system that allowed deterministic real-time control. The PC grew progressively more complex and powerful at doing GUI, multitasking, 3D graphics, virtual memory management, and much more. But it also became extremely convoluted to program while also prohibiting any access to low-level I/O systems. In the meantime, microcontrollers were becoming more powerful, easier to program and cheaper. Naturally, engineers and hobbyists are opting to use them for their projects instead of the PC. However, most microcontrollerss lack the data storage and processing power as well as the user interfacing facilities of the PC and many find themselves wishing to combine the two. This book aims to show techniques and strategies that can be implemented with any microcontroller and any PC programming language to create a protocol for interfacing and combining the two where the shortcomings of each are overcome by the capabilities of the other. We illustrate the principles with Parallax’s multi-cored Propeller – a single chip with eight 32-bit processors running in parallel and sharing a common RAM. With its powerful programming language (Spin) it facilitates implementing multitasking and parallel processing, which are at the core of the book’s outlined techniques. RobotBASIC is used as the PC programming language (interpreter/compiler) for its powerful readily usable tools that enable a programmer of any expertise to create GUI programs and to effect hardware communications that would need a high level of programming proficiency in other languages. To illustrate the strategies with concrete examples we create a few interesting projects using quite a variety of hardware (motors and sensors) that are typical of most devices you are likely to require in an electronics project (e.g. Robots).
商品描述(中文翻譯)
個人電腦(PC)最初是透過其 I/O 埠和作業系統來控制電子硬體,並允許確定性的即時控制。隨著時間的推移,PC 在圖形使用者介面(GUI)、多任務處理、3D 圖形、虛擬記憶體管理等方面變得越來越複雜和強大。然而,這也使得編程變得極其繁瑣,同時禁止對低階 I/O 系統的任何訪問。與此同時,微控制器變得越來越強大、易於編程且成本更低。自然地,工程師和愛好者選擇在他們的項目中使用微控制器,而不是 PC。然而,大多數微控制器缺乏 PC 的數據存儲和處理能力,以及用戶介面功能,許多人希望將兩者結合起來。本書旨在展示可以與任何微控制器和任何 PC 編程語言實現的技術和策略,以創建一種協議來介面和結合兩者,克服各自的不足之處。 我們用 Parallax 的多核心 Propeller 來說明這些原則——這是一個單晶片,擁有八個 32 位元的處理器並行運行,共享一個公共的 RAM。憑藉其強大的編程語言(Spin),它促進了多任務處理和並行處理的實現,這是本書所概述技術的核心。RobotBASIC 被用作 PC 編程語言(解譯器/編譯器),因為它擁有強大且易於使用的工具,使任何專業水平的程序員都能創建 GUI 程式並進行硬體通信,而這在其他語言中需要較高的編程能力。為了用具體的例子來說明這些策略,我們創建了一些有趣的項目,使用了各種典型的硬體(馬達和感測器),這些都是您在電子項目中可能需要的設備(例如:機器人)。