Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 321 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
321
Dung lượng
2,28 MB
Nội dung
[...]... of an 8051 microcontroller in use In this example, the microcontroller is intended to flash an LED connected to Pin 6 In addition to this LED, only a simple ‘reset’ circuit is required (the capacitor and resistor connected to Pin 9), plus an external oscillator (in this case, a 3-pin ceramic resonator) We will consider some software that could be used to control such an application in Chapter 3 The... use an 8051 processor as the basis of your embedded system, the next key decision that needs to be made is the choice of programming language In order to identify a suitable language for embedded systems, we might begin by making the following observations: G Computers (such as microcontroller, microprocessor or DSP chips) only accept instructions in ‘machine code’ (‘object code’) Machine code is, by... for embedded systems G The process of creating executable code for an embedded processor on a desktop PC G The process of testing the embedded code In the next chapter, we will look more closely at the features of the 8051 microcontroller 8322 Chapter 1 p1-16 21/2/02 9:52 am Page 16 1 8322 Chapter 2 p17-34 21/2/02 chapter 9:54 am Page 17 2 Introducing the 8051 microcontroller family 2.1 Introduction... practical embedded systems The remainder of this preface attempts to answer some questions which prospective readers may have about the contents I What is an embedded system? As far as this book is concerned: An embedded system is an application that contains at least one programmable computer (typically in the form of a microcontroller, a microprocessor or digital signal processor chip) and which is used... automotive sector Recent economic, legislative and technological developments in this sector mean that an increasing number of road vehicles contain embedded systems Linking these systems together in many recent vehicles is a low-cost, two-wire Controller Area Network (CAN) computer bus The CAN bus eliminates the expensive (and heavy) multi-wire looms, shaving around US $600 or more from production costs:... source of confusion to new developers For example, the 8031, 8751, 8052, 8032, C5 0 5C, C5 1 5C, C5 09, C8 68, 8 0C5 17, 8 3C4 52, 8 0C3 90, AD C8 12 and MAX7651 are all members of the 8051 family The names of the devices provide little or no indication of the family connections Particular confusion arises over the labels ‘8051’ and ‘8052’ The 8052 was launched (by Intel) shortly after the 8051 appeared The architecture... which can be purchased – for example – from Dolphin Integration.5 The use of such techniques allows you to create your own completely customized 8051 microcontroller, in order to match precisely your particular requirements Overall, the low cost, huge range, easy availability and widespread use of the 8051 architecture makes it an excellent platform for developing embedded systems: these same factors... system is computer-based This type of embedded system is all around us Use of embedded processors in passenger cars, mobile phones, medical equipment, aerospace systems and defence systems is widespread, and even everyday domestic appliances such as dishwashers, televisions, washing machines and video recorders now include at least one such device II What type of processor is discussed? This book focuses... systems and cruisecontrol applications) G Domestic appliances (including dishwashers, televisions, washing machines, microwave ovens, video recorders, security systems, garage door controllers) G Aerospace applications (including flight control systems, engine controllers, autopilots and passenger in-flight entertainment systems) G Medical equipment (including anaesthesia monitoring systems, ECG moni-... TXDC P4.7 RXDC 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 C5 1 5C P-MQFP-80 Package 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 P2.2/A10 P2.1/A9 P2.0/A8 XTAL1 XTAL2 VSSE1 VSS1 VCC1 VCCE1 P1.0 INT3/CC0 P1.1 INT4/CC1 P1.2 INT5/CC2 P1.3 INT6/CC3 P1.4 INT2 P1.5 T2LX P1.6 CLKOUT P1.7/T2 P7.0 INT7 P3.7 RD P3.6 WR 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 RESET N .C VAREF . Library Library of Congress-in-Publication Data Pont, Michael J. Embedded C/ Michael J. Pont. p. cm. Includes bibliographical references and index. ISBN 0-201-79523-X (pbx. : alk. paper) 1 .C (Computer program. asserted by him in accordance with the Copyright, Designs and Patents Act 1988. ISBN 0 201 79523 X British Library Cataloguing in Publication Data A CIP catalogue record for this book can be obtained. video recorders now include at least one such device. II What type of processor is discussed? This book focuses on the embedded systems based on the 8051 family of microcon- trollers. Prices for