Samsung 8-Bit User Manual

Browse online or download User Manual for Unknown Samsung 8-Bit. Samsung 8-Bit User's Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 462
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews

Summary of Contents

Page 1 - USER'S MANUAL

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

Page 2 - S3C9228/P9228

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

Page 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

Page 4

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

Page 5

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

Page 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

Page 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

Page 8

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

Page 9

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

Page 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

Page 11

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

Page 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

Page 14

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

Page 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&

Page 16 - List of Tables

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

Page 17

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

Page 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

Page 19

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

Page 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

Page 21

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

Page 22

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

Page 23 - 1 PRODUCT OVERVIEW

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

Page 24 - FEATURES

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

Page 25

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

Page 26

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

Page 27

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

Page 28

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

Page 29

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

Page 30

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

Page 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

Page 32

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

Page 33

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

Page 34

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

Page 35

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

Page 36

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

Page 37

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

Page 38

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

Page 39

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

Page 40

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

Page 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

Page 42

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

Page 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

Page 44

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

Page 45

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

Page 46

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

Page 47

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

Page 48

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

Page 49

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

Page 50

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

Page 51

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

Page 52

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

Page 53

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

Page 54

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

Page 55

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

Page 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

Page 57

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

Page 58

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

Page 59

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

Page 60

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

Page 61

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

Page 62

CLOCK CIRCUITS S3C9228/P92287-8NOTES

Page 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

Page 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

Page 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

Page 66

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

Page 67

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

Page 68

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

Page 69

RESETRESET and POWER-DOWN S3C9228/P92288-6NOTES

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 89

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

Page 90

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

Page 91

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 102

TIMER 1 S3C9228/P922811-10NOTES

Page 103

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

Page 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

Page 105

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

Page 106

WATCH TIMER S3C9228/P922812-4NOTES

Page 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

Page 108 - ADD — Add

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

Page 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

Page 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

Page 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

Page 112 - CLR — Clear

S3C9228/P92288-BIT CMOSMICROCONTROLLERSUSER'S MANUALRevision 1

Page 113 - COM — Complement

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

Page 114 - CP — Compare

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

Page 115 - DEC — Decrement

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

Page 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

Page 117 - EI — Enable Interrupts

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

Page 118 - IDLE — Idle Operation

LCD CONTROLLER/DRIVER S3C9228/P922813-10NOTES

Page 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

Page 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-

Page 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)- - - - - - .

Page 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

Page 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

Page 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

Page 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

Page 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

Page 128 - — Load Memory and Increment

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

Page 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 +

Page 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

Page 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

Page 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

Page 133 - RCF — Reset Carry Flag

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

Page 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

Page 135 - RL — Rotate Left

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

Page 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

Page 137 - RR — Rotate Right

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

Page 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

Page 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

Page 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

Page 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,

Page 142 - STOP — Stop Operation

ELECTRICAL DATA S3C9228/P922816-14NOTES

Page 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

Page 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.

Page 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

Page 146 - XOR — Logical Exclusive OR

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

Page 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

Page 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

Page 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

Page 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

Page 151

S3P9228 OTP S3C9228/P922818-6 NOTES

Page 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

Page 153

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

Page 154

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

Page 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

Page 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

Page 157

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

Page 158

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

Page 159

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

Page 160

DEVELOPMENT TOOLS S3C9228/P922819-8NOTES

Page 161 - 9 I/O PORTS

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

Page 162

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

Page 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

Page 164

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

Page 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

Page 166

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

Page 167

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

Page 168

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

Page 169

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

Page 170

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

Page 171

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

Page 172

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

Page 173

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

Page 174

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

Page 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

Page 176

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

Page 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

Page 178

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

Page 179

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

Page 180

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

Page 181 - 11 TIMER 1

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

Page 182

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

Page 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

Page 184 - TIMER 1 S3C9228/P9228

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

Page 185

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

Page 186

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

Page 187

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

Page 188

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

Page 189

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

Page 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

Page 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

Page 192

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

Page 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

Page 194 - WATCH TIMER S3C9228/P9228

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

Page 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

Page 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

Page 197

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

Page 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/

Page 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

Page 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

Page 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

Page 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

Page 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/

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 210

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

Page 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– – – –

Page 212

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

Page 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

Page 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

Page 215

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

Page 216

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

Page 217

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

Page 218

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

Page 219

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

Page 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

Page 221

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

Page 222

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

Page 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

Page 224

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

Page 225

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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– – – –

Page 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

Page 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

Page 235 - 19 DEVELOPMENT TOOLS

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

Page 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

Page 237 - TB9228 TARGET BOARD

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

Page 238

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

Page 239

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

Page 240

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

Page 241

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

Page 242

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

Page 243

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

Page 244

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

Page 245

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

Page 246 - PIN ASSIGNMENTS

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

Page 247

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

Page 248 - PIN DESCRIPTIONS

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

Page 249

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

Page 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

Page 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

Page 252

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

Page 253

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

Page 254

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

Page 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

Page 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

Page 257 - REGISTER ARCHITECTURE

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

Page 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

Page 259 - SYSTEM STACK

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

Page 260

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

Page 261 - 3 ADDRESSING MODES

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

Page 262

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

Page 263

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

Page 264

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

Page 265

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

Page 266

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

Page 267 - (see Figure 3-9)

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

Page 268

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

Page 269 - Program Memory

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

Page 270

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

Page 271

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

Page 272

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

Page 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

Page 274

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

Page 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

Page 276 - FLAGS - System Flags Register

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

Page 277

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

Page 278

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

Page 279

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

Page 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

Page 281

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

Page 282

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

Page 283

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

Page 284

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

Page 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

Page 286

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

Page 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

Page 288

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

Page 289

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

Page 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

Page 291

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

Page 292

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

Page 293

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

Page 294

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

Page 295

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

Page 296

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

Page 297

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

Page 298

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

Page 299

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

Page 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

Page 301

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

Page 302

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

Page 303

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

Page 304

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

Page 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

Page 306 - – Stop Control Register E0H

CLOCK CIRCUITS S3C9228/P92287-8NOTES

Page 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

Page 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

Page 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

Page 310

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

Page 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

Page 312

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

Page 313

RESETRESET and POWER-DOWN S3C9228/P92288-6NOTES

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 323

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 333

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

Page 334

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

Page 335

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

Page 336

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 346

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

Page 347

TIMER 1 S3C9228/P922811-10NOTES

Page 348

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

Page 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

Page 350

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

Page 351

WATCH TIMER S3C9228/P922812-4NOTES

Page 352

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

Page 353

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

Page 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

Page 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

Page 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

Page 357

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

Page 358

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

Page 359

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

Page 360

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

Page 361

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

Page 362

LCD CONTROLLER/DRIVER S3C9228/P922813-10NOTES

Page 363

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

Page 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-

Page 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)- - - - - - .

Page 366

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

Page 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

Page 368

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

Page 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

Page 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

Page 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

Page 372

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

Page 373

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

Page 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

Page 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

Page 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

Page 377

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

Page 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

Page 379

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

Page 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

Page 381

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

Page 382

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

Page 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

Page 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

Page 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,

Page 386

ELECTRICAL DATA S3C9228/P922816-14NOTES

Page 387

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

Page 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.

Page 389

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

Page 390

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

Page 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

Page 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

Page 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

Page 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

Page 395

S3P9228 OTP S3C9228/P922818-6 NOTES

Page 396

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

Page 397

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

Page 398

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

Page 399

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

Page 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

Page 401

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

Page 402

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

Page 403

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

Page 404

DEVELOPMENT TOOLS S3C9228/P922819-8NOTES

Page 405

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

Page 406

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

Page 407

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

Page 409

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

Page 410

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

Page 411

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

Page 412

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

Page 413

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

Page 414

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

Page 415

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

Page 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/

Page 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

Page 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

Page 419

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

Page 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

Page 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/

Page 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

Page 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

Page 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

Page 425

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

Page 426

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

Page 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

Page 428

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

Page 429

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

Page 430

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

Page 431

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

Page 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

Page 433

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

Page 434

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

Page 435

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

Page 436

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

Page 437

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

Page 438

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

Page 439

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

Page 440

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

Page 441

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

Page 442

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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– – – –

Page 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

Page 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

Page 452

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

Page 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

Page 454

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

Page 455

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

Page 456

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

Page 457

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

Page 458

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

Page 459

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

Page 460

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

Page 461

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

Page 462

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

Comments to this Manuals

No comments