ChipFind - документация

Электронный компонент: P852B

Скачать:  PDF   ZIP
S3C852B/P852B
8-BIT CMOS
MICROCONTROLLERS
USER'S MANUAL
Revision 0
Important Notice
Information in this publication has been carefully
checked and is believed to be entirely accurate at
the time of publication. SAMSUNG assumes no
responsibility, however, for possible errors or
omissions, or for any consequences resulting from
the use of the information contained herein.
SAMSUNG reserves the right to make changes in
its products or product specifications with the intent
to improve function or design at any time and
without notice and is not required to update this
documentation to reflect such changes.
This publication does not convey to a purchaser of
semiconductor devices described herein any license
under the patent rights of SAMSUNG or others.
SAMSUNG makes no warranty, representation, or
guarantee regarding the suitability of its products for
any particular purpose, nor does SAMSUNG
assume any liability arising out of the application or
use of any product or circuit and specifically
disclaims any and all liability, including without
limitation any consequential or incidental damages.
"Typical" parameters can and do vary in different
applications. All operating parameters, including
"Typicals" must be validated for each customer
application by the customer's technical experts.
SAMSUNG products are not designed, intended, or
authorized for use as components in systems
intended for surgical implant into the body, for other
applications intended to support or sustain life, or for
any other application in which the failure of the
SAMSUNG product could create a situation where
personal injury or death may occur.
Should the Buyer purchase or use a SAMSUNG
product for any such unintended or unauthorized
application, the Buyer shall indemnify and hold
SAMSUNG and its officers, employees,
subsidiaries, affiliates, and distributors harmless
against all claims, costs, damages, expenses, and
reasonable attorney fees arising out of, either
directly or indirectly, any claim of personal injury or
death that may be associated with such unintended
or unauthorized use, even if such claim alleges that
SAMSUNG was negligent regarding the design or
manufacture of said product.
S3C852B/P852B 8-Bit CMOS Microcontrollers
User's Manual, Revision 0
Publication Number: 20-S3-C852B/P852B-092002
2002 Samsung Electronics
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, electric or mechanical, by photocopying, recording, or otherwise, without the prior
written consent of Samsung Electronics.
All semiconductor products are designed and manufactured in accordance with
the highest quality standards and objectives.
Samsung Electronics Co., Ltd.
San #24 Nongseo-Ri, Giheung-Eup
Yongin-City, Gyeonggi-Do, Korea
C.P.O. Box #37, Suwon 440-900
TEL:
(82)-(31)-209-1934
FAX:
(82)-(31)-209-1899
Home Page: http://www.samsungsemi.com
Printed in the Republic of Korea
S3C852B/P852B MICROCONTROLLER
iii
Preface
The S3C852B/P852B Microcontroller User's Manual is designed for application designers and programmers who
are using the S3C852B/P852B microcontroller for application development.
It is organized in two main parts:
Part I Programming Model
Part II Hardware Descriptions
Part I contains software-related information to familiarize you with the microcontroller's architecture,
programming model, instruction set, and interrupt structure. It has six chapters:
Chapter 1
Product Overview
Chapter 2
Address Spaces
Chapter 3
Addressing Modes
Chapter 4
Control Registers
Chapter 5
Interrupt Structure
Chapter 6
Instruction Set
Chapter 1, "Product Overview," is a high-level introduction to S3C851B/P851B with general product descriptions,
as well as detailed information about individual pin characteristics and pin circuit types.
Chapter 2, "Address Spaces," describes program and data memory spaces, the internal register file, and register
addressing. Chapter 2 also describes working register addressing, as well as system stack and user-defined stack
operations.
Chapter 3, "Addressing Modes," contains detailed descriptions of the addressing modes that are supported by the
S3C8-series CPU.
Chapter 4, "Control Registers," contains overview tables for all mapped system and peripheral control register
values, as well as detailed one-page descriptions in a standardized format. You can use these easy-to-read,
alphabetically organized, register descriptions as a quick-reference source when writing programs.
Chapter 5, "Interrupt Structure," describes the S3C852B/P852B interrupt structure in detail and further prepares
you for additional information presented in the individual hardware module descriptions in Part II.
Chapter 6, "Instruction Set," describes the features and conventions of the instruction set used for all KS88-series
microcontrollers. Several summary tables are presented for orientation and reference. Detailed descriptions of
each instruction are presented in a standard format. Each instruction description includes one or more practical
examples of how to use the instruction when writing an application program.
A basic familiarity with the information in Part I will help you to understand the hardware module descriptions in
Part II. If you are not yet familiar with the S3C8-series microcontroller family and are reading this manual for the
first time, we recommend that you first read Chapters 13 carefully. Then, briefly look over the detailed
information in Chapters 4, 5, and 6. Later, you can reference the information in Part I as necessary.
Part II "hardware Descriptions," has detailed information about specific hardware components of the
S3C851B/P851B microcontroller. Also included in Part II are electrical, mechanical, and OTP. It has 13 chapters:
Chapter 7
Clock Circuits
Chapter 8
RESET
and Power-Down
Chapter 9
I/O Ports
Chapter 10
Basic Timer and Timer 0
Chapter 11
Timer 1
Chapter 12
Watch Timer
Chapter 13
Serial I/O Port
Chapter 14
Caller ID Block
Chapter 15
A/D Converter
Chapter 16
Extermal Interface
Chapter 17
Electrical Data
Chapter 18
Mechanical Data
Chapter 19
S3P852B OTP
Two order forms are included at the back of this manual to facilitate customer order for S3C852B/P852B
microcontrollers: the Mask ROM Order Form, and the Mask Option Selection Form. You can photocopy these
forms, fill them out, and then forward them to your local Samsung Sales Representative.
S3C852B/P852B MICROCONTROLLER
v
Table of Contents
Part I -- Programming Model
Chapter 1
Product Overview
SAM87RC Product Family .......................................................................................................................1-1
S3C852B Microcontroller .........................................................................................................................1-1
OTP.........................................................................................................................................................1-2
Features ..................................................................................................................................................1-3
Block Diagram .........................................................................................................................................1-4
Pin Assignments......................................................................................................................................1-5
Pin Descriptions.......................................................................................................................................1-6
Pin Circuits ..............................................................................................................................................1-10
Chapter 2
Address Spaces
Overview .................................................................................................................................................2-1
Program Memory (ROM) .........................................................................................................................2-2
Register Architecture ...............................................................................................................................2-4
Working Registers ...........................................................................................................................2-8
Using the Register Pointers .............................................................................................................2-9
Register Addressing.................................................................................................................................2-12
Common Working Register Area (C0HCFH)..................................................................................2-14
4-Bit Working Register Addressing ..................................................................................................2-16
8-Bit Working Register Addressing ..................................................................................................2-18
System and User Stacks..........................................................................................................................2-20
Chapter 3
Addressing Modes
Overview .................................................................................................................................................3-1
Register Addressing Mode (R).........................................................................................................3-2
Indirect Register Addressing Mode (Ir).............................................................................................3-3
Indexed Addressing Mode (X)..........................................................................................................3-7
Direct Address Mode (DA) ...............................................................................................................3-10
Indirect Address Mode (IA) ..............................................................................................................3-12
Relative Address Mode (RA) ...........................................................................................................3-13
Immediate Mode (IM) ......................................................................................................................3-14