Example: stock market

Embedded C

Embedded C8322 Prelims (i-xvi) 25/2/02 3:04 pm Page i8322 Prelims (i-xvi) 25/2/02 3:04 pm Page iiEmbedded CMichael J. PontAn imprint of Pearson EducationLondon Boston Indianapolis New York Mexico City TorontoSydney Tokyo Singapore Hong Kong Cape Town New DelhiMadrid Paris Amsterdam Munich Milan Stockholm 8322 Prelims (i-xvi) 25/2/02 3:04 pm Page iiiPEARSON EDUCATION LIMITEDHead Office:London Office:Edinburgh Gate128 Long Acre Harlow CM20 2 JELondon WC2E 9 ANTel: +44 (0)1279 623623 Tel: +44 (0)20 7447 2000 Fax: +44 (0)1279 431059 Fax: +44 (0)20 7240 5771 Websites.

Are familiar with a C-based language ... and create your own operating system are ()? Embedded C Embedded C ...

Tags:

  Language, Embedded, Embedded c, Embedded c embedded c

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Embedded C

1 Embedded C8322 Prelims (i-xvi) 25/2/02 3:04 pm Page i8322 Prelims (i-xvi) 25/2/02 3:04 pm Page iiEmbedded CMichael J. PontAn imprint of Pearson EducationLondon Boston Indianapolis New York Mexico City TorontoSydney Tokyo Singapore Hong Kong Cape Town New DelhiMadrid Paris Amsterdam Munich Milan Stockholm 8322 Prelims (i-xvi) 25/2/02 3:04 pm Page iiiPEARSON EDUCATION LIMITEDHead Office:London Office:Edinburgh Gate128 Long Acre Harlow CM20 2 JELondon WC2E 9 ANTel: +44 (0)1279 623623 Tel: +44 (0)20 7447 2000 Fax: +44 (0)1279 431059 Fax: +44 (0)20 7240 5771 Websites.

2 Published in Great Britain in 2002 Pearson Education Limited 2002 The right of Michael J. Pont to be identified as Author of this Work has been asserted by him in accordance with the Copyright, Designs and Patents Act 0 201 79523 X British Library Cataloguing in Publication DataA CIP catalogue record for this book can be obtained from the British LibraryLibrary of Congress-in-Publication DataPont, Michael C/Michael J. bibliographical references and 0-201-79523-X (pbx. : alk. paper) (Computer program language ) 2.

3 Embedded computer systems--Design andconstruction. I. P65 rights reserved; no part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise without either the prior written permission of the Publishers or a licence permitting restricted copying in the United Kingdom issued by the Copyright Licensing Agency Ltd, 90 Tottenham Court Road, London W1P 0LP. This book may not be lent, resold, hired out or otherwise disposed of by way of trade in any form of binding or cover other than that in which it is published, without the prior consent of the programs in this book have been included for their instructional value.

4 The publisher does not offer any warranties or representations in respect of their fitness for a particular purpose, nor does the publisher accept any liability for any loss or damage arising from their of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Pearson Education Limited has made every attempt to supply trademark information about manufacturers and their products mentioned in this book. The publishers wish to thank Infineon Technologies for permission to reproduce the material in Figure 9 8 7 6 5 4 3 2 1 Designed by Claire Brodmann Book Designs, Lichfield, StaffsTypeset by Pantek Arts Ltd, Maidstone, KentPrinted and bound in Great Britain by Biddles Ltd of Guildford and King s LynnThe Publisher s policy is to use paper manufactured from sutainable Prelims (i-xvi) 25/2/02 3:04 pm Page ivThis book is dedicated to Sarah8322 Prelims (i-xvi) 25/2/02 3:04 pm Page vMichael J.

5 Pontis an experienced software engineer who began his first embeddedproject in 1986. Since then he has lectured and carried out research at theUniversity of Sheffield and the University of Leicester, and has provided consul-tancy and training services to a range of international companies. Michael is theauthor of two previous books Patterns for Time-Triggered Embedded SystemsandSoftware Engineering with C++ and CASE author8322 Prelims (i-xvi) 25/2/02 3:04 pm Page viPrefacexi1 Programming Embedded systems in What is an Embedded system?

6 Which processor should you use? Which programming language should youuse? Which operating system should you use? How do you develop Embedded software? Conclusions152 Introducing the 8051 microcontroller s in a name? external interface of the Standard frequency and Serial Power Conclusions343 Hello, Embedded Installing the Keil software and loading the project36 Contents8322 Prelims (i-xvi) 25/2/02 3:04 pm Page Configuring the Building the Running the Dissecting the Aside: Building the Conclusions564 Reading techniques for reading from port : Reading and writing : Reading and writing bits (simple version).

7 Reading and writing bits (generic version) need for pull-up with switch : Reading switch inputs (basic code) : Counting Conclusions805 Adding structure to your Object-oriented programming with The Project Header ( ) The Port Header ( ) Example: Restructuring the Hello Embedded World Example: Restructuring the goat-counting Further Conclusions1116 Meeting real-time Creating hardware delays using Timer 0 and Timer Example: Generating a precise 50 ms delay1208322 Prelims (i-xvi) 25/2/02 3:04 pm Page : Creating a portable hardware not use Timer 2?

8 Need for timeout loop : Testing loop : A more reliable switch Creating hardware Example: Testing a hardware Conclusions1427 Creating an Embedded operating The basis of a simple Embedded Introducing Using Timer 0 or Timer Is this approach portable? Alternative system Important design considerations when using Example: Milk Conclusions1878 Multi-state systems and function Implementing a Multi-State (Timed) Example: Traffic light Example: Animatronic Implementing a Multi-State (Input/Timed) Example: Controller for a washing Conclusions2159 Using the serial What is RS-232?

9 Does RS-232 still matter?2188322 Prelims (i-xvi) 25/2/02 3:04 pm Page basic RS-232 data transmission and baud software the on-chip UART for RS-232 Example: Displaying elapsed time on a The Serial-Menu Example: Data Example: Remote-control Conclusions25310 Case study: Intruder alarm The software Key software components used in this Running the The Conclusions28311 Where do we go from Have we achieved our aims? Suggestions for further for Time-Triggered Embedded Operating Conclusions289 Index291 Licensing Agreement295xContents8322 Prelims (i-xvi) 25/2/02 3:04 pm Page xThis book provides a hardware-free introduction to Embedded software forpeople who: Already know how to write software for desktop computer systems.

10 Are familiar with a C-based language (Java, C++ or C). Want to learn how C is used in practical Embedded remainder of this preface attempts to answer some questions which prospec-tive readers may have about the What is an Embedded system?As far as this book is concerned:This type of Embedded system is all around us. Use of Embedded processors in pas-senger cars, mobile phones, medical equipment, aerospace systems and defencesystems is widespread, and even everyday domestic appliances such as dishwash-ers, televisions, washing machines and video recorders now include at least onesuch What type of processor is discussed?


Related search queries