Copyright © 2010 ARM. All rights reserved.
ARM DUI 0552A (ID121610)
Cortex
™
-M3 Devices
Generic User Guide
ARM DUI 0552A Copyright © 2010 ARM. All rights reserved. ii
ID121610 Non-Confidential
Cortex-M3 Devices
Generic User Guide
Copyright © 2010 ARM. All rights reserved.
Release Information
The following changes have been made to this book.
Proprietary Notice
Words and logos marked with
®
or
™
are registered trademarks or trademarks of ARM
®
in the EU and other countries,
except as otherwise stated below in this proprietary notice. Other brands and names mentioned herein may be the
trademarks of their respective owners.
Neither the whole nor any part of the information contained in, or the product described in, this document may be
adapted or reproduced in any material form except with the prior written permission of the copyright holder.
The product described in this document is subject to continuous developments and improvements. All particulars of the
product and its use contained in this document are given by ARM in good faith. However, all warranties implied or
expressed, including but not limited to implied warranties of merchantability, or fitness for purpose, are excluded.
This document is intended only to assist the reader in the use of the product. ARM shall not be liable for any loss or
damage arising from the use of any information in this document, or any error or omission in such information, or any
incorrect use of the product.
Where the term ARM is used it means “ARM or any of its subsidiaries as appropriate”.
Confidentiality Status
This document is Non-Confidential. The right to use, copy and disclose this document may be subject to license
restrictions in accordance with the terms of the agreement entered into by ARM and the party that ARM delivered this
document to.
Product Status
The information in this document is final, that is for a developed product.
Web Address
http://www.arm.com
Change history
Date Issue Confidentiality Change
16 December 2010 A Non-Confidential First release
ARM DUI 0552A Copyright © 2010 ARM. All rights reserved. iii
ID121610 Non-Confidential
Contents
Cortex-M3 Devices Generic User Guide
Preface
About this book ........................................................................................................... vi
Feedback .................................................................................................................... ix
Chapter 1 Introduction
1.1 About the Cortex-M3 processor and core peripherals ............................................. 1-2
Chapter 2 The Cortex-M3 Processor
2.1 Programmers model ................................................................................................ 2-2
2.2 Memory model ....................................................................................................... 2-12
2.3 Exception model .................................................................................................... 2-21
2.4 Fault handling ........................................................................................................ 2-28
2.5 Power management ............................................................................................... 2-31
Chapter 3 The Cortex-M3 Instruction Set
3.1 Instruction set summary ........................................................................................... 3-2
3.2 CMSIS functions ...................................................................................................... 3-6
3.3 About the instruction descriptions ............................................................................ 3-8
3.4 Memory access instructions .................................................................................. 3-17
3.5 General data processing instructions .................................................................... 3-34
3.6 Multiply and divide instructions .............................................................................. 3-49
3.7 Saturating instructions ........................................................................................... 3-54
3.8 Bitfield instructions ................................................................................................. 3-56
3.9 Branch and control instructions ............................................................................. 3-60
3.10 Miscellaneous instructions ..................................................................................... 3-68
Chapter 4 Cortex-M3 Peripherals
4.1 About the Cortex-M3 peripherals ............................................................................. 4-2
ARM DUI 0552A Copyright © 2010 ARM. All rights reserved. iv
ID121610 Non-Confidential
4.2 Nested Vectored Interrupt Controller ....................................................................... 4-3
4.3 System control block .............................................................................................. 4-11
4.4 System timer, SysTick ........................................................................................... 4-33
4.5 Optional Memory Protection Unit ........................................................................... 4-37
Appendix A Cortex-M3 Options
A.1 Cortex-M3 implementation options .......................................................................... A-2
Glossary