Samsung 8-Bit Instrukcja Użytkownika Strona 1

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Nie Samsung 8-Bit. Samsung 8-Bit User's Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 462
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów

Podsumowanie treści

Strona 1 - USER'S MANUAL

21-S3-C9228/P9228-112002USER'S MANUALS3C9228/P92288-Bit CMOSMicrocontrollerRevision 1

Strona 2 - S3C9228/P9228

S3C9228/P9228 MICROCONTROLLERS ixTable of Contents (Concluded)Chapter 16 Electrical DataOverview...

Strona 3 - Important Notice

SAM88RI INSTRUCTION SET S3C9228/P92286-4FLAGS REGISTER (FLAGS)The FLAGS register contains eight bits that describe the current status of CPU operation

Strona 4

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-5INSTRUCTION SET NOTATIONTable 6-2. Flag Notation ConventionsFlag DescriptionC Carry flagZ Zero flagS Sign fl

Strona 5

SAM88RI INSTRUCTION SET S3C9228/P92286-6Table 6-4. Instruction Notation ConventionsNotation Description Actual Operand Rangecc Condition code See list

Strona 6 - Table of Contents

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-7Table 6-5. Opcode Quick ReferenceOPCODE MAPLOWER NIBBLE (HEX)– 0 1 2 3 4 5 6 7U0 DECR1DECIR1ADDr1,r2ADDr1,Ir

Strona 7 - Table of Contents (Continued)

SAM88RI INSTRUCTION SET S3C9228/P92286-8Table 6-5. Opcode Quick Reference (Continued)OPCODE MAPLOWER NIBBLE (HEX)– 8 9 A B C D E FU0 LDr1,R2LDr2,R1JRc

Strona 8

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-9CONDITION CODESThe opcode of a conditional jump always contains a 4-bit field called the condition code (cc)

Strona 9

SAM88RI INSTRUCTION SET S3C9228/P92286-10INSTRUCTION DESCRIPTIONSThis section contains detailed information and programming examples for each instruct

Strona 10 - Table of Contents (Concluded)

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-11ADC — Add With CarryADC dst,srcOperation: dst ¨ dst + src + cThe source operand, along with the sett

Strona 11

SAM88RI INSTRUCTION SET S3C9228/P92286-12ADD — AddADD dst,srcOperation: dst ¨ dst + srcThe source operand is added to the destination operand and

Strona 12 - List of Figures

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-13AND — Logical ANDAND dst,srcOperation: dst ¨ dst AND srcThe source operand is logically ANDed with the

Strona 14

SAM88RI INSTRUCTION SET S3C9228/P92286-14CALL — Call ProcedureCALL dstOperation: SP ¨ SP – 1@SP ¨ PCLSP ¨ SP –1@SP ¨ PCHPC ¨ dstThe current contents

Strona 15 - List of Figures (Concluded)

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-15CCF — Complement Carry FlagCCFOperation: C ¨ NOT CThe carry flag (C) is complemented. If C = "1&

Strona 16 - List of Tables

SAM88RI INSTRUCTION SET S3C9228/P92286-16CLR — ClearCLR dstOperation: dst ¨ "0"The destination location is cleared to "0".Flags

Strona 17

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-17COM — ComplementCOM dstOperation: dst ¨ NOT dstThe contents of the destination location are complemente

Strona 18 - List of Programming Tips

SAM88RI INSTRUCTION SET S3C9228/P92286-18CP — CompareCP dst,srcOperation: dst – srcThe source operand is compared to (subtracted from) the destinatio

Strona 19

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-19DEC — DecrementDEC dstOperation: dst ¨ dst – 1The contents of the destination operand are decremented by

Strona 20 - List of Register Descriptions

SAM88RI INSTRUCTION SET S3C9228/P92286-20DI — Disable InterruptsDIOperation: SYM (2) ¨ 0Bit zero of the system mode register, SYM.2, is cleared to

Strona 21

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-21EI — Enable InterruptsEIOperation: SYM (2) ¨ 1An EI instruction sets bit 2 of the system mode register,

Strona 22

SAM88RI INSTRUCTION SET S3C9228/P92286-22IDLE — Idle OperationIDLEOperation:The IDLE instruction stops the CPU clock while allowing system clock osci

Strona 23 - 1 PRODUCT OVERVIEW

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-23INC — IncrementINC dstOperation: dst ¨ dst + 1The contents of the destination operand are incremented

Strona 24 - FEATURES

S3C9228/P9228 MICROCONTROLLERS xiList of FiguresFigure Title PageNumber Number1-1 Block Diagram...

Strona 25

SAM88RI INSTRUCTION SET S3C9228/P92286-24IRET — Interrupt ReturnIRET IRETOperation: FLAGS ¨ @SPSP ¨ SP + 1PC ¨ @SPSP ¨ SP + 2SYM(2) ¨ 1

Strona 26

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-25JP — JumpJP cc,dst (Conditional)JP dst (Unconditional)Operation: If cc is true, PC ¨ dstThe condition

Strona 27

SAM88RI INSTRUCTION SET S3C9228/P92286-26JR — Jump RelativeJR cc,dstOperation: If cc is true, PC ¨ PC + dstIf the condition specified by the c

Strona 28

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-27LD — LoadLD dst,srcOperation: dst ¨ srcThe contents of the source are loaded into the destination. The s

Strona 29

SAM88RI INSTRUCTION SET S3C9228/P92286-28LD — LoadLD (Continued)Examples: Given: R0 = 01H, R1 = 0AH, register 00H = 01H, register 01H = 20H,register

Strona 30

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-29LDC/LDE — Load MemoryLDC/LDE dst,srcOperation: dst ¨ srcThis instruction loads a byte from program or da

Strona 31

SAM88RI INSTRUCTION SET S3C9228/P92286-30LDC/LDE — Load MemoryLDC/LDE (Continued)Examples: Given: R0 = 11H, R1 = 34H, R2 = 01H, R3 = 04H, R4 = 00H, R

Strona 32

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-31LDCD/LDED — Load Memory and DecrementLDCD/LDED dst,srcOperation: dst ¨ srcrr ¨ rr – 1These instruction

Strona 33

SAM88RI INSTRUCTION SET S3C9228/P92286-32LDCI/LDEI — Load Memory and IncrementLDCI/LDEI dst,srcOperation: dst ¨ srcrr ¨ rr + 1These instruction

Strona 34

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-33NOP — No OperationNOPOperation: No action is performed when the CPU executes this instruction. Typically,

Strona 35

xii S3C9228/P9228 MICROCONTROLLERSList of Figures (Continued)Figure Title PageNumber Number5-1 S3C9-Series Interrupt Type ...

Strona 36

SAM88RI INSTRUCTION SET S3C9228/P92286-34OR — Logical OROR dst,srcOperation: dst ¨ dst OR srcThe source operand is logically ORed with the destin

Strona 37

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-35POP — Pop From StackPOP dstOperation: dst ¨ @SPSP ¨ SP + 1The contents of the location addressed by

Strona 38

SAM88RI INSTRUCTION SET S3C9228/P92286-36PUSH — Push To StackPUSH srcOperation: SP ¨ SP – 1@SP ¨ srcA PUSH instruction decrements the stack poi

Strona 39

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-37RCF — Reset Carry FlagRCF RCFOperation: C ¨ 0The carry flag is cleared to logic zero, regardless of its

Strona 40

SAM88RI INSTRUCTION SET S3C9228/P92286-38RET — ReturnRETOperation: PC ¨ @SPSP ¨ SP + 2The RET instruction is normally used to return to the pre

Strona 41

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-39RL — Rotate LeftRL dstOperation: C ¨ dst (7)dst (0) ¨ dst (7)dst (n + 1) ¨ dst (n), n = 0–6The co

Strona 42

SAM88RI INSTRUCTION SET S3C9228/P92286-40RLC — Rotate Left Through CarryRLC dstOperation: dst (0) ¨ CC ¨ dst (7)dst (n + 1) ¨ dst (n), n = 0–

Strona 43

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-41RR — Rotate RightRR dstOperation: C ¨ dst (0)dst (7) ¨ dst (0)dst (n) ¨ dst (n + 1), n = 0–6The c

Strona 44

SAM88RI INSTRUCTION SET S3C9228/P92286-42RRC — Rotate Right Through CarryRRC dstOperation: dst (7) ¨ CC ¨ dst (0)dst (n) ¨ dst (n + 1), n = 0

Strona 45

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-43SBC — Subtract With CarrySBC dst,srcOperation: dst ¨ dst – src – cThe source operand, along with the

Strona 46

S3C9228/P9228 MICROCONTROLLERS xiiiList of Figures (Continued)Figure Title PageNumber Number10-1 Basic Timer Control Register (BTCON) ...

Strona 47

SAM88RI INSTRUCTION SET S3C9228/P92286-44SCF — Set Carry FlagSCFOperation: C ¨ 1The carry flag (C) is set to logic one, regardless of its previous

Strona 48

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-45SRA — Shift Right ArithmeticSRA dstOperation: dst (7) ¨ dst (7)C ¨ dst (0)dst (n) ¨ dst (n + 1), n

Strona 49

SAM88RI INSTRUCTION SET S3C9228/P92286-46STOP — Stop OperationSTOPOperation:The STOP instruction stops both the CPU clock and system clock and causes

Strona 50

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-47SUB — SubtractSUB dst,srcOperation: dst ¨ dst – srcThe source operand is subtracted from the destinatio

Strona 51

SAM88RI INSTRUCTION SET S3C9228/P92286-48TCM — Test Complement Under MaskTCM dst,srcOperation: (NOT dst) AND srcThis instruction tests selected bit

Strona 52

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-49TM — Test Under MaskTM dst,srcOperation: dst AND srcThis instruction tests selected bits in the destinat

Strona 53

SAM88RI INSTRUCTION SET S3C9228/P92286-50XOR — Logical Exclusive ORXOR dst,srcOperation: dst ¨ dst XOR srcThe source operand is logically exclusiv

Strona 54

S3C9228/P9228 CLOCK CIRCUITS7-17 CLOCK CIRCUITSOVERVIEWThe S3C9228 microcontroller has two oscillator circuits: a main clock, and a sub clock circuit.

Strona 55

CLOCK CIRCUITS S3C9228/P92287-2MAIN OSCILLATOR CIRCUITSXINXOUTFigure 7-1. Crystal/Ceramic OscillatorXINXOUTFigure 7-2. External OscillatorXINXOUTRFigu

Strona 56

S3C9228/P9228 CLOCK CIRCUITS7-3CLOCK STATUS DURING POWER-DOWN MODESThe two power-down modes, Stop mode and Idle mode, affect the system clock as follo

Strona 57

xiv S3C9228/P9228 MICROCONTROLLERSList of Figures (Concluded)Figure Title PageNumber Number16-1 Stop Mode Release Timing When Initiated by an External

Strona 58

CLOCK CIRCUITS S3C9228/P92287-4SYSTEM CLOCK CONTROL REGISTER (CLKCON)The system clock control register, CLKCON, is located in address D4H. It is read/

Strona 59

S3C9228/P9228 CLOCK CIRCUITS7-5OSCILLATOR CONTROL REGISTER (OSCCON)The oscillator control register, OSCCON, is located in address D3H. It is read/writ

Strona 60

CLOCK CIRCUITS S3C9228/P92287-6SWITCHING THE CPU CLOCKData loadings in the oscillator control register, OSCCON, determine whether a main or a sub cloc

Strona 61

S3C9228/P9228 CLOCK CIRCUITS7-7STOP CONTROL REGISTER (STPCON)The STOP control register, STPCON, is located in address E0H. It is read/write addressabl

Strona 62

CLOCK CIRCUITS S3C9228/P92287-8NOTES

Strona 63

S3C9228/P9228 RESETRESET and POWER-DOWN8-18 RESETRESET and POWER-DOWNSYSTEM RESETOVERVIEWDuring a power-on reset, the voltage at VDD goes to High leve

Strona 64

RESETRESET and POWER-DOWN S3C9228/P92288-2POWER-DOWN MODESSTOP MODEStop mode is invoked by the instruction STOP. In Stop mode, the operation of the CP

Strona 65

S3C9228/P9228 RESETRESET and POWER-DOWN8-3Using an Internal Interrupt to Release Stop ModeAn internal interrupt, watch timer, can be used to release s

Strona 66

RESETRESET and POWER-DOWN S3C9228/P92288-4HARDWARE RESET RESET VALUESTable 8-1 list the values for CPU and system registers, peripheral control regist

Strona 67

S3C9228/P9228 RESETRESET and POWER-DOWN8-5Table 8-1. Register Values after RESET RESET (Continued)Register Name Mnemonic AddressBit Values after RESET

Strona 68

S3C9228/P9228 MICROCONTROLLERS xvList of TablesTable Title PageNumber Number1-1 Pin Descriptions ...

Strona 69

RESETRESET and POWER-DOWN S3C9228/P92288-6NOTES

Strona 70

S3C9228/P9228 I/O PORTS9-19 I/O PORTSOVERVIEWThe S3C9228/P9228 microcontroller has seven bit-programmable I/O ports, P0-P6. Port 0 is 6-bit port, port

Strona 71

I/O PORTS S3C9228/P92289-2PORT DATA REGISTERSTable 9-2 gives you an overview of the register locations of all seven S3C9228 I/O port data registers. D

Strona 72

S3C9228/P9228 I/O PORTS9-3PORT 0Port 0 is an 6-bit I/O port with individually configurable pins. Port 0 pins are accessed directly by writing orreadin

Strona 73

I/O PORTS S3C9228/P92289-4Port 0 Control Register (P0CON)EBH, Page 0, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBP0.3/BUZ(INT)P0CON bit-pair pin configuration s

Strona 74

S3C9228/P9228 I/O PORTS9-5Port 0 Interrupt Pending Bits (INTPND1.3-.0)D6H, Page 0, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBINTPND1 bit configuration settings

Strona 75

I/O PORTS S3C9228/P92289-6PORT 1Port 1 is an 4-bit I/O port with individually configurable pins. Port 1 pins are accessed directly by writing orreadin

Strona 76

S3C9228/P9228 I/O PORTS9-7Port 1 Interrupt Control Register (P1INT)F1H, Page 0, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBNot usedP1INT bit configuration setti

Strona 77

I/O PORTS S3C9228/P92289-8Port 1 Interrupt Edge Selection Register (P1EDGE)F2H, Page 0, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBP1EDGE bit configuration sett

Strona 78

S3C9228/P9228 I/O PORTS9-9PORT 2Port 2 is an 4-bit I/O port with individually configurable pins. Port 2 pins are accessed directly by writing orreadin

Strona 80

I/O PORTS S3C9228/P92289-10Port 2 Pull-up Control Register (P2PUR)F4H, Page 0, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBP2PUR bit configuration settings:01Ena

Strona 81

S3C9228/P9228 I/O PORTS9-11PORT 3Port 3 is an 2-bit I/O port with individually configurable pins. Port 3 pins are accessed directly by writing orreadi

Strona 82

I/O PORTS S3C9228/P92289-12Port 3 Interrupt Control Register (P3INT)F7H, Page 0, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBNot usedP3INT bit configuration sett

Strona 83

S3C9228/P9228 I/O PORTS9-13Port 3 Interrupt Edge Selection Register (P3EDGE)F8H, Page 0, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBP3EDGE bit configuration set

Strona 84

I/O PORTS S3C9228/P92289-14PORT 4Port 4 is an 8-bit I/O port with individually configurable pins. Port 4 pins are accessed directly by writing orreadi

Strona 85

S3C9228/P9228 I/O PORTS9-15PORT 5Port 5 is an 8-bit I/O port with individually configurable pins. Port 5 pins are accessed directly by writing orreadi

Strona 86

I/O PORTS S3C9228/P92289-16PORT 6Port 6 is an 4-bit I/O port with individually configurable pins. Port 6 pins are accessed directly by writing orreadi

Strona 87

S3C9228/P9228 (Preliminary Spec) BASIC TIMER10-110 BASIC TIMEROVERVIEWBasic timer (BT) can be used in two different ways:— As a watchdog timer to prov

Strona 88

BASIC TIMER S3C9228/P9228 (Preliminary Spec)10-2BASIC TIMER CONTROL REGISTER (BTCON)The basic timer control register, BTCON, is used to select the inp

Strona 89

S3C9228/P9228 (Preliminary Spec) BASIC TIMER10-3BASIC TIMER FUNCTION DESCRIPTIONWatchdog Timer FunctionYou can program the basic timer overflow signal

Strona 90

S3C9228/P9228 MICROCONTROLLERS xviiList of Programming TipsDescription PageNumberChapter 2: Address SpacesAddressing the Common Working Register Area

Strona 91

BASIC TIMER S3C9228/P9228 (Preliminary Spec)10-4NOTE: During a power-on reset operation, the CPU is idle during the required oscillationstabilization

Strona 92

S3C9228/P9228 TIMER 111-111 TIMER 1ONE 16-BIT TIMER MODE (TIMER 1)The 16-bit timer 1 is used in one 16-bit timer or two 8-bit timers mode. If TACON.7

Strona 93

TIMER 1 S3C9228/P922811-2Timer 1 Control Register (TACON)You use the timer 1 control register, TACON, to— Enable the timer 1 operating (interval timer

Strona 94

S3C9228/P9228 TIMER 111-3NOTE: When one 16-bit timer mode (TACON.7 <- "1": Timer 1)TACON.6-.4MUX1/81/641/2561/512INTPND2.0TAOUTT1INT1/1DI

Strona 95

TIMER 1 S3C9228/P922811-4TWO 8-BIT TIMERS MODE (TIMER A and B)OVERVIEWThe 8-bit timer A and B are the 8-bit general-purpose timers. Timer A and B have

Strona 96

S3C9228/P9228 TIMER 111-5TACON and TBCON are located in page 0, at address BBH and BAH, and is read/write addressable usingregister addressing mode.A

Strona 97

TIMER 1 S3C9228/P922811-6Timer B Control Register (TBCON)BAH, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBTimer B match interrupt enable bit:0 = Disable match i

Strona 98

S3C9228/P9228 TIMER 111-7FUNCTION DESCRIPTIONInterval Timer Function (Timer A and Timer B)The timer A and B module can generate an interrupt: the time

Strona 99

TIMER 1 S3C9228/P922811-8NOTE: When two 8-bit timers mode (TACON.7 <- "0": Timer A)TACON.6-.4MUX1/81/641/2561/512INTPND2.0TAOUTTAINTDIVRf

Strona 100

S3C9228/P9228 TIMER 111-91/11/81/641/2561/512NOTE: When two 8-bit timers mode (TACON.7 <- "0": Timer B)TBCON.6-.4MUXINTPND2.1TBINTDIVRfxt

Strona 102

TIMER 1 S3C9228/P922811-10NOTES

Strona 103

S3C9228/P9228 WATCH TIMER12-112 WATCH TIMEROVERVIEWWatch timer functions include real-time and watch-time measurement and interval timing for the syst

Strona 104

WATCH TIMER S3C9228/P922812-2WATCH TIMER CONTROL REGISTER (WTCON)The watch timer control register, WTCON is used to select the input clock source, th

Strona 105

S3C9228/P9228 WATCH TIMER12-3WATCH TIMER CIRCUIT DIAGRAMWT INT EnableWTCON.1WTCON.2WTCON.3WTCON.4WTCON.5WTCON.6Enable/DisableSelectorCircuitMUXINTPND2

Strona 106

WATCH TIMER S3C9228/P922812-4NOTES

Strona 107 - ADC — Add With Carry

S3C9228/P9228 LCD CONTROLLER/DRIVER13-113 LCD CONTROLLER/DRIVEROVERVIEWThe S3C9228/P9228 microcontroller can directly drive an up-to-128-dot (16segmen

Strona 108 - ADD — Add

LCD CONTROLLER/DRIVER S3C9228/P922813-2LCD CIRCUIT DIAGRAMSEG15/P5.3COM4/SEG19/P5.7COM7/SEG16/P5.416016Data BUSPortLatchLPOTDisplayRAM(Page1)PortLatch

Strona 109 - AND — Logical AND

S3C9228/P9228 LCD CONTROLLER/DRIVER13-3LCD RAM ADDRESS AREARAM addresses of page 1 are used as LCD data memory. When the bit value of a display segmen

Strona 110 - CALL — Call Procedure

LCD CONTROLLER/DRIVER S3C9228/P922813-4LCD MODE CONTROL REGISTER (LMOD)A LMOD is located in page 0, at address FEH, and is read/write addressable usin

Strona 111 - CCF — Complement Carry Flag

S3C9228/P9228 LCD CONTROLLER/DRIVER13-5LCD PORT CONTROL REGISTERThe LCD port control register LPOT is used to control LCD signal pins or normal I/O pi

Strona 112 - CLR — Clear

S3C9228/P92288-BIT CMOSMICROCONTROLLERSUSER'S MANUALRevision 1

Strona 113 - COM — Complement

S3C9228/P9228 MICROCONTROLLERS xixList of Register DescriptionsRegister Full Register Name PageIdentifier NumberADCON A/D Converter Control Register..

Strona 114 - CP — Compare

LCD CONTROLLER/DRIVER S3C9228/P922813-6LCD VOLTAGE DIVIDING RESISTORS1/5 BiasS3C9228/P9228VDDRRRRRLMOD.4VLC1VLC2VLC3VLC4VLC5VSS1/4 BiasS3C9228/P9228VD

Strona 115 - DEC — Decrement

S3C9228/P9228 LCD CONTROLLER/DRIVER13-71 FrameFRVDDVSSCOM0COM1COM2COM3COM4COM5COM6COM7COM1 VLC2 (VLC3)VLC4VSSVDDVLC1SEG0 VLC2 (VLC3)VLC4VSSVDDVLC1COM2

Strona 116 - DI — Disable Interrupts

LCD CONTROLLER/DRIVER S3C9228/P922813-81 FrameVDDVSS0 1 230 1 23COM1VSSVDDVLC1(VLC2)VLC3(VLC4)COM2VSSVDDVLC1(VLC2)VLC3(VLC4)COM3VSSVDDVLC1(VLC2)VLC3(V

Strona 117 - EI — Enable Interrupts

S3C9228/P9228 LCD CONTROLLER/DRIVER13-91 FrameVDDVSS012COM1VSSVDDVLC1(VLC2)VLC3(VLC4)COM2VSSVDDVLC1(VLC2)VLC3(VLC4)SEG0VSSVDDVLC1(VLC2)VLC3(VLC4)SEG1V

Strona 118 - IDLE — Idle Operation

LCD CONTROLLER/DRIVER S3C9228/P922813-10NOTES

Strona 119 - INC — Increment

S3C9228/P9228 A/D CONVERTER14-114 10-BIT ANALOG-TO-DIGITAL CONVERTEROVERVIEWThe 10-bit A/D converter (ADC) module uses successive approximation logic

Strona 120 - IRET — Interrupt Return

A/D CONVERTER S3C9228/P922814-2CONVERSION TIMINGThe A/D conversion process requires 4 steps (4 clock edges) to convert each bit and 10 clocks to set-

Strona 121 - JP — Jump

S3C9228/P9228 A/D CONVERTER14-3Conversion Data Register ADDATAH/ADDATALD1H/D2H, Page 0, Read Only.9 .8 .7 .6 .5 .4 .3 .2MSB LSB (ADDATAH)- - - - - - .

Strona 122 - JR — Jump Relative

A/D CONVERTER S3C9228/P922814-4S3C9228AD0-AD3AnalogInput PinVDD101C(VSS ≤ ADC input ≤ VDD)Figure 14-4. Recommended A/D Converter Circuit for Highest

Strona 123 - LD — Load

S3C9228/P9228 SERIAL I/O INTERFACE15-115 SERIAL I/O INTERFACEOVERVIEWSerial I/O modules, SIO can interface with various types of external device that

Strona 125 - LDC/LDE — Load Memory

SERIAL I/O INTERFACE S3C9228/P922815-2SIO CONTROL REGISTERS (SIOCON)The control register for serial I/O interface module, SIOCON, is located at E1H in

Strona 126

S3C9228/P9228 SERIAL I/O INTERFACE15-3SIO PRE-SCALER REGISTER (SIOPS)The prescaler register for serial I/O interface module, SIOPS, are located at E3H

Strona 127 - — Load Memory and Decrement

SERIAL I/O INTERFACE S3C9228/P922815-4SERIAL I/O TIMING DIAGRAM (SIO)SOTransmitCompleteSIO INTSet SIOCON.3DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0DI7 DI6 DI5 D

Strona 128 - — Load Memory and Increment

S3C9228/P9228 ELECTRICAL DATA16-116 ELECTRICAL DATAOVERVIEWIn this chapter, S3C9228/P9228 electrical characteristics are presented in tables and graph

Strona 129 - NOP — No Operation

ELECTRICAL DATA S3C9228/P922816-2Table 16-1. Absolute Maximum Ratings(TA = 25°C)Parameter Symbol Conditions Rating UnitSupply voltageVDD– – 0.3 to +

Strona 130 - OR — Logical OR

S3C9228/P9228 ELECTRICAL DATA16-3Table 16-2. D.C. Electrical Characteristics (Continued)(TA = – 25°C to + 85°C, VDD = 2.0 V to 5.5 V)Parameter

Strona 131 - POP — Pop From Stack

ELECTRICAL DATA S3C9228/P922816-4Table 16-2. D.C. Electrical Characteristics (Concluded)(TA = – 25°C to + 85°C, VDD = 2.0 V to 5.5 V)Parameter

Strona 132 - PUSH — Push To Stack

S3C9228/P9228 ELECTRICAL DATA16-5Table 16-3. Data Retention Supply Voltage in Stop Mode(TA = – 25 °C to + 85 °C)Parameter Symbol Conditions Min Ty

Strona 133 - RCF — Reset Carry Flag

ELECTRICAL DATA S3C9228/P922816-6Execution ofSTOP InstrctionRESETOccurs~~VDDDR~~Stop ModeOscillationStabilizationTImeNormalOperating ModeData Retentio

Strona 134 - RET — Return

S3C9228/P9228 ELECTRICAL DATA16-7Table 16-5. A.C. Electrical Characteristics(TA = – 25°C to + 85°C, VDD = 2.0 V to 5.5 V)Parameter Symbol Condit

Strona 135 - RL — Rotate Left

S3C9228/P9228 MICROCONTROLLERS xxiList of Instruction DescriptionsInstruction Full Instruction Name PageMnemonic NumberADC Add With Carry ...

Strona 136 - — Rotate Left Through Carry

ELECTRICAL DATA S3C9228/P922816-8Table 16-6. A/D Converter Electrical Characteristics(TA = – 25°C to + 85°C, VDD = 2.7 V to 5.5 V, VSS = 0 V)Par

Strona 137 - RR — Rotate Right

S3C9228/P9228 ELECTRICAL DATA16-9RESETtRSL0.2 VDDFigure 16-4. Input Timing for RESETRESETtKHtKL0.2VDDSCKtKCY0.8VDD0.8VDD0.2VDDtSIKtKSISISOtKSOOutput D

Strona 138 - Rotate Right Through Carry

ELECTRICAL DATA S3C9228/P922816-10Table 16-7. Main Oscillation Characteristics (TA = – 25°C to + 85°C)Oscillator Clock Configuration Parameter Te

Strona 139 - SBC — Subtract With Carry

S3C9228/P9228 ELECTRICAL DATA16-11Table 16-9. Main Oscillation Stabilization Time(TA = – 25 °C to + 85 °C, VDD = 2.0 V to 5.5 V)Oscillator Test

Strona 140 - SCF — Set Carry Flag

ELECTRICAL DATA S3C9228/P922816-12Table 16-10. Sub Oscillation Stabilization Time(TA = – 25 °C to + 85 °C, VDD = 2.0 V to 5.5 V)Oscillator Test

Strona 141 - SRA — Shift Right Arithmetic

S3C9228/P9228 ELECTRICAL DATA16-13 2 MHz6.25 kHz (main)/8.2 kHz(sub)1 2 6Supply Voltage (V)Instruction Clock = 1/4n x oscillator frequency (n = 1, 2,

Strona 142 - STOP — Stop Operation

ELECTRICAL DATA S3C9228/P922816-14NOTES

Strona 143 - SUB — Subtract

S3C9228/P9228 MECHANICAL DATA17-117 MECHANICAL DATAOVERVIEWThe S3C9228/P9228 microcontroller is currently available in a 42-pin SDIP and 44-pin QFP pa

Strona 144 - Test Complement Under Mask

MECHANICAL DATA S3C9228/P922817-244-QFP-1010B#44NOTE: Dimensions are in millimeters.10.00 ± 0.213.20 ± 0.310.00 ± 0.213.20 ± 0.3#10.35+ 0.10- 0.050.

Strona 145 - TM — Test Under Mask

S3C9228/P9228 S3P9228 OTP 18-118 S3P9228 OTPOVERVIEWThe S3P9228 single-chip CMOS microcontroller is the OTP (One Time Programmable) version of the S3

Strona 146 - XOR — Logical Exclusive OR

S3C9228/P9228 PRODUCT OVERVIEW1-11 PRODUCT OVERVIEWSAM88RCRI PRODUCT FAMILYSamsung's SAM88RCRI family of 8-bit single-chip CMOS microcontrollers

Strona 147 - 7 CLOCK CIRCUITS

S3P9228 OTP S3C9228/P922818-2 COM1/P6.2COM0/P6.3P0.0/TAOUT/INTP0.1/T1CLK/INTP0.2/INTP0.3/BUZ/INTP1.0/AD0/INTP1.1/AD1/INTSDAT/P1.2/AD2/INTSCLK/P1.3/AD

Strona 148

S3C9228/P9228 S3P9228 OTP 18-3Table 18-1. Descriptions of Pins Used to Read/Write the EPROMMain Chip During ProgrammingPin Name Pin Name Pin No. I/O

Strona 149 - S3C9228/P9228 CLOCK CIRCUITS

S3P9228 OTP S3C9228/P922818-4 Table 18-4. D.C. Electrical Characteristics(TA = – 25°C to + 85°C, VDD = 2.0 V to 5.5 V)Parameter Symbol Condit

Strona 150

S3C9228/P9228 S3P9228 OTP 18-52 MHz6.25 kHz (main)/8.2 kHz(sub)1 2 6Supply Voltage (V)Instruction Clock = 1/4n x oscillator frequency (n = 1, 2, 8, 1

Strona 151

S3P9228 OTP S3C9228/P922818-6 NOTES

Strona 152 - CLOCK CIRCUITS S3C9228/P9228

S3C9228/P9228 DEVELOPMENT TOOLS19-119 DEVELOPMENT TOOLSOVERVIEWSamsung provides a powerful and easy-to-use development support system in turn key form

Strona 153

DEVELOPMENT TOOLS S3C9228/P922819-2BUSSMDS2+RS-232CPODProbeAdapterPROM/OTP Writer UnitRAM Break/Display UnitTrace/Timer UnitSAM8 Base UnitPower Suppl

Strona 154

S3C9228/P9228 DEVELOPMENT TOOLS19-3TB9228 TARGET BOARDThe TB9228 target board is used for the S3C9228 microcontroller. It is supported by the SMDS2+ d

Strona 155 - 8 RESETRESET and POWER-DOWN

DEVELOPMENT TOOLS S3C9228/P922819-4Table 19-1. Power Selection Settings for TB9228"To User_VCC"SettingsOperating Mode CommentsTo User_VCCOf

Strona 156 - POWER-DOWN MODES

S3C9228/P9228 DEVELOPMENT TOOLS19-5SMDS2+ Selection (SAM8)In order to write data into program memory that is available in SMDS2+, the target board sho

Strona 157

PRODUCT OVERVIEW S3C9228/P92281-2FEATURESCPU• SAM88RCRI CPU coreMemory• 8192 × 8 bits program memory (ROM)• 264 × 8 bits data memory (RAM)(Including L

Strona 158

DEVELOPMENT TOOLS S3C9228/P922819-6J10142-SDIPJ10244-QFP1234567891011121314151617181920214344454642414039383736353433323130292827262524232250494847P6

Strona 159

S3C9228/P9228 DEVELOPMENT TOOLS19-7 Target Board Target SystemTarget Cable for ConnectorPart Name: AP42SDOrder Code: SM6538J1011 4221 22J1011 4221 225

Strona 160

DEVELOPMENT TOOLS S3C9228/P922819-8NOTES

Strona 161 - 9 I/O PORTS

S3C9228/P9228 PRODUCT OVERVIEW1-11 PRODUCT OVERVIEWSAM88RCRI PRODUCT FAMILYSamsung's SAM88RCRI family of 8-bit single-chip CMOS microcontrollers

Strona 162

PRODUCT OVERVIEW S3C9228/P92281-2FEATURESCPU• SAM88RCRI CPU coreMemory• 8192 × 8 bits program memory (ROM)• 264 × 8 bits data memory (RAM)(Including L

Strona 163 - S3C9228/P9228 I/O PORTS

S3C9228/P9228 PRODUCT OVERVIEW1-3BLOCK DIAGRAM8-Bit Timer/CounterAPort I/O and InterruptControlSAM88RCRI CPURESETXINXTINI/O Port 08-KbyteROM264-ByteRe

Strona 164

PRODUCT OVERVIEW S3C9228/P92281-4PIN ASSIGNMENTS12345678910111213141516171819202122S3C9228(44-QFP)P1.0/AD0/INTP1.1/AD1/INTP1.2/AD2/INTP1.3/AD3/INTVDDV

Strona 165

S3C9228/P9228 PRODUCT OVERVIEW1-5COM1/P6.2COM0/P6.3P0.0/TAOUT/INTP0.1/T1CLK/INTP0.2/INTP0.3/BUZ/INTP1.0/AD0/INTP1.1/AD1/INTP1.2/AD2/INTP1.3/AD3/INTVDD

Strona 166

PRODUCT OVERVIEW S3C9228/P92281-6PIN DESCRIPTIONSTable 1-1. Pin DescriptionsPin Names PinTypePin Description CircuitNumberPinNumbersSharePinsP0.0P0.1P

Strona 167

S3C9228/P9228 PRODUCT OVERVIEW1-7 Table 1-1. Pin Descriptions (Continued)Pin Names PinTypePin Description CircuitNumberPinNumbersSharePinsVDD, VSS– Po

Strona 168

S3C9228/P9228 PRODUCT OVERVIEW1-3BLOCK DIAGRAM8-Bit Timer/CounterAPort I/O and InterruptControlSAM88RCRI CPURESETXINXTINI/O Port 08-KbyteROM264-ByteRe

Strona 169

PRODUCT OVERVIEW S3C9228/P92281-8PIN CIRCUIT DIAGRAMSRESETVDDPull-UpResistorNoise FilterFigure 1-4. Pin Circuit Type BVDDOutputOutputDisableDataVSSFig

Strona 170

S3C9228/P9228 PRODUCT OVERVIEW1-9VDDPull-upEnableVDDI/OPull-upResistorOutputDisableDataExternalInterruptInputOpen-DrainFigure 1-7. Pin Circuit Type E-

Strona 171

PRODUCT OVERVIEW S3C9228/P92281-10OutSEG/COMVLC3OutputDisableVLC2VLC1VSSVLC4VLC5Figure 1-9. Pin Circuit Type H-23

Strona 172

S3C9228/P9228 PRODUCT OVERVIEW1-11VDDPull-upEnableVDDI/OPull-upResistorDataOpen-Drain ENCircuitType H-23LCD Out ENCOM/SEGOutputDisableFigure 1-10. Pin

Strona 173

PRODUCT OVERVIEW S3C9228/P92281-12VDDPull-upEnableVDDI/OPull-upResistorDataOpen-Drain ENCircuitType H-23LCD Out ENCOM/SEGOutputDisablePortEnable(LMOD.

Strona 174

S3C9228/P9228 ADDRESS SPACES2-12 ADDRESS SPACESOVERVIEWThe S3C9228/P9228 microcontroller has three kinds of address space:— Program memory (ROM)— Inte

Strona 175

ADDRESS SPACES S3C9228/P92282-2PROGRAM MEMORY (ROM)Program memory (ROM) stores program code or table data. The S3C9228 has 8K bytes of mask-programabl

Strona 176

S3C9228/P9228 ADDRESS SPACES2-3REGISTER ARCHITECTUREThe upper 72 bytes of the S3C9228/P9228's internal register file are addressed as working reg

Strona 177 - 10 BASIC TIMER

ADDRESS SPACES S3C9228/P92282-4COMMON WORKING REGISTER AREA (C0H–CFH)The SAM88RCRI register architecture provides an efficient method of working regis

Strona 178

S3C9228/P9228 ADDRESS SPACES2-5SYSTEM STACKS3C9-series microcontrollers use the system stack for subroutine calls and returns and to store data. The P

Strona 179

PRODUCT OVERVIEW S3C9228/P92281-4PIN ASSIGNMENTS12345678910111213141516171819202122S3C9228(44-QFP)P1.0/AD0/INTP1.1/AD1/INTP1.2/AD2/INTP1.3/AD3/INTVDDV

Strona 180

ADDRESS SPACES S3C9228/P92282-6++ PROGRAMMING TIP — Standard Stack Operations Using PUSH and POPThe following example shows you how to perform stack o

Strona 181 - 11 TIMER 1

S3C9228/P9228 ADDRESSING MODES3-13 ADDRESSING MODESOVERVIEWInstructions that are stored in program memory are fetched for execution using the program

Strona 182

ADDRESSING MODES S3C9228/P92283-2REGISTER ADDRESSING MODE (R)In Register addressing mode, the operand is the content of a specified register (see Figu

Strona 183 - S3C9228/P9228 TIMER 1

S3C9228/P9228 ADDRESSING MODES3-3INDIRECT REGISTER ADDRESSING MODE (IR)In Indirect Register (IR) addressing mode, the content of the specified registe

Strona 184 - TIMER 1 S3C9228/P9228

ADDRESSING MODES S3C9228/P92283-4INDIRECT REGISTER ADDRESSING MODE (Continued)dstOPCODEPAIRPoints toRigister PairExampleInstructionReferencesProgramMe

Strona 185

S3C9228/P9228 ADDRESSING MODES3-5INDIRECT REGISTER ADDRESSING MODE (Continued)dstOPCODEOPERAND4-BitWorkingRegisterAddressPoint to theWoking Register(1

Strona 186

ADDRESSING MODES S3C9228/P92283-6INDIRECT REGISTER ADDRESSING MODE (Concluded)dstOPCODE4-Bit WorkingRegister AddressSample Instructions:LCD R5,@RR6 ;

Strona 187

S3C9228/P9228 ADDRESSING MODES3-7INDEXED ADDRESSING MODE (X)Indexed (X) addressing mode adds an offset value to a base address during instruction exec

Strona 188

ADDRESSING MODES S3C9228/P92283-8INDEXED ADDRESSING MODE (Continued)Point to WorkingRegister Pair(1 of 8)LSB Selects16-Bitaddressadded tooffsetdstOPCO

Strona 189

S3C9228/P9228 ADDRESSING MODES3-9INDEXED ADDRESSING MODE (Concluded)Point to WorkingRegister Pair(1 of 8)LSB Selects16-Bitaddressadded tooffsetProgram

Strona 190

S3C9228/P9228 PRODUCT OVERVIEW1-5COM1/P6.2COM0/P6.3P0.0/TAOUT/INTP0.1/T1CLK/INTP0.2/INTP0.3/BUZ/INTP1.0/AD0/INTP1.1/AD1/INTP1.2/AD2/INTP1.3/AD3/INTVDD

Strona 191 - 12 WATCH TIMER

ADDRESSING MODES S3C9228/P92283-10DIRECT ADDRESS MODE (DA)In Direct Address (DA) mode, the instruction provides the operand's 16-bit memory addre

Strona 192

S3C9228/P9228 ADDRESSING MODES3-11DIRECT ADDRESS MODE (Continued)OPCODEProgram MemoryUpper Address ByteProgramMemoryAddressUsedLower Address ByteSampl

Strona 193 - WATCH TIMER CIRCUIT DIAGRAM

ADDRESSING MODES S3C9228/P92283-12RELATIVE ADDRESS MODE (RA)In Relative Address (RA) mode, a two's-complement signed displacement between – 128

Strona 194 - WATCH TIMER S3C9228/P9228

S3C9228/P9228 CONTROL REGISTERS4-14 CONTROL REGISTERSOVERVIEWIn this section, detailed descriptions of the S3C9228/P9228 control registers are present

Strona 195 - 13 LCD CONTROLLER/DRIVER

CONTROL REGISTERS S3C9228/P92284-2Table 4-1. System and Peripheral Control Registers (Page 0)Register Name Mnemonic Address (Page 0) R/WDecimal HexPor

Strona 196 - LCD CIRCUIT DIAGRAM

S3C9228/P9228 CONTROL REGISTERS4-3Table 4-1. System and Peripheral Control Registers (Page 0)Register Name Mnemonic Address (Page 0) R/WDecimal HexLoc

Strona 197

CONTROL REGISTERS S3C9228/P92284-4FLAGS - System Flags Register.7.6.5Bit IdentifierRESET RESET ValueRead/WriteR = Read-onlyW = Write-onlyR/W = Read/wr

Strona 198

S3C9228/P9228 CONTROL REGISTERS4-5ADCON — A/D Converter Control Register D0HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – 0 0 0 0 0 0Read/

Strona 199 - LCD PORT CONTROL REGISTER

CONTROL REGISTERS S3C9228/P92284-6BTCON — Basic Timer Control Register DCHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 0Read/Wr

Strona 200

S3C9228/P9228 CONTROL REGISTERS4-7CLKCON — System Clock Control Register D4HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 0Re

Strona 201 - 0 1 2 3 74 65 0 1 2 3 74 65

PRODUCT OVERVIEW S3C9228/P92281-6PIN DESCRIPTIONSTable 1-1. Pin DescriptionsPin Names PinTypePin Description CircuitNumberPinNumbersSharePinsP0.0P0.1P

Strona 202

CONTROL REGISTERS S3C9228/P92284-8FLAGS — System Flags Register D5HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Valuex x x x – – – –Read/WriteR/W

Strona 203

S3C9228/P9228 CONTROL REGISTERS4-9INTPND1 — Interrupt Pending Register 1 D6HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 0Read/

Strona 204

CONTROL REGISTERS S3C9228/P92284-10INTPND2 — Interrupt Pending Register 2 D7HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – 0 0 0 0 0 0Read

Strona 205 - FUNCTION DESCRIPTION

S3C9228/P9228 CONTROL REGISTERS4-11LMOD — LCD Mode Control Register FEHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– 0 0 0 0 0 0 0Read/Write

Strona 206

CONTROL REGISTERS S3C9228/P92284-12LPOT — LCD Port Control Register D8HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– 0 0 0 0 0 0 0Read/Write

Strona 207 - BLOCK DIAGRAM

S3C9228/P9228 CONTROL REGISTERS4-13OSCCON — Oscillator Control Register D3HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – – 0 0 – 0Read

Strona 208 - SS ≤ ADC input ≤ VDD)

CONTROL REGISTERS S3C9228/P92284-14P0CON – Port 0 Control Register EBHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0

Strona 209 - 15 SERIAL I/O INTERFACE

S3C9228/P9228 CONTROL REGISTERS4-15P0INT –Port 0 Interrupt Enable Register EDHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – – 0 0 0 0R

Strona 210

CONTROL REGISTERS S3C9228/P92284-16P0PUR –Port 0 Pull-up Resistors Enable Register ECHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 211 - SIO BLOCK DIAGRAM

S3C9228/P9228 CONTROL REGISTERS4-17P0EDGE –Port 0 Interrupt Edge Selection Register EEHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 212

S3C9228/P9228 PRODUCT OVERVIEW1-7 Table 1-1. Pin Descriptions (Continued)Pin Names PinTypePin Description CircuitNumberPinNumbersSharePinsVDD, VSS– Po

Strona 213 - 16 ELECTRICAL DATA

CONTROL REGISTERS S3C9228/P92284-18P1CON – Port 1 Control Register EFHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0

Strona 214

S3C9228/P9228 CONTROL REGISTERS4-19P1INT –Port 1 Interrupt Enable Register F1HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – – 0 0 0 0R

Strona 215

CONTROL REGISTERS S3C9228/P92284-20P1PUR –Port 1 Pull-up Resistors Enable Register F0HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 216

S3C9228/P9228 CONTROL REGISTERS4-21P1EDGE –Port 1 Interrupt Edge Selection Register F2HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 217

CONTROL REGISTERS S3C9228/P92284-22P2CON – Port 2 Control Register F3HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0

Strona 218

S3C9228/P9228 CONTROL REGISTERS4-23P2PUR –Port 2 Pull-up Resistors Enable Register F4HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 219

CONTROL REGISTERS S3C9228/P92284-24P3CON – Port 3 Control Register F5HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 220 - INTHtINTL

S3C9228/P9228 CONTROL REGISTERS4-25P3INT –Port 3 Interrupt Enable Register F7HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – – – – 0 0R

Strona 221

CONTROL REGISTERS S3C9228/P92284-26P3PUR –Port 3 Pull-up Resistors Enable Register F6HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 222

S3C9228/P9228 CONTROL REGISTERS4-27P3EDGE –Port 3 Interrupt Edge Selection Register F8HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 223 - DD-0.1 V

Important NoticeThe information in this publication has beencarefully checked and is believed to be entirelyaccurate at the time of publication. Samsu

Strona 224

PRODUCT OVERVIEW S3C9228/P92281-8PIN CIRCUIT DIAGRAMSRESETVDDPull-UpResistorNoise FilterFigure 1-4. Pin Circuit Type BVDDOutputOutputDisableDataVSSFig

Strona 225

CONTROL REGISTERS S3C9228/P92284-28P4CONH – Port 4 Control Register High Byte F9HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Val

Strona 226 - ELECTRICAL DATA S3C9228/P9228

S3C9228/P9228 CONTROL REGISTERS4-29P4CONL–Port 4 Control Register Low Byte FAHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 0R

Strona 227 - 17 MECHANICAL DATA

CONTROL REGISTERS S3C9228/P92284-30P5CONH – Port 5 Control Register High Byte FBHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0

Strona 228 - 44-QFP-1010B

S3C9228/P9228 CONTROL REGISTERS4-31P5CONL – Port 5 Control Register Low Byte FCHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0

Strona 229 - 18 S3P9228 OTP

CONTROL REGISTERS S3C9228/P92284-32P6CON – Port 6 Control Register High Byte FDHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0

Strona 230 - (42-SDIP)

S3C9228/P9228 CONTROL REGISTERS4-33SIOCON — SIO Control Register E1HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 –Read/WriteR/W

Strona 231 - S3C9228/P9228 S3P9228 OTP

CONTROL REGISTERS S3C9228/P92284-34STPCON – Stop Control Register E0HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 0Read/Write

Strona 232

S3C9228/P9228 CONTROL REGISTERS4-35SYM — System Mode Register DFHBit Identifier.7.6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – – 0 0 0 0Read/Write– – – –

Strona 233

CONTROL REGISTERS S3C9228/P92284-36TACON — Timer 1/A Control Register BBHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 –Read/Wri

Strona 234 - S3P9228 OTP S3C9228/P9228

S3C9228/P9228 CONTROL REGISTERS4-37TBCON — Timer B Control Register BAHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– 0 0 0 0 0 0 –Read/Write

Strona 235 - 19 DEVELOPMENT TOOLS

S3C9228/P9228 PRODUCT OVERVIEW1-9VDDPull-upEnableVDDI/OPull-upResistorOutputDisableDataExternalInterruptInputOpen-DrainFigure 1-7. Pin Circuit Type E-

Strona 236

CONTROL REGISTERS S3C9228/P92284-38WTCON — Watch Timer Control Register DAHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 –Read/W

Strona 237 - TB9228 TARGET BOARD

S3C9228/P9228 INTERRUPT STRUCTURE5-15 INTERRUPT STRUCTUREOVERVIEWThe SAM88RCRI interrupt structure has two basic components: a vector, and sources. Th

Strona 238

INTERRUPT STRUCTURE S3C9228/P92285-2INTERRUPT PENDING FUNCTION TYPESWhen the interrupt service routine has executed, the application program's se

Strona 239

S3C9228/P9228 INTERRUPT STRUCTURE5-3INTERRUPT SOURCE SERVICE SEQUENCEThe interrupt request polling and servicing sequence is as follows:1. A source ge

Strona 240

INTERRUPT STRUCTURE S3C9228/P92285-4S3C9228/P9228 INTERRUPT STRUCTUREThe S3C9228/P9228 microcontroller has fourteen peripheral interrupt sources:— Tim

Strona 241

S3C9228/P9228 INTERRUPT STRUCTURE5-5SYM.3(EI, DI)P0INT.0P0.0 External InterriptP0INT.1P0.1 External InterriptP0.3 External InterriptP0.2 External Inte

Strona 242

INTERRUPT STRUCTURE S3C9228/P92285-6Programming Tip — How to clear an interrupt pending bitAs the following examples are shown, a load instruction sho

Strona 243

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-16 SAM88RCRI INSTRUCTION SETOVERVIEWThe SAM88RCRI instruction set is designed to support the large register f

Strona 244

SAM88RI INSTRUCTION SET S3C9228/P92286-2Table 6-1. Instruction Group SummaryMnemonic Operands InstructionLoad InstructionsCLR dst ClearLD dst,src Load

Strona 245

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-3Table 6-1. Instruction Group Summary (Continued)Mnemonic Operands InstructionProgram Control InstructionsCAL

Strona 246 - PIN ASSIGNMENTS

PRODUCT OVERVIEW S3C9228/P92281-10OutSEG/COMVLC3OutputDisableVLC2VLC1VSSVLC4VLC5Figure 1-9. Pin Circuit Type H-23

Strona 247

SAM88RI INSTRUCTION SET S3C9228/P92286-4FLAGS REGISTER (FLAGS)The FLAGS register contains eight bits that describe the current status of CPU operation

Strona 248 - PIN DESCRIPTIONS

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-5INSTRUCTION SET NOTATIONTable 6-2. Flag Notation ConventionsFlag DescriptionC Carry flagZ Zero flagS Sign fl

Strona 249

SAM88RI INSTRUCTION SET S3C9228/P92286-6Table 6-4. Instruction Notation ConventionsNotation Description Actual Operand Rangecc Condition code See list

Strona 250 - PIN CIRCUIT DIAGRAMS

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-7Table 6-5. Opcode Quick ReferenceOPCODE MAPLOWER NIBBLE (HEX)– 0 1 2 3 4 5 6 7U0 DECR1DECIR1ADDr1,r2ADDr1,Ir

Strona 251

SAM88RI INSTRUCTION SET S3C9228/P92286-8Table 6-5. Opcode Quick Reference (Continued)OPCODE MAPLOWER NIBBLE (HEX)– 8 9 A B C D E FU0 LDr1,R2LDr2,R1JRc

Strona 252

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-9CONDITION CODESThe opcode of a conditional jump always contains a 4-bit field called the condition code (cc)

Strona 253

SAM88RI INSTRUCTION SET S3C9228/P92286-10INSTRUCTION DESCRIPTIONSThis section contains detailed information and programming examples for each instruct

Strona 254

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-11ADC — Add With CarryADC dst,srcOperation: dst ¨ dst + src + cThe source operand, along with the sett

Strona 255 - 2 ADDRESS SPACES

SAM88RI INSTRUCTION SET S3C9228/P92286-12ADD — AddADD dst,srcOperation: dst ¨ dst + srcThe source operand is added to the destination operand and

Strona 256 - PROGRAM MEMORY (ROM)

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-13AND — Logical ANDAND dst,srcOperation: dst ¨ dst AND srcThe source operand is logically ANDed with the

Strona 257 - REGISTER ARCHITECTURE

S3C9228/P9228 PRODUCT OVERVIEW1-11VDDPull-upEnableVDDI/OPull-upResistorDataOpen-Drain ENCircuitType H-23LCD Out ENCOM/SEGOutputDisableFigure 1-10. Pin

Strona 258 - ADDRESS SPACES S3C9228/P9228

SAM88RI INSTRUCTION SET S3C9228/P92286-14CALL — Call ProcedureCALL dstOperation: SP ¨ SP – 1@SP ¨ PCLSP ¨ SP –1@SP ¨ PCHPC ¨ dstThe current contents

Strona 259 - SYSTEM STACK

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-15CCF — Complement Carry FlagCCFOperation: C ¨ NOT CThe carry flag (C) is complemented. If C = "1&

Strona 260

SAM88RI INSTRUCTION SET S3C9228/P92286-16CLR — ClearCLR dstOperation: dst ¨ "0"The destination location is cleared to "0".Flags

Strona 261 - 3 ADDRESSING MODES

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-17COM — ComplementCOM dstOperation: dst ¨ NOT dstThe contents of the destination location are complemente

Strona 262

SAM88RI INSTRUCTION SET S3C9228/P92286-18CP — CompareCP dst,srcOperation: dst – srcThe source operand is compared to (subtracted from) the destinatio

Strona 263

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-19DEC — DecrementDEC dstOperation: dst ¨ dst – 1The contents of the destination operand are decremented by

Strona 264

SAM88RI INSTRUCTION SET S3C9228/P92286-20DI — Disable InterruptsDIOperation: SYM (2) ¨ 0Bit zero of the system mode register, SYM.2, is cleared to

Strona 265

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-21EI — Enable InterruptsEIOperation: SYM (2) ¨ 1An EI instruction sets bit 2 of the system mode register,

Strona 266

SAM88RI INSTRUCTION SET S3C9228/P92286-22IDLE — Idle OperationIDLEOperation:The IDLE instruction stops the CPU clock while allowing system clock osci

Strona 267 - (see Figure 3-9)

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-23INC — IncrementINC dstOperation: dst ¨ dst + 1The contents of the destination operand are incremented

Strona 268

PRODUCT OVERVIEW S3C9228/P92281-12VDDPull-upEnableVDDI/OPull-upResistorDataOpen-Drain ENCircuitType H-23LCD Out ENCOM/SEGOutputDisablePortEnable(LMOD.

Strona 269 - Program Memory

SAM88RI INSTRUCTION SET S3C9228/P92286-24IRET — Interrupt ReturnIRET IRETOperation: FLAGS ¨ @SPSP ¨ SP + 1PC ¨ @SPSP ¨ SP + 2SYM(2) ¨ 1

Strona 270

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-25JP — JumpJP cc,dst (Conditional)JP dst (Unconditional)Operation: If cc is true, PC ¨ dstThe condition

Strona 271

SAM88RI INSTRUCTION SET S3C9228/P92286-26JR — Jump RelativeJR cc,dstOperation: If cc is true, PC ¨ PC + dstIf the condition specified by the c

Strona 272

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-27LD — LoadLD dst,srcOperation: dst ¨ srcThe contents of the source are loaded into the destination. The s

Strona 273 - 4 CONTROL REGISTERS

SAM88RI INSTRUCTION SET S3C9228/P92286-28LD — LoadLD (Continued)Examples: Given: R0 = 01H, R1 = 0AH, register 00H = 01H, register 01H = 20H,register

Strona 274

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-29LDC/LDE — Load MemoryLDC/LDE dst,srcOperation: dst ¨ srcThis instruction loads a byte from program or da

Strona 275

SAM88RI INSTRUCTION SET S3C9228/P92286-30LDC/LDE — Load MemoryLDC/LDE (Continued)Examples: Given: R0 = 11H, R1 = 34H, R2 = 01H, R3 = 04H, R4 = 00H, R

Strona 276 - FLAGS - System Flags Register

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-31LDCD/LDED — Load Memory and DecrementLDCD/LDED dst,srcOperation: dst ¨ srcrr ¨ rr – 1These instruction

Strona 277

SAM88RI INSTRUCTION SET S3C9228/P92286-32LDCI/LDEI — Load Memory and IncrementLDCI/LDEI dst,srcOperation: dst ¨ srcrr ¨ rr + 1These instruction

Strona 278

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-33NOP — No OperationNOPOperation: No action is performed when the CPU executes this instruction. Typically,

Strona 279

S3C9228/P9228 ADDRESS SPACES2-12 ADDRESS SPACESOVERVIEWThe S3C9228/P9228 microcontroller has three kinds of address space:— Program memory (ROM)— Inte

Strona 280 - — System Flags Register D5H

SAM88RI INSTRUCTION SET S3C9228/P92286-34OR — Logical OROR dst,srcOperation: dst ¨ dst OR srcThe source operand is logically ORed with the destin

Strona 281

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-35POP — Pop From StackPOP dstOperation: dst ¨ @SPSP ¨ SP + 1The contents of the location addressed by

Strona 282

SAM88RI INSTRUCTION SET S3C9228/P92286-36PUSH — Push To StackPUSH srcOperation: SP ¨ SP – 1@SP ¨ srcA PUSH instruction decrements the stack poi

Strona 283

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-37RCF — Reset Carry FlagRCF RCFOperation: C ¨ 0The carry flag is cleared to logic zero, regardless of its

Strona 284

SAM88RI INSTRUCTION SET S3C9228/P92286-38RET — ReturnRETOperation: PC ¨ @SPSP ¨ SP + 2The RET instruction is normally used to return to the pre

Strona 285

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-39RL — Rotate LeftRL dstOperation: C ¨ dst (7)dst (0) ¨ dst (7)dst (n + 1) ¨ dst (n), n = 0–6The co

Strona 286

SAM88RI INSTRUCTION SET S3C9228/P92286-40RLC — Rotate Left Through CarryRLC dstOperation: dst (0) ¨ CC ¨ dst (7)dst (n + 1) ¨ dst (n), n = 0–

Strona 287

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-41RR — Rotate RightRR dstOperation: C ¨ dst (0)dst (7) ¨ dst (0)dst (n) ¨ dst (n + 1), n = 0–6The c

Strona 288

SAM88RI INSTRUCTION SET S3C9228/P92286-42RRC — Rotate Right Through CarryRRC dstOperation: dst (7) ¨ CC ¨ dst (0)dst (n) ¨ dst (n + 1), n = 0

Strona 289

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-43SBC — Subtract With CarrySBC dst,srcOperation: dst ¨ dst – src – cThe source operand, along with the

Strona 290

ADDRESS SPACES S3C9228/P92282-2PROGRAM MEMORY (ROM)Program memory (ROM) stores program code or table data. The S3C9228 has 8K bytes of mask-programabl

Strona 291

SAM88RI INSTRUCTION SET S3C9228/P92286-44SCF — Set Carry FlagSCFOperation: C ¨ 1The carry flag (C) is set to logic one, regardless of its previous

Strona 292

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-45SRA — Shift Right ArithmeticSRA dstOperation: dst (7) ¨ dst (7)C ¨ dst (0)dst (n) ¨ dst (n + 1), n

Strona 293

SAM88RI INSTRUCTION SET S3C9228/P92286-46STOP — Stop OperationSTOPOperation:The STOP instruction stops both the CPU clock and system clock and causes

Strona 294

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-47SUB — SubtractSUB dst,srcOperation: dst ¨ dst – srcThe source operand is subtracted from the destinatio

Strona 295

SAM88RI INSTRUCTION SET S3C9228/P92286-48TCM — Test Complement Under MaskTCM dst,srcOperation: (NOT dst) AND srcThis instruction tests selected bit

Strona 296

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-49TM — Test Under MaskTM dst,srcOperation: dst AND srcThis instruction tests selected bits in the destinat

Strona 297

SAM88RI INSTRUCTION SET S3C9228/P92286-50XOR — Logical Exclusive ORXOR dst,srcOperation: dst ¨ dst XOR srcThe source operand is logically exclusiv

Strona 298

S3C9228/P9228 CLOCK CIRCUITS7-17 CLOCK CIRCUITSOVERVIEWThe S3C9228 microcontroller has two oscillator circuits: a main clock, and a sub clock circuit.

Strona 299

CLOCK CIRCUITS S3C9228/P92287-2MAIN OSCILLATOR CIRCUITSXINXOUTFigure 7-1. Crystal/Ceramic OscillatorXINXOUTFigure 7-2. External OscillatorXINXOUTRFigu

Strona 300

S3C9228/P9228 CLOCK CIRCUITS7-3CLOCK STATUS DURING POWER-DOWN MODESThe two power-down modes, Stop mode and Idle mode, affect the system clock as follo

Strona 301

S3C9228/P9228 ADDRESS SPACES2-3REGISTER ARCHITECTUREThe upper 72 bytes of the S3C9228/P9228's internal register file are addressed as working reg

Strona 302

CLOCK CIRCUITS S3C9228/P92287-4SYSTEM CLOCK CONTROL REGISTER (CLKCON)The system clock control register, CLKCON, is located in address D4H. It is read/

Strona 303

S3C9228/P9228 CLOCK CIRCUITS7-5OSCILLATOR CONTROL REGISTER (OSCCON)The oscillator control register, OSCCON, is located in address D3H. It is read/writ

Strona 304

CLOCK CIRCUITS S3C9228/P92287-6SWITCHING THE CPU CLOCKData loadings in the oscillator control register, OSCCON, determine whether a main or a sub cloc

Strona 305 - — SIO Control Register E1H

S3C9228/P9228 CLOCK CIRCUITS7-7STOP CONTROL REGISTER (STPCON)The STOP control register, STPCON, is located in address E0H. It is read/write addressabl

Strona 306 - – Stop Control Register E0H

CLOCK CIRCUITS S3C9228/P92287-8NOTES

Strona 307 - — System Mode Register DFH

S3C9228/P9228 RESETRESET and POWER-DOWN8-18 RESETRESET and POWER-DOWNSYSTEM RESETOVERVIEWDuring a power-on reset, the voltage at VDD goes to High leve

Strona 308

RESETRESET and POWER-DOWN S3C9228/P92288-2POWER-DOWN MODESSTOP MODEStop mode is invoked by the instruction STOP. In Stop mode, the operation of the CP

Strona 309

S3C9228/P9228 RESETRESET and POWER-DOWN8-3Using an Internal Interrupt to Release Stop ModeAn internal interrupt, watch timer, can be used to release s

Strona 310

RESETRESET and POWER-DOWN S3C9228/P92288-4HARDWARE RESET RESET VALUESTable 8-1 list the values for CPU and system registers, peripheral control regist

Strona 311 - 5 INTERRUPT STRUCTURE

S3C9228/P9228 RESETRESET and POWER-DOWN8-5Table 8-1. Register Values after RESET RESET (Continued)Register Name Mnemonic AddressBit Values after RESET

Strona 312

ADDRESS SPACES S3C9228/P92282-4COMMON WORKING REGISTER AREA (C0H–CFH)The SAM88RCRI register architecture provides an efficient method of working regis

Strona 313

RESETRESET and POWER-DOWN S3C9228/P92288-6NOTES

Strona 314

S3C9228/P9228 I/O PORTS9-19 I/O PORTSOVERVIEWThe S3C9228/P9228 microcontroller has seven bit-programmable I/O ports, P0-P6. Port 0 is 6-bit port, port

Strona 315

I/O PORTS S3C9228/P92289-2PORT DATA REGISTERSTable 9-2 gives you an overview of the register locations of all seven S3C9228 I/O port data registers. D

Strona 316

S3C9228/P9228 I/O PORTS9-3PORT 0Port 0 is an 6-bit I/O port with individually configurable pins. Port 0 pins are accessed directly by writing orreadin

Strona 317 - 6 SAM88RCRI INSTRUCTION SET

I/O PORTS S3C9228/P92289-4Port 0 Control Register (P0CON)EBH, Page 0, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBP0.3/BUZ(INT)P0CON bit-pair pin configuration s

Strona 318

S3C9228/P9228 I/O PORTS9-5Port 0 Interrupt Pending Bits (INTPND1.3-.0)D6H, Page 0, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBINTPND1 bit configuration settings

Strona 319

I/O PORTS S3C9228/P92289-6PORT 1Port 1 is an 4-bit I/O port with individually configurable pins. Port 1 pins are accessed directly by writing orreadin

Strona 320

S3C9228/P9228 I/O PORTS9-7Port 1 Interrupt Control Register (P1INT)F1H, Page 0, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBNot usedP1INT bit configuration setti

Strona 321

I/O PORTS S3C9228/P92289-8Port 1 Interrupt Edge Selection Register (P1EDGE)F2H, Page 0, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBP1EDGE bit configuration sett

Strona 322

S3C9228/P9228 I/O PORTS9-9PORT 2Port 2 is an 4-bit I/O port with individually configurable pins. Port 2 pins are accessed directly by writing orreadin

Strona 323

S3C9228/P9228 ADDRESS SPACES2-5SYSTEM STACKS3C9-series microcontrollers use the system stack for subroutine calls and returns and to store data. The P

Strona 324

I/O PORTS S3C9228/P92289-10Port 2 Pull-up Control Register (P2PUR)F4H, Page 0, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBP2PUR bit configuration settings:01Ena

Strona 325

S3C9228/P9228 I/O PORTS9-11PORT 3Port 3 is an 2-bit I/O port with individually configurable pins. Port 3 pins are accessed directly by writing orreadi

Strona 326

I/O PORTS S3C9228/P92289-12Port 3 Interrupt Control Register (P3INT)F7H, Page 0, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBNot usedP3INT bit configuration sett

Strona 327

S3C9228/P9228 I/O PORTS9-13Port 3 Interrupt Edge Selection Register (P3EDGE)F8H, Page 0, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBP3EDGE bit configuration set

Strona 328

I/O PORTS S3C9228/P92289-14PORT 4Port 4 is an 8-bit I/O port with individually configurable pins. Port 4 pins are accessed directly by writing orreadi

Strona 329

S3C9228/P9228 I/O PORTS9-15PORT 5Port 5 is an 8-bit I/O port with individually configurable pins. Port 5 pins are accessed directly by writing orreadi

Strona 330

I/O PORTS S3C9228/P92289-16PORT 6Port 6 is an 4-bit I/O port with individually configurable pins. Port 6 pins are accessed directly by writing orreadi

Strona 331

S3C9228/P9228 (Preliminary Spec) BASIC TIMER10-110 BASIC TIMEROVERVIEWBasic timer (BT) can be used in two different ways:— As a watchdog timer to prov

Strona 332

BASIC TIMER S3C9228/P9228 (Preliminary Spec)10-2BASIC TIMER CONTROL REGISTER (BTCON)The basic timer control register, BTCON, is used to select the inp

Strona 333

S3C9228/P9228 (Preliminary Spec) BASIC TIMER10-3BASIC TIMER FUNCTION DESCRIPTIONWatchdog Timer FunctionYou can program the basic timer overflow signal

Strona 334

S3C9228/P9228 MICROCONTROLLERS iiiPrefaceThe S3C9228/P9228 Microcontrollers User's Manual is designed for application designers and programmers w

Strona 335

ADDRESS SPACES S3C9228/P92282-6++ PROGRAMMING TIP — Standard Stack Operations Using PUSH and POPThe following example shows you how to perform stack o

Strona 336

BASIC TIMER S3C9228/P9228 (Preliminary Spec)10-4NOTE: During a power-on reset operation, the CPU is idle during the required oscillationstabilization

Strona 337

S3C9228/P9228 TIMER 111-111 TIMER 1ONE 16-BIT TIMER MODE (TIMER 1)The 16-bit timer 1 is used in one 16-bit timer or two 8-bit timers mode. If TACON.7

Strona 338

TIMER 1 S3C9228/P922811-2Timer 1 Control Register (TACON)You use the timer 1 control register, TACON, to— Enable the timer 1 operating (interval timer

Strona 339

S3C9228/P9228 TIMER 111-3NOTE: When one 16-bit timer mode (TACON.7 <- "1": Timer 1)TACON.6-.4MUX1/81/641/2561/512INTPND2.0TAOUTT1INT1/1DI

Strona 340

TIMER 1 S3C9228/P922811-4TWO 8-BIT TIMERS MODE (TIMER A and B)OVERVIEWThe 8-bit timer A and B are the 8-bit general-purpose timers. Timer A and B have

Strona 341

S3C9228/P9228 TIMER 111-5TACON and TBCON are located in page 0, at address BBH and BAH, and is read/write addressable usingregister addressing mode.A

Strona 342

TIMER 1 S3C9228/P922811-6Timer B Control Register (TBCON)BAH, R/W.7 .6 .5 .4 .3 .2 .1 .0MSB LSBTimer B match interrupt enable bit:0 = Disable match i

Strona 343

S3C9228/P9228 TIMER 111-7FUNCTION DESCRIPTIONInterval Timer Function (Timer A and Timer B)The timer A and B module can generate an interrupt: the time

Strona 344

TIMER 1 S3C9228/P922811-8NOTE: When two 8-bit timers mode (TACON.7 <- "0": Timer A)TACON.6-.4MUX1/81/641/2561/512INTPND2.0TAOUTTAINTDIVRf

Strona 345

S3C9228/P9228 TIMER 111-91/11/81/641/2561/512NOTE: When two 8-bit timers mode (TACON.7 <- "0": Timer B)TBCON.6-.4MUXINTPND2.1TBINTDIVRfxt

Strona 346

S3C9228/P9228 ADDRESSING MODES3-13 ADDRESSING MODESOVERVIEWInstructions that are stored in program memory are fetched for execution using the program

Strona 347

TIMER 1 S3C9228/P922811-10NOTES

Strona 348

S3C9228/P9228 WATCH TIMER12-112 WATCH TIMEROVERVIEWWatch timer functions include real-time and watch-time measurement and interval timing for the syst

Strona 349

WATCH TIMER S3C9228/P922812-2WATCH TIMER CONTROL REGISTER (WTCON)The watch timer control register, WTCON is used to select the input clock source, th

Strona 350

S3C9228/P9228 WATCH TIMER12-3WATCH TIMER CIRCUIT DIAGRAMWT INT EnableWTCON.1WTCON.2WTCON.3WTCON.4WTCON.5WTCON.6Enable/DisableSelectorCircuitMUXINTPND2

Strona 351

WATCH TIMER S3C9228/P922812-4NOTES

Strona 352

S3C9228/P9228 LCD CONTROLLER/DRIVER13-113 LCD CONTROLLER/DRIVEROVERVIEWThe S3C9228/P9228 microcontroller can directly drive an up-to-128-dot (16segmen

Strona 353

LCD CONTROLLER/DRIVER S3C9228/P922813-2LCD CIRCUIT DIAGRAMSEG15/P5.3COM4/SEG19/P5.7COM7/SEG16/P5.416016Data BUSPortLatchLPOTDisplayRAM(Page1)PortLatch

Strona 354

S3C9228/P9228 LCD CONTROLLER/DRIVER13-3LCD RAM ADDRESS AREARAM addresses of page 1 are used as LCD data memory. When the bit value of a display segmen

Strona 355

LCD CONTROLLER/DRIVER S3C9228/P922813-4LCD MODE CONTROL REGISTER (LMOD)A LMOD is located in page 0, at address FEH, and is read/write addressable usin

Strona 356

S3C9228/P9228 LCD CONTROLLER/DRIVER13-5LCD PORT CONTROL REGISTERThe LCD port control register LPOT is used to control LCD signal pins or normal I/O pi

Strona 357

ADDRESSING MODES S3C9228/P92283-2REGISTER ADDRESSING MODE (R)In Register addressing mode, the operand is the content of a specified register (see Figu

Strona 358

LCD CONTROLLER/DRIVER S3C9228/P922813-6LCD VOLTAGE DIVIDING RESISTORS1/5 BiasS3C9228/P9228VDDRRRRRLMOD.4VLC1VLC2VLC3VLC4VLC5VSS1/4 BiasS3C9228/P9228VD

Strona 359

S3C9228/P9228 LCD CONTROLLER/DRIVER13-71 FrameFRVDDVSSCOM0COM1COM2COM3COM4COM5COM6COM7COM1 VLC2 (VLC3)VLC4VSSVDDVLC1SEG0 VLC2 (VLC3)VLC4VSSVDDVLC1COM2

Strona 360

LCD CONTROLLER/DRIVER S3C9228/P922813-81 FrameVDDVSS0 1 230 1 23COM1VSSVDDVLC1(VLC2)VLC3(VLC4)COM2VSSVDDVLC1(VLC2)VLC3(VLC4)COM3VSSVDDVLC1(VLC2)VLC3(V

Strona 361

S3C9228/P9228 LCD CONTROLLER/DRIVER13-91 FrameVDDVSS012COM1VSSVDDVLC1(VLC2)VLC3(VLC4)COM2VSSVDDVLC1(VLC2)VLC3(VLC4)SEG0VSSVDDVLC1(VLC2)VLC3(VLC4)SEG1V

Strona 362

LCD CONTROLLER/DRIVER S3C9228/P922813-10NOTES

Strona 363

S3C9228/P9228 A/D CONVERTER14-114 10-BIT ANALOG-TO-DIGITAL CONVERTEROVERVIEWThe 10-bit A/D converter (ADC) module uses successive approximation logic

Strona 364

A/D CONVERTER S3C9228/P922814-2CONVERSION TIMINGThe A/D conversion process requires 4 steps (4 clock edges) to convert each bit and 10 clocks to set-

Strona 365

S3C9228/P9228 A/D CONVERTER14-3Conversion Data Register ADDATAH/ADDATALD1H/D2H, Page 0, Read Only.9 .8 .7 .6 .5 .4 .3 .2MSB LSB (ADDATAH)- - - - - - .

Strona 366

A/D CONVERTER S3C9228/P922814-4S3C9228AD0-AD3AnalogInput PinVDD101C(VSS ≤ ADC input ≤ VDD)Figure 14-4. Recommended A/D Converter Circuit for Highest

Strona 367

S3C9228/P9228 SERIAL I/O INTERFACE15-115 SERIAL I/O INTERFACEOVERVIEWSerial I/O modules, SIO can interface with various types of external device that

Strona 368

S3C9228/P9228 ADDRESSING MODES3-3INDIRECT REGISTER ADDRESSING MODE (IR)In Indirect Register (IR) addressing mode, the content of the specified registe

Strona 369

SERIAL I/O INTERFACE S3C9228/P922815-2SIO CONTROL REGISTERS (SIOCON)The control register for serial I/O interface module, SIOCON, is located at E1H in

Strona 370

S3C9228/P9228 SERIAL I/O INTERFACE15-3SIO PRE-SCALER REGISTER (SIOPS)The prescaler register for serial I/O interface module, SIOPS, are located at E3H

Strona 371

SERIAL I/O INTERFACE S3C9228/P922815-4SERIAL I/O TIMING DIAGRAM (SIO)SOTransmitCompleteSIO INTSet SIOCON.3DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0DI7 DI6 DI5 D

Strona 372

S3C9228/P9228 ELECTRICAL DATA16-116 ELECTRICAL DATAOVERVIEWIn this chapter, S3C9228/P9228 electrical characteristics are presented in tables and graph

Strona 373

ELECTRICAL DATA S3C9228/P922816-2Table 16-1. Absolute Maximum Ratings(TA = 25°C)Parameter Symbol Conditions Rating UnitSupply voltageVDD– – 0.3 to +

Strona 374

S3C9228/P9228 ELECTRICAL DATA16-3Table 16-2. D.C. Electrical Characteristics (Continued)(TA = – 25°C to + 85°C, VDD = 2.0 V to 5.5 V)Parameter

Strona 375

ELECTRICAL DATA S3C9228/P922816-4Table 16-2. D.C. Electrical Characteristics (Concluded)(TA = – 25°C to + 85°C, VDD = 2.0 V to 5.5 V)Parameter

Strona 376

S3C9228/P9228 ELECTRICAL DATA16-5Table 16-3. Data Retention Supply Voltage in Stop Mode(TA = – 25 °C to + 85 °C)Parameter Symbol Conditions Min Ty

Strona 377

ELECTRICAL DATA S3C9228/P922816-6Execution ofSTOP InstrctionRESETOccurs~~VDDDR~~Stop ModeOscillationStabilizationTImeNormalOperating ModeData Retentio

Strona 378

S3C9228/P9228 ELECTRICAL DATA16-7Table 16-5. A.C. Electrical Characteristics(TA = – 25°C to + 85°C, VDD = 2.0 V to 5.5 V)Parameter Symbol Condit

Strona 379

ADDRESSING MODES S3C9228/P92283-4INDIRECT REGISTER ADDRESSING MODE (Continued)dstOPCODEPAIRPoints toRigister PairExampleInstructionReferencesProgramMe

Strona 380

ELECTRICAL DATA S3C9228/P922816-8Table 16-6. A/D Converter Electrical Characteristics(TA = – 25°C to + 85°C, VDD = 2.7 V to 5.5 V, VSS = 0 V)Par

Strona 381

S3C9228/P9228 ELECTRICAL DATA16-9RESETtRSL0.2 VDDFigure 16-4. Input Timing for RESETRESETtKHtKL0.2VDDSCKtKCY0.8VDD0.8VDD0.2VDDtSIKtKSISISOtKSOOutput D

Strona 382

ELECTRICAL DATA S3C9228/P922816-10Table 16-7. Main Oscillation Characteristics (TA = – 25°C to + 85°C)Oscillator Clock Configuration Parameter Te

Strona 383

S3C9228/P9228 ELECTRICAL DATA16-11Table 16-9. Main Oscillation Stabilization Time(TA = – 25 °C to + 85 °C, VDD = 2.0 V to 5.5 V)Oscillator Test

Strona 384

ELECTRICAL DATA S3C9228/P922816-12Table 16-10. Sub Oscillation Stabilization Time(TA = – 25 °C to + 85 °C, VDD = 2.0 V to 5.5 V)Oscillator Test

Strona 385

S3C9228/P9228 ELECTRICAL DATA16-13 2 MHz6.25 kHz (main)/8.2 kHz(sub)1 2 6Supply Voltage (V)Instruction Clock = 1/4n x oscillator frequency (n = 1, 2,

Strona 386

ELECTRICAL DATA S3C9228/P922816-14NOTES

Strona 387

S3C9228/P9228 MECHANICAL DATA17-117 MECHANICAL DATAOVERVIEWThe S3C9228/P9228 microcontroller is currently available in a 42-pin SDIP and 44-pin QFP pa

Strona 388

MECHANICAL DATA S3C9228/P922817-244-QFP-1010B#44NOTE: Dimensions are in millimeters.10.00 ± 0.213.20 ± 0.310.00 ± 0.213.20 ± 0.3#10.35+ 0.10- 0.050.

Strona 389

S3C9228/P9228 S3P9228 OTP 18-118 S3P9228 OTPOVERVIEWThe S3P9228 single-chip CMOS microcontroller is the OTP (One Time Programmable) version of the S3

Strona 390

S3C9228/P9228 ADDRESSING MODES3-5INDIRECT REGISTER ADDRESSING MODE (Continued)dstOPCODEOPERAND4-BitWorkingRegisterAddressPoint to theWoking Register(1

Strona 391

S3P9228 OTP S3C9228/P922818-2 COM1/P6.2COM0/P6.3P0.0/TAOUT/INTP0.1/T1CLK/INTP0.2/INTP0.3/BUZ/INTP1.0/AD0/INTP1.1/AD1/INTSDAT/P1.2/AD2/INTSCLK/P1.3/AD

Strona 392

S3C9228/P9228 S3P9228 OTP 18-3Table 18-1. Descriptions of Pins Used to Read/Write the EPROMMain Chip During ProgrammingPin Name Pin Name Pin No. I/O

Strona 393

S3P9228 OTP S3C9228/P922818-4 Table 18-4. D.C. Electrical Characteristics(TA = – 25°C to + 85°C, VDD = 2.0 V to 5.5 V)Parameter Symbol Condit

Strona 394

S3C9228/P9228 S3P9228 OTP 18-52 MHz6.25 kHz (main)/8.2 kHz(sub)1 2 6Supply Voltage (V)Instruction Clock = 1/4n x oscillator frequency (n = 1, 2, 8, 1

Strona 395

S3P9228 OTP S3C9228/P922818-6 NOTES

Strona 396

S3C9228/P9228 DEVELOPMENT TOOLS19-119 DEVELOPMENT TOOLSOVERVIEWSamsung provides a powerful and easy-to-use development support system in turn key form

Strona 397

DEVELOPMENT TOOLS S3C9228/P922819-2BUSSMDS2+RS-232CPODProbeAdapterPROM/OTP Writer UnitRAM Break/Display UnitTrace/Timer UnitSAM8 Base UnitPower Suppl

Strona 398

S3C9228/P9228 DEVELOPMENT TOOLS19-3TB9228 TARGET BOARDThe TB9228 target board is used for the S3C9228 microcontroller. It is supported by the SMDS2+ d

Strona 399

DEVELOPMENT TOOLS S3C9228/P922819-4Table 19-1. Power Selection Settings for TB9228"To User_VCC"SettingsOperating Mode CommentsTo User_VCCOf

Strona 400

S3C9228/P9228 DEVELOPMENT TOOLS19-5SMDS2+ Selection (SAM8)In order to write data into program memory that is available in SMDS2+, the target board sho

Strona 401

ADDRESSING MODES S3C9228/P92283-6INDIRECT REGISTER ADDRESSING MODE (Concluded)dstOPCODE4-Bit WorkingRegister AddressSample Instructions:LCD R5,@RR6 ;

Strona 402

DEVELOPMENT TOOLS S3C9228/P922819-6J10142-SDIPJ10244-QFP1234567891011121314151617181920214344454642414039383736353433323130292827262524232250494847P6

Strona 403

S3C9228/P9228 DEVELOPMENT TOOLS19-7 Target Board Target SystemTarget Cable for ConnectorPart Name: AP42SDOrder Code: SM6538J1011 4221 22J1011 4221 225

Strona 404

DEVELOPMENT TOOLS S3C9228/P922819-8NOTES

Strona 405

S3C9228/P9228 ADDRESSING MODES3-7INDEXED ADDRESSING MODE (X)Indexed (X) addressing mode adds an offset value to a base address during instruction exec

Strona 406

ADDRESSING MODES S3C9228/P92283-8INDEXED ADDRESSING MODE (Continued)Point to WorkingRegister Pair(1 of 8)LSB Selects16-Bitaddressadded tooffsetdstOPCO

Strona 407

S3C9228/P9228 ADDRESSING MODES3-9INDEXED ADDRESSING MODE (Concluded)Point to WorkingRegister Pair(1 of 8)LSB Selects16-Bitaddressadded tooffsetProgram

Strona 409

ADDRESSING MODES S3C9228/P92283-10DIRECT ADDRESS MODE (DA)In Direct Address (DA) mode, the instruction provides the operand's 16-bit memory addre

Strona 410

S3C9228/P9228 ADDRESSING MODES3-11DIRECT ADDRESS MODE (Continued)OPCODEProgram MemoryUpper Address ByteProgramMemoryAddressUsedLower Address ByteSampl

Strona 411

ADDRESSING MODES S3C9228/P92283-12RELATIVE ADDRESS MODE (RA)In Relative Address (RA) mode, a two's-complement signed displacement between – 128

Strona 412

S3C9228/P9228 CONTROL REGISTERS4-14 CONTROL REGISTERSOVERVIEWIn this section, detailed descriptions of the S3C9228/P9228 control registers are present

Strona 413

CONTROL REGISTERS S3C9228/P92284-2Table 4-1. System and Peripheral Control Registers (Page 0)Register Name Mnemonic Address (Page 0) R/WDecimal HexPor

Strona 414

S3C9228/P9228 CONTROL REGISTERS4-3Table 4-1. System and Peripheral Control Registers (Page 0)Register Name Mnemonic Address (Page 0) R/WDecimal HexLoc

Strona 415

CONTROL REGISTERS S3C9228/P92284-4FLAGS - System Flags Register.7.6.5Bit IdentifierRESET RESET ValueRead/WriteR = Read-onlyW = Write-onlyR/W = Read/wr

Strona 416

S3C9228/P9228 CONTROL REGISTERS4-5ADCON — A/D Converter Control Register D0HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – 0 0 0 0 0 0Read/

Strona 417

CONTROL REGISTERS S3C9228/P92284-6BTCON — Basic Timer Control Register DCHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 0Read/Wr

Strona 418

S3C9228/P9228 CONTROL REGISTERS4-7CLKCON — System Clock Control Register D4HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 0Re

Strona 419

S3C9228/P9228 MICROCONTROLLERS vTable of ContentsPart I — Programming ModelChapter 1 Product OverviewSAM88RCRI Product Family ...

Strona 420

CONTROL REGISTERS S3C9228/P92284-8FLAGS — System Flags Register D5HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Valuex x x x – – – –Read/WriteR/W

Strona 421

S3C9228/P9228 CONTROL REGISTERS4-9INTPND1 — Interrupt Pending Register 1 D6HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 0Read/

Strona 422

CONTROL REGISTERS S3C9228/P92284-10INTPND2 — Interrupt Pending Register 2 D7HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – 0 0 0 0 0 0Read

Strona 423

S3C9228/P9228 CONTROL REGISTERS4-11LMOD — LCD Mode Control Register FEHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– 0 0 0 0 0 0 0Read/Write

Strona 424

CONTROL REGISTERS S3C9228/P92284-12LPOT — LCD Port Control Register D8HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– 0 0 0 0 0 0 0Read/Write

Strona 425

S3C9228/P9228 CONTROL REGISTERS4-13OSCCON — Oscillator Control Register D3HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – – 0 0 – 0Read

Strona 426

CONTROL REGISTERS S3C9228/P92284-14P0CON – Port 0 Control Register EBHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0

Strona 427

S3C9228/P9228 CONTROL REGISTERS4-15P0INT –Port 0 Interrupt Enable Register EDHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – – 0 0 0 0R

Strona 428

CONTROL REGISTERS S3C9228/P92284-16P0PUR –Port 0 Pull-up Resistors Enable Register ECHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 429

S3C9228/P9228 CONTROL REGISTERS4-17P0EDGE –Port 0 Interrupt Edge Selection Register EEHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 430

vi S3C9228/P9228 MICROCONTROLLERSTable of Contents (Continued)Chapter 4 Control RegistersOverview ...

Strona 431

CONTROL REGISTERS S3C9228/P92284-18P1CON – Port 1 Control Register EFHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0

Strona 432

S3C9228/P9228 CONTROL REGISTERS4-19P1INT –Port 1 Interrupt Enable Register F1HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – – 0 0 0 0R

Strona 433

CONTROL REGISTERS S3C9228/P92284-20P1PUR –Port 1 Pull-up Resistors Enable Register F0HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 434

S3C9228/P9228 CONTROL REGISTERS4-21P1EDGE –Port 1 Interrupt Edge Selection Register F2HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 435

CONTROL REGISTERS S3C9228/P92284-22P2CON – Port 2 Control Register F3HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0

Strona 436

S3C9228/P9228 CONTROL REGISTERS4-23P2PUR –Port 2 Pull-up Resistors Enable Register F4HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 437

CONTROL REGISTERS S3C9228/P92284-24P3CON – Port 3 Control Register F5HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 438

S3C9228/P9228 CONTROL REGISTERS4-25P3INT –Port 3 Interrupt Enable Register F7HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – – – – 0 0R

Strona 439

CONTROL REGISTERS S3C9228/P92284-26P3PUR –Port 3 Pull-up Resistors Enable Register F6HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 440

S3C9228/P9228 CONTROL REGISTERS4-27P3EDGE –Port 3 Interrupt Edge Selection Register F8HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – –

Strona 441

S3C9228/P9228 MICROCONTROLLERS viiTable of Contents (Continued)Part II — Hardware DescriptionsChapter 7 Clock CircuitOverview...

Strona 442

CONTROL REGISTERS S3C9228/P92284-28P4CONH – Port 4 Control Register High Byte F9HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Val

Strona 443

S3C9228/P9228 CONTROL REGISTERS4-29P4CONL–Port 4 Control Register Low Byte FAHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 0R

Strona 444

CONTROL REGISTERS S3C9228/P92284-30P5CONH – Port 5 Control Register High Byte FBHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0

Strona 445

S3C9228/P9228 CONTROL REGISTERS4-31P5CONL – Port 5 Control Register Low Byte FCHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0

Strona 446

CONTROL REGISTERS S3C9228/P92284-32P6CON – Port 6 Control Register High Byte FDHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0

Strona 447

S3C9228/P9228 CONTROL REGISTERS4-33SIOCON — SIO Control Register E1HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 –Read/WriteR/W

Strona 448

CONTROL REGISTERS S3C9228/P92284-34STPCON – Stop Control Register E0HBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 0Read/Write

Strona 449

S3C9228/P9228 CONTROL REGISTERS4-35SYM — System Mode Register DFHBit Identifier.7.6 .5 .4 .3 .2 .1 .0RESETRESET Value– – – – 0 0 0 0Read/Write– – – –

Strona 450

CONTROL REGISTERS S3C9228/P92284-36TACON — Timer 1/A Control Register BBHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 –Read/Wri

Strona 451

S3C9228/P9228 CONTROL REGISTERS4-37TBCON — Timer B Control Register BAHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value– 0 0 0 0 0 0 –Read/Write

Strona 452

viii S3C9228/P9228 MICROCONTROLLERSTable of Contents (Continued)Chapter 11 Timer 1One 16-Bit Timer Mode (Timer 1) ...

Strona 453

CONTROL REGISTERS S3C9228/P92284-38WTCON — Watch Timer Control Register DAHBit Identifier .7 .6 .5 .4 .3 .2 .1 .0RESETRESET Value0 0 0 0 0 0 0 –Read/W

Strona 454

S3C9228/P9228 INTERRUPT STRUCTURE5-15 INTERRUPT STRUCTUREOVERVIEWThe SAM88RCRI interrupt structure has two basic components: a vector, and sources. Th

Strona 455

INTERRUPT STRUCTURE S3C9228/P92285-2INTERRUPT PENDING FUNCTION TYPESWhen the interrupt service routine has executed, the application program's se

Strona 456

S3C9228/P9228 INTERRUPT STRUCTURE5-3INTERRUPT SOURCE SERVICE SEQUENCEThe interrupt request polling and servicing sequence is as follows:1. A source ge

Strona 457

INTERRUPT STRUCTURE S3C9228/P92285-4S3C9228/P9228 INTERRUPT STRUCTUREThe S3C9228/P9228 microcontroller has fourteen peripheral interrupt sources:— Tim

Strona 458

S3C9228/P9228 INTERRUPT STRUCTURE5-5SYM.3(EI, DI)P0INT.0P0.0 External InterriptP0INT.1P0.1 External InterriptP0.3 External InterriptP0.2 External Inte

Strona 459

INTERRUPT STRUCTURE S3C9228/P92285-6Programming Tip — How to clear an interrupt pending bitAs the following examples are shown, a load instruction sho

Strona 460

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-16 SAM88RCRI INSTRUCTION SETOVERVIEWThe SAM88RCRI instruction set is designed to support the large register f

Strona 461

SAM88RI INSTRUCTION SET S3C9228/P92286-2Table 6-1. Instruction Group SummaryMnemonic Operands InstructionLoad InstructionsCLR dst ClearLD dst,src Load

Strona 462

S3C9228/P9228 SAM88RCRI INSTRUCTION SET6-3Table 6-1. Instruction Group Summary (Continued)Mnemonic Operands InstructionProgram Control InstructionsCAL

Komentarze do niniejszej Instrukcji

Brak uwag