Samsung C8278X Manuals

Manuals and User Guides for Samsung C8278X. We have 1 Samsung C8278X manual available for free PDF download: User Manual

Samsung C8278X User Manual

Samsung C8278X User Manual (324 pages)

Brand: Samsung | Category: Computer Hardware | Size: 2.68 MB
Table of contents
Important Notice2................................................................................................................................................................
April,3................................................................................................................................................................
Revision History4................................................................................................................................................................
Electrical Data5................................................................................................................................................................
Table Of Contents8................................................................................................................................................................
S3c8-series Microcontrollers23................................................................................................................................................................
S3c8275x/f8275x/c8278x/f8278x/c8274x/f8274x Microcontroller23................................................................................................................................................................
Flash23................................................................................................................................................................
Features24................................................................................................................................................................
Block Diagram25................................................................................................................................................................
Pin Assignment26................................................................................................................................................................
Pin Descriptions28................................................................................................................................................................
S3c8275x/f8275x/c8278x/f8278x/c8274x/f8274x Pin Descriptions28................................................................................................................................................................
Pin Circuits30................................................................................................................................................................
Pin Circuit Type A30................................................................................................................................................................
Pin Circuit Type B (nreset)30................................................................................................................................................................
Pin Circuit Type E-4 (p0, P1)30................................................................................................................................................................
Pin Circuit Type H-431................................................................................................................................................................
Pin Circuit Type H-8 (p2.1–p2.7, P3)31................................................................................................................................................................
Pin Circuit Type H-9 (p4, P5, P6)32................................................................................................................................................................
Pin Circuit Type H-10 (p2.0)33................................................................................................................................................................
Overview34................................................................................................................................................................
Program Memory (rom)35................................................................................................................................................................
Program Memory Address Space35................................................................................................................................................................
Smart Option36................................................................................................................................................................
Register Architecture38................................................................................................................................................................
S3c8275x Register Type Summary38................................................................................................................................................................
S3c8278x/c8274x Register Type Summary38................................................................................................................................................................
Internal Register File Organization (s3c8275x)39................................................................................................................................................................
Internal Register File Organization (s3c8278x/c8274x)40................................................................................................................................................................
Register Page Pointer (pp)41................................................................................................................................................................
Using The Page Pointer For Ram Clear (page 0, Page 1)42................................................................................................................................................................
Register Set 143................................................................................................................................................................
Register Set 243................................................................................................................................................................
Prime Register Space44................................................................................................................................................................
Set 1, Set 2, Prime Area Register, And Lcd Data Register Map44................................................................................................................................................................
Working Registers45................................................................................................................................................................
Byte Working Register Areas (slices)45................................................................................................................................................................
Using The Register Points46................................................................................................................................................................
Contiguous 16-byte Working Register Block46................................................................................................................................................................
Setting The Register Pointers46................................................................................................................................................................
Non-contiguous 16-byte Working Register Block47................................................................................................................................................................
Using The Rps To Calculate The Sum Of A Series Of Registers47................................................................................................................................................................
Register Addressing48................................................................................................................................................................
Bit Register Pair48................................................................................................................................................................
Register File Addressing49................................................................................................................................................................
Common Working Register Area (c0h–cfh)50................................................................................................................................................................
Common Working Register Area50................................................................................................................................................................
Bit Working Register Addressing51................................................................................................................................................................
Addressing The Common Working Register Area51................................................................................................................................................................
Bit Working Register Addressing Example52................................................................................................................................................................
System And User Stack55................................................................................................................................................................
Stack Operations55................................................................................................................................................................
Standard Stack Operations Using Push And Pop56................................................................................................................................................................
Register Addressing Mode (r)58................................................................................................................................................................
Working Register Addressing58................................................................................................................................................................
Indirect Register Addressing Mode (ir)59................................................................................................................................................................
Indirect Register Addressing To Register File59................................................................................................................................................................
Indirect Register Addressing To Program Memory60................................................................................................................................................................
Indirect Working Register Addressing To Register File61................................................................................................................................................................
Indirect Working Register Addressing To Program Or Data Memory62................................................................................................................................................................
Indexed Addressing Mode (x)63................................................................................................................................................................
Indexed Addressing To Register File63................................................................................................................................................................
Indexed Addressing To Program Or Data Memory With Short Offset64................................................................................................................................................................
Indexed Addressing To Program Or Data Memory65................................................................................................................................................................
Direct Address Mode (da)66................................................................................................................................................................
Direct Addressing For Load Instructions66................................................................................................................................................................
Direct Addressing For Call And Jump Instructions67................................................................................................................................................................
Indirect Address Mode (ia)68................................................................................................................................................................
Indirect Addressing68................................................................................................................................................................
Relative Address Mode (ra)69................................................................................................................................................................
Relative Addressing69................................................................................................................................................................
Immediate Mode (im)70................................................................................................................................................................
Immediate Addressing70................................................................................................................................................................
Set 1 Registers71................................................................................................................................................................
Set 1, Bank 0 Registers72................................................................................................................................................................
Set 1, Bank 1 Registers73................................................................................................................................................................
Register Description Format74................................................................................................................................................................
Bldcon Battery Level Detector Control Register75................................................................................................................................................................
Btcon Basic Timer Control Register76................................................................................................................................................................
Clkcon System Clock Control Register77................................................................................................................................................................
Clocon Clock Output Control Register78................................................................................................................................................................
Flags System Flags Register82................................................................................................................................................................
Fmcon Flash Memory Control Register83................................................................................................................................................................
Fmsech Flash Memory Sector Address Register (high Byte)84................................................................................................................................................................
Fmsecl Flash Memory Sector Address Register (low Byte)84................................................................................................................................................................
Fmusr Flash Memory User Programming Enable Register85................................................................................................................................................................
Imr Interrupt Mask Register86................................................................................................................................................................
Iph Instruction Pointer (high Byte)87................................................................................................................................................................
Ipl Instruction Pointer (low Byte)87................................................................................................................................................................
Ipr Interrupt Priority Register88................................................................................................................................................................
Irq Interrupt Request Register89................................................................................................................................................................
Lcon Lcd Control Register90................................................................................................................................................................
Osccon Oscillator Control Register91................................................................................................................................................................
P0conh Port 0 Control Register (high Byte)92................................................................................................................................................................
P0conl Port 0 Control Register (low Byte)93................................................................................................................................................................
P0pur Port 0 Pull-up Control Register94................................................................................................................................................................
P1conh Port 1 Control Register (high Byte)95................................................................................................................................................................
P1conl Port 1 Control Register (low Byte)96................................................................................................................................................................
P1pur Port 1 Pull-up Control Register97................................................................................................................................................................
P2conh Port 2 Control Register (high Byte)98................................................................................................................................................................
P2conl Port 2 Control Register (low Byte)99................................................................................................................................................................
P2pur Port 2 Pull-up Control Register100................................................................................................................................................................
P3conh Port 3 Control Register (high Byte)101................................................................................................................................................................
P3conl Port 3 Control Register (low Byte)102................................................................................................................................................................
P3pur Port 3 Pull-up Control Register103................................................................................................................................................................
P4conh Port 4 Control Register (high Byte)104................................................................................................................................................................
P4conl Port 4 Control Register (low Byte)105................................................................................................................................................................
P5conh Port 5 Control Register (high Byte)106................................................................................................................................................................
P5conl Port 5 Control Register (low Byte)107................................................................................................................................................................
P6con Port 6 Control Register108................................................................................................................................................................
Pp Register Page Pointer109................................................................................................................................................................
Rp0 Register Pointer 0110................................................................................................................................................................
Rp1 Register Pointer 1110................................................................................................................................................................
Siocon Sio Control Register111................................................................................................................................................................
Sph Stack Pointer (high Byte)112................................................................................................................................................................
Spl Stack Pointer (low Byte)112................................................................................................................................................................
Stpcon Stop Control Register113................................................................................................................................................................
Sym System Mode Register114................................................................................................................................................................
Tacon Timer 1/a Control Register115................................................................................................................................................................
Tbcon Timer B Control Register116................................................................................................................................................................
Wtcon Watch Timer Control Register117................................................................................................................................................................
Interrupt Types119................................................................................................................................................................
S3c8-series Interrupt Types119................................................................................................................................................................
S3c8275x/c8278x/c8274x Interrupt Structure120................................................................................................................................................................
Interrupt Vector Addresses121................................................................................................................................................................
Rom Vector Address Area121................................................................................................................................................................
Interrupt Vectors122................................................................................................................................................................
Enable/disable Interrupt Instructions (ei, Di)123................................................................................................................................................................
System-level Interrupt Control Registers123................................................................................................................................................................
Interrupt Control Register Overview123................................................................................................................................................................
Interrupt Processing Control Points124................................................................................................................................................................
Interrupt Function Diagram124................................................................................................................................................................
Peripheral Interrupt Control Registers125................................................................................................................................................................
Interrupt Source Control And Data Registers125................................................................................................................................................................
System Mode Register (sym)126................................................................................................................................................................
Interrupt Mask Register (imr)127................................................................................................................................................................
Interrupt Priority Register (ipr)128................................................................................................................................................................
Interrupt Request Priority Groups128................................................................................................................................................................
Interrupt Request Register (irq)130................................................................................................................................................................
Interrupt Pending Function Types131................................................................................................................................................................
How To Clear An Interrupt Pending Bit131................................................................................................................................................................
Interrupt Source Polling Sequence132................................................................................................................................................................
Interrupt Service Routines132................................................................................................................................................................
Generating Interrupt Vector Addresses133................................................................................................................................................................
Nesting Of Vectored Interrupts133................................................................................................................................................................
Instruction Pointer (ip)133................................................................................................................................................................
Fast Interrupt Processing133................................................................................................................................................................
Data Types135................................................................................................................................................................
Addressing Modes135................................................................................................................................................................
Instruction Group Summary136................................................................................................................................................................
Flags Register (flags)140................................................................................................................................................................
System Flags Register (flags)140................................................................................................................................................................
Flag Descriptions141................................................................................................................................................................
Instruction Set Notation142................................................................................................................................................................
Flag Notation Conventions142................................................................................................................................................................
Instruction Set Symbols142................................................................................................................................................................
Instruction Notation Conventions143................................................................................................................................................................
Opcode Quick Reference144................................................................................................................................................................
Condition Codes146................................................................................................................................................................
Instruction Descriptions147................................................................................................................................................................
Adc Add With Carry148................................................................................................................................................................
And Logical And150................................................................................................................................................................
Band Bit And151................................................................................................................................................................
Bcp Bit Compare152................................................................................................................................................................
Bitc Bit Complement153................................................................................................................................................................
Bitr Bit Reset154................................................................................................................................................................
Bits Bit Set155................................................................................................................................................................
Btjrf Bit Test, Jump Relative On False157................................................................................................................................................................
Btjrt Bit Test, Jump Relative On True158................................................................................................................................................................
Bxor Bit Xor159................................................................................................................................................................
Call Call Procedure160................................................................................................................................................................
Ccf Complement Carry Flag161................................................................................................................................................................
Clr Clear162................................................................................................................................................................
Com Complement163................................................................................................................................................................
Cp Compare164................................................................................................................................................................
Cpije Compare, Increment, And Jump On Equal165................................................................................................................................................................
Cpijne Compare, Increment, And Jump On Non-equal166................................................................................................................................................................
Da Decimal Adjust167................................................................................................................................................................
Dec Decrement169................................................................................................................................................................
Decw Decrement Word170................................................................................................................................................................
Di Disable Interrupts171................................................................................................................................................................
Div Divide (unsigned)172................................................................................................................................................................
Djnz Decrement And Jump If Non-zero173................................................................................................................................................................
Ei Enable Interrupts174................................................................................................................................................................
Enter Enter175................................................................................................................................................................
Exit Exit176................................................................................................................................................................
Idle Idle Operation177................................................................................................................................................................
Inc Increment178................................................................................................................................................................
Incw Increment Word179................................................................................................................................................................
Iret Interrupt Return180................................................................................................................................................................
Jr Jump Relative182................................................................................................................................................................
Ldb Load Bit185................................................................................................................................................................
Ldc/lde Load Memory186................................................................................................................................................................
Ldci/ldei Load Memory And Increment189................................................................................................................................................................
Ldcpi/ldepi Load Memory With Pre-increment191................................................................................................................................................................
Ldw Load Word192................................................................................................................................................................
Mult Multiply (unsigned)193................................................................................................................................................................
Next Next194................................................................................................................................................................
Nop No Operation195................................................................................................................................................................
Or Logical Or196................................................................................................................................................................
Pop Pop From Stack197................................................................................................................................................................
Popud Pop User Stack (decrementing)198................................................................................................................................................................
Popui Pop User Stack (incrementing)199................................................................................................................................................................
Push Push To Stack200................................................................................................................................................................
Pushud Push User Stack (decrementing)201................................................................................................................................................................
Pushui Push User Stack (incrementing)202................................................................................................................................................................
Rcf Reset Carry Flag203................................................................................................................................................................
Ret Return204................................................................................................................................................................
Rl Rotate Left205................................................................................................................................................................
Rlc Rotate Left Through Carry206................................................................................................................................................................
Rr Rotate Right207................................................................................................................................................................
Rrc Rotate Right Through Carry208................................................................................................................................................................
Sb0 Select Bank 0209................................................................................................................................................................
Sb1 Select Bank 1210................................................................................................................................................................
Sbc Subtract With Carry211................................................................................................................................................................
Scf Set Carry Flag212................................................................................................................................................................
Sra Shift Right Arithmetic213................................................................................................................................................................
Stop Stop Operation215................................................................................................................................................................
Sub Subtract216................................................................................................................................................................
Swap Swap Nibbles217................................................................................................................................................................
Tcm Test Complement Under Mask218................................................................................................................................................................
Tm Test Under Mask219................................................................................................................................................................
Wfi Wait For Interrupt220................................................................................................................................................................
Xor Logical Exclusive Or221................................................................................................................................................................
System Clock Circuit222................................................................................................................................................................
Main Oscillator Circuits223................................................................................................................................................................
Sub Oscillator Circuits223................................................................................................................................................................
Crystal/ceramic Oscillator (fx)223................................................................................................................................................................
External Oscillator (fx)223................................................................................................................................................................
Rc Oscillator (fx)223................................................................................................................................................................
Crystal Oscillator (fxt)223................................................................................................................................................................
External Oscillator (fxt)223................................................................................................................................................................
Clock Status During Power-down Modes224................................................................................................................................................................
System Clock Circuit Diagram224................................................................................................................................................................
System Clock Control Register (clkcon)225................................................................................................................................................................
Clock Output Control Register (clocon)226................................................................................................................................................................
Clock Output Block Diagram226................................................................................................................................................................
Oscillator Control Register (osccon)227................................................................................................................................................................
Switching The Cpu Clock228................................................................................................................................................................
Stop Control Register (stpcon)229................................................................................................................................................................
System Reset230................................................................................................................................................................
Normal Mode Reset Operation230................................................................................................................................................................
Hardware Reset Values231................................................................................................................................................................
S3c8275x/c8278x/c8274x Set 1 Register And Values After Reset231................................................................................................................................................................
S3c8275x/c8278x/c8274x Set 1, Bank 0 Register Values After Reset232................................................................................................................................................................
S3c8275x/c8278x/c8274x Set 1, Bank 1 Register Values After Reset233................................................................................................................................................................
Power-down Modes234................................................................................................................................................................
Stop Mode234................................................................................................................................................................
Idle Mode235................................................................................................................................................................
S3c8275x/c8278x/c8274x Port Configuration Overview236................................................................................................................................................................
Port Data Registers237................................................................................................................................................................
S3c8275x/c8278x/c8274x I/o Port Data Register Format237................................................................................................................................................................
Port Data Register Summary237................................................................................................................................................................
Port238................................................................................................................................................................
Port 0 High-byte Control Register (p0conh)239................................................................................................................................................................
Port 0 Low-byte Control Register (p0conl)239................................................................................................................................................................
Port 0 Pull-up Control Register (p0pur)240................................................................................................................................................................
External Interrupt Control Register, Low Byte (exticonl)240................................................................................................................................................................
External Interrupt Pending Register (extipnd)241................................................................................................................................................................
Port 1 High-byte Control Register (p1conh)243................................................................................................................................................................
Port 1 Low-byte Control Register (p1conl)243................................................................................................................................................................
Port 1 Pull-up Control Register (p1pur)244................................................................................................................................................................
External Interrupt Control Register, High Byte (exticonh)244................................................................................................................................................................
Port 2 High-byte Control Register (p2conh)246................................................................................................................................................................
Port 2 Low-byte Control Register (p2conl)247................................................................................................................................................................
Port 2 Pull-up Control Register (p2pur)247................................................................................................................................................................
Port 3 High Byte Control Register (p3conh)248................................................................................................................................................................
Port 3 Low Byte Control Register (p3conl)249................................................................................................................................................................
Port 3 Pull-up Control Register (p3pur)249................................................................................................................................................................
Port 4 High-byte Control Register (p4conh)250................................................................................................................................................................
Port 4 Low-byte Control Register (p4conl)251................................................................................................................................................................
Port 5 High-byte Control Register (p5conh)252................................................................................................................................................................
Port 5 Low-byte Control Register (p5conl)253................................................................................................................................................................
Port 6 Control Register (p6con)254................................................................................................................................................................
Basic Timer Control Register (btcon)256................................................................................................................................................................
Basic Timer Function Description257................................................................................................................................................................
Basic Timer Block Diagram258................................................................................................................................................................
One 16-bit Timer Mode (timer 1)259................................................................................................................................................................
Function Description259................................................................................................................................................................
Timer 1/a Control Register (tacon)260................................................................................................................................................................
Timer 1 Block Diagram (one 16-bit Mode)261................................................................................................................................................................
Two 8-bit Timers Mode (timer A And B)262................................................................................................................................................................
Timer B Control Register (tbcon)264................................................................................................................................................................
Timer A Block Diagram(two 8-bit Timers Mode)265................................................................................................................................................................
Timer B Block Diagram (two 8-bit Timers Mode)266................................................................................................................................................................
Watch Timer Control Register (wtcon)268................................................................................................................................................................
Watch Timer Circuit Diagram269................................................................................................................................................................
Lcd Function Diagram270................................................................................................................................................................
Lcd Circuit Diagram271................................................................................................................................................................
Lcd Ram Address Area272................................................................................................................................................................
Lcd Display Data Ram Organization272................................................................................................................................................................
Lcd Clock Signal Frame Frequency272................................................................................................................................................................
Lcd Control Register (lcon)273................................................................................................................................................................
Lcd Voltage Dividing Resistor274................................................................................................................................................................
Internal Voltage Dividing Resistor Connection274................................................................................................................................................................
Common (com) Signals275................................................................................................................................................................
Segment (seg) Signals275................................................................................................................................................................
Select/no-select Signals In Static Display Mode275................................................................................................................................................................
Select/no-select Signal In 1/2 Duty, 1/2 Bias Display Mode276................................................................................................................................................................
Select/no-select Signal In 1/3 Duty, 1/3 Bias Display Mode276................................................................................................................................................................
Lcd Signals And Wave Forms Example In 1/4 Duty, 1/3 Bias Display Mode277................................................................................................................................................................
Programming Procedure278................................................................................................................................................................
Sio Control Registers (siocon)279................................................................................................................................................................
Serial I/o Module Control Register (siocon)279................................................................................................................................................................
Sio Pre-scaler Register (siops)280................................................................................................................................................................
Sio Block Diagram280................................................................................................................................................................
Sio Prescaler Register (siops)280................................................................................................................................................................
Sio Functional Block Diagram280................................................................................................................................................................
Serial I/o Timing Diagram (sio)281................................................................................................................................................................
Serial I/o Timing In Transmit/receive Mode (tx At Falling, Siocon.4 = 0)281................................................................................................................................................................
Serial I/o Timing In Transmit/receive Mode (tx At Rising, Siocon.4 = 1)281................................................................................................................................................................
Block Diagram For Voltage Level Detect282................................................................................................................................................................
Battery Level Detector Control Register (bldcon)283................................................................................................................................................................
Battery Level Detect Circuit And Control Register283................................................................................................................................................................
Bldcon Value And Detection Level283................................................................................................................................................................
User Program Mode285................................................................................................................................................................
Flash Memory Control Registers (user Program Mode)285................................................................................................................................................................
Flash Memory Control Register (fmcon)285................................................................................................................................................................
Flash Memory User-programming Enable Register (fmusr)286................................................................................................................................................................
Flash Memory Sector Address Register, High Byte (fmsech)287................................................................................................................................................................
Flash Memory Sector Address Register, Low Byte (fmsecl)287................................................................................................................................................................
Isp Tm (on-board Programming) Sector288................................................................................................................................................................
Isp Sector Size289................................................................................................................................................................
Reset Vector Address289................................................................................................................................................................
Sector Erase290................................................................................................................................................................
Sector Configurations In User Program Mode290................................................................................................................................................................
Programming292................................................................................................................................................................
Program293................................................................................................................................................................
Reading294................................................................................................................................................................
Hard Lock Protection295................................................................................................................................................................
Absolute Maximum Ratings297................................................................................................................................................................
D.c. Electrical Characteristics297................................................................................................................................................................
Stop Mode Release Timing When Initiated By An External Interrupt300................................................................................................................................................................
Data Retention Supply Voltage In Stop Mode300................................................................................................................................................................
Stop Mode Release Timing When Initiated By A Reset301................................................................................................................................................................
Input/output Capacitance301................................................................................................................................................................
Input Timing For External Interrupts302................................................................................................................................................................
A.c. Electrical Characteristics302................................................................................................................................................................
Input Timing For Reset303................................................................................................................................................................
Serial Data Transfer Timing303................................................................................................................................................................
Lvr (low Voltage Reset) Timing304................................................................................................................................................................
Battery Level Detector Electrical Characteristics304................................................................................................................................................................
Lvr (low Voltage Reset) Electrical Characteristics304................................................................................................................................................................
Main Oscillation Characteristics305................................................................................................................................................................
Sub Oscillation Characteristics305................................................................................................................................................................
Main Oscillation Stabilization Time306................................................................................................................................................................
Sub Oscillation Stabilization Time307................................................................................................................................................................
Operating Voltage Range308................................................................................................................................................................
A.c. Electrical Characteristics For Internal Flash Rom308................................................................................................................................................................
Pin Qfp Package Dimensions (64-qfp-1420f)309................................................................................................................................................................
Pin Lqfp Package Dimensions (64-lqfp-1010)310................................................................................................................................................................
S3f8275x/f8278x/f8274x Pin Assignments (64-qfp-1420f)312................................................................................................................................................................
S3f8275x/f8278x/f8274x Pin Assignments (64-lqfp-1010)313................................................................................................................................................................
Descriptions Of Pins Used To Read/write The Flash Rom314................................................................................................................................................................
Comparison Of S3f8275x/f8278x/f8274x And S3c8275x/c8278x/c8274x Features314................................................................................................................................................................
Operating Mode Characteristics315................................................................................................................................................................
Operating Mode Selection Criteria315................................................................................................................................................................
Shine318................................................................................................................................................................
Sama Assembler318................................................................................................................................................................
Sasm88318................................................................................................................................................................
Hex2rom318................................................................................................................................................................
Target Boards318................................................................................................................................................................
Smds Product Configuration (smds2+)319................................................................................................................................................................
Tb8275/8/4 Target Board320................................................................................................................................................................
Tb8275/8/4 Target Board Configuration320................................................................................................................................................................
Power Selection Settings For Tb8275/8/4321................................................................................................................................................................
Main-clock Selection Settings For Tb8275/8/4321................................................................................................................................................................
Select Smart Option Source Setting For Tb8275/8/4322................................................................................................................................................................
Smart Option Switch Settings For Tb8275/8/4322................................................................................................................................................................
Smds2+ Selection (sam8)323................................................................................................................................................................
Idle Led323................................................................................................................................................................
Stop Led323................................................................................................................................................................
Device Selection Settings For Tb8275/8/4323................................................................................................................................................................
The Smds2+ Tool Selection Setting323................................................................................................................................................................
Pin Connectors (j101, J102) For Tb8275/8/4324................................................................................................................................................................
S3e8270 Cables For 64-qfp Package324................................................................................................................................................................

Advertisement

Share and save

Advertisement