logo资料库

S3C2410数据手册(完整版).pdf

第1页 / 共599页
第2页 / 共599页
第3页 / 共599页
第4页 / 共599页
第5页 / 共599页
第6页 / 共599页
第7页 / 共599页
第8页 / 共599页
资料共599页,剩余部分请下载后查看
1 PRODUCT OVERVIEW
2 PROGRAMMER'S MODEL
3 ARM Instruction set
6 nand flash controller
5 memory controller
7clock power management
8dma
9 GPIO
18 watchdog
查询S3C2410A供应商 21-S3-C2410A-032004USER'S MANUALS3C2410A – 200MHz & 266MHz32-Bit RISCMicroprocessorRevision 1.0
S3C2410A200MHz & 266MHz32-BIT RISCMICROPROCESSORUSER'S MANUALRevision 1.0
Important NoticeThe information in this publication has been carefullychecked and is believed to be entirely accurate at thetime of publication. Samsung assumes noresponsibility, however, for possible errors oromissions, or for any consequences resulting fromthe use of the information contained herein.Samsung reserves the right to make changes in itsproducts or product specifications with the intent toimprove function or design at any time and withoutnotice and is not required to update thisdocumentation to reflect such changes.This publication does not convey to a purchaser ofsemiconductor devices described herein any licenseunder the patent rights of Samsung or others.Samsung makes no warranty, representation, orguarantee regarding the suitability of its products forany particular purpose, nor does Samsung assumeany liability arising out of the application or use of anyproduct or circuit and specifically disclaims any andall liability, including without limitation anyconsequential or incidental damages."Typical" parameters can and do vary in differentapplications. All operating parameters, including"Typicals" must be validated for each customerapplication by the customer's technical experts.Samsung products are not designed, intended, orauthorized for use as components in systemsintended for surgical implant into the body, for otherapplications intended to support or sustain life, or forany other application in which the failure of theSamsung product could create a situation wherepersonal injury or death may occur.Should the Buyer purchase or use a Samsungproduct for any such unintended or unauthorizedapplication, the Buyer shall indemnify and holdSamsung and its officers, employees, subsidiaries,affiliates, and distributors harmless against all claims,costs, damages, expenses, and reasonable attorneyfees arising out of, either directly or indirectly, anyclaim of personal injury or death that may beassociated with such unintended or unauthorized use,even if such claim alleges that Samsung wasnegligent regarding the design or manufacture of saidproduct.S3C2410A – 200MHz & 266MHz 32-Bit RISC MicroprocessorUser's Manual, Revision 1.0 (March 2004)Publication Number: 21-S3-C2410A-032004 2004 Samsung ElectronicsAll rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in anyform or by any means, electric or mechanical, by photocopying, recording, or otherwise, without the prior writtenconsent of Samsung Electronics.Samsung Electronics' microcontroller business has been awarded full ISO-9001certification (BSI Certificate No. FM24653). All semiconductor products are designedand manufactured in accordance with the highest quality standards and objectives.Samsung Electronics Co., Ltd.San #24 Nongseo-Ri, Giheung- EupYongin-City, Gyeonggi-Do, KoreaC.P.O. Box #37, Suwon 449-900TEL:(82)-(031)-209-1934FAX:(82)-(031)-209-1899Home Page: http://www.samsung.comPrinted in the Republic of Korea
S3C2410A MICROPROCESSORiiiTable of ContentsChapter 1Product OverviewIntroduction.........................................................................................................................................1-1Features.............................................................................................................................................1-2Block Diagram....................................................................................................................................1-5Pin Assignments.................................................................................................................................1-6Signal Descriptions......................................................................................................................1-20S3C2410A Special Registers........................................................................................................1-26Chapter 2Programmer's modelOverview.............................................................................................................................................2-1Processor Operating States.........................................................................................................2-1Switching State...........................................................................................................................2-1Memory Formats.........................................................................................................................2-1Big-Endian Format.......................................................................................................................2-2Little-Endian Format....................................................................................................................2-2Instruction Length........................................................................................................................2-2Operating Modes.........................................................................................................................2-3Registers....................................................................................................................................2-3The Program Status Registers......................................................................................................2-7Exceptions.................................................................................................................................2-10Interrupt Latencies.......................................................................................................................2-15Reset.........................................................................................................................................2-15
ivS3C2410A MICROPROCESSORTable of Contents (Continued)Chapter 3ARM Instruction setInstruction Set Summay.......................................................................................................................3-1Format Summary........................................................................................................................3-1Instruction Summary....................................................................................................................3-2The Condition Field..............................................................................................................................3-4Branch and Exchange (BX)...................................................................................................................3-5Instruction Cycle Times................................................................................................................3-5Assembler Syntax.......................................................................................................................3-5Using R15 as an Operand............................................................................................................3-5Branch and Branch with Link (B, Bl)......................................................................................................3-7The Link Bit................................................................................................................................3-7Instruction Cycle Times................................................................................................................3-7Assembler Syntax.......................................................................................................................3-8Data Processing..................................................................................................................................3-9CPSR Flags................................................................................................................................3-11Shifts.........................................................................................................................................3-12Immediate Operand Rotates.........................................................................................................3-16Writing to R15.............................................................................................................................3-16Using R15 as an Operandy...........................................................................................................3-16TEQ, TST, CMP and CMN Opcodes..............................................................................................3-16Instruction Cycle Times................................................................................................................3-16Assembler Syntax.......................................................................................................................3-17Examples...................................................................................................................................3-17PSR Transfer (MRS, MSR)...................................................................................................................3-18Operand Restrictions...................................................................................................................3-18Reserved Bits..............................................................................................................................3-20Examples...................................................................................................................................3-20Instruction Cycle Times................................................................................................................3-20Assembly Syntax........................................................................................................................3-21Examples...................................................................................................................................3-21Multiply and Multiply-Accumulate (MUL, MLA).......................................................................................3-22CPSR Flags................................................................................................................................3-24Instruction Cycle Times................................................................................................................3-24Assembler Syntax.......................................................................................................................3-24Examples...................................................................................................................................3-24Multiply Long and Multiply-Accumulate Long (MULL, MLAL)....................................................................3-25Operand Restrictions...................................................................................................................3-26CPSR Flags................................................................................................................................3-26Instruction Cycle Times................................................................................................................3-26Assembler Syntax.......................................................................................................................3-27Examples...................................................................................................................................3-27
S3C2410A MICROPROCESSORvTable of Contents (Continued)Chapter 3ARM Instruction set (Continued)Single Data Transfer (LDR, STR)...........................................................................................................3-28Offsets And Auto-Indexing............................................................................................................3-29Shifted Register Offset.................................................................................................................3-29Bytes and Words........................................................................................................................3-29Use of R15..................................................................................................................................3-31Example:....................................................................................................................................3-31Data Aborts................................................................................................................................3-31Instruction Cycle Times................................................................................................................3-31Assembler Syntax.......................................................................................................................3-32Examples...................................................................................................................................3-33Halfword and Signed Data Transfer (LDRH/STRH/LDRSB/LDRSH)...........................................................3-34Offsets and Auto-Indexing............................................................................................................3-35Halfword Load and Stores.............................................................................................................3-36Use of R15..................................................................................................................................3-37Data Aborts................................................................................................................................3-37Instruction Cycle Times................................................................................................................3-37Assembler Syntax.......................................................................................................................3-38Examples...................................................................................................................................3-39Block Data Transfer (LDM, STM)...........................................................................................................3-40The Register List.........................................................................................................................3-40Addressing Modes.......................................................................................................................3-41Address Alignment......................................................................................................................3-41Use of the S Bit...........................................................................................................................3-43Use of R15 as the Base...............................................................................................................3-43Inclusion of the Base in the Register List.......................................................................................3-44Data Aborts................................................................................................................................3-44Instruction Cycle Times................................................................................................................3-44Assembler Syntax.......................................................................................................................3-45Examples...................................................................................................................................3-46Single Data Swap (SWP).....................................................................................................................3-47Bytes and Words........................................................................................................................3-47Use of R15..................................................................................................................................3-48Data Aborts................................................................................................................................3-48Instruction Cycle Times................................................................................................................3-48Assembler Syntax.......................................................................................................................3-48Software Interrupt (SWI).......................................................................................................................3-49Return from the Supervisor...........................................................................................................3-49Comment Field............................................................................................................................3-49Instruction Cycle Times................................................................................................................3-49Assembler Syntax.......................................................................................................................3-50Coprocessor Data Operations (CDP).....................................................................................................3-51Coprocessor Instructions..............................................................................................................3-51Instruction Cycle Times................................................................................................................3-52Examples...................................................................................................................................3-52
viS3C2410A MICROPROCESSORTable of Contents (Continued)Chapter 3ARM Instruction set (Continued)Coprocessor Data Transfers (LDC, STC)................................................................................................3-53The Coprocessor Fields...............................................................................................................3-54Addressing Modes.......................................................................................................................3-54Address Alignment......................................................................................................................3-54Data Aborts................................................................................................................................3-54Assembler Syntax.......................................................................................................................3-55Examples...................................................................................................................................3-55Coprocessor Register Transfers (MRC, MCR).................................................................................3-56The Coprocessor Fields...............................................................................................................3-56Transfers to R15..........................................................................................................................3-57Transfers from R15......................................................................................................................3-57Instruction Cycle Times................................................................................................................3-57Assembler Syntax.......................................................................................................................3-57Examples...................................................................................................................................3-57Undefined Instruction...................................................................................................................3-58Instruction Cycle Times................................................................................................................3-58Assembler Syntax.......................................................................................................................3-58Instruction Set Examples.............................................................................................................3-59Using the Conditional Instructions.................................................................................................3-59Pseudo-Random Binary Sequence Generator.................................................................................3-61Multiplication by Constant Using the Barrel Shifter..........................................................................3-61Loading a Word from an Unknown Alignment.................................................................................3-63Chapter 4Thumb Instruction SetThumb Instruction Set Format...............................................................................................................4-1Format Summary........................................................................................................................4-2Opcode Summary.......................................................................................................................4-3Format 1: Move Shifted Register...........................................................................................................4-5Operation....................................................................................................................................4-5Instruction Cycle Times................................................................................................................4-6Examples...................................................................................................................................4-6Format 2: Add/Subtract........................................................................................................................4-7Operation....................................................................................................................................4-7Instruction Cycle Times................................................................................................................4-8Examples...................................................................................................................................4-8Format 3: Move/Compare/Add/Subtract Immediate.................................................................................4-9Operations..................................................................................................................................4-9Instruction Cycle Times................................................................................................................4-10Examples...................................................................................................................................4-10Format 4: ALU Operations....................................................................................................................4-11Operation....................................................................................................................................4-11Instruction Cycle Times................................................................................................................4-12Examples...................................................................................................................................4-12
S3C2410A MICROPROCESSORviiTable of Contents (Continued)Chapter 4Thumb Instruction Set (Continued)Format 5: Hi-Register Operations/Branch Exchange...............................................................................4-13Operation....................................................................................................................................4-13Instruction Cycle Times................................................................................................................4-14The Bx Instruction.......................................................................................................................4-14Examples...................................................................................................................................4-15Using R15 as an Operand............................................................................................................4-15Format 6: Pc-Relative Load..................................................................................................................4-16Operation....................................................................................................................................4-16Instruction Cycle Times................................................................................................................4-17Examples...................................................................................................................................4-17Format 7: Load/Store with Register Offset..............................................................................................4-18Operation....................................................................................................................................4-19Instruction Cycle Times................................................................................................................4-19Examples...................................................................................................................................4-19Format 8: Load/Store Sign-Extended Byte/Halfword................................................................................4-20Operation....................................................................................................................................4-20Instruction Cycle Times................................................................................................................4-21Examples...................................................................................................................................4-21Format 9: Load/Store With Immediate Offset..........................................................................................4-22Operation....................................................................................................................................4-23Instruction Cycle Times................................................................................................................4-23Examples...................................................................................................................................4-23Format 10: Load/Store Halfword............................................................................................................4-24Operation....................................................................................................................................4-24Instruction Cycle Times................................................................................................................4-25Examples...................................................................................................................................4-25Format 11: Sp-Relative Load/Store........................................................................................................4-26Operation....................................................................................................................................4-26Instruction Cycle Times................................................................................................................4-27Examples...................................................................................................................................4-27Format 12: Load Address.....................................................................................................................4-28Operation....................................................................................................................................4-28Instruction Cycle Times................................................................................................................4-29Examples...................................................................................................................................4-29Format 13: Add Offset To Stack Pointer................................................................................................4-30Operation....................................................................................................................................4-30Instruction Cycle Times................................................................................................................4-30Examples...................................................................................................................................4-30Format 14: Push/Pop Registers............................................................................................................4-31Operation....................................................................................................................................4-31Instruction Cycle Times................................................................................................................4-32Examples...................................................................................................................................4-32Format 15: Multiple Load/Store.............................................................................................................4-33Operation....................................................................................................................................4-33Instruction Cycle Times................................................................................................................4-33Examples...................................................................................................................................4-33
分享到:
收藏