Ingeniero en comunicaciones

Solo disponible en BuenasTareas
  • Páginas : 861 (215083 palabras )
  • Descarga(s) : 0
  • Publicado : 5 de septiembre de 2012
Leer documento completo
Vista previa del texto
MSP430 Microcontroller Basics

This page intentionally left blank

MSP430 Microcontroller Basics
John H. Davies

AMSTERDAM • BOSTON • HEIDELBERG • LONDON
NEW YORK • OXFORD • PARIS • SAN DIEGO
SAN FRANCISCO • SINGAPORE • SYDNEY • TOKYO
Newnes is an imprint of Elsevier

Newnes is an imprint of Elsevier
30 Corporate Drive, Suite 400, Burlington, MA 01803, USA
Linacre House, JordanHill, Oxford OX2 8DP, UK
Copyright © 2008, Elsevier Ltd. All 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 the prior
written permission of the publisher.
Permissions may be sought directly from Elsevier’s Science & Technology RightsDepartment in Oxford,
UK: phone: (+44) 1865 843830, fax: (+44) 1865 853333, E-mail: permissions@elsevier.com. You may
also complete your request online via the Elsevier homepage (http://www.elsevier.com) by selecting
“Support & Contact” then “Copyright and Permission” and then “Obtaining Permissions.”
Recognizing the importance of preserving what has been written, Elsevier prints its
bookson acid-free paper whenever possible.
Library of Congress Cataloging-in-Publication Data
Application submitted
British Library Cataloguing-in-Publication Data
A catalogue record for this book is available from the British Library.
ISBN: 978-0-7506-8276-3
For information on all Newnes publications,
visit our Web site at: http://www.books.elsevier.com
08 09 10 11 12 13

10 9 8 7 6 5 4 3 2 1Printed in the United States of America

“To Elizabeth.”

This page intentionally left blank

Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Chapter 1: Embedded Electronic Systems and Microcontrollers . . . . . . . . . . . . . . . . . . . 1
1.1
1.2
1.3
1.41.5
1.6
1.7

What (and Where) Are Embedded Systems? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Approaches to Embedded Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Small Microcontrollers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
Anatomy of a Typical Small Microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . 15
Where Does the MSP430 Fit? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

Chapter 2: The Texas Instruments MSP430 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8

The Outside View—Pin-Out . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
The Inside View—Functional Block Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Central Processing Unit. . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Memory-Mapped Input and Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Clock Generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Exceptions: Interrupts and Resets ....
tracking img