Vai alla pagina of
Manuali d’uso simili
-
Computer Hardware
Samsung PCA-6189
144 pagine 3.09 mb -
Computer Hardware
Samsung M471B1G73AH0
31 pagine 0.87 mb -
Computer Hardware
Samsung F8275X
324 pagine 2.55 mb -
Computer Hardware
Samsung BN68-01416A-00
425 pagine 57.65 mb -
Computer Hardware
Samsung C8274X
324 pagine 2.55 mb -
Computer Hardware
Samsung S3F401F
32 pagine 0.84 mb -
Computer Hardware
Samsung DDR3
21 pagine 0.82 mb -
Computer Hardware
Samsung SSC-12P
100 pagine 5.38 mb
Un buon manuale d’uso
Le regole impongono al rivenditore l'obbligo di fornire all'acquirente, insieme alle merci, il manuale d’uso Samsung S3C8275X. La mancanza del manuale d’uso o le informazioni errate fornite al consumatore sono la base di una denuncia in caso di inosservanza del dispositivo con il contratto. Secondo la legge, l’inclusione del manuale d’uso in una forma diversa da quella cartacea è permessa, che viene spesso utilizzato recentemente, includendo una forma grafica o elettronica Samsung S3C8275X o video didattici per gli utenti. La condizione è il suo carattere leggibile e comprensibile.
Che cosa è il manuale d’uso?
La parola deriva dal latino "instructio", cioè organizzare. Così, il manuale d’uso Samsung S3C8275X descrive le fasi del procedimento. Lo scopo del manuale d’uso è istruire, facilitare lo avviamento, l'uso di attrezzature o l’esecuzione di determinate azioni. Il manuale è una raccolta di informazioni sull'oggetto/servizio, un suggerimento.
Purtroppo, pochi utenti prendono il tempo di leggere il manuale d’uso, e un buono manuale non solo permette di conoscere una serie di funzionalità aggiuntive del dispositivo acquistato, ma anche evitare la maggioranza dei guasti.
Quindi cosa dovrebbe contenere il manuale perfetto?
Innanzitutto, il manuale d’uso Samsung S3C8275X dovrebbe contenere:
- informazioni sui dati tecnici del dispositivo Samsung S3C8275X
- nome del fabbricante e anno di fabbricazione Samsung S3C8275X
- istruzioni per l'uso, la regolazione e la manutenzione delle attrezzature Samsung S3C8275X
- segnaletica di sicurezza e certificati che confermano la conformità con le norme pertinenti
Perché non leggiamo i manuali d’uso?
Generalmente questo è dovuto alla mancanza di tempo e certezza per quanto riguarda la funzionalità specifica delle attrezzature acquistate. Purtroppo, la connessione e l’avvio Samsung S3C8275X non sono sufficienti. Questo manuale contiene una serie di linee guida per funzionalità specifiche, la sicurezza, metodi di manutenzione (anche i mezzi che dovrebbero essere usati), eventuali difetti Samsung S3C8275X e modi per risolvere i problemi più comuni durante l'uso. Infine, il manuale contiene le coordinate del servizio Samsung in assenza dell'efficacia delle soluzioni proposte. Attualmente, i manuali d’uso sotto forma di animazioni interessanti e video didattici che sono migliori che la brochure suscitano un interesse considerevole. Questo tipo di manuale permette all'utente di visualizzare tutto il video didattico senza saltare le specifiche e complicate descrizioni tecniche Samsung S3C8275X, come nel caso della versione cartacea.
Perché leggere il manuale d’uso?
Prima di tutto, contiene la risposta sulla struttura, le possibilità del dispositivo Samsung S3C8275X, l'uso di vari accessori ed una serie di informazioni per sfruttare totalmente tutte le caratteristiche e servizi.
Dopo l'acquisto di successo di attrezzature/dispositivo, prendere un momento per familiarizzare con tutte le parti del manuale d'uso Samsung S3C8275X. Attualmente, sono preparati con cura e tradotti per essere comprensibili non solo per gli utenti, ma per svolgere la loro funzione di base di informazioni e di aiuto.
Sommario del manuale d’uso
-
Pagina 1
S3C8275X/F8275X/C8278X /F8278X/C8274X/F8274X 8-BIT CMOS MICROCONTROLLERS USER'S MANUAL Revision 1.4[...]
-
Pagina 2
Important Notice The information in this publication has been carefully checked and is believed to be entirely accurate at the time of publication. Samsung assumes no responsibility, however, for possible errors or omissions, or for any consequences resulting from the use of the information contained herein. Samsung reserves the right to make chang[...]
-
Pagina 3
NOTIFICATION OF REVISIONS ORIGINATOR: Samsung Electronics, LSI Development Group, Gi-Heung, South Korea PRODUCT NAME: S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 8-bit CMOS Microcontroller DOCUMENT NAME: S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X User's Manual, Revision1.4 DOCUMENT NUMBER: 21.4-S3-C8275X/F8275X/C8278X/F8278X/C8274X/F8274X-042[...]
-
Pagina 4
REVISION HISTORY Revision Date Remark 0 February, 2005 Preliminary spec for internal release only. 1 April, 2005 First edition. Reviewed by Finechips. 1.1 July, 2005 Second edition. Reviewed by Finechips. 1.2 August, 2005 Third edition. Reviewed by Finechips. 1.3 May, 2006 Fourth edition. Reviewed by Finechips 1.4 April, 2007 Fifth edition. Reviewe[...]
-
Pagina 5
REVISION DESCRIPTIONS 1. Electrical Data Table 17-12. A.C. Electrical Characteristics for Internal Flash ROM (T A = − 25 ° C t o + 8 5 ° C, V DD = 2.0 V to 3.6 V) Parameter Symbol Conditions Min Typ Max Unit Programming time (1) Ftp − 30 − − µ s Chip erasing time (2) Ftp1 − 50 − − ms Sector erasing time (3) Ftp2 − 10 − − ms D[...]
-
Pagina 6
Descriptions of Revision 1.4 1. Smart Option Area The Figures are modified about smart option area. Those are “Figure 2-1. Program Memory Address Space” and “Figure 5-3. ROM Vector Address Area”. 2. CHAPTHER 17. Electrical Data It is changed “V DD = 2.0 V to 3.6 V” into “V DD = 2.2 V to 3.6 V” in the Table 17-12. 3. DEVICE NAME The [...]
-
Pagina 7
S3C8275X/F8275X/C8278X/F8278X/C8274X /F8274X MICROCONTROLLER iii Preface The S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X Microcontroller User's Manual is designed for application designers and programmers who are using the S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X microcontroller for application development. It is organized in two main parts[...]
-
Pagina 8
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X MICROCONTROLLER v Table of Contents Part I — Programming Model Chapter 1 Product Overview S3C8-Series Mi crocontro llers ................................................................................................... .................... 1-1 S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X Microcont rol[...]
-
Pagina 9
vi S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X MICROCONTROLLER Table of Contents (Continued) Chapter 4 Control Registers Overview ....................................................................................................................... ................................ 4-1 Chapter 5 Interrupt Structure Overview ........................[...]
-
Pagina 10
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X MICROCONTROLLER vii Table of Contents (Continued) Part II Hardware Descriptions Chapter 7 Clock Circuit Overview....................................................................................................................... ................................. 7-1 System Clo ck Circ uit .............[...]
-
Pagina 11
viii S3C8275X/F8275X/C8278X/F8278X/C 8274X/F8274X MICROCONTROLLER Table of Contents (Continued) Chapter 11 Timer 1 One 16-bit Timer Mode (Tim er 1) ................................................................................................ ................. 11-1 Overview .........................................................................[...]
-
Pagina 12
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X MICROCONTROLLER ix Table of Contents (Continued) Chapter 16 Embedded Flash Memory Interface Overview....................................................................................................................... ................................. 16-1 User Progr am Mode ............................[...]
-
Pagina 13
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X MICROCONTROLLER xi List of Figures Figure Title Page Number Number 1-1 Block Diagram ............................................................................................................ 1 -3 1-2 S3C8275X/F8275X/C8278X/F8278X/C 8274X/F8274X Pin Assignments (64-QFP-1420F ) .........................[...]
-
Pagina 14
xii S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X MICROCONTROLLER List of Figures Figure Title Page Number Number 5-1 S3C8-Series In terrupt Ty pes ..................................................................................... 5-2 5-2 S3C8275X/C8278X/C8274X In terrupt Stru cture ....................................................... 5-3 5-3 R[...]
-
Pagina 15
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X MICROCONTROLLER xiii List of Figures (Continued) Page Title Page Number Number 9-19 Port 4 High-Byte Cont rol Register (P4CONH) ........................................................... 9-15 9-20 Port 4 Low-Byte Contro l Register (P 4CONL) ............................................................. 9[...]
-
Pagina 16
xiv S3C8275X/F8275X/C8278X/F8278X/C 8274X/F8274X MICROCONTROLLER List of Figures (Concluded) Page Title Page Number Number 17-1 Stop Mode Release Timing When Init iated by an Exter nal Interr upt......................... 17-5 17-2 Stop Mode Release Timing W hen Initiated by a RESET .......................................... 17-6 17-3 Input Timing f[...]
-
Pagina 17
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X MICROCONTROLLER xv List of Tables Table Title Page Number Number 1-1 S3C8275X/F8275X/C8278X/F8278X/C8274X /F8274X Pin Descr iptions ................. 1-6 2-1 S3C8275X Regist er Type Su mmary .......................................................................... 2-5 2-2 S3C8278X/C8274X Regi ster Type S[...]
-
Pagina 18
xvi S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X MICROCONTROLLER List of Tables (Continued) Table Title Page Number Number 17-1 Absolute Ma ximum Rati ngs ........................................................................................ 17-2 17-2 D.C. Electrical Characterist ics ................................................................[...]
-
Pagina 19
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X MICROCONTROLLER xvii List of Programming Tips Description Page Number Chapter 2: Address Spaces Using the Page Pointer for RA M Clear (Page 0, Page 1) ........................................................................ 2- 9 Setting the Regist er Poin ters .............................................[...]
-
Pagina 20
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X MICROCONTROLLER xix List of Register Descriptions Register Full Register Name Page Identifier Number BLDCON Battery Level Detect or Control R egister .................................................................... 4-5 BTCON Basic Timer C ontrol Regi ster .............................................[...]
-
Pagina 21
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X MICROCONTROLLER xxi List of Instruction Descriptions Instruction Full Register Name Page Mnemonic Number ADC Add with Carry ............................................................................................................ 6 -14 ADD Add ..........................................................[...]
-
Pagina 22
xxii S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X MICROCONTROLLER List of Instruction Descriptions (Continued) Instruction Full Register Name Page Mnemonic Number LDC/LDE Load Memo ry ........................................................................................................... ... 6-52 LDCD/LDED Load Memory and Decrem ent .............[...]
-
Pagina 23
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X PRODUCT OVERVIEW 1-1 1 PRODUCT OVERVIEW S3C8-SERIES MICROCONTROLLERS Samsung's S3C8 series of 8-bit single-chip CMOS microc ontrollers offers a fast and efficient CPU, a wide range of integrated peripherals, and various mask-programmable ROM sizes. Among the major CPU features are: • Efficient regi[...]
-
Pagina 24
PRODUCT OVERVIEW S3C 8275X/F8275X/C8278X/F8278X/C8274X/F8274X 1 - 2 FEATURES CPU • SAM88RC CPU core Memory • Program Memory(ROM) - 16K × 8 bits program memory(S3C8275X/F8275X) - 8K × 8 bits program memory(S3C8278X/F8278X) - 4K × 8 bits program memory(S3C8274X/F8274X) - Internal flash memory(Program memory) √ Sector size: 128 Bytes √ 10 Y[...]
-
Pagina 25
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X PRODUCT OVERVIEW 1-3 BLOCK DIAGRAM 544/288 Byte Register File 16/8/4-Kbyte ROM 8-Bit Timer/ Counter B I/O Port 0 8-Bit Timer/ Counter A I/O Port 2 TAOUT/ P0. 4 T1CLK/P0.3 TBOUT/ P0. 5 LCD Driver SIO I/O Port 5 I/O Port 6 BUZ/P0.7 P1.0/SCK P1.1/SO P1.2/SI P6.0-P6.3/ COM0-COM3 P5.0-P5.7/ SEG7-SEG0 nRESET V[...]
-
Pagina 26
PRODUCT OVERVIEW S3C 8275X/F8275X/C8278X/F8278X/C8274X/F8274X 1 - 4 PIN ASSIGNMENT SEG0/P5.7 COM0/P6.0 COM1/P6.1 COM2/P6.2 COM3/P6.3 VLC0 VLC1 VLC2 V DD V SS X OUT X IN TEST XT IN XT OUT nRESET V REG P0.0/INT0 P0.1/INT1 S3C8275X/F8275X S3C8278X/F8278X S3C8274X/F8274X (64-QFP-1420F) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 SEG1/P5.6 SEG2/P5.5[...]
-
Pagina 27
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X PRODUCT OVERVIEW 1-5 S3C8275X/F8275X S3C8278X/F8278X S3C8274X/F8274X (64-LQFP-1010) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 SEG17/P3.6 SEG18/P3.5 SEG19/P3.4 SEG20[...]
-
Pagina 28
PRODUCT OVERVIEW S3C 8275X/F8275X/C8278X/F8278X/C8274X/F8274X 1 - 6 PIN DESCRIPTIONS Table 1-1. S3C8275X/F8275X/C8278X/F8278X /C8274X/F8274X Pin Descriptions Pin Names Pin Type Pin Description Circuit Type Pin No. Shared Functions P0.0 − P0.2 P0.3 P0.4 P0.5 P0.6 P0.7 I/O I/O port with bit-programmable pins; Schmitt trigger input or push-pull, ope[...]
-
Pagina 29
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X PRODUCT OVERVIEW 1-7 Table 1-1. S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X Pin Descriptions (Continued) Pin Names Pin Type Pin Description Circuit Type Pin No. Shared Functions VLC0 − VLC2 − LCD power supply pins. − 6 − 8 − INT0 − INT2 INT3 − INT7 I/O External interrupts input pins. E-4 18[...]
-
Pagina 30
PRODUCT OVERVIEW S3C 8275X/F8275X/C8278X/F8278X/C8274X/F8274X 1 - 8 PIN CIRCUITS P-Channel N-Channel In V DD Figure 1-4. Pin Circuit Type A In V DD Schmitt Trigger Pull-Up Resistor Figure 1-5. Pin Circuit Type B (nRESET) V DD Output Disable Data Pull-up Resistor V DD I/O P-CH N-CH Open Drain Resistor Enable Schmitt Trigger Figure 1-6. Pin Circuit T[...]
-
Pagina 31
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X PRODUCT OVERVIEW 1-9 Out COM/SEG V LC0 V LC1 V LC2 Output Disable V SS Figure 1-7. Pin Circuit Type H-4 V DD Open Drain Data Output Disable 1 SEG Output Disable 2 Resistor Enable V DD Circuit Type H-4 P-CH N-CH Pull-Up Resistor I/O Figure 1-8. Pin Circuit Type H-8 (P2.1 – P2.7, P3)[...]
-
Pagina 32
PRODUCT OVERVIEW S3C 8275X/F8275X/C8278X/F8278X/C8274X/F8274X 1 - 10 V DD Data Output Disable 1 COM/SEG Outp ut Disable 2 Resis tor Enable V DD Circuit Type H-4 P-CH N-CH Pull-Up Resistor I/O Figure 1-9. Pin Circuit Type H-9 (P4, P5, P6)[...]
-
Pagina 33
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X PRODUCT OVERVIEW 1-11 V DD Data Output Disable 1 Resistor Enable V DD Circuit Type H- 4 P-CH N-CH Pull-Up Resistor I/O Open-Drain SEG Alternative Function BLDEN BLD Select To B LD Figure 1-10. Pin Circuit Type H-10 (P2.0)[...]
-
Pagina 34
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ADDRESS SPA CES 2-1 2 ADDRESS SPACES OVERVIEW The S3C8275X/C8278X/C8274X microcontroller has two types of address space: • Internal program memory (ROM) • Internal register file A 16-bit address bus supports program memory operations. A separate 8-bit register bus carries addresses and data between th[...]
-
Pagina 35
ADDRESS SPA CES S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 2-2 PROGRAM MEMORY (ROM) Program memory (ROM) stores progr am codes or table data. The S3C8275X has 16K bytes internal mask- programmable program memory, the S3C8278X has 8K bytes, the S3C8274X has 4K bytes. The first 256 bytes of the ROM (0H–0FFH) are reserved for interrupt vector addre[...]
-
Pagina 36
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ADDRESS SPA CES 2-3 SMART OPTION ROM Address: 003EH LSB MSB .7 .6 .5 .4 .3 .2 .1 .0 ISP reset vector change enable/disable bit: 0 = OBP reset vector address 1 = Normal vector (address 0100H) NOTES: 1. After selecting I SP res et vector address in sele cting ISP protection size, don't select upper tha[...]
-
Pagina 37
ADDRESS SPA CES S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 2-4 Smart option is the ROM option for start condition of t he chip. The ROM address used by smart option is from 003CH to 003FH. The ISP of smart option (003EH) is available in the S3F8275X only. The default value of ROM address 003EH is FFH. And ROM address 003EH should be kept FFH when [...]
-
Pagina 38
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ADDRESS SPA CES 2-5 REGISTER ARCHITECTURE In the S3C8275X/C8278X/C8274X implementation, the upper 64-byte area of register files is expanded two 64-byte areas, called set 1 and set 2 . The upper 32-byte area of set 1 is further expanded two 32-byte register banks (bank 0 and bank 1), and the lower 32-byte[...]
-
Pagina 39
ADDRESS SPA CES S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 2-6 System Registers (Register Addressing Mode) General Purpose Register (Register Addressing Mode) Bank 1 System and Peripheral Control Registers Bank 0 System and Peripheral Control Registers (Register Addressing Mode) Set1 FFH E0H 32 Bytes E0H DFH D0H CFH C0H Prime Data Registers (All a[...]
-
Pagina 40
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ADDRESS SPA CES 2-7 System Registers (Register Addressing Mode) General Purpose Register (Register Addressing Mode) Bank 1 System and Peripheral Control Registers Bank 0 System and Peripheral Control Registers (Register Addressing Mode) Set1 FFH E0H 32 Bytes E0H DFH D0H CFH C0H Prime Data Registers (All a[...]
-
Pagina 41
ADDRESS SPA CES S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 2-8 REGISTER PAGE POINTER (PP) The S3C8-series architecture supports the logical expansion of the physical 256-byte internal register file (using an 8-bit data bus) into as many as 16 separately addre ssable register pages. Page addressing is controlled by the register page pointer (PP, DF[...]
-
Pagina 42
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ADDRESS SPA CES 2-9 PROGRAMMING TIP — Using the Page Pointer for RAM Clear (Page 0, Page 1) LD PP,#00H ; Destination ← 0, Source ← 0 SRP #0C0H LD R0,#0FFH ; Page 0 RAM clear starts RAMCL0 CLR @R0 DJNZ R0,RAMCL0 CLR @R0 ; R0 = 00H LD PP,#10H ; Destination ← 1, Source ← 0 LD R0,#0FFH ; Page 1 [...]
-
Pagina 43
ADDRESS SPA CES S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 2-10 REGISTER SET 1 The term set 1 refers to the upper 64 bytes of the register file, locations C0H–FFH. The upper 32-byte area of this 64-byte space (E 0H–FFH) is expanded two 32-byte register banks, bank 0 and bank 1 . The set register bank instructions, SB0 or SB1, are used to addre[...]
-
Pagina 44
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ADDRESS SPA CES 2-11 PRIME REGISTER SPACE The lower 192 bytes (00H–BFH) of the S3C8275X/C8278X/C8274X's two or one 256-by te register pages is called prime register area. Prime registers can be accessed usi ng any of the seven addressing modes (see Chapter 3, "Addressing Modes.") The prim[...]
-
Pagina 45
ADDRESS SPA CES S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 2-12 WORKING REGISTERS Instructions can access specific 8-bit registers or 16-bit register pairs using either 4-bit or 8-bit address fields. When 4-bit working register addressing is used, the 256-by te register file can be seen by the programmer as one that consists of 32 8-byte register [...]
-
Pagina 46
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ADDRESS SPA CES 2-13 USING THE REGISTER POINTS Register pointers RP0 and RP1, mapped to addresses D6H and D7H in set 1, are used to select two movable 8-byte working register slices in the register file. After a reset, they point to the working register common area: RP0 points to addresses C0H–C7H, and [...]
-
Pagina 47
ADDRESS SPA CES S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 2-14 16-By te Contiguous work in g Register block Register File Contains 32 8-Byte Slices 0 0 0 0 0 X X X RP1 1 1 1 1 0 X X X RP0 0H (R0) 7H (R15) F0H (R0) F7H (R7) 8-Byte Slice 8-Byte Slice Figure 2-9. Non-Contiguous 16-Byte Working Register Block PROGRAMMING TIP — Using the RPs to [...]
-
Pagina 48
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ADDRESS SPA CES 2-15 REGISTER ADDRESSING The S3C8-series register architecture provides an effici ent method of working register addressing that takes full advantage of shorter instruction form ats to reduce execution time. With Register (R) addressing mode, in which the operand value is the content of a [...]
-
Pagina 49
ADDRESS SPA CES S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 2-16 RP1 RP0 Register Pointers 00H All Addressing Modes Page 0 Indirect Register, Index ed Addressing Mode s Page 0 Register Addressing O nly Can be Pointed by Register Pointer FFH E0H BFH Control Registers Sy stem Registers Special-Purpose Registers D0H C0H Bank 1 Bank 0 NOTE: In the S3C8[...]
-
Pagina 50
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ADDRESS SPA CES 2-17 COMMON WORKING REGISTER AREA (C0H–CFH) After a reset, register pointers RP0 and RP 1 automatically select two 8-byte r egister slices in set 1, locations C0H–CFH, as the active 16-byte working register block: RP0 → C0H–C7H RP1 → C8H–CFH This 16-byte address range is called[...]
-
Pagina 51
ADDRESS SPA CES S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 2-18 PROGRAMMING TIP — Addressing the Common Working Register Area As the following examples show, you should access working registers in the common area, locations C0H–CFH, using working register addressing mode only. Examples 1. LD 0C2H,40H ; Invalid addressing mode! Use working [...]
-
Pagina 52
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ADDRESS SPA CES 2-19 Together they create an 8-bit register address Register pointer provides five high-order bits Address OPCODE Selects RP0 or RP1 RP1 RP0 4-bit address provides three low-order bits Figure 2-13. 4-Bit Working Register Addressing Register address (76H) RP0 0 1 1 1 0 0 0 0 0 1 1 1 0 1 1 0[...]
-
Pagina 53
ADDRESS SPA CES S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 2-20 8-BIT WORKING REGISTER ADDRESSING You can also use 8-bit working register addressing to a ccess registers in a selected working register area. To initiate 8-bit working register addressing, the upper four bits of the instruction addr ess must contain the value "1100B." This [...]
-
Pagina 54
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ADDRESS SPA CES 2-21 8-bit address form instruction 'LD R11, R2' RP0 0 1 1 0 0 0 0 0 1 1 0 0 1 0 1 1 Selects RP1 R11 Register address (0ABH) RP1 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1 1 Specifies working register addressing Figure 2-16. 8-Bit Working Register Addressing Example[...]
-
Pagina 55
ADDRESS SPA CES S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 2-22 SYSTEM AND USER STACK The S3C8-series microcontrollers use the system stack for dat a storage, subroutine calls and returns. The PUSH and POP instructions are used to control system stack operations. The S3C8275X/C8278X/C8274X architecture supports stack operations in t he internal re[...]
-
Pagina 56
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ADDRESS SPA CES 2-23 Programming TIP — Standard Stack Operations Using PUSH and POP The following example shows you how to perform stack operat ions in the internal register file using PUSH and POP instructions: LD SPL,#0FFH ; SPL ← FFH ; (Normally, the SPL is set to 0FFH by the initialization ; r[...]
-
Pagina 57
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X A DDRESSING MODES 3-1 3 ADDRESSING MODES OVERVIEW Instructions that are stored in program memory are fetc hed for execution using the program counter. Instructions indicate the operation to be performed and the data to be operated on. Addressing mode is the method used to determine the location of the da[...]
-
Pagina 58
A DDRESSING MODES S3C 8275X/F8275X/C8278X/F8278X/C8274X/F8274X 3-2 REGISTER ADDRESSING MODE (R) In Register addressing mode (R), the operand value is the content of a specified register or register pair (see Figure 3-1). Working register addressing differs from Register addressing in that it uses a register pointer to specify an 8-byte working regi[...]
-
Pagina 59
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X A DDRESSING MODES 3-3 INDIRECT REGISTER ADDRESSING MODE (IR) In Indirect Register (IR) addressing mode, the content of the specified register or register pair is the address of the operand. Depending on the instruction used, the actual address may point to a register in the register file, to program memo[...]
-
Pagina 60
A DDRESSING MODES S3C 8275X/F8275X/C8278X/F8278X/C8274X/F8274X 3-4 INDIRECT REGISTER ADDRESSING MODE (Continued) dst OPCODE PAIR Points to Register Pair Example Instruction References Program Memory Sample Instructions: CALL @RR2 JP @RR2 Program Memory Register File Value used in Instruction OPERAND REGISTER Program Memory 16-Bit Address Points to [...]
-
Pagina 61
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X A DDRESSING MODES 3-5 INDIRECT REGISTER ADDRESSING MODE (Continued) dst OPCODE ADDRESS 4-bit Working Register Address Point to the Working Register (1 of 8) Sample Instruction: OR R3, @R6 Program Memory Register File src 3 LSBs Value used in Instruction OPERAND Selected RP points to start fo working regi[...]
-
Pagina 62
A DDRESSING MODES S3C 8275X/F8275X/C8278X/F8278X/C8274X/F8274X 3-6 INDIRECT REGISTER ADDRESSING MODE (Concluded) dst OPCODE 4-bit Working Register Address Sample Instructions: LCD R5,@RR6 ; Program memory access LDE R3,@RR14 ; External data memory access LDE @RR4, R8 ; External data memory access Program Memory Register File src Value used in Instr[...]
-
Pagina 63
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X A DDRESSING MODES 3-7 INDEXED ADDRESSING MODE (X) Indexed (X) addressing mode adds an offset value to a bas e address during instruction execution in order to calculate the effective operand address (see Figure 3-7). You can use Indexed addressing mode to access locations in the internal register file or[...]
-
Pagina 64
A DDRESSING MODES S3C 8275X/F8275X/C8278X/F8278X/C8274X/F8274X 3-8 INDEXED ADDRESSING MODE (Continued) Register File OPERAND Program Memory or Data Memory Point to Working Register Pair (1 of 4) LSB Selects 16-Bit address added to offset RP0 or RP1 MSB Points to RP0 or RP1 Selected RP points to start of working register block dst/src OPCODE Program[...]
-
Pagina 65
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X A DDRESSING MODES 3-9 INDEXED ADDRESSING MODE (Concluded) Register File OPERAND Program Memory or Data Memory Point to Working Register Pair LSB Selects 16-Bit address added to offset RP0 or RP1 MSB Points to RP0 or RP1 Selected RP points to start of working register block Sample Instructions: LDC R4, #1[...]
-
Pagina 66
A DDRESSING MODES S3C 8275X/F8275X/C8278X/F8278X/C8274X/F8274X 3-10 DIRECT ADDRESS MODE (DA) In Direct Address (DA) mode, the instruction provides the operand's 16-bi t memory address. Jump (JP) and Call (CALL) instructions use this addressi ng mode to specify the 16-bit destinati on address that is loaded into the PC whenever a JP or CALL ins[...]
-
Pagina 67
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X A DDRESSING MODES 3-11 DIRECT ADDRESS MODE (Continued) OPCODE Program Memory Lower Address Byte Memory Address Used Upper Address Byte Sample Instructions: JP C,JOB1 ; Where JOB1 is a 16-bit immediate address CALL DISPLAY ; Where DISPLAY is a 16-bit immediate address Next OPCODE Figure 3-11. Direct Addre[...]
-
Pagina 68
A DDRESSING MODES S3C 8275X/F8275X/C8278X/F8278X/C8274X/F8274X 3-12 INDIRECT ADDRESS MODE (IA) In Indirect Address (IA) mode, the in struction specifies an address located in the lowest 256 bytes of the program memory. The selected pair of memory locations contains t he actual address of the next instruction to be executed. Only the CALL instructio[...]
-
Pagina 69
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X A DDRESSING MODES 3-13 RELATIVE ADDRESS MODE (RA) In Relative Address (RA) mode, a twos-complement signed displacement between – 128 and + 127 is specified in the instruction. The displacement value is then added to the current PC value. The result is the address of the next instruction to be executed.[...]
-
Pagina 70
A DDRESSING MODES S3C 8275X/F8275X/C8278X/F8278X/C8274X/F8274X 3-14 IMMEDIATE MODE (IM) In Immediate (IM) addressing mode, the operand value used in the instruction is the value supplied in the operand field itself. The operand may be one byte or one word in length, depending on the inst ruction used. Immediate addressing mode is useful for loading[...]
-
Pagina 71
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-1 4 CONTROL REGISTERS OVERVIEW In this chapter, detailed descriptions of the S3C 8275X/C8278X/C8274X control registers are presented in an easy-to-read format. You can use this chapter as a quick-reference source when writing application programs. Figure 4-1 illustrates the important fe[...]
-
Pagina 72
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-2 Table 4-2. Set 1, Bank 0 Registers Register Name Mnemonic Address R/W Decimal Hex Oscillator control register OSCCON 224 E0H R/W SIO control register SIOCON 225 E1H R/W SIO data register SIODATA 226 E2H R/W SIO pre-scaler register SIOPS 227 E3H R/W Port 0 control register (high byte)[...]
-
Pagina 73
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-3 Table 4-3. Set 1, Bank 1 Registers Register Name Mnemonic Address R/W Decimal Hex LCD control Register LCON 224 E0H R/W Watch timer control register WTCON 225 E1H R/W Timer A counter TACNT 226 E2H R Timer B counter TBCNT 227 E3H R Timer A data register TADATA 228 E4H R/W Timer B data [...]
-
Pagina 74
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-4 FLA GS - Sy stem Flags R egister .7 Carry Fl ag (C) .6 Zero Flag (Z) .5 Bit Identifier Reset Value Read/Writ e Bit A ddressing Mode R = Read-onl y W = Wr i te - o n ly R/W = Re ad/write '-' = Not used Type of addressing that must be used to address the bit (1-bit, 4-bit, or[...]
-
Pagina 75
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-5 BLDCON — Battery Level Detector Control Register F4H Set 1, Bank 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value – – 0 0 0 0 0 0 Read/Write – – R/W R R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 Not used for the S3C8275X/C8278X/C8274X .5 V IN So[...]
-
Pagina 76
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-6 BTCON — Basic Timer Control Register D3H Set 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.4 Watchdog Timer Function Disable Code (for System Reset) 1 0 1 0 Disable[...]
-
Pagina 77
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-7 CLKCON — System Clock Control Register D4H Set 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 – – 0 0 – – – Read/Write R/W – – R/W R/W – – – Addressing Mode Register addressing mode only .7 Oscillator IRQ Wake-up Function Bit 0 Enable IRQ for main wake-up[...]
-
Pagina 78
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-8 CLOCON — Clock Output Control Register E8H Set 1, Bank 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value – – – – – – 0 0 Read/Write – – – – – – R/W R/W Addressing Mode Register addressing mode only .7–.2 Not used for the S3C8275X/C8278X/C8274X (must kee[...]
-
Pagina 79
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-9 EXTICONH — External Interrupt Control Register (High Byte) F8H Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P1.7 External Interrupt (INT7) Configurati[...]
-
Pagina 80
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-10 EXTICONL — External Interrupt Control Register (Low Byte) F9H Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P1.3 External Interrupt (INT3) Configurat[...]
-
Pagina 81
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-11 EXTIPND — External Interrupt Pending Register F7H Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7 P1.7/INT7 Interrupt Pending Bit 0 Interrupt request is not [...]
-
Pagina 82
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-12 FLAGS — System Flags Register D5H Set 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value x x x x x x 0 0 Read/Write R/W R/W R/W R/W R/W R/W R R/W Addressing Mode Register addressing mode only .7 Carry Flag (C) 0 Operation does not generate a carry or borrow condition 1 Operation[...]
-
Pagina 83
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-13 FMCON — Flash Memory Control Register F0H Set 1, Bank 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 – – 0 Read/Write R/W R/W R/W R/W R – – R/W Addressing Mode Register addressing mode only .7–.4 Flash Memory Mode Selection Bits 0 1 0 1 Programming mode 1 [...]
-
Pagina 84
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-14 FMSECH — Flash Memory Sector Address Register (High Byte) F2H Set 1, Bank 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.0 Flash Memory Sector Address Bits (High By[...]
-
Pagina 85
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-15 FMUSR — Flash Memory User Programming Enable Register F1H Set 1, Bank 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.0 Flash Memory User Programming Enable Bits 1 0 [...]
-
Pagina 86
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-16 IMR — Interrupt Mask Register DDH Set 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value x x x x x x x x Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7 Interrupt Level 7 (IRQ7) Enable Bit; External Interrupts P1.4–1.7 0 Disable (mas[...]
-
Pagina 87
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-17 IPH — Instruction Pointer (High Byte) DAH Set 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value x x x x x x x x Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.0 Instruction Pointer Address (High Byte) The high-byte instruction poin[...]
-
Pagina 88
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-18 IPR — Interrupt Priority Register FFH Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value x x x x x x x x Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7, .4, and .1 Priority Control Bits for Interrupt Groups A, B, and C (no[...]
-
Pagina 89
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-19 IRQ — Interrupt Request Register DCH Set 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R R R R R R R R Addressing Mode Register addressing mode only .7 Level 7 (IRQ7) Request Pending Bit; External Interrupt P1.4–1.7 0 Not pending 1 Pending .6 Lev[...]
-
Pagina 90
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-20 LCON — LCD Control Register E0H Set 1, Bank 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 – 0 Read/Write R/W R/W R/W R/W R/W R/W – R/W Addressing Mode Register addressing mode only .7 Internal LCD Dividing Resistors Enable Bit 0 Enable internal LCD dividing [...]
-
Pagina 91
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-21 OSCCON — Oscillator Control Register E0H Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 – – – 0 0 – 0 Read/Write R/W – – – R/W R/W – R/W Addressing Mode Register addressing mode only .7 Sub Oscillator Circuit Selection Bit 0 Initial state 1 Power[...]
-
Pagina 92
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-22 P0CONH — Port 0 Control Register (High Byte) E4H Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P0.7/BUZ Configuration Bits 0 0 Schmitt trigger input [...]
-
Pagina 93
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-23 P0CONL — Port 0 Control Register (Low Byte) E5H Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P0.3/T1CLK Configuration Bits 0 0 Schmitt trigger input [...]
-
Pagina 94
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-24 P0PUR — Port 0 Pull-Up Control Register E6H Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7 P0.7's Pull-up Resistor Enable Bit 0 Disable pull-up resist[...]
-
Pagina 95
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-25 P1CONH — Port 1 Control Register (High Byte) E7H Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P1.7/INT7 Configuration Bits 0 0 Schmitt trigger input [...]
-
Pagina 96
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-26 P1CONL — Port 1 Control Register (Low Byte) E8H Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P1.3/INT3 Configuration Bits 0 0 Schmitt trigger input [...]
-
Pagina 97
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-27 P1PUR — Port 1 Pull-up Control Register F9H Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7 P1.7's Pull-up Resistor Enable Bit 0 Disable pull-up resisto[...]
-
Pagina 98
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-28 P2CONH — Port 2 Control Register (High Byte) EAH Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P2.7/SEG24 Configuration Bits 0 0 Input mode 0 1 N-cha[...]
-
Pagina 99
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-29 P2CONL — Port 2 Control Register (Low Byte) EBH Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P2.3/SEG28 Configuration Bits 0 0 Input mode 0 1 N-chann[...]
-
Pagina 100
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-30 P2PUR — Port 2 Pull-up Control Register ECH Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7 P2.7's Pull-up Resistor Enable Bit 0 Disable pull-up resist[...]
-
Pagina 101
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-31 P3CONH — Port 3 Control Register (High Byte) EDH Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P3.7/SEG16 Configuration Bits 0 0 Input mode 0 1 N-chan[...]
-
Pagina 102
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-32 P3CONL — Port 3 Control Register (Low Byte) EEH Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P3.3/SEG20 Configuration Bits 0 0 Input mode 0 1 N-chan[...]
-
Pagina 103
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-33 P3PUR — Port 3 Pull-up Control Register EFH Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7 P3.7's Pull-up Resistor Enable Bit 0 Disable pull-up resisto[...]
-
Pagina 104
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-34 P4CONH — Port 4 Control Register (High Byte) E9H Set 1, Bank 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P4.7/SEG8 Configuration Bits 0 0 Input mode 0 1 Input [...]
-
Pagina 105
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-35 P4CONL — Port 4 Control Register (Low Byte) EAH Set 1, Bank 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P4.3/SEG12 Configuration Bits 0 0 Input mode 0 1 Input m[...]
-
Pagina 106
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-36 P5CONH — Port 5 Control Register (High Byte) EBH Set 1, Bank 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P5.7/SEG0 Configuration Bits 0 0 Input mode 0 1 Input [...]
-
Pagina 107
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-37 P5CONL — Port 5 Control Register (Low Byte) ECH Set 1, Bank 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P5.3/SEG4 Configuration Bits 0 0 Input mode 0 1 Input mo[...]
-
Pagina 108
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-38 P6CON — Port 6 Control Register EDH Set 1, Bank 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.6 P6.3/COM3 Configuration Bits 0 0 Input mode 0 1 Input mode with pul[...]
-
Pagina 109
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-39 PP — Register Page Pointer DFH Set 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.4 Destination Register Page Selection Bits 0 0 0 0 Destination: page 0 0 0 0 1 Dest[...]
-
Pagina 110
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-40 RP0 — Register Pointer 0 D6H Set 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 1 1 0 0 0 – – – Read/Write R/W R/W R/W R/W R/W – – – Addressing Mode Register addressing only .7–.3 Register Pointer 0 Address Value Register pointer 0 can independently point to on[...]
-
Pagina 111
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-41 SIOCON — SIO Control Register E1H Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7 SIO Shift Clock Selection Bit 0 Internal clock (P.S clock) 1 External clock[...]
-
Pagina 112
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-42 SPH — Stack Pointer (High Byte) D8H Set 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value x x x x x x x x Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.0 Stack Pointer Address (High Byte) The high-byte stack pointer value is the [...]
-
Pagina 113
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-43 STPCON — Stop Control Register FBH Set 1, Bank 0 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7–.0 STOP Control Bits 1 0 1 0 0 1 0 1 Enable stop instruction Other value[...]
-
Pagina 114
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-44 SYM — System Mode Register DEH Set 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 – – x x x 0 0 Read/Write R/W – – R/W R/ W R/W R/W R/W Addressing Mode Register addressing mode only .7 This bit must remain logic "0" .6–.5 Not used for the S3C8275X/C8278[...]
-
Pagina 115
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-45 TACON — Timer 1/A Control Register E6H Set 1, Bank 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7 Timer 1 Operating Mode Selection Bit 0 Two 8-bit timers mode (timer A/[...]
-
Pagina 116
CONTROL REGISTERS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 4-46 TBCON — Timer B Control Register E7H Set 1, Bank 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value – 0 0 0 0 0 0 0 Read/Write – R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7 Not used for the S3C8275X/C8278X/C8274X .6–.4 Timer B Clock Selecti[...]
-
Pagina 117
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X CONTROL REGISTER 4-47 WTCON — Watch Timer Control Register E1H Set 1, Bank 1 Bit Identifier .7 .6 .5 .4 .3 .2 .1 .0 Reset Value 0 0 0 0 0 0 0 0 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Addressing Mode Register addressing mode only .7 Watch Timer Clock Selection Bit 0 Main system clock divided by 2 7 ([...]
-
Pagina 118
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INTERRUPT STRUCTURE 5-1 5 INTERRUPT STRUCTURE OVERVIEW The S3C8-series interrupt structure has three basic components: levels, vectors, and sources. The SAM8RC CPU recognizes up to eight interrupt levels and supports up to 128 interrupt vectors. When a specific interrupt level has more than one vector ad[...]
-
Pagina 119
INTERRUPT STRUCTURE S3C 8275X/F8275X/C8278X/F8278X/C8274X/F8274X 5-2 INTERRUPT TYPES The three components of the S3C8 in terrupt structure described before ⎯ levels, vectors, and sources ⎯ are combined to determine the interrupt structure of an individual device and to make full use of its available interrupt logic. There are three possible com[...]
-
Pagina 120
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INTERRUPT STRUCTURE 5-3 S3C8275X/C8278X/C8274X INTERRUPT STRUCTURE The S3C8275X/C8278X/C8274X microcontroller supports twelve interrupt sources. All twelve of the interrupt sources have a corresponding interrupt vector address. Eight interrupt levels are recognized by the CPU in this device-specific inte[...]
-
Pagina 121
INTERRUPT STRUCTURE S3C8275X/F8275X/ C8278X/F8278X/C8274X/F8274X 5-4 INTERRUPT VECTOR ADDRESSES All interrupt vector addresses for the S3C8275X/C8278X/C 8274X interrupt structure are stored in the vector address area of the internal 16-Kbyte ROM, 0H − 3FFFH, or 8, 4-Kbyte (see Figure 5-3). You can allocate unused locations in the vector address a[...]
-
Pagina 122
S3C8275X/F8275X/C8278X/F8278X/ C8274X/F8274X INTERRUPT STRUCTURE 5-5 Table 5-1. Interrupt Vectors Vector Address Interrupt Source Request Reset/Clear Decimal Value Hex Value Interrupt Level Priority in Level H/W S/W 256 100H Basic timer overflow Reset − √ 242 F2H Timer B match IRQ0 1 √ 240 F0H Timer 1/A match 0 √ 244 F4H SIO interrupt IRQ1 [...]
-
Pagina 123
INTERRUPT STRUCTURE S3C8275X/F8275X/ C8278X/F8278X/C8274X/F8274X 5-6 ENABLE/DISABLE INTERRUPT INSTRUCTIONS (EI, DI) Executing the Enable Interrupts (EI) in struction globally enables the interrupt structure. All interrupts are then serviced as they occur according to the established priorities. NOTE The system initialization routine ex ecuted after[...]
-
Pagina 124
S3C8275X/F8275X/C8278X/F8278X/ C8274X/F8274X INTERRUPT STRUCTURE 5-7 INTERRUPT PROCESSING CONTROL POINTS Interrupt processing can therefore be controlled in two ways : globally or by specific in terrupt level and source. The system-level control points in the interrupt structure are: — Global interrupt enable and disable (by EI and DI inst ructio[...]
-
Pagina 125
INTERRUPT STRUCTURE S3C8275X/F8275X/ C8278X/F8278X/C8274X/F8274X 5-8 PERIPHERAL INTERRUPT CONTROL REGISTERS For each interrupt source there is one or more correspondi ng peripheral control register s that let you control the interrupt generated by the related peripheral (see Table 5-3). Table 5-3. Interrupt Source Control and Data Registers Interru[...]
-
Pagina 126
S3C8275X/F8275X/C8278X/F8278X/ C8274X/F8274X INTERRUPT STRUCTURE 5-9 SYSTEM MODE REGISTER (SYM) The system mode register, SYM (set 1, DEH), is used to globally enable and disable interrupt processing and to control fast interrupt processing (see Figure 5-5). A reset clears SYM.1, and SYM.0 to "0". The 3-bit value for fast interrupt level [...]
-
Pagina 127
INTERRUPT STRUCTURE S3C8275X/F8275X/ C8278X/F8278X/C8274X/F8274X 5-10 INTERRUPT MASK REGISTER (IMR) The interrupt mask register, IMR (set 1, DDH) is used to enable or disable interrupt processing for individual interrupt levels. After a reset, all IMR bit values are undetermined and must therefore be written to their required settings by the initia[...]
-
Pagina 128
S3C8275X/F8275X/C8278X/F8278X/ C8274X/F8274X INTERRUPT STRUCTURE 5-11 INTERRUPT PRIORITY REGISTER (IPR) The interrupt priority register, IPR (set 1, bank 0, FFH), is used to set the relative priorities of the interrupt levels in the microcontroller’s interrupt struct ure. After a reset, all IPR bit values are undetermined and must therefore be wr[...]
-
Pagina 129
INTERRUPT STRUCTURE S3C8275X/F8275X/ C8278X/F8278X/C8274X/F8274X 5-12 Interrupt Priority Register (IPR) FFH, Set 1, Bank 0, R/W .7 .6 .5 . 4 .3 .2 .1 .0 MSB L S B Group A : 0 = IRQ0 > IRQ1 1 = IRQ1 > IRQ0 Subgroup B: 0 = IRQ3 > IRQ4 1 = IRQ4 > IRQ3 Group C: 0 = IRQ5 > (IRQ6, IR Q7) 1 = (IRQ6, IRQ7) > IR Q5 Subgroup C: 0 = IRQ6 >[...]
-
Pagina 130
S3C8275X/F8275X/C8278X/F8278X/ C8274X/F8274X INTERRUPT STRUCTURE 5-13 INTERRUPT REQUEST REGISTER (IRQ) You can poll bit values in the interrupt request register, IRQ (set 1, DCH), to monitor interrupt request status for all levels in the microcontroller’s interrupt structure. Each bit corresponds to the interrupt level of the same number: bit 0 t[...]
-
Pagina 131
INTERRUPT STRUCTURE S3C8275X/F8275X/ C8278X/F8278X/C8274X/F8274X 5-14 INTERRUPT PENDING FUNCTION TYPES Overvi ew There are two types of interrupt pending bits: one type that is automatically cleared by hardware after the interrupt service routine is acknowledged and exec uted; the other that must be cleared in the interrupt service routine. Pending[...]
-
Pagina 132
S3C8275X/F8275X/C8278X/F8278X/ C8274X/F8274X INTERRUPT STRUCTURE 5-15 INTERRUPT SOURCE POLLING SEQUENCE The interrupt request polling and servicing sequence is as follows: 1. A source generates an interrupt request by setting the interrupt request bit to "1". 2. The CPU polling procedure identifie s a pending condition for that source. 3.[...]
-
Pagina 133
INTERRUPT STRUCTURE S3C8275X/F8275X/ C8278X/F8278X/C8274X/F8274X 5-16 GENERATING INTERRUPT VECTOR ADDRESSES The interrupt vector area in the ROM (00H − FFH) contains the addresses of in terrupt service routines that correspond to each level in the interrupt structure. Vectored interrupt processing follows this sequence: 1. Push the program counte[...]
-
Pagina 134
S3C8275X/F8275X/C8278X/F8278X/ C8274X/F8274X INTERRUPT STRUCTURE 5-17 FAST INTERRUPT PROCESSING (Continued) Two other system registers suppor t fast interrupt processing: • The instruction pointer (IP) contai ns the starting address of the service routine (and is later used to swap the program counter values), and • When a fast interrupt occurs[...]
-
Pagina 135
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-1 6 INSTRUCTION SET OVERVIEW The SAM88RC instruction set is specifically designed to support the large register files that are typical of most SAM8 microcontrollers. There are 78 instructions. The pow erful data manipulation capab ilities and features of the instruction set include: •[...]
-
Pagina 136
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-2 Table 6-1. Instruction Group Summary Mnemonic Operands Instruction Load Instructions CLR dst Clear LD dst,src Load LDB dst,src Load bit LDE dst,src Load external data memory LDC dst,src Load program memory LDED dst,src Load external data memory and decrement LDCD dst,src Load program [...]
-
Pagina 137
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-3 Table 6-1. Instruction Group Summary (Continued) Mnemonic Operands Instruction Arithmetic Instructions ADC dst,src Add with carry ADD dst,src Add CP dst,src Compare DA dst Decimal adjust DEC dst Decrement DECW dst Decrement word DIV dst,src Divide INC dst Increment INCW dst Increment [...]
-
Pagina 138
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-4 Table 6-1. Instruction Group Summary (Continued) Mnemonic Operands Instruction Program Control Instructions BTJRF dst,src Bit test and jump relative on false BTJRT dst,src Bit test and jump relative on true CALL dst Call procedure CPIJE dst,src Compare, increment and jump on equal CPI[...]
-
Pagina 139
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-5 Table 6-1. Instruction Group Summary (Concluded) Mnemonic Operands Instruction Rotate and Shift Instructions RL dst Rotate left RLC dst Rotate left through carry RR dst Rotate right RRC dst Rotate right through carry SRA dst Shift right arithmetic SWAP dst Swap nibbles CPU Control Ins[...]
-
Pagina 140
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-6 FLAGS REGISTER (FLAGS) The flags register FLAGS contains eight bits that descr ibe the current status of CPU operations. Four of these bits, FLAGS.7 − FLAGS.4, can be tested and used with conditional jump instructions; two others FLAGS.3 and FLAGS.2 are used for BCD arithmetic. The [...]
-
Pagina 141
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-7 FLAG DESCRIPTIONS C Carry Flag (FLAGS.7) The C flag is set to "1" if the result from an arithm etic operation generates a carry-out from or a borrow to the bit 7 position (MSB). After rotate and shift operations , it contains the last value shifted out of the specified regis[...]
-
Pagina 142
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-8 INSTRUCTION SET NOTATION Table 6-2. Flag Notation Conventions Flag Description C Carry flag Z Zero flag S Sign flag V Overflow flag D Decimal-adjust flag H Half-carry flag 0 Cleared to logic zero 1 Set to logic one * Set or cleared according to operation − Value is unaffected x Valu[...]
-
Pagina 143
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-9 Table 6-4. Instruction Notation Conventions Notation Description Actual Operand Range cc Condition code See list of condition codes in Table 6-6. r Working register only Rn (n = 0 − 15) rb Bit (b) of working register Rn.b (n = 0 − 15, b = 0 − 7) r0 Bit 0 (LSB) of working registe[...]
-
Pagina 144
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-10 Table 6-5. Opcode Quick Reference OPCODE MAP LOWER NIBBLE (HEX) − 0 1 2 3 4 5 6 7 U 0 DEC R1 DEC IR1 ADD r1,r2 ADD r1,Ir2 ADD R2,R1 ADD IR2,R1 ADD R1,IM BOR r0–Rb P 1 RLC R1 RLC IR1 ADC r1,r2 ADC r1,Ir2 ADC R2,R1 ADC IR2,R1 ADC R1,IM BCP r1.b, R2 P 2 INC R1 INC IR1 SUB r1,r2 SUB [...]
-
Pagina 145
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-11 Table 6-5. Opcode Quick Reference (Continued) OPCODE MAP LOWER NIBBLE (HEX) − 8 9 A B C D E F U 0 LD r1,R2 LD r2,R1 DJNZ r1,RA JR cc,RA LD r1,IM JP cc,DA INC r1 NEXT P 1 ↓ ↓ ↓ ↓ ↓ ↓ ↓ ENTER P 2 E X I T E 3 W F I R 4 S B 0 5 S B 1 N 6 I D L E I 7 ↓ ↓ ↓ ↓ ↓ ?[...]
-
Pagina 146
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-12 CONDITION CODES The opcode of a conditional jump always contains a 4-bit field called the condition code (cc). This specifies under which conditions it is to execute the jump. For example, a conditional jump with the condition code for "equal" after a compare operation only[...]
-
Pagina 147
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-13 INSTRUCTION DESCRIPTIONS This section contains detailed information and progr amming examples for each instruction in the SAM8 instruction set. Information is arranged in a consistent format for improved readability and for fast referencing. The following information is included in e[...]
-
Pagina 148
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-14 ADC — Add with carry ADC dst,src Operation: dst ← d s t + s r c + c The source operand, along with the setting of the carry flag, is added to the destination operand and the sum is stored in the destination. The contents of the source are unaffected. Two's- complement additi[...]
-
Pagina 149
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-15 ADD — Add ADD dst,src Operation: dst ← d s t + s r c The source operand is added to the destination oper and and the sum is stored in the destination. The contents of the source are unaffected. Two's-complement addition is performed. Flags: C: Set if there is a carry from th[...]
-
Pagina 150
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-16 AND — Logical AND AND dst,src Operation: dst ← d s t A N D s r c The source operand is logically ANDed with the destination operand. The result is stored in the destination. The AND operation results in a "1" bit being stored whenever the corresponding bits in the two o[...]
-
Pagina 151
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-17 BAND — Bit AND BAND dst,s rc.b BAND dst.b,s rc Operation: dst(0) ← dst(0) AND src(b) or dst(b) ← dst(b) AND src(0) The specified bit of the source (or the destination) is logically ANDed with the zero bit (LSB) of the destination (or source). The resultant bit is st ored in the[...]
-
Pagina 152
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-18 BCP — Bit Compare BCP dst,src.b Operation: dst(0) – src(b) The specified bit of the source is compared to (subtracted from) bit zero (LSB) of the destination. The zero flag is set if the bits are the same; otherwise it is cleared. The contents of both operands are unaffected by t[...]
-
Pagina 153
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-19 BITC — Bit Complement BITC dst.b Operation: dst(b) ← NOT dst(b) This instruction complements the specified bit wi thin the destination without affecting any other bits in the destination. Flags: C: Unaffected. Z: Set if the result is "0"; cleared otherwise. S: Cleared t[...]
-
Pagina 154
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-20 BITR — Bit Reset BITR dst.b Operation: dst(b) ← 0 The BITR instruction clears the specified bit within the destination without affecting any other bits in the destination. Flags: No flags are affected. Format: Bytes Cycles Opcode (Hex) Addr Mode dst opc dst | b | 0 2 4 77 rb NOTE[...]
-
Pagina 155
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-21 BITS — Bit Set BITS dst.b Operation: dst(b) ← 1 The BITS instruction sets the specified bit within the destination without affecting any other bits in the destination. Flags: No flags are affected. Format: Bytes Cycles Opcode (Hex) Addr Mode dst opc dst | b | 1 2 4 77 rb NOTE : I[...]
-
Pagina 156
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-22 BOR — Bit OR BOR dst,src.b BOR dst.b,src Operation: dst(0) ← d s t ( 0 ) O R s r c ( b ) or dst(b) ← d s t ( b ) O R s r c ( 0 ) The specified bit of the source (or the destinati on) is logically ORed with bit zero (LSB) of the destination (or the source). The resulting bit val[...]
-
Pagina 157
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-23 BTJRF — Bit Test, Jump Relative on False BTJRF dst,src.b Operation: If src(b) is a "0", then PC ← P C + d s t The specified bit within the source operand is test ed. If it is a "0", the relative address is added to the program counter and control passes to the[...]
-
Pagina 158
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-24 BTJRT — Bit Test, Jump Relative on True BTJRT dst,src.b Operation: If src(b) is a "1", then PC ← P C + d s t The specified bit within the source operand is test ed. If it is a "1", the relative address is added to the program counter and control passes to the [...]
-
Pagina 159
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-25 BXOR — Bit XOR BXOR dst,src.b BXOR dst.b,src Operation: dst(0) ← dst(0) XOR src(b) or dst(b) ← dst(b) XOR src(0) The specified bit of the source (or the destination) is logically exclusive-ORed with bit zero (LSB) of the destination (or source). The result bit is stored in the [...]
-
Pagina 160
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-26 CALL — Call Procedure CALL dst Operation: SP ← SP – 1 @SP ← PCL SP ← SP –1 @SP ← PCH PC ← dst The current contents of the program counter ar e pushed onto the top of t he stack. The program counter value used is the address of the first instruction following the CALL [...]
-
Pagina 161
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-27 CCF — Complement Carry Flag CCF Operation: C ← NOT C The carry flag (C) is complemented. If C = "1", the value of the carry flag is changed to logic zero; if C = "0", the value of the carry flag is changed to logic one. Flags: C: Complemented. No other flags a[...]
-
Pagina 162
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-28 CLR — Clear CLR dst Operation: dst ← "0" The destination location is cleared to "0". Flags: No flags are affected. Format: Bytes Cycles Opcode (Hex) Addr Mode dst opc dst 2 4 B0 R 4 B 1 I R Examples: Given: Register 00H = 4FH, register 01H = 02H, and register [...]
-
Pagina 163
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-29 COM — Complement COM dst Operation: dst ← N O T d s t The contents of the destination location are co mplemented (one's complement); all "1s" are changed to "0s", and vice-versa. Flags: C: Unaffected. Z: Set if the result is "0"; cleared otherwi[...]
-
Pagina 164
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-30 CP — Compare CP dst,src Operation: dst – src The source operand is compared to (subt racted from) the destination operand, and the appropriate flags are set accordingly. The contents of both operands are unaffected by the comparison. Flags: C: Set if a "borrow" occurred[...]
-
Pagina 165
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-31 CPIJE — Compare, Increment, and Jump on Equal CPIJE dst,src,RA Operation: If dst – src = "0", PC ← P C + R A Ir ← I r + 1 The source operand is compared to (subtracted from ) the destination operand. If the result is "0", the relative address is added to t[...]
-
Pagina 166
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-32 CPIJNE — Compare, Increment, and Jump on Non-Equal CPIJNE dst,s rc,RA Operation: If dst – src "0", PC ← P C + R A Ir ← I r + 1 The source operand is compared to (subtracted fr om) the destination operand. If the result is not "0", the relative address is a[...]
-
Pagina 167
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-33 DA — Decimal Adjust DA dst Operation: dst ← D A d s t The destination operand is adjusted to form tw o 4-bit BCD digits following an addition or subtraction operation. For additi on (ADD, ADC) or subtraction (SUB, SBC), the following table indicates the operation performed. (The [...]
-
Pagina 168
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-34 DA — Decimal Adjust DA (Continued) Example: Given: Working register R0 contains the va lue 15 (BCD), working register R1 contains 27 (BCD), and address 27H contains 46 (BCD): ADD R1,R0 ; C ← "0", H ← "0", Bits 4–7 = 3, bits 0–3 = C, R1 ← 3CH DA R1 ; R1[...]
-
Pagina 169
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-35 DEC — Decrement DEC dst Operation: dst ← dst – 1 The contents of the destinati on operand are decremented by one. Flags: C: Unaffected. Z: Set if the result is "0"; cleared otherwise. S: Set if result is negative; cleared otherwise. V: Set if arithmetic overflow occur[...]
-
Pagina 170
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-36 DECW — Decrement Word DECW dst Operation: dst ← dst – 1 The contents of the destination location (which must be an even address) and the operand following that location are treated as a singl e 16-bit value that is decremented by one. Flags: C: Unaffected. Z: Set if the result [...]
-
Pagina 171
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-37 DI — Disable Interrupts DI Operation: SYM (0) ← 0 Bit zero of the system mode control register, SYM.0, is cleared to "0", globally disabling all interrupt processing. Interrupt r equests will continue to set their respective interrupt pending bits, but the CPU will not [...]
-
Pagina 172
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-38 DIV — Divide (Unsigned) DIV dst,src Operation: dst ÷ src dst (UPPER) ← REMAINDER dst (LOWER) ← QUOTIENT The destination operand (16 bits) is divided by the source operand (8 bits). The quotient (8 bits) is stored in the lower half of the destination. The remainder (8 bits) is [...]
-
Pagina 173
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-39 DJNZ — Decrement and Jump if Non-Zero DJNZ r,dst Operation: r ← r – 1 If r ≠ 0, PC ← P C + d s t The working register being used as a counter is decremented. If the content s of the register are not logic zero after decrementing, the relative address is added to the program[...]
-
Pagina 174
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-40 EI — Enable Interrupts EI Operation: SYM (0) ← 1 An EI instruction sets bit zero of the system m ode register, SYM.0 to "1". This allows interrupts to be serviced as they occur (assu ming they have highest priority). If an interrupt's pending bit was set while inte[...]
-
Pagina 175
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-41 ENTER — Enter ENTER Operation: SP ← SP – 2 @SP ← IP IP ← PC PC ← @IP IP ← IP + 2 This instruction is useful when implementing threaded-code languages. The contents of the instruction pointer are pushed to the stack. The pr ogram counter (PC) value is then written to the[...]
-
Pagina 176
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-42 EXIT — Exit EXIT Operation: IP ← @SP SP ← SP + 2 PC ← @IP IP ← I P + 2 This instruction is useful when implem enting threaded-code languages. The stack value is popped and loaded into the instruction pointer. The pr ogram memory word that is pointed to by the instruction po[...]
-
Pagina 177
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-43 IDLE — Idle Operation IDLE Operation: The IDLE instruction stops the CPU clock while a llowing system clock oscillation to continue. Idle mode can be released by an interrupt request (IRQ) or an external reset operation. In application programs, a IDLE instruction must be immediate[...]
-
Pagina 178
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-44 INC — Increment INC dst Operation: dst ← d s t + 1 The contents of the destinati on operand are incremented by one. Flags: C: Unaffected. Z: Set if the result is "0"; cleared otherwise. S: Set if the result is negative; cleared otherwise. V: Set if arithmetic overflow o[...]
-
Pagina 179
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-45 INCW — Increment Word INCW dst Operation: dst ← d s t + 1 The contents of the destination (which must be an even address) and the byte following that location are treated as a single 16-bit value that is incremented by one. Flags: C: Unaffected. Z: Set if the result is "0&qu[...]
-
Pagina 180
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-46 IRET — Interrupt Return IRET IRET (Normal) IRET (Fast) Operation: FLAGS ← @SP PC ↔ I P SP ← SP + 1 FLAGS ← FLAGS' PC ← @SP FIS ← 0 SP ← S P + 2 SYM(0) ← 1 This instruction is used at the end of an interrupt service routine. It restores the flag register and the[...]
-
Pagina 181
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-47 JP — Jump JP cc,dst (Conditional) JP dst (Unconditional) Operation: If cc is true, PC ← d s t The conditional JUMP instruction transfers pr ogram control to the destination address if the condition specified by the condition code (cc) is true; otherwise, the instruction following[...]
-
Pagina 182
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-48 JR — Jump Relative JR cc, dst Operation: If cc is true, PC ← P C + d s t If the condition specified by the condition code (cc) is true, the relative address is added to the program counter and control passes to the statement whose address is now in the program counter; otherwise,[...]
-
Pagina 183
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-49 LD — Load LD ds t,src Operation: dst ← src The contents of the source are loaded into the destination. The source's contents are unaffected. Flags: No flags are affected. Format: Bytes Cycles Opcode (Hex) Addr Mode dst s r c dst | opc src 2 4 rC r IM 4 r8 r R src | opc dst 2[...]
-
Pagina 184
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-50 LD — Load LD (Continued) Examples: Given: R0 = 01H, R1 = 0AH, regi ster 00H = 01H, register 01H = 20H, register 02H = 02H, LOOP = 30H, and register 3AH = 0FFH: LD R0,#10H → R 0 = 1 0 H LD R0,01H → R0 = 20H, register 01H = 20H LD 01H,R0 → Register 01H = 01H, R0 = 01H LD R1,@R0[...]
-
Pagina 185
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-51 LDB — Load Bit LDB dst,s rc.b LDB dst.b,s rc Operation: dst(0) ← src(b) or dst(b) ← src(0) The specified bit of the source is loaded into bit zero (LSB) of the destination, or bit zero of the source is loaded into the specified bit of the des tination. No other bits of the dest[...]
-
Pagina 186
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-52 LDC/LDE — Load Memory LDC/LDE dst,src Operation: dst ← src This instruction loads a byte from program or data memory into a working register or vice-versa. The source values are unaffected. LDC refers to program memory and LDE to data memory. The assembler makes 'Irr' o[...]
-
Pagina 187
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-53 LDC/LDE — Load Memory LDC/LDE (Continued) Examples: Given: R0 = 11H, R1 = 34H, R2 = 01H, R3 = 04H; Program memory locations 0103H = 4FH, 0104H = 1A, 0105H = 6DH, and 1104H = 88H. External data memory locations 0103H = 5FH, 0104H = 2AH, 0105H = 7DH, and 1104H = 98H: LDC R0,@RR2 ; R0[...]
-
Pagina 188
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-54 LDCD/LDED — Load Memory and Decrement LDCD/LDED dst,src Operation: dst ← src rr ← rr – 1 These instructions are used for user stacks or block transfers of data from program or data memory to the register file. The address of the me mory location is specified by a working regi[...]
-
Pagina 189
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-55 LDCI/LDEI — Load Memory and Increment LDCI/LDEI dst,src Operation: dst ← src rr ← r r + 1 These instructions are used for user stacks or block transfers of data from program or data memory to the register file. The address of the me mory location is specified by a working regis[...]
-
Pagina 190
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-56 LDCPD/LDEPD — Load Memory with Pre-Decrement LDCPD/ LDEPD dst,s rc Operation: rr ← r r – 1 dst ← src These instructions are used for block transfers of data from program or data memory from the register file. The address of the memory location is specified by a working regist[...]
-
Pagina 191
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-57 LDCPI/LDEPI — Load Memory with Pre-Increment LDCPI/ LDEPI dst,src Operation: rr ← r r + 1 dst ← src These instructions are used for block transfers of data from program or data memory from the register file. The address of the memory location is specified by a working register [...]
-
Pagina 192
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-58 LDW — Load Word LDW dst,s rc Operation: dst ← src The contents of the source (a word) are loaded in to the destination. The contents of the source are unaffected. Flags: No flags are affected. Format: Bytes Cycles Opcode (Hex) Addr Mode dst s r c opc src dst 3 8 C4 RR RR 8 C5 RR [...]
-
Pagina 193
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-59 MULT — Multiply (Unsigned) MULT dst,src Operation: dst ← d s t × src The 8-bit destination operand (even register of t he register pair) is multiplied by the source operand (8 bits) and the product (16 bits) is stored in the register pair spec ified by the destination address. B[...]
-
Pagina 194
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-60 NEXT — Next NEXT Operation: PC ← @ I P IP ← I P + 2 The NEXT instruction is useful when implementing threaded-code languages. The program memory word that is pointed to by the instruct ion pointer is loaded into the program counter. The instruction pointer is then incremented b[...]
-
Pagina 195
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-61 NOP — No Operation NOP Operation: No action is performed when the CPU executes this instruction. Typically, one or more NOPs are executed in sequence in order to effect a timing delay of variable duration. Flags: No flags are affected. Format: Bytes Cycles Opcode (Hex) opc 1 4 FF E[...]
-
Pagina 196
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-62 OR — Logical OR OR dst,src Operation: dst ← d s t O R s r c The source operand is logically ORed with the destination operand and the result is stored in the destination. The contents of the source are una ffected. The OR operation results in a "1" being stored whenever[...]
-
Pagina 197
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-63 POP — Pop From Stack POP dst Operation: dst ← @SP SP ← S P + 1 The contents of the location addressed by the st ack pointer are loaded into the destination. The stack pointer is then incremented by one. Flags: No flags affected. Format: Bytes Cycles Opcode (Hex) Addr Mode dst o[...]
-
Pagina 198
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-64 POPUD — Pop User Stack (Decrementing) POPUD dst,src Operation: dst ← src IR ← IR – 1 This instruction is used for user-defined stacks in t he register file. The content s of the register file location addressed by the user stack pointer ar e loaded into the destination. The u[...]
-
Pagina 199
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-65 POPUI — Pop User Stack (Incrementing) POPUI dst,src Operation: dst ← src IR ← IR + 1 The POPUI instruction is used for user-defined st acks in the register file. The contents of the register file location addressed by the user stack pointer are loaded into the destination. The [...]
-
Pagina 200
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-66 PUSH — Push To Stack PUSH src Operation: SP ← S P – 1 @SP ← src A PUSH instruction decrements the stack pointer value and loads the contents of the source (src) into the location addressed by the decremented stack pointer. The operation then adds the new value to the top of t[...]
-
Pagina 201
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-67 PUSHUD — Push User Stack (Decrementing) PUSHUD ds t,src Operation: IR ← I R – 1 dst ← src This instruction is used to address user-defined stacks in the register file. PUSHUD decrements the user stack pointer and loads the contents of the source into the register addressed by[...]
-
Pagina 202
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-68 PUSHUI — Push User Stack (Incrementing) PUSHUI dst,src Operation: IR ← I R + 1 dst ← src This instruction is used for user-defined stacks in the register file. PUSHUI increments the user stack pointer and then loads the c ontents of the source into the register location address[...]
-
Pagina 203
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-69 RCF — Reset Carry Flag RCF RCF Operation: C ← 0 The carry flag is cleared to logic zero , regardless of its previous value. Flags: C: Cleared to "0". No other flags are affected. Format: Bytes Cycles Opcode (Hex) opc 1 4 CF Example: Given: C = "1" or "0&q[...]
-
Pagina 204
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-70 RET — Return RET Operation: PC ← @SP SP ← S P + 2 The RET instruction is normally used to return to the previously executi ng procedure at the end of a procedure entered by a CALL instruction. The c ontents of the location addressed by the stack pointer are popped into the prog[...]
-
Pagina 205
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-71 RL — Rotate Left RL dst Operation: C ← dst (7) dst (0) ← dst (7) dst (n + 1) ← dst (n), n = 0–6 The contents of the destination operand are rotated le ft one bit position. The initial value of bit 7 is moved to the bit zero (LSB) position and also replaces the carry flag. 7[...]
-
Pagina 206
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-72 RLC — Rotate Left Through Carry RLC dst Operation: dst (0) ← C C ← dst (7) dst (n + 1) ← dst (n), n = 0–6 The contents of the destination operand with the carry flag are rotated left one bit position. The initial value of bit 7 replaces the carry flag (C); the initial value[...]
-
Pagina 207
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-73 RR — Rotate Right RR dst Operation: C ← dst (0) dst (7) ← dst (0) dst (n ) ← dst (n + 1), n = 0–6 The contents of the destination operand are rotated right one bit position. The initial value of bit zero (LSB) is moved to bit 7 (MSB) and also replaces the carry flag (C). 70[...]
-
Pagina 208
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-74 RRC — Rotate Right Through Carry RRC dst Operation: dst (7) ← C C ← dst (0) dst (n) ← dst (n + 1), n = 0–6 The contents of the destination operand and the carry flag are rotated right one bit position. The initial value of bit zero (LSB) replaces the carry flag; the initial[...]
-
Pagina 209
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-75 SB0 — Select Bank 0 SB0 Operation: BANK ← 0 The SB0 instruction clears the bank address flag in the FLAGS register (FLAGS.0) to logic zero, selecting bank 0 register addressing in the set 1 area of the register file. Flags: No flags are affected. Format: Bytes Cycles Opcode (Hex)[...]
-
Pagina 210
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-76 SB1 — Select Bank 1 SB1 Operation: BANK ← 1 The SB1 instruction sets the bank address flag in the FLAGS register (FLAGS.0) to logic one, selecting bank 1 register addressing in the set 1 area of the register file. (Bank 1 is not implemented in some S3C8-series microcontrollers.) [...]
-
Pagina 211
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-77 SBC — Subtract with Carry SBC dst,src Operation: dst ← dst – src – c The source operand, along with the current val ue of the carry flag, is subtracted from the destination operand and the result is stored in the destination. The contents of the source are unaffected. Subtrac[...]
-
Pagina 212
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-78 SCF — Set Carry Flag SCF Operation: C ← 1 The carry flag (C) is set to logic one, regardless of its previous value. Flags: C: Set to "1". No other flags are affected. Format: Bytes Cycles Opcode (Hex) opc 1 4 DF Example: The statement SCF sets the carry flag to logic on[...]
-
Pagina 213
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-79 SRA — Shift Right Arithmetic SRA dst Operation: dst (7) ← dst (7) C ← dst (0) dst (n) ← dst (n + 1), n = 0–6 An arithmetic shift-right of one bit position is performed on the destination operand. Bit zero (the LSB) replaces the carry flag. The value of bit 7 (the sign bit) [...]
-
Pagina 214
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-80 SRP/SRP0/SRP1 — Set Register Pointer SRP src SRP0 src SRP1 src Operation: If src (1) = 1 and src (0) = 0 then: RP0 (3–7) ← src (3–7) If src (1) = 0 and src (0) = 1 then: RP1 (3–7) ← src (3–7) If src (1) = 0 and src (0) = 0 then: RP0 (4–7) ← src (4–7), RP0 (3) ← [...]
-
Pagina 215
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-81 STOP — Stop Operation STOP Operation: The STOP instruction stops the both the CPU clock and system clock and causes the microcontroller to enter Stop mode. During Stop mode, the contents of on- chip CPU registers, peripheral registers, and I/O port control and data registers are re[...]
-
Pagina 216
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-82 SUB — Subtract SUB dst,src Operation: dst ← dst – src The source operand is subtracted from the des tination operand and the result is stored in the destination. The contents of the source are una ffected. Subtraction is performed by adding the two's complement of the sour[...]
-
Pagina 217
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-83 SWAP — Swap Nibbles SWAP dst Operation: dst (0 – 3) ↔ dst (4 – 7) The contents of the lower four bits and upper four bits of the destination operand are swapped. 70 4 3 Flags: C: Undefined. Z: Set if the result is "0"; cleared otherwise. S: Set if the result bit 7 i[...]
-
Pagina 218
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-84 TCM — Test Complement Under Mask TCM dst,src Operation: (NOT dst) AND src This instruction tests selected bits in the des tination operand for a logic one value. The bits to be tested are specified by setting a "1" bit in the corresponding position of the source operand ([...]
-
Pagina 219
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-85 TM — Test Under Mask TM dst,src Operation: dst AND src This instruction tests selected bits in the destination operand for a logic zero value. The bits to be tested are specified by setting a "1" bit in the corresponding position of the source operand (mask), which is AND[...]
-
Pagina 220
INSTRUCTION SET S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 6-86 WFI — Wait for Interrupt WFI Operation: The CPU is effectively halted until an interrupt o ccurs, except that DMA transfers can still take place during this wait state. The WFI status c an be released by an internal interrupt, including a fast interrupt. Flags: No flags are affecte[...]
-
Pagina 221
S3C8275X/F8275X/C8278X/F8278X/C8274X/F 8274X INSTRUCTION SET 6-87 XOR — Logical Exclusive OR XOR dst,src Operation: dst ← d s t X O R s r c The source operand is logically exclusive-OR ed with the destination operand and the result is stored in the destination. The exclusive-OR oper ation results in a "1" bit being stored whenever the[...]
-
Pagina 222
S3C8275X/F8275X/C8278X/F8278X/C8274X /F8274X CLOCK CIRCUIT 7-1 7 CLOCK CIRCUIT OVERVIEW The S3C8275X/C8278X/C8274X microcontroller has two oscillator circuits: a main clock and a sub clock circuit. The CPU and peripheral hardware operate on the system clock frequency supplied through these circuits. The maximum CPU clock frequency of S3C8275X/C8278[...]
-
Pagina 223
CLOCK CIRCUIT S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 7-2 MAIN OSCILLATOR CIRCUITS X IN X OUT Figure 7-1. Crystal/Ceramic Oscillator (fx) X IN X OUT Figure 7-2. External Oscillator (fx) X IN X OUT R Figure 7-3. RC Oscillator (fx) SUB OSCILLATOR CIRCUITS XT IN XT OUT 32.768 kHz V REG 104 Figure 7-4. Crystal Oscillator (fxt) XT IN XT OUT Figure [...]
-
Pagina 224
S3C8275X/F8275X/C8278X/F8278X/C8274X /F8274X CLOCK CIRCUIT 7-3 CLOCK STATUS DURING POWER-DOWN MODES The two power-down modes, Stop mode and Idle mode, affect the system clock as follows: • In stop mode, the main oscillator is halted. Stop m ode is released, and the oscillator started, by a reset operation or an external interrupt (with RC delay n[...]
-
Pagina 225
CLOCK CIRCUIT S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 7-4 SYSTEM CLOCK CONTROL REGISTER (CLKCON) The system clock control register, CLKCON, is located in the set 1, at address D4H. It is read/write addressable and has the following functions: • Oscillator IRQ wake up function enable/disable • Oscillator frequency divide-by value CLKCON reg[...]
-
Pagina 226
S3C8275X/F8275X/C8278X/F8278X/C8274X /F8274X CLOCK CIRCUIT 7-5 CLOCK OUTPUT CONTROL REGISTER (CLOCON) The clock output control register, CLOCON, is locat ed in set 1 bank 1, at address E8H. It is read/write addressable and has the following functions: • Clock output frequency selection After a reset, fxx/64 is select for clock output frequency be[...]
-
Pagina 227
CLOCK CIRCUIT S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 7-6 OSCILLATOR CONTROL REGISTER (OSCCON) The oscillator control register, OSCCON, is located in se t 1, bank 0, at address E0H. It is read/write addressable and has the following functions: • System clock selection • Main oscillator control • Sub oscillator control • Sub oscillator [...]
-
Pagina 228
S3C8275X/F8275X/C8278X/F8278X/C8274X /F8274X CLOCK CIRCUIT 7-7 SWITCHING THE CPU CLOCK Data loading in the oscillator control register, OSCCON, determine whether a main or a sub clock is selected as the CPU clock, and also how this frequency is to be divided by setting CLKCON. This makes it possible to switch dynamically between main and sub clo ck[...]
-
Pagina 229
CLOCK CIRCUIT S3C8275X /F8275X/C8278X/F8278X/C8274X/F8274X 7-8 STOP Control R e gister (STPCON ) FBH, Set 1, Bank 0, R/W .7 .6 .5 .4 .3 .2 .1 .0 MSB L SB ST OP cont rol bit s: Other values = Disable STOP instruction 10100101 = Enable STOP instruction NOTE: Before execute the STO P instruction, set this STPCON register as "1010010 1B". Oth[...]
-
Pagina 230
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X RESET and POWER-DOWN 8-1 8 RESET and POWER-DOWN SYSTEM RESET OVERVIEW During a power-on reset, the voltage at V DD goes to High level and the nRESET pin is forced to Low level. The nRESET signal is input through a schmitt trigger circuit wher e it is then synchronized wi th the CPU clock. This procedure b[...]
-
Pagina 231
RESET and POWER-DOWN S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 8-2 HARDWARE RESET VALUES Table 8-1, 8-2, 8-3 list the reset values for CPU and system registers, peripheral cont rol registers, and peripheral data registers following a reset operation. The follo wing notation is used to represent reset values: • A "1" or a "0"[...]
-
Pagina 232
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X RESET and POWER-DOWN 8-3 Table 8-2. S3C8275X/C8278X/C8274X Set 1, Bank 0 Register Values After RESET Register Name Mnemonic Address Bit Values After RESET Dec Hex 7 6 5 4 3 2 1 0 Oscillator control register OSCCON 224 E0H 0 − − − 00 − 0 SIO control register SIOCON 225 E1H 0 0 0 0 0 0 0 0 SIO data [...]
-
Pagina 233
RESET and POWER-DOWN S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 8-4 Table 8-3. S3C8275X/C8278X/C8274X Set 1, Bank 1 Register Values After RESET Register Name Mnemonic Address Bit Values After RESET Dec Hex 7 6 5 4 3 2 1 0 LCD control register LCON 224 E0H 0 0 0 0 0 0 − 0 Watch timer control register WTCON 225 E1H 0 0 0 0 0 0 0 0 Timer A counter [...]
-
Pagina 234
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X RESET and POWER-DOWN 8-5 POWER-DOWN MODES STOP MODE Stop mode is invoked by the instruction STOP (opcode 7FH). In Stop mode, the operation of the CPU and all peripherals is halted. That is, the on-chip main oscilla tor stops and the supply current is reduced to less than 3 µ A. All system functions stop [...]
-
Pagina 235
RESET and POWER-DOWN S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 8-6 IDLE MODE Idle mode is invoked by the instruction IDLE (opcode 6F H). In idle mode, CPU operations are halted while some peripherals remain active. During idle mode, the inter nal clock signal is gated away from the CPU, but all peripherals remain active. Port pins retain the mode[...]
-
Pagina 236
S3C8275X/F8275X/C8278X/F8278X/C 8274X/F8274X I/O PORTS 9-1 9 I/O PORTS OVERVIEW The S3C8275X/C8278X/C8274X microcontroller has seven bit-programmable I/O ports, P0 − P6. Port 0 − port 5 are 8-bit ports, port 6 is 4-bit. This gives a total of 52 I/O pins. Each port can be flexibly configured to meet application design requirements. The CPU acces[...]
-
Pagina 237
I/O PORTS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 9-2 PORT DATA REGISTERS Table 9-2 gives you an overview of the register lo cations of all seven S3C8275X/C8278X/C8274X I/O port data registers. Data registers for ports 0, 1, 2, 3, 4, 5, and 6 have the general format shown in Figure 9-1. Table 9-2. Port Data Register Summary Register Name Mnemon[...]
-
Pagina 238
S3C8275X/F8275X/C8278X/F8278X/C 8274X/F8274X I/O PORTS 9-3 PORT 0 Port 0 is an 8-bit I/O port with individually configurable pins . Port 0 pins are accessed directly by writing or reading the port 0 data register, P0 at location F0H in set 1, bank 0. P0.0-P0.7 can serve as inputs (with or without pull- up), as outputs (push-pull or open-drain) or y[...]
-
Pagina 239
I/O PORTS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 9-4 Port 0 Control Register, High Byte (P0CONH) E4H, Set 1, Bank 0 , R/W .7 .6 .5 .4 .3 .2 .1 .0 MSB LSB P0.7/BUZ P0CONH bit-pair pin configuration settings: 00 01 10 11 Push-pull output mode Alternative function (BUZ, CLKOUT, TBOUT , TAOUT) P0.6/CLKOUT P0 .5/TBOUT P0.4/T AOUT N-channel open-dra[...]
-
Pagina 240
S3C8275X/F8275X/C8278X/F8278X/C 8274X/F8274X I/O PORTS 9-5 Port 0 Pull-up Control Register (P0PUR) E6H, Set 1, Bank 0, R/W .7 .6 .5 .4 .3 .2 .1 .0 MSB L S B P0PUR bit configuration s ettings: 0 1 Enabl e pull- up resistor Disable pull-up resistor P0.3 P0.2 P0.1 P0.0 P0.7 P0.6 P0.5 P0.4 NOTE: A pull- up resistor of po rt 0 is a utomat ically disable[...]
-
Pagina 241
I/O PORTS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 9-6 External Interrupt Pending Register (EXT IPND) F7H, Set 1, Bank 0, R/W .7 .6 .5 .4 .3 .2 .1 .0 MSB LS B EXT IPND bit configuration settings: 0 1 Interrupt is pending (when read) No interrupt pending (when read), clear pending bit (when write) P0.2 (INT2) P0.1 (INT1) P0.0 (INT0) P1.7 (INT7) P[...]
-
Pagina 242
S3C8275X/F8275X/C8278X/F8278X/C 8274X/F8274X I/O PORTS 9-7 PORT 1 Port 1 is an 8-bit I/O port with individually configurable pins . Port 1 pins are accessed directly by writing or reading the port 1 data register, P1 at location F1H in set 1, bank 0. P1.0 − P1.7 can serve as inputs (with or without pull- up), as outputs (push-pull or open-drain) [...]
-
Pagina 243
I/O PORTS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 9-8 Port 1 Control Register, High Byte (P1CONH) E7H, Set 1, Bank 0 , R/W .7 .6 .5 .4 .3 .2 .1 .0 MSB L SB P1.7/INT7 P1CONH bit-pair pin configuration settings: 00 01 10 11 Push-pull output mode Not available P1.6/INT6 P1.5/INT5 P1.4/INT4 N-channel open-drain output m ode Schmitt trigger input m [...]
-
Pagina 244
S3C8275X/F8275X/C8278X/F8278X/C 8274X/F8274X I/O PORTS 9-9 Port 1 Pull-up Control Register (P1PUR) E9H, Set 1, Bank 0, R/W .7 .6 .5 .4 .3 .2 .1 .0 MSB L S B P1PUR bit configuration s ettings: 0 1 Enabl e pull- up resistor Disable pull-up resistor P1.3 P1.2 P1.1 P1.0 P1.7 P1.6 P1.5 P1.4 NOTE: A pull-up resistor of port 1 is automatic ally disabled w[...]
-
Pagina 245
I/O PORTS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 9-10 External Interrupt Control Register, Low Byte (EXTICONL) F9H, Set 1, Bank 0, R/W .7 .6 .5 .4 .3 .2 .1 .0 MSB L SB P1.3/INT3 EXTIC ONL bit configuration settings: 00 01 Enable interrupt by falling edge Disable interrupt 10 11 Enable interrupt by both falling and rising edge Enable interrupt [...]
-
Pagina 246
S3C8275X/F8275X/C8278X/F8278X/C 8274X/F8274X I/O PORTS 9-11 PORT 2 Port 2 is an 8-bit I/O port with individually configurable pins . Port 2 pins are accessed directly by writing or reading the port 2 data register, P2 at location F2H in set 1, Bank 0. P2.0-P2.7 can serve as inputs (with or without pull- up), as outputs (push-pull or open-drain) or [...]
-
Pagina 247
I/O PORTS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 9-12 Port 2 Control Register, Low Byte (P2CONL) EBH, Set 1, Bank 0, R/W .7 .6 .5 .4 .3 .2 .1 .0 MSB L SB P2.3/SEG28 P2CONL bit-pair pin configuration settings: 00 01 10 11 Alternative function (SEG28-SEG31/V BLDREF ) P2.2/SEG29 P2.1/SEG30 P2.0/SEG 31/V BLDREF Input mode N-channel open-drain outp[...]
-
Pagina 248
S3C8275X/F8275X/C8278X/F8278X/C 8274X/F8274X I/O PORTS 9-13 PORT 3 Port 3 is an 8-bit I/O port with individually configurable pins . Port 3 pins are accessed directly by writing or reading the port 3 data register, P3 at location F3H in set 1, bank 0. P3.0-P3.7 can serve as inputs (with or without pull- up), as outputs (push-pull or open-drain) or [...]
-
Pagina 249
I/O PORTS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 9-14 Port 3 Control Register, Low Byte (P3CONL) EEH, Set 1, Bank 0, R/W .7 .6 .5 .4 .3 .2 .1 .0 MSB L SB P3.1/SEG22 P3.0/SEG23 P3CONL bit-pair pin configuration settings : 00 01 10 11 Alternative func tion (SEG20-SEG23) Input mode N-channel open-drain output mode Push-pull output mode P3.3/SEG20[...]
-
Pagina 250
S3C8275X/F8275X/C8278X/F8278X/C 8274X/F8274X I/O PORTS 9-15 PORT 4 Port 4 is an 8-bit I/O port with individually configurable pins . Port 4 pins are accessed directly by writing or reading the port 4 data register, P4 at location F4H in set 1, bank 0. P4.0-P4.7 can serve as inputs (with or without pull- up), as push-pull output or you can be config[...]
-
Pagina 251
I/O PORTS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 9-16 Port 4 Control Register, Lo w Byte (P4CONL) EAH, Set 1, Bank 1 , R/W .7 .6 .5 .4 .3 .2 .1 .0 MSB L SB P4.1/SEG14 P4.0/SEG15 P4CONH bit-pair pin configuration settings: 00 01 10 11 Push-pull output mode Alternative function (SEG12-SEG15) Input with pull-up resistor Input mode P4.2/SEG13 P4.3[...]
-
Pagina 252
S3C8275X/F8275X/C8278X/F8278X/C 8274X/F8274X I/O PORTS 9-17 PORT 5 Port 5 is an 8-bit I/O port with individually configurable pins . Port 5 pins are accessed directly by writing or reading the port 5 data register, P5 at location F5H in set 1, bank 0. P5.0-P5.7 can serve as inputs (with or without pull- up), as push-pull output or you can be config[...]
-
Pagina 253
I/O PORTS S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 9-18 Port 5 Control Register, Low Byte (P5CONL) ECH, Set 1, Bank 1, R/W .7 .6 .5 .4 .3 .2 .1 .0 MSB L SB P5.1/SEG6 P5.0/SEG7 P5CONL bit-pair pin configuration settings : 00 01 10 11 Push-pull output mode Alternative function (SEG4-SEG7) Input with pull-up resistor Input mode P5.2/SEG5 P5.3/SEG4 [...]
-
Pagina 254
S3C8275X/F8275X/C8278X/F8278X/C 8274X/F8274X I/O PORTS 9-19 PORT 6 Port 6 is a 4-bit I/O port with individually configurable pins . Port 6 pins are accessed directly by writing or reading the port 6 data register, P6 at location F6H in set 1, bank 0. P6.0-P6.3 can serve as inputs (with or without pull- up), as push-pull output or you can be configu[...]
-
Pagina 255
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X BASIC TIMER 10-1 10 BASIC TIMER OVERVIEW Basic timer (BT) can be used in two different ways: • As a watchdog timer to provide an automatic reset mechanism in the event of a system malfunction. • To signal the end of the required oscillation stabilizati on interval after a reset or a stop mode release.[...]
-
Pagina 256
BASIC TIMER S3C8275X/F 8275X/C8278X/F 8278X/C8274X/F 8274X 10-2 BASIC TIMER CONTROL REGISTER (BTCON) The basic timer control register, BTCON, is used to se lect the input clock frequency, to clear the basic timer counter and frequency dividers, and to enable or disable t he watchdog timer function. It is located in set 1, address D3H, and is read/w[...]
-
Pagina 257
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X BASIC TIMER 10-3 BASIC TIMER FUNCTION DESCRIPTION Watchdog Timer Function You can program the basic timer overflow signal (BTOVF) to generate a reset by setting BTCON.7 − BTCON.4 to any value other than "1010B". (The "1010B" value disabl es the watchdog function.) A reset clears BTCO[...]
-
Pagina 258
BASIC TIMER S3C8275X/F 8275X/C8278X/F 8278X/C8274X/F 8274X 10-4 NOTE: During a power-on reset operation, the CPU is idle during the require d oscillation stabilization interval (until bit 4 of the basic timer counter overflows). MUX f XX /4096 DIV f XX /1024 f XX /128 f XX /16 f XX Bits 3, 2 Bit 0 Basic Timer Control Register (W rite '1010xxx [...]
-
Pagina 259
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X TIMER 1 11-1 11 TIMER 1 ONE 16-BIT TIMER MODE (TIMER 1) The 16-bit timer 1 is used in one 16-bit timer or two 8-bit ti mers mode. If TACON.7 is set to "1", timer 1 is used as a 16-bit timer. If TACON.7 is set to "0", timer 1 is used as two 8-bit timers. • One 16-bit timer mode (Timer[...]
-
Pagina 260
TIMER 1 S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 11-2 Timer 1 Control Register (TACON) You use the timer 1 control register, TACON, to • Enable the timer 1 operating (interval timer) • Select the timer 1 input clock frequency • Clear the timer 1 counter, TACNT and TBCNT • Enable the timer 1 interrupt • Clear timer 1 interrupt pending c[...]
-
Pagina 261
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X TIMER 1 11-3 NOTE: W hen one 16-bit timer mode (TA CON. 7 <- "1": Timer 1) TACON.6 -.4 M U X 1/8 1/64 1/256 1/512 TACON.0 TAOUT T1INT 1/1 DIV R fxt T1CLK (X IN or XT IN ) fxx BTCON.0 TACON.2 TBCNT TACNT 16-Bit Comparator TBDA TA Buffer TADATA Buffer TBDA TA TADATA LSB MSB LSB MS B Mat ch Sign[...]
-
Pagina 262
TIMER 1 S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 11-4 TWO 8-BIT TIMERS MODE (TIMER A and B) OVERVIEW The 8-bit timer A and B are the 8-bit general-purpose timers . Timer A and B have the interval timer mode by using the appropriate TACON and TBCON setting, respectively. Timer A and B have the following functional components: • Clock frequency [...]
-
Pagina 263
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X TIMER 1 11-5 TACON and TBCON are located in set 1, bank 1, at address E6H and E7H, and is read/write addressable using Register addressing mode. A reset clears TACON to "00H". This sets timer A to di sable interval timer mode, selects an input clock frequency of fxx/512, and disables timer A int[...]
-
Pagina 264
TIMER 1 S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 11-6 Timer B Control Register (TBC ON) E7H, Set 1, Bank 1, R/W .7 .6 .5 .4 .3 .2 .1 .0 MSB L SB Timer B interrupt enable bit: 0 = Disable interrupt 1 = Enable interrupt Timer B interrupt pending bit: 0 = No interrupt pending (when read) Clear pending bit (when write) 1 = Interrupt is pending (when[...]
-
Pagina 265
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X TIMER 1 11-7 NOTE: W hen two 8-bit timers mode (TACON.7 <- "0": Timer A) TACON.6-.4 M U X 1/8 1/64 1/256 1/512 TACON.0 TAOU T TAI NT DIV R fxt T1CLK (X IN or XT IN ) fxx BTCON.0 TACON.2 8-Bit Compara tor TADATA B uff er TADA TA R egister LSB MSB LSB MSB Match S ignal TACLR TACON.1 Mat ch R TA[...]
-
Pagina 266
TIMER 1 S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 11-8 1/8 1/64 1/256 1/512 NOTE: When tw o 8-bit timers mode (TACON.7 <- "0": Timer B ) TBCON.6- .4 M U X TBCON.0 TBINT DIV R fxt (X IN or XT IN ) fxx BTCON.0 TBCON.2 8-Bit Comparator TBDAT A Buff er TBDATA Registe r LSB MSB LSB MSB Match Signal TBC LR TBCON.1 Match R TBCO N.3 Data Bus[...]
-
Pagina 267
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X WATCH T IMER 12-1 12 WATCH TIMER OVERVIEW Watch timer functions include real-time and watch-time meas urement and interval timing for the system clock. To start watch timer operation, set bit 1 of the wa tch timer control register, WTCON.1 to "1". And if you want to service watch timer overflow [...]
-
Pagina 268
WATCH TIMER S3C8275X/F 8275X/C8278X/F 8278X/C8274X/F8274X 12-2 WATCH TIMER CONTROL REGISTER (WTCON) The watch timer control register, WTCON is used to select the input clock source, the watch timer interrupt time and Buzzer signal, to enable or disable the watch timer functi on. It is located in set 1, bank 1 at address E1H, and is read/write addre[...]
-
Pagina 269
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X WATCH T IMER 12-3 WATCH TIMER CI RCUIT DIASGRAM WT INT Enable WTCON.1 WTCON.2 WTCON.3 WTCON.4 WTCON.5 WTCON.6 Enable/Disable Selector Circuit MUX WTCON.0 WTINT WTCON. 6 f W /2 15 f W /2 14 f W /2 13 f W /2 7 f W /64 (0.5 kHz) f W /32 (1 kHz) f W /16 (2 kHz) f W /8 (4 kHz) (1 Hz) f X = Main clock (where fx[...]
-
Pagina 270
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X LCD CONTROLLER/DRIVER 13-1 13 LCD CONTROLLER/DRIVER OVERVIEW The S3C8275X/C8278X/C8274X microcontroller can directly drive an up-to-128-dot (32 segments x 4 commons) LCD panel. Its LCD block has the following components: • LCD controller/driver • Display RAM (00H − 0FH of page 2) for storing display[...]
-
Pagina 271
LCD CONTROLLER/DRIVER S3C8275X/F 8275X/C8278X/F 8278X/C8274X/F 8274X 13-2 LCD CIRCUIT DIAGRAM Data BUS Port Latch LCON LCD Disp lay RAM (200H-20FH) SEG/Port Driver LCD Voltage Controller SEG0/P5.7 SEG15/P4.0 SEG16/P3.7 SEG31/P2.0 COM/Port Driver Tim in g Controller COM3/P6.3 COM2/P6.2 COM0/P6.0 f LCD V LC0 V LC1 V LC2 Figure 13-2. LCD Circuit Diagr[...]
-
Pagina 272
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X LCD CONTROLLER/DRIVER 13-3 LCD RAM ADDRESS AREA RAM addresses of page 2 are used as LCD data memory. When the bit value of a display segment is "1", the LCD display is turned on; when the bit va lue is "0", the display is turned off. Display RAM data are sent out through segment pins S[...]
-
Pagina 273
LCD CONTROLLER/DRIVER S3C8275X/F 8275X/C8278X/F 8278X/C8274X/F 8274X 13-4 LCD CONTROL REGISTER (LCON) A LCON is located in set 1, bank 1, at address E0H, and is read/write addressable using Register addressing mode. It has the following control functions. • LCD duty and bias selection • LCD clock selection • LCD display control • Internal/E[...]
-
Pagina 274
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X LCD CONTROLLER/DRIVER 13-5 LCD VOLTAGE DIVIDING RESISTOR NOTES: 1. R = Internal LCD dividing re sistors. The resistor s can be disconnected by LCON .7. 2. R' = Ex ternal LCD dividing resistor s. S3C8275X/C8278X/C8274X LCON.0 V LC0 V LC2 V LC1 V SS V DD R R R V LCD LCON.7 = 0: Enable internal resis t [...]
-
Pagina 275
LCD CONTROLLER/DRIVER S3C8275X/F 8275X/C8278X/F 8278X/C8274X/F 8274X 13-6 COMMON (COM) SIGNALS The common signal output pin selection (COM pin select ion) varies according to the selected duty cycle. • In 1/4 duty mode, COM0-COM3 pins are selected • In 1/3 duty mode, COM0-COM2 pins are selected • In 1/2 duty mode, COM0-COM1 pins are selected [...]
-
Pagina 276
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X LCD CONTROLLER/DRIVER 13-7 FR Sele ct Non-Sel ect 1 Frame COM V ss SEG V ss COM-SEG V ss V LC1, 2 V LC 0 -V LC 0 -V LC1, 2 V LC1, 2 V LC 0 V LC1, 2 V LC 0 Figure 13-7. Select/No-Select Signal in 1/2 Duty, 1/2 Bias Display Mode FR Sele ct Non-Select 1 Frame SEG COM COM-SEG V LC0 V SS V LC1 V LC2 V LC0 V SS[...]
-
Pagina 277
LCD CONTROLLER/DRIVER S3C8275X/F 8275X/C8278X/F 8278X/C8274X/F 8274X 13-8 1 Frame 01 2 31 2 V SS V SS COM0 COM1 COM3 SEG0 COM0 -SEG0 COM0 -SEG1 COM1 -SEG1 COM2 FR 03 V SS V SS V SS V SS V SS V SS V SS V SS SEG1 COM1 -SEG0 SEG1.7 x C3 SEG2.1 x C1 SEG1.4 x C0 SEG0.0 x C0 SEG0.1 x C1 SEG1.5 x C1 SEG0.3 x C3 SEG2.0 x C0 SEG1.6 x C2 SEG0.2 x C2 COM0 COM[...]
-
Pagina 278
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X SERIA L I/O INTERFA CE 14-1 14 SERIAL I/O INTERFACE OVERVIEW Serial I/O modules, SIO can interface wi th various types of external device t hat require serial data transfer. The components of SIO function block are: • 8-bit control register (SIOCON) • Clock selector logic • 8-bit data buffer (SIODAT[...]
-
Pagina 279
SERIA L I/O INTERFAC E S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 14-2 SIO CONTROL REGISTERS (SIOCON) The control register for serial I/O interface module, SIOCON , is located at E1H in set 1, bank 0. It has the control setting for SIO module. • Clock source selection (internal or external) for shift clock • Interrupt enable • Edge selection[...]
-
Pagina 280
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X SERIA L I/O INTERFA CE 14-3 SIO PRE-SCALER REGISTER (SIOPS) The prescaler register for serial I/O interface modul e, SIOPS, is located at E3H in set 1, bank 0. The value stored in the SIO pre-scaler register, SIOPS, lets you determine the SIO clock rate (baud rate) as follows: Baud rate = Input clock (fxx[...]
-
Pagina 281
SERIA L I/O INTERFAC E S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 14-4 SERIAL I/O TIMING DIAGRAM (SIO) SO Transmit Complete SIO INT Set SIOCON.3 DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0 DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 SI SCK Figure 14-4. Serial I/O Timing in Transmit/R eceive Mode (Tx at falling, SIOCON.4 = 0) SIO INT DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0 DI7 DI[...]
-
Pagina 282
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X BA TTERY LEVEL DETECTOR 15-1 15 BATTERY LEVEL DETECTOR OVERVIEW The S3C8275X/C8278X/C8274X micro-controller has a built-in BLD (Battery Level Detector) circuit which allows detection of power voltage drop or external input level through software. Turning the BLD operation on and off can be controlled by s[...]
-
Pagina 283
BA TTERY LEVEL DETECTOR S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 15-2 BATTERY LEVEL DETECTOR CONTROL REGISTER (BLDCON) The bit 3 of BLDCON controls to run or disable the operation of Battery Level Detector. Basically this V BLD is set as 2.2V by system reset and it can be changed in 3 kinds voltages by selecting Battery Level Detector Control Re[...]
-
Pagina 284
S3F8275X EMBEDDED FLASH MEMORY INTERF ACE 16-1 16 EMBEDDED FLASH MEMORY INTERFACE OVERVIEW This chapter is only for the S3F827 5X. The S3F82 75X has an on-chip full-flash memory interna lly instead of masked ROM. The flash memory is accessed by "L DC " instruction and the type of secto r erase and a byte programmable flash, a user can pro[...]
-
Pagina 285
EMBEDDED FLASH MEMORY INTERF ACE S3F8275X 16-2 USER PROGRAM MODE This mode supports sector erase, byte programming, by te read and one p rote ctio n mode (Ha rd lock protection). The read protection mode i s available only in Tool Program mode. So in order to make a chip into read protection, you need to select a read protection option when you pro[...]
-
Pagina 286
S3F8275X EMBEDDED FLASH MEMORY INTERF ACE 16-3 Flash Memory User Programming Enable Register The FMUSR register i s used for a safety operatio n of the flash memory. This re gister will protect undesired erase or program operation from malfunctioni ng of CPU caused by an electrical noise. Afte r reset, the user-programming mode is disabled, because[...]
-
Pagina 287
EMBEDDED FLASH MEMORY INTERF ACE S3F8275X 16-4 Flash Memory Sector Address Regis ters There are two sector addres s regist ers for add ressin g a se ctor to be erased. The FMSECL (Flash Memory Sector Address Register L ow Byte) indicates the low byte of sector a ddress and FMSE CH (Flash M emory Sector Address Register High Byte) indicates the high[...]
-
Pagina 288
S3F8275X EMBEDDED FLASH MEMORY INTERF ACE 16-5 ISP TM (ON-BOARD PROGRAMMING) SECTOR ISP TM sectors located in program memory area ca n stor e on board program software (boot p rogram code for upgrading application co de by interfacing with I/O pin). The ISP TM sectors can not be erased or programm ed by LDC instruction for the safety of On Board Pr[...]
-
Pagina 289
EMBEDDED FLASH MEMORY INTERF ACE S3F8275X 16-6 Table 16-1. ISP Sector Size Smart Option(003EH) ISP Size Selection Bit Bit 2 Bit 1 Bit 0 Area of ISP Sector ISP Sector Size 1 x x − 0 0 0 0 100H – 1FFH (256 byte) 256 Bytes 0 0 1 100H – 2FFH (512 byte) 512 Bytes 0 1 0 100H – 4FFH (1024 byte) 1024 Bytes 0 1 1 100H – 8FFH (2048 byte) 2048 Bytes[...]
-
Pagina 290
S3F8275X EMBEDDED FLASH MEMORY INTERF ACE 16-7 SECTOR ERASE User can erase a flash memory partially by using sect or erase function only in User Program Mode. The only unit of flash memory to be erased and programmed in User Program Mode is called sector. The program memory of S3F8275X is di vided into 128 se ctors for unit of erase and prog ram mi[...]
-
Pagina 291
EMBEDDED FLASH MEMORY INTERF ACE S3F8275X 16-8 The Sector Erase Procedure in User Program Mode 1. Set Flash Memory User Programming Enable Register (FM U SR) to "10100101B". 2. Set Flash Memory Sector Address Regi ster (FMSECH/FMSECL). 3. Check user’s ID code (written by user). 4. Set Flash Memory Control Regi ste r (FMCON) to "101[...]
-
Pagina 292
S3F8275X EMBEDDED FLASH MEMORY INTERF ACE 16-9 PROGRAMMING A flash memory is programmed in one b yte unit after sect or erase. And for programming safety 's sa ke, must set FMSECH and FMSECL to flash memory sector value. The write operation of programming starts by 'LDC' instructio n. You can write until 128byte, because thi s flash [...]
-
Pagina 293
EMBEDDED FLASH MEMORY INTERF ACE S3F8275X 16-10 PROGRAMMING TIP ⎯ Program • • SB1 LD FMUSR,#0A5H ; User Program mode enab le LD FMSECH,#17H LD FMSECL,#80H ; Set sector address (1780H − 17FF H) LD R2,#17H ; Set a ROM address in the sam e se ctor 1780H − 17FFH LD R3,#84H LD R4,#78H ; Temporary data CP UserID_Code,#User_value ; Check use[...]
-
Pagina 294
S3F8275X EMBEDDED FLASH MEMORY INTERF ACE 16-11 READING The read operation of programmi ng sta rts by 'LDC' in structio n. The Reading Procedure in User Progr am Mode 1. Load a flash memory upper add ress into upper register of pair working register. 2. Load a flash memory lower add ress into lower register of pair working register. 3. Lo[...]
-
Pagina 295
EMBEDDED FLASH MEMORY INTERF ACE S3F8275X 16-12 HARD LOCK PROTECTION User can set Hard Lock Protection by write ‘011 0’ in FMCON.7 − 4. If this function is enabled, the user cannot write or erase the data in a flash memory area. This protection can be released by the chip e ra se executio n (in the tool program mode). In terms of user program[...]
-
Pagina 296
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ELECTRICAL DATA 17-1 17 ELECTRICAL DATA OVERVIEW In this chapter, S3C8275X/C8278X/C8274X electrical characteristics are presented in tables and graphs. The information is arranged in the following order: • Absolute maximum ratings • D.C. electrical characteristics • Data retention supply voltage in [...]
-
Pagina 297
ELECTRICAL DA TA S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 17-2 Table 17-1. Absolute Maximum Ratings (T A = 25 ° C) Parameter Symbol Conditions Rating Unit Supply voltage V DD − − 0.3 to + 4.6 V Input voltage V I Ports 0–6 − 0.3 to V DD + 0.3 V Output voltage V O − − 0.3 to V DD + 0.3 V Output current High I OH One I/O pin active −[...]
-
Pagina 298
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ELECTRICAL DATA 17-3 Table 17-2. D.C. Electrical Characteristics (Continued) (T A = − 25 ° C t o + 8 5 ° C, V DD = 2.0 V to 3.6 V) Parameter Symbol Conditions Min Typ Max Unit Input low leakage current I LIL1 V I = 0 V; All input pins except nRESET, I LIL2 − − –3 µ A I LIL2 V I = 0 V; X IN , X [...]
-
Pagina 299
ELECTRICAL DA TA S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 17-4 Table 17-2. D.C. Electrical Characteristics (Concluded) (T A = − 25 ° C t o + 8 5 ° C, V DD = 2.0 V to 3.6 V) Parameter Symbol Conditions Min Typ Max Unit Supply current (1) I DD1 (2) Run mode: V DD = 3.3 V ± 0.3 V 8.0 MHz − 3.0 6.0 mA Crystal oscillator C1 = C2 = 22pF 4.0 MHz[...]
-
Pagina 300
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ELECTRICAL DATA 17-5 Table 17-3. Data Retention Supply Voltage in Stop Mode (T A = − 25 ° C t o + 8 5 ° C) Parameter Symbol Conditions Min Typ Max Unit Data retention supply voltage V DDDR − 2.0 − 3.6 V Data retention supply current I DDDR Stop mode, T A = 25 ° C V DDDR = 2.0 V Disable LVR block [...]
-
Pagina 301
ELECTRICAL DA TA S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 17-6 Execution of STOP Instrction RESET Occurs ~ ~ V DDDR ~ ~ Stop Mode Oscillation Stabilization TIm e Normal Operating Mode Data Retention Mode t WA IT nRESET V DD 0.2 V DD 0.8 V DD NOTE: t WA I T is the same as 16 × 1/BT clock. Figure 17-2. Stop Mode Release Timing When Initiated by a[...]
-
Pagina 302
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ELECTRICAL DATA 17-7 Table 17-5. A.C. Electrical Characteristics (T A = − 25 ° C t o + 8 5 ° C, V DD = 2.0 V to 3.6 V) Parameter Symbol Conditions Min Typ Max Unit External SCK source 1,000 − − ns SCK cycle time t KCY Internal SCK source 1,000 External SCK source 500 SCK high, low width t KH , t K[...]
-
Pagina 303
ELECTRICAL DA TA S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 17-8 nRESET t RSL 0.2 V DD Figure 17-4. Input Timing for RESET t KH t KL 0.2V DD SCK t KCY 0.8V DD 0.8V DD 0.2V DD t SIK t KSI SI SO t KSO Output Data Figure 17-5. Serial Data Transfer Timing[...]
-
Pagina 304
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ELECTRICAL DATA 17-9 Table 17-6. Battery Lev el Detector Electrical Characteristics (T A = 25 ° C, V DD = 2.0 V to 3.6 V) Parameter Symbol Conditions Min Typ Max Unit Operating voltage of BLD V DDBLD − 2.0 − 3.6 V Voltage of BLD V BLD BLDCON.2-.0 = 000b 2.0 2.2 2.4 BLDCON.2-.0 = 101b 2.15 2.4 2.65 BL[...]
-
Pagina 305
ELECTRICAL DA TA S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 17-10 Table 17-8. Main Oscillation Characteristics (T A = − 25 ° C t o + 8 5 ° C) Oscillator Clock Configuration Parameter Test Condition Min Typ Max Units Crystal X IN C1 X OUT Main oscillation frequency 2.5 V − 3.6 V 0.4 − 8 MHz 2.0 V − 3.6 V 0.4 − 4.2 Ceramic oscillator X I[...]
-
Pagina 306
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ELECTRICAL DATA 17-11 Table 17-10. Main Oscillation Stabilization Time (T A = − 25 ° C t o + 8 5 ° C, V DD = 2.0 V to 3.6 V) Oscillator Test Condition Min Typ Max Unit Crystal fx > 1 MHz − − 40 ms Ceramic Oscillation stabilization occurs when V DD is equal to the minimum oscillator voltage rang[...]
-
Pagina 307
ELECTRICAL DA TA S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 17-12 Table 17-11. Sub Oscillation Stabilization Time (T A = − 25 ° C t o + 8 5 ° C, V DD = 2.0 V to 3.6 V) Oscillator Test Condition Min Typ Max Unit Crystal – − − 10 s External clock XT IN input high and low width (t XH , t XL ) 5 − 15 µ s t XTH t XTL V DD -0.1 V 0.1 V XT I[...]
-
Pagina 308
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X ELECTRICAL DATA 17-13 2 MHz 6.25 kHz(main)/8.2 kHz(sub) 24 Supply Voltage (V) Instruction Clock = 1/4n x oscillator frequency (n = 1, 2, 8, 16) 1.05 MHz Instruction Clock 8 MHz 4.2 MHz fx (Main/Sub oscillation frequency) 2.5 3.6 400 kHz (main)/32.8 kHz(sub) 3 1 Figure 17-9. Operating Voltage Range Table 1[...]
-
Pagina 309
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X MECHANICA L DATA 18-1 18 MECHANICAL DATA OVERVIEW The S3C8275X/C8278X/C8274X microcontroller is currently available in a 64-pin QFP and LQFP package. 64-QFP-1420F #64 20.00 ± 0.20 23.90 ± 0.30 14.00 ± 0.20 17.90 ± 0.30 #1 1.00 (1.00) 0.40 + 0.10 - 0.05 NOTE : Dimensions are in millimeters. 0.80 + 0.20[...]
-
Pagina 310
MECHANICA L DATA S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X 18-2 0.08 MAX 0.09~0.20 64-LQFP- 1010 #64 NOTE : Dimensions are in millimeters. 10.00 BSC 12.00 BSC 10.00 BSC 12.00 BSC #1 0.50 BSC 0-7 0.45~0.75 0.10 ± 0.05 1.40 ± 0.05 1.60 MAX 0.20 + 0.07 - 0.03 Figure 18-2. 64-Pin LQFP Package Dimensions (64-LQFP-1010)[...]
-
Pagina 311
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X S3F8275X/F8278X/F8274X FLASH MCU 19-1 19 S3F8275X/F8278X/F8274X FLASH MCU OVERVIEW The S3F8275X/F8278X/F8274X single-chip CMOS microcontroller is the Flash MCU version of the S3C8275X/C8278X/C8274X microcontroller. It has an on-chip Flash ROM instead of masked ROM. The Flash ROM is accessed by serial data[...]
-
Pagina 312
S3F8275X/F8278X/F8274X FLASH MCU S3C8275X/F8275X/C8278X/F 8278X/C8274X/F 8274X 19-2 S3F8275X S3F8278X S3F8274X (64-QFP-1420F) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 64 63 62 61 60 59 58 57 56 55 54 53 52 20 21 22 23 24 25 26 27 28 29 30 31 32 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 SEG14/P4.1 SEG15/P4.0 SEG16/P3.7 SEG17/P3[...]
-
Pagina 313
S3C8275X/F8275X/C8278X/F8278X/C8274X/ F8274X S3F8275X/F8278X/F8274X FL ASH MCU 19-3 S3F8275X S3F8278X S3F8274X (64-LQFP-1010) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 SEG17/P3.6 SEG18/P3.5 SEG19/P3.4 SEG20/P3[...]
-
Pagina 314
S3F8275X/F8278X/F8274X FLASH MCU S3C8275X/F8275X/C8278X/F 8278X/C8274X/F 8274X 19-4 Table 19-1. Descriptions of Pins Used to Read/Write the Flash ROM Main Chip During Programming Pin Name Pin Name Pin No. I/O Function VLC1 SDAT 7 I/O Serial data pin. Output port when reading and input port when writing. Can be assigned as an Input or push-pull outp[...]
-
Pagina 315
S3C8275X/F8275X/C8278X/F8278X/C8274X/F8274X S3F8275X/F8278X/F8274X FLASH MCU 19-5 OPERATING MODE CHARACTERISTICS When 12.5 V is supplied to the V PP (TEST) pin of the S3F8275X/F8278X/F8274X, the Flash ROM programming mode is entered. The operating mode (read, write, or read protection) is selected according to the input signals to the pins listed i[...]
-
Pagina 316
S3F8275X/F8278X/F8274X FL ASH MCU S3C8275X/F8275X/C8278X/ F8278X/C8274X/F8274X 19-6 Table 19-4. D.C. Electrical Characteristics (T A = − 25 ° C t o + 8 5 ° C, V DD = 2.0 V to 3.6 V) Parameter Symbol Conditions Min Ty p Max Unit Supply current (1) I DD1 (2) 8.0 MHz − 3.0 6.0 mA Run mode: V DD = 3.3 V ± 0.3 V Crystal oscillator C1 = C2 = 22pF [...]
-
Pagina 317
S3C8275X/F8275X/C8278X/F8278X/C8274X/ F8274X S3F8275X/F8278X/F8274X FL ASH MCU 19-7 2 MHz 6.25 kHz (main)/8.2 kHz(sub) 24 Supply Voltage (V) Instruction Clock = 1/4n x oscillator frequency (n = 1, 2, 8, 16) 1.05 MHz Instruction Clock 8 MHz 4.2 MHz fx (Main/Sub oscillation frequency) 2.5 3.6 400 kHz(main)/32.8 kHz(sub) 3 1 Figure 19-3. Operating Vol[...]
-
Pagina 318
S3C8275X/F8275X/C8278X/ F8278X/C82 74X/F8274X DEVELOPMENT TOOLS 20-1 20 DEVELOPMENT TOOLS OVERVIEW Samsung provides a powe rful and easy-to-use development support system in turnkey form. The development support system is configured with a host system, debuggin g tools, and suppor t software. For the host system, any standard computer that operates[...]
-
Pagina 319
DEVELOPMENT TOOLS S3C8275X/F 8275X/C8278X/ F8278X/C8274X/F8274X 20-2 BUS SMDS2+ RS-232C POD Probe Adapter PROM/OT P W riter Unit RAM Break/Display Unit Trac e /Ti me r U ni t SAM8 Base Unit Power Supply Unit IBM-PC AT or Compatible TB8275/8/4 Target Board EVA Chip Target Application System Figure 20-1. SMDS Product Configura tion (SMDS2+)[...]
-
Pagina 320
S3C8275X/F8275X/C8278X/ F8278X/C82 74X/F8274X DEVELOPMENT TOOLS 20-3 TB8275/8/4 TARGET BOARD The TB8275/8/4 target board i s used fo r the S3C8 275X/C 8278X/C8274X microcontroller. It is suppo rted with the SMDS2+. TB8275/8/4 GND V CC To User_VCC OFF ON J101 J102 1 39 2 40 25 RESET 7411 IDLE + STOP + 1 41 79 42 80 40-pin connector 40-pin connector [...]
-
Pagina 321
DEVELOPMENT TOOLS S3C8275X/F 8275X/C8278X/ F8278X/C8274X/F8274X 20-4 Table 20-1. Power Selection Settings for TB8275/8/ 4 "To User_V cc" Settings Opera ting Mode Comments To User_V CC Off On Target System SMD S2/SMDS2+ TB8275 TB8278 TB8274 V CC V SS V CC The SMDS2/SMDS2+ supplies V CC to the target board (evaluation chip ) and the target [...]
-
Pagina 322
S3C8275X/F8275X/C8278X/ F8278X/C82 74X/F8274X DEVELOPMENT TOOLS 20-5 Table 20-3. Select Smart Option Source Setting for TB82 75/8/4 "Smart Option Source" Settings Opera ting Mode Comments Internal External Select Smart Option Source Target System TB8275/8/4 The Smart Option is selected by external smart option switch (SW1 ) Internal Ex te[...]
-
Pagina 323
DEVELOPMENT TOOLS S3C8275X/F 8275X/C8278X/ F8278X/C8274X/F8274X 20-6 Table 20-5. Device Selection Setting s for TB8275/8/4 "Device Selection" Settings Opera ting Mode Comments S3F8278/4 S3F8275 Device Selection Target System TB8275 Operate with TB8275 S3F8278/4 S3F827 5 Device Se lection Target System TB8278/4 Operate with TB8278/4 SMDS2+[...]
-
Pagina 324
S3C8275X/F8275X/C8278X/ F8278X/C82 74X/F8274X DEVELOPMENT TOOLS 20-7 INT7/P1 .7 SEG 30/P 2.1 SEG 28/P 2.3 SEG 26/P 2.5 SEG 24/P 2.7 SEG 22/P 3.1 SEG 20/P 3.3 SEG 18/P 3.5 SEG 16/P 3.7 SEG 14/P 4.1 SEG 12/P 4.3 SEG 10/P 4.5 SEG8/P4.7 SEG6/P5.1 SEG4/P5.3 SEG2/P5.5 N.C N.C N.C N.C P6.0/COM0 P6.2/COM2 VLC0 VLC2 V SS N.C N.C nRESET P0.0/INT0 P0.2/INT2 P[...]