Samsung KS57C2308 Bedienungsanleitung
- Schauen Sie die Anleitung online durch oderladen Sie diese herunter
- 328 Seiten
- 2.42 mb
Zur Seite of
Ähnliche Gebrauchsanleitungen
-
Computer Monitor
Samsung 510T
93 Seiten 4.1 mb -
Computer Monitor
Samsung 320MXn
21 Seiten 1.65 mb -
Computer Monitor
Samsung SyncMaster 171 T
71 Seiten 5.16 mb -
Computer Monitor
Samsung 770TFT, 870TFT, 170T
30 Seiten 1.44 mb -
Computer Monitor
Samsung SMT-1912
71 Seiten 6.82 mb -
Computer Monitor
Samsung 20080828210016437
21 Seiten 2.02 mb -
Computer Monitor
Samsung S23A750D
88 Seiten 3.77 mb -
Computer Monitor
Samsung SyncMaster 950B
75 Seiten 2.87 mb
Richtige Gebrauchsanleitung
Die Vorschriften verpflichten den Verkäufer zur Übertragung der Gebrauchsanleitung Samsung KS57C2308 an den Erwerber, zusammen mit der Ware. Eine fehlende Anleitung oder falsche Informationen, die dem Verbraucher übertragen werden, bilden eine Grundlage für eine Reklamation aufgrund Unstimmigkeit des Geräts mit dem Vertrag. Rechtsmäßig lässt man das Anfügen einer Gebrauchsanleitung in anderer Form als Papierform zu, was letztens sehr oft genutzt wird, indem man eine grafische oder elektronische Anleitung von Samsung KS57C2308, sowie Anleitungsvideos für Nutzer beifügt. Die Bedingung ist, dass ihre Form leserlich und verständlich ist.
Was ist eine Gebrauchsanleitung?
Das Wort kommt vom lateinischen „instructio”, d.h. ordnen. Demnach kann man in der Anleitung Samsung KS57C2308 die Beschreibung der Etappen der Vorgehensweisen finden. Das Ziel der Anleitung ist die Belehrung, Vereinfachung des Starts, der Nutzung des Geräts oder auch der Ausführung bestimmter Tätigkeiten. Die Anleitung ist eine Sammlung von Informationen über ein Gegenstand/eine Dienstleistung, ein Hinweis.
Leider widmen nicht viele Nutzer ihre Zeit der Gebrauchsanleitung Samsung KS57C2308. Eine gute Gebrauchsanleitung erlaubt nicht nur eine Reihe zusätzlicher Funktionen des gekauften Geräts kennenzulernen, sondern hilft dabei viele Fehler zu vermeiden.
Was sollte also eine ideale Gebrauchsanleitung beinhalten?
Die Gebrauchsanleitung Samsung KS57C2308 sollte vor allem folgendes enthalten:
- Informationen über technische Daten des Geräts Samsung KS57C2308
- Den Namen des Produzenten und das Produktionsjahr des Geräts Samsung KS57C2308
- Grundsätze der Bedienung, Regulierung und Wartung des Geräts Samsung KS57C2308
- Sicherheitszeichen und Zertifikate, die die Übereinstimmung mit entsprechenden Normen bestätigen
Warum lesen wir keine Gebrauchsanleitungen?
Der Grund dafür ist die fehlende Zeit und die Sicherheit, was die bestimmten Funktionen der gekauften Geräte angeht. Leider ist das Anschließen und Starten von Samsung KS57C2308 zu wenig. Eine Anleitung beinhaltet eine Reihe von Hinweisen bezüglich bestimmter Funktionen, Sicherheitsgrundsätze, Wartungsarten (sogar das, welche Mittel man benutzen sollte), eventueller Fehler von Samsung KS57C2308 und Lösungsarten für Probleme, die während der Nutzung auftreten könnten. Immerhin kann man in der Gebrauchsanleitung die Kontaktnummer zum Service Samsung finden, wenn die vorgeschlagenen Lösungen nicht wirksam sind. Aktuell erfreuen sich Anleitungen in Form von interessanten Animationen oder Videoanleitungen an Popularität, die den Nutzer besser ansprechen als eine Broschüre. Diese Art von Anleitung gibt garantiert, dass der Nutzer sich das ganze Video anschaut, ohne die spezifizierten und komplizierten technischen Beschreibungen von Samsung KS57C2308 zu überspringen, wie es bei der Papierform passiert.
Warum sollte man Gebrauchsanleitungen lesen?
In der Gebrauchsanleitung finden wir vor allem die Antwort über den Bau sowie die Möglichkeiten des Geräts Samsung KS57C2308, über die Nutzung bestimmter Accessoires und eine Reihe von Informationen, die erlauben, jegliche Funktionen und Bequemlichkeiten zu nutzen.
Nach dem gelungenen Kauf des Geräts, sollte man einige Zeit für das Kennenlernen jedes Teils der Anleitung von Samsung KS57C2308 widmen. Aktuell sind sie genau vorbereitet oder übersetzt, damit sie nicht nur verständlich für die Nutzer sind, aber auch ihre grundliegende Hilfs-Informations-Funktion erfüllen.
Inhaltsverzeichnis der Gebrauchsanleitungen
-
Seite 1
KS57C2308/P2308/C2316/P2316 PRODUCT OVERVIEW 1- 1 1 PRODUCT OVERVIEW OVERVIEW The KS57C2308/C2316 single-chip CMOS microcontroller has been designed for high perfo rmance using Samsung's newest 4- bit CPU core, SAM47 (Samsung Arrangeable Microcontrollers). With features such as LCD direct drive capability, 8-bit timer/counter, and serial I/O, [...]
-
Seite 2
PRODUCT OVERVIEW KS57C2308/P2308/C23 16/P2316 1- 2 FEATURES Memory – 512 × 4-bit RAM – 8 K × 8-bit ROM (KS57C2308/P2308) – 16 K × 8-bit ROM (KS57C2316/P2316) I/O Pins – Input only: 8 pins – I/O: 24 pins – Output: 8 pins sharing with segment driver outputs LCD Controller/Driver – Maximum 16-digit LCD direct drive capability – 32 s[...]
-
Seite 3
KS57C2308/P2308/C2316/P2316 PRODUCT OVERVIEW 1- 3 BLOCK DIAGRAM Interrupt Control Block Instruction Register Program Counter Program Status Word Stack Pointer Arithmetic and Logic Unit Instruction Decoder Clock RESET X IN XT IN Internal Interrupts INT0, INT1,INT2 P3.0/LCDCK P3.1/LCDSY P3.2 P3.3 I/O Port 3 512 x 4-Bit Data Memory 8/16-Kbyte Program [...]
-
Seite 4
PRODUCT OVERVIEW KS57C2308/P2308/C23 16/P2316 1- 4 PIN ASSIGNMENTS SEG19 SEG20 SEG21 SEG22 SEG23 P8.0/SEG24 P8.1/SEG25 P8.2/SEG26 P8.3/SEG27 P8.4/SEG28 P8.5/SEG29 P8.6/SEG30 P8.7/SEG31 P 7.3/KS7 P7.2/KS6 P7.1/KS5 P7.0/KS4 P6.3/KS3 P6.2/KS2 P6.1/KS1 P6.0/KS0 P5.3 P5.2 P5.1 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 80 79[...]
-
Seite 5
KS57C2308/P2308/C2316/P2316 PRODUCT OVERVIEW 1- 5 PIN DESCRIPTIONS Table 1 - 1. KS57C2308/C2316 Pin Descriptions Pin Name Pin Type Description Number Share Pin Reset Value Circuit Type P0.0 P0.1 P0.2 P0.3 I I/O I/O I 4-bit input port. 1-bit and 4-bit read and test are possible. 4-bit pull-up res istors are software assignable. 20 21 22 23 INT4 SCK [...]
-
Seite 6
PRODUCT OVERVIEW KS57C2308/P2308/C23 16/P2316 1- 6 Table 1 - 1. KS57C2308/C2316 Pin Descriptio ns (Continued) Pin Name Pin Type Description Number Share Pin Reset Value Circuit Type LCDSY I/O LCD synchronization clock output for LCD display expan sion 33 P3.1 Input D TCL0 I/O E xternal clock input for timer/counter 0 27 P1.3 Input A-1 TCLO0 I/O Tim[...]
-
Seite 7
KS57C2308/P2308/C2316/P2316 PRODUCT OVERVIEW 1- 7 PIN CIRCUIT DIAGRAMS V DD P-CHANNEL IN N-CHNNEL Figure 1 -3 . Pin Circuit Type A SCHMITT TRIGGER V DD IN P-CHANNEL PULL-UP RESISTOR RESISTOR ENABLE Figure 1 -4 . Pin Circuit Type A-1 (P1, P0.0, P0.3) V DD P-CHANNEL DATA OUTPUT DISABLE N-CHANNEL OUT Figure 1 -5 . Pin Circuit Type C P-CHANNEL PULL-UP [...]
-
Seite 8
PRODUCT OVERVIEW KS57C2308/P2308/C23 16/P2316 1- 8 DATA OUTPUT ENABLE V DD P - CH RESISTOR ENABLE N-CH PULL-UP RESISTOR I/O CIRCUIT TYPE A V DD PNE Figure 1 -7 . Pin Circuit Type E (P4, P5) V LC0 V LC1 LCD SEGMENT/ COMMON DATA V LC2 OUT Figure 1 -8 . Pin Circuit Type H-15 (SEG/COM) V LC0 V LC1 LCD SEGMENT/ & PORT 8 DATA V LC2 V DD OUT Figure 1 [...]
-
Seite 9
KS57C2308/P2308/C2316/P2316 ADDRESS SPACES 2 - 1 2 ADDRESS SPACES PROGRAM MEMORY (ROM) OVERVIEW ROM maps for KS57C2 308/C2316 devices are mask programmable at the factory. KS57C2308 has 8K × 8-bit program memory and KS57C2316 has 16K × 8-bit program memory, aside from the differences in the ROM size the two products are identical in other feature[...]
-
Seite 10
ADDRESS SPACES KS 57C2308/P2308/C2316/P2316 2 - 2 GENERAL-PURPOSE MEMORY AREAS The 20-byte area at ROM locations 000C H–001FH and the 8,064 -byte (16,256 -byte ) area at ROM locations 0080H– 1 FFFH ( 0080H– 3 FFFH ) are used as general-purpose program memory. Unused locations in the vector address area and REF instruction look-up table areas [...]
-
Seite 11
KS57C2308/P2308/C2316/P2316 ADDRESS SPACES 2 - 3 + + P ROGRAMMING TIP — Defining Vectored Interrupts The following examples show you several ways you can define the vectored interrupt and instruction reference areas in program memory: 1. When all vector interrupts are used: ORG 0000H VENT0 1,0, RESET ; EMB ← 1, ERB ← 0; Jump to RESET address [...]
-
Seite 12
ADDRESS SPACES KS 57C2308/P2308/C2316/P2316 2 - 4 INSTRUCTION REFERENCE AREA Using 1-byte REF instructions, you can easily reference instructions with larger b yte sizes that are stored in ad dresses 0020H–007FH of program memory. This 96-byte area is called the REF instruction reference area, or look-up table. Locations in the REF look-up table [...]
-
Seite 13
KS57C2308/P2308/C2316/P2316 ADDRESS SPACES 2 - 5 DATA MEMORY (RAM) OVERVIEW In its standard configuration, the 512 x 4 -b it data memory has four areas: — 32 × 4-bit working register area in bank 0 — 224 × 4 -bit general-purpose area in bank 0 which is also used as the stack area — 224 × 4 -bit general-purpose area in bank 1 — 32 × 4 -b[...]
-
Seite 14
ADDRESS SPACES KS 57C2308/P2308/C2316/P2316 2 - 6 Memory Banks 0, 1, and 15 Bank 0 (000H–0FFH) The lowest 32 nibbles of bank 0 (000H–01FH) are used as working registers; the next 224 nibbles (020H–0FFH) can be used both as stack area and as general-purpose data memory. Use the stack area for implementing subroutine calls and returns, and for [...]
-
Seite 15
KS57C2308/P2308/C2316/P2316 ADDRESS SPACES 2 - 7 Table 2- 2. Data Memory Organization and Addressing Addresses Register Areas Bank EMB Value SMB Value 000H–01FH Working registers 0 0, 1 0 020H–0FFH Stack and general-purpose registers 100H– 1D FH General-purpose registers 1 1 1 1E 0H–1FFH LCD Data registers F80H–FFFH I/O-mapped hardware re[...]
-
Seite 16
ADDRESS SPACES KS 57C2308/P2308/C2316/P2316 2 - 8 WORKING REGISTERS Working registers, mapped to RAM address 000H-01FH in data memory bank 0, are used to temporarily store intermediate results during program execution, as well as pointer values used for indirect addressing. Unused registers may be used as general-purpose memory. Working register da[...]
-
Seite 17
KS57C2308/P2308/C2316/P2316 ADDRESS SPACES 2 - 9 Working Register Banks For addressing purposes, the working register area is divided into four register banks — bank 0, bank 1, bank 2, and bank 3. Any one of these banks can be selected as the working register bank by the register bank selection instruction (SRB n) and by setting the status of the[...]
-
Seite 18
ADDRESS SPACES KS 57C2308/P2308/C2316/P2316 2 - 10 Special-Purpose Working Registers Register A is used as a 4-bit accumulator and double register EA as an 8-bit accumulator. The carry flag can also be used as a 1-bit accumulator. 8-bit double registers WX, WL and HL are used as data pointers for indirect addressing. When the HL register serves as [...]
-
Seite 19
KS57C2308/P2308/C2316/P2316 ADDRESS SPACES 2 - 11 + + PROGRAMMING TIP — Selecting the Working Register Area The following examples show the correct programming method for selecting working register area: 1. When ERB = "0": VENT2 1,0,INT0 ; EMB ← 1, ERB ← 0, Jump to INT0 address INT0 PUSH SB ; PUSH current SMB, SRB SRB 2 ; Instructio[...]
-
Seite 20
ADDRESS SPACES KS 57C2308/P2308/C2316/P2316 2 - 12 STACK OPERATIONS STACK POINTER (SP) The stack pointer (SP) is an 8-bit register that stores the address used to access the stack, an area of data memory set aside for temporary storage of data and addresses. The SP can be read or w ritten by 8 -bit control instruc tions. When addressing the SP, bit[...]
-
Seite 21
KS57C2308/P2308/C2316/P2316 ADDRESS SPACES 2 - 13 PUSH OPERATIONS Three kinds of push operations reference the stack pointer (SP) to write data from the source register to the stack: PUSH instructions, CALL instructions, and interrupts. In each case, the SP is decreased by a number determined by the type of push operation and then points to the nex[...]
-
Seite 22
ADDRESS SPACES KS 57C2308/P2308/C2316/P2316 2 - 14 POP OPERATIONS For each push operation there is a corresponding pop operation to write data from the stack back to the source register or registers: for the PUSH instruction it is the POP instruction; for CALL, the instruction RET or SRET; for interrupts, the instruction IRET. When a pop operation [...]
-
Seite 23
KS57C2308/P2308/C2316/P2316 ADDRESS SPACES 2 - 15 BIT SEQUENTIAL CARRIER (BSC) The bit sequential carrier (BSC) is a 16-bit general register that can be manipulated using 1-, 4-, and 8-bit RAM control instructions. RESET clears all BSC bit values to logic zero. Using the BSC, you can specify sequential addresses and bit locations using 1-bit indire[...]
-
Seite 24
ADDRESS SPACES KS 57C2308/P2308/C2316/P2316 2 - 16 PROGRAM COUNTER (PC) A 13 -bit program counter (PC) stores addresses for instruction f etches during program execution (KS57C2316 microcontroller has 14-bit program counter, PC0–PC13). Whenever a reset operation o r an interrupt occurs, bits PC12 through PC0 (PC13 through PC0 for KS57C2316) are s[...]
-
Seite 25
KS57C2308/P2308/C2316/P2316 ADDRESS SPACES 2 - 17 INTERRUPT STATUS FLAGS (IS0, IS1) PSW bits IS0 and IS1 contain the current interrupt execution status values. You can manipulate IS0 and IS1 flags directly using 1-bit RAM control instructions By manipulating interrupt status flags in conjunction with the interrupt priority register (IPR), you can p[...]
-
Seite 26
ADDRESS SPACES KS 57C2308/P2308/C2316/P2316 2 - 18 EMB FLAG (EMB) The EMB flag is used to allocate specific address locations in the RAM by modifying the upper 4 bits of 12-bit data memory addresses. In this way, it controls the addressing mode for data memory banks 0, 1 or 15. When the EMB flag is "0", the data memory address space is re[...]
-
Seite 27
KS57C2308/P2308/C2316/P2316 ADDRESS SPACES 2 - 19 ERB FLAG (ERB) The 1-bit register bank enable flag (ERB) determines the range of addressable working register area. When the ERB flag is "1", the working register area from register banks 0 to 3 is selected according to the register bank selection register (SRB). When the ERB flag is "[...]
-
Seite 28
ADDRESS SPACES KS 57C2308/P2308/C2316/P2316 2 - 20 SKIP CONDITION FLAGS (SC2, SC1, SC0) The skip condition flags SC2, SC1, and SC0 in the PSW indicate the current program skip conditions and are set and reset automatically during program execution. Skip condition flags can only be addressed by 8-bit read instructions. Direct manipulation of the SC2[...]
-
Seite 29
KS57C2308/P2308/C2316/P2316 ADDRESS SPACES 2 - 21 + + PROGRAMMING TIP — Using the Carry Flag as a 1-Bit Accumulator 1. Set the carry flag to logic one: SCF ; C ← 1 LD EA,#0C3H ; EA ← #0C3H LD HL,#0AAH ; HL ← #0AAH ADC EA,HL ; EA ← #0C3H + #0AAH + #1H, C ← 1 2. Logical-AND bit 3 of address 3FH with P3.3 and output the result to P 4 .0: L[...]
-
Seite 30
ADDRESS SPACES KS 57C2308/P2308/C2316/P2316 2 - 22 NOTES[...]
-
Seite 31
KS57C2308/P2308/C2316/P2316 ADDRESSING MODES 3 - 1 3 ADDRESSING MODES OVERVIEW The enable memory bank flag, EMB, controls the two addressing modes for data memory. When the EMB flag is set to logic one, you can address the entire RAM area; when the EMB flag is cleared to logic zero, the addressable area in the RAM is restricted to specific location[...]
-
Seite 32
ADDRESSING MODES KS5 7C2308/P2308/C2316/P2316 3 - 2 DA DA.b @HL @H + DA.b @WX @WL mema.b memb.@L EMB = 0 EMB = 1 X X X 000H Working Registers BANK 0 (General Registers and Stack ) 01FH 020H 0FFH 100H 1DFH 1E0H BANK 1 (General Registers) RAM Areas Addressing Mode NOTES 1. 'X' means don't care. 2. Blank columns indicate RAM areas that [...]
-
Seite 33
KS57C2308/P2308/C2316/P2316 ADDRESSING MODES 3 - 3 EMB AND ERB INITIALIZATION VALUES The EMB and ERB flag bits are set automatically by the values of the RESET vector address and the interrupt vector address. When a RESET is generated internally, bit 7 of program memory address 0000H is written to the EMB flag, initializing it automatically. When a[...]
-
Seite 34
ADDRESSING MODES KS5 7C2308/P2308/C2316/P2316 3 - 4 ENABLE MEMORY BANK SETTINGS EMB = "1" When the enable memory bank flag EMB is set to logic one, you can address the data memory bank specified by the select memory bank (SMB) value (0, 1 or 15) using 1-, 4-, or 8-bit instructions. You can use both direct and indirect addressing modes. Th[...]
-
Seite 35
KS57C2308/P2308/C2316/P2316 ADDRESSING MODES 3 - 5 SELECT BANK REGISTER (SB) The select bank register (SB) is used to assign the memory bank and register bank. The 8-bit SB register con sists of the 4-bit select register bank register (SRB) and the 4-bit select memory bank register (SMB), as shown in Figure 3- 2. During interrupts and subroutine ca[...]
-
Seite 36
ADDRESSING MODES KS5 7C2308/P2308/C2316/P2316 3 - 6 DIRECT AND INDIRECT ADDRESSING 1-bit, 4-bit, and 8-bit data stored in data memory locations can be addressed directly using a specific register or bit address as the instruction operand. Indirect addressing specifies a memory location that contains the required direct address. The KS57 instruction[...]
-
Seite 37
KS57C2308/P2308/C2316/P2316 ADDRESSING MODES 3 - 7 + + PROGRAMMING TIP — 1-Bit Addressing Modes 1-Bit Direct Addressing 1. If EMB = "0": AFLAG EQU 34H.3 BFLAG EQU 85H.3 CFLAG EQU 0BAH.0 SMB 0 BITS AFLAG ; 34H.3 ← 1 BITS BFLAG ; F85H.3 ← 1 BTST CFLAG ; If FBAH.0 = 1, skip BITS BFLAG ; Else if, FBAH.0 = 0, F85H.3 (BMOD.3) ← 1 BITS P[...]
-
Seite 38
ADDRESSING MODES KS5 7C2308/P2308/C2316/P2316 3 - 8 4-BIT ADDRESSING Table 3- 3. 4-Bit Direct and Indirect RAM Addressing Operand Notation Addressing Mode Description EMB Flag Setting Addressable Area Memory Bank Hardware I/O Mapping 000H–07FH Bank 0 – DA Direct: 4-bit address indicated by the RAM address (DA) and the memory bank selection 0 F8[...]
-
Seite 39
KS57C2308/P2308/C2316/P2316 ADDRESSING MODES 3 - 9 + + PROGRAMMING TIP — 4-Bit Addressing Modes (Continued) 4-Bit Indirect Addressing (Example 1) 1. If EMB = "0", compare bank 0 locations 040H–046H with bank 0 locations 060H–066H: ADATA EQU 46H BDATA EQU 66H SMB 1 ; Non-essential instruction, since EMB = "0" LD HL,#BDATA L[...]
-
Seite 40
ADDRESSING MODES KS5 7C2308/P2308/C2316/P2316 3 - 10 4-Bit Indirect Addressing (Example 2) 1. If EMB = "0", exchange bank 0 locations 040H–046H with bank 0 locations 060H–066H: ADATA EQU 46H BDATA EQU 66H SMB 1 ; Non-essential instruction, since EMB = "0" LD HL,#BDATA LD WX,#ADATA TRANS LD A,@WL ; A ← bank 0 (040H–046H) [...]
-
Seite 41
KS57C2308/P2308/C2316/P2316 ADDRESSING MODES 3 - 11 8-BIT ADDRESSING Table 3- 4. 8-Bit Direct and Indirect RAM Addressing Instruction Notation Addressing Mode Description EMB Flag Setting Addressable Area Memory Bank Hardware I/O Mapping 000H–07FH Bank 0 – DA Direct: 8-bit address indicated by the RAM address ( DA = even number ) and memory ban[...]
-
Seite 42
ADDRESSING MODES KS5 7C2308/P2308/C2316/P2316 3 - 12 + + PROGRAMMING TIP — 8-Bit Addressing Modes (Continued) 8-Bit Indirect Addressing 1. If EMB = "0": ADATA EQU 46H SMB 1 ; Non-essential instruction, since EMB = "0" LD HL,#ADATA LD EA,@HL ; A ← (046H), E ← (047H) 2. If EMB = "1": ADATA EQU 46H SMB 1 LD HL,#ADAT[...]
-
Seite 43
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 1 4 MEMORY MAP OVERVIEW To support program control of peripheral hardware, I/O addresses for peripherals are memory-mapped to bank 15 of the RAM. Memory mapping lets you use a mnemonic as the operand of an instruction in place of the specific memory location. Access to bank 15 is controlled by the select m[...]
-
Seite 44
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 2 Table 4- 1. I/O Map for Memory Bank 15 Memory Bank 15 Addressing Mode Address Register Bit 3 Bit 2 Bit 1 Bit 0 R/W 1-Bit 4-Bit 8-Bit F80H SP .3 .2 .1 "0" R/W No No Yes F81H .7 .6 .5 .4 F82H SB “0” “0” SRB1 SRB0 – No No No F83H SMB3 SMB2 SMB1 SMB0 Location, F84H, is not mapped. F85H BM[...]
-
Seite 45
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 3 Table 4- 1. I/O Map for Memory Bank 15 (Continued) Memory Bank 15 Addressing Mode Address Register Bit 3 Bit 2 Bit 1 Bit 0 R/W 1-Bit 4-Bit 8-Bit FB7H SCMOD .3 .2 "0" .0 W Yes No No FB8H INT (A) IE4 IRQ4 IEB IRQB R/W Yes Yes No Location, FB9H, is not mapped FBA H INT (B) “0” “0” IEW IRQW[...]
-
Seite 46
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 4 Table 4- 1. I/O Map for Memory Bank 15 (Concluded) Memory Bank 15 Addressing Mode Address Register Bit 3 Bit 2 Bit 1 Bit 0 R/W 1-Bit 4-Bit 8-Bit FF0H Port 0 .3 .2 .1 .0 R Yes Yes No FF1H Port 1 .3 .2 .1 .0 R Yes Yes No FF2H Port 2 .3 .2 .1 .0 R/W Yes Yes No FF3H Port 3 .3 .2 .1 .0 R/W Yes Yes No FF4H Por[...]
-
Seite 47
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 5 CLMOD − − Clock Output Mode Control Register FD0H Bit Identifier RESET Value Read/Write Bit Addressing CLMOD.3 W 4 0 3 .3 Register ID Register name Register location in RAM bank 15 Bit number in MSB to LSB order Bit identifier used for bit addressing Bit value immediately following a RESET Type of ad[...]
-
Seite 48
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 6 BMOD — Basic Timer Mode Register F85H Bit 3210 Identifier .3 .2 .1 .0 RESET Value 0000 Read/Write WWWW Bit Addressing 1/4 444 .3 Basic Timer Restart Bit 1 Restart basic timer, then clear IRQB flag, BCNT and BMOD.3 to logic zero .2–.0 Input Clock Frequency and Signal Interrupt Interval Time Control Bi[...]
-
Seite 49
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 7 CLMOD — Clock Output Mode Register FD0H Bit 3210 Identifier .3 "0" .1 .0 RESET Value 0000 Read/Write WWWW Bit Addressing 4444 .3 Enable/Disable Clock Output Control Bit 0 Disable clock output 1 Enable clock output .2 Bit 2 0 Always logic zero .1–.0 Clock Source and Frequency Selection Contr[...]
-
Seite 50
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 8 IE0, 1 , IRQ0, 1 — INT0, 1 Interrupt Enable/Request Flags FBEH Bit 3210 Identifier IE1 IRQ1 IE0 IRQ0 RESET Value 0000 Read/Write R/W R/W R/W R/W Bit Addressing 1/4 1/4 1/4 1/4 IE1 INT1 Interrupt Enable Flag 0 Disable interrupt requests at the INT1 pin 1 Enable interrupt requests at the INT1 pin IRQ1 IN[...]
-
Seite 51
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 9 IE2 , IRQ2 — INT2 Interrupt Enable/Request Flags FBFH Bit 3210 Identifier "0" "0" IE2 IRQ2 RESET Value 0000 Read/Write R/W R/W R/W R/W Bit Addressing 1/4 1/4 1/4 1/4 .3–.2 Bits 3–2 0 Always logic zero IE2 INT2 Interrupt Enable Flag 0 Disable INT2 interrupt requests at the INT2 p[...]
-
Seite 52
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 10 IE4 , IRQ4 — INT4 Interrupt Enable/Request Flags FB8H IEB, IRQB — INTB Interrupt Enable/Request Flags FB8H Bit 3210 Identifier IE4 IRQ4 IEB IRQB RESET Value 0000 Read/Write R/W R/W R/W R/W Bit Addressing 1/4 1/4 1/4 1/4 IE4 INT4 Interrupt Enable Flag 0 Disable interrupt requests at the INT4 pin 1 En[...]
-
Seite 53
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 11 IES , IRQS — INTS Interrupt Enable/Request Flags FBDH Bit 3210 Identifier "0" "0" IES IRQS RESET Value 0000 Read/Write R/W R/W R/W R/W Bit Addressing 1/4 1/4 1/4 1/4 .3–.2 Bits 3–2 0 Always logic zero IES INTS Interrupt Enable Flag 0 Disable INTS interrupt requests 1 Enable INT[...]
-
Seite 54
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 12 IET0 , IRQT0 — INTT0 Interrupt Enable/Request Flags FBCH Bit 3210 Identifier "0" "0" IET0 IRQT0 RESET Value 0000 Read/Write R/W R/W R/W R/W Bit Addressing 1/4 1/4 1/4 1/4 .3–.2 Bits 3–2 0 Always logic zero IET0 INTT0 Interrupt Enable Flag 0 Disable INTT0 interrupt requests 1 En[...]
-
Seite 55
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 13 IEW , IRQW — INTW Interrupt Enable/Request Flags FBAH Bit 3210 Identifier "0" "0" IEW IRQW RESET Value 0000 Read/Write R/W R/W R/W R/W Bit Addressing 1/4 1/4 1/4 1/4 .3–.2 Bits 3–2 0 Always logic zero IEW INTW Interrupt Enable Flag 0 Disable INTW interrupt requests 1 Enable INT[...]
-
Seite 56
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 14 IMOD0 — External Interrupt 0 (INT0) Mode Register FB4H Bit 3210 Identifier .3 "0" .1 .0 RESET Value 0000 Read/Write WWWW Bit Addressing 4444 .3 Interrupt Sampling Clock Selection Bit 0 Select CPU clock as a sampling clock 1 Select sampling clock frequency of the selected system clock (fxx/64[...]
-
Seite 57
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 15 IMOD1 — External Interrupt 1 (INT1) Mode Register FB5H Bit 3 2 1 0 Identifier "0" "0" "0" IMOD1.0 RESET Value 0 0 0 0 Read/Write W W W W Bit Addressing 4 4 4 4 .3–.1 Bits 3–1 0 Always logic zero .0 External Interrupt 1 Edge Detection Control Bit 0 Rising edge detectio[...]
-
Seite 58
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 16 IMOD2 — External Inte rrupt 2 (INT2) Mode Register FB6 H Bit 3 2 1 0 Identifier "0" IMOD2.2 IMOD2.1 IMOD2.0 RESET Value 0 0 0 0 Read/Write W W W W Bit Addressing 4 4 4 4 .3 Bits 3 0 Always logic zero .2– .0 External Interrupt 2 Edge Detection Selection Bit 0 0 0 Select rising edge at INT2 [...]
-
Seite 59
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 17 IPR — Interrupt Priority Register FB2H Bit 3210 Identifier IME .2 .1 .0 RESET Value 0000 Read/Write WWWW Bit Addressing 1/4 444 IME Interrupt Master Enable Bit 0 Disable all interrupt processing 1 Enable processing for all interrupt service requests .2–.0 Interrupt Priority Assignment Bits 000 Norma[...]
-
Seite 60
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 18 LCON — LCD Output Control Register F8EH Bit 3210 Identifier "0" .2 " 0 " .0 RESET Value 0000 Read/Write WWWW Bit Addressing 4444 .3 LCD Bias Selection Bit 0 This bit is used for internal testing only; always logic zero. .2 LCD Clock Output Disable/Enable Bit 0 Disable LCDCK and LCD[...]
-
Seite 61
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 19 LMOD — LCD Mode Register F8DH, F8CH Bit 7 6 5 4 3 2 1 0 Identifier .7 .6 .5 .4 .3 .2 .1 .0 RESET Value 0 0 0 0 0 0 0 0 Read/Write W W W W W W W W Bit Addressing 8 8 8 8 1/ 8 8 8 8 .7–.6 LCD Output Segment and Pin Configuration Bits 0 0 Segments 24–27; and 28–31 0 1 Segment 24–27 ; 1-bit output[...]
-
Seite 62
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 20 PCON — Power Control Register FB3H Bit 3210 Identifier .3 .2 .1 .0 RESET Value 0000 Read/Write WWWW Bit Addressing 4444 .3–.2 CPU Operating Mode Control Bits 0 0 Enable normal CPU operating mode 0 1 Initiate idle power-down mode 1 0 Initiate stop power-down mode .1–.0 CPU Clock Frequency Selection[...]
-
Seite 63
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 21 PMG1 — Port I/O Mode Flags (Group 1: Port 3 and 6) FE9H, FE8 H Bit 76543210 Identifier PM6.3 PM 6 .2 PM 6 .1 PM6 .0 PM 3 .3 PM 3 .2 PM 3 .1 PM 3 .0 RESET Value 00000000 Read/Write WWWWWWWW Bit Addressing 88888888 PM6.3 P6.3 I/O Mode selection Flag 0 Set P6.3 to input mode 1 Set P6.3 to output mode PM [...]
-
Seite 64
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 22 PMG2 — Port I/O Mode Flags (Group 2: Port 2, 4, 5, and 7) FEDH, FEC H Bit 76543210 Identifier PM7 “0” PM5 PM4 “0” PM2 “0” “0” RESET Value 00000000 Read/Write WWWWWWWW Bit Addressing 88888888 PM7 P7 I/O Mode Selection Flag 0 Set P7 to input mode 1 Set P7 to output mode .6 Bit 6 0 Always[...]
-
Seite 65
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 23 PNE — N-Ch annel Open-Drain Mode Register FD7H, FD6 H Bit 76543210 Identifier PNE5.3 PNE5.2 PNE5.1 PNE5.0 PNE4.3 PNE4.2 PNE4.1 PNE4.0 RESET Value 00000000 Read/Write WWWWWWWW Bit Addressing 88888888 PNE5.3 P5 .3 N-Channel Open-Drain Configurable Bit 0 Configure P5 .3 as a push-pull 1 Co nfigure P5 .3 [...]
-
Seite 66
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 24 PSW — Program Status Word FB1H, FB0H Bit 76543210 Identifier C SC2 SC1 SC0 IS1 IS0 EMB ERB RESET Value (1) 0000000 Read/Write R/W RRR R/W R/W R/W R/W Bit Addressing (2) 888 1/4/8 1/4 /8 1 /4/8 1 /4/8 C Carry Flag 0 No overflow or borrow condition exists 1 An overflow or borrow condition does exist SC2[...]
-
Seite 67
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 25 PUMOD — Pull-Up Resistor Mode Register FDDH, FDCH Bit 76543210 Identifier PUR7 PUR6 PUR5 PUR4 PUR3 PUR2 PUR1 PUR0 RESET Value 00000000 Read/Write WWWWWWWW Bit Addressing 88888888 PUR7 Connect/Disconnect Port 7 Pull-Up Resistor Control Bit 0 Disconnect port 7 pull-up resistor 1 Connect port 7 pull-up r[...]
-
Seite 68
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 26 SCMOD — System Clock Mode Control Register FB7H Bit 3 2 1 0 Identifier .3 .2 "0" .0 RESET Value 0 0 0 0 Read/Write W W W W Bit Addressing 1 1 1 1 .3 , .2 and .0 CPU Clock Selection and Main System Clock Oscillation Control Bits 000 Select main system clock ( fx) ; enable main system clock 00[...]
-
Seite 69
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 27 SMOD — Serial I/O Mode Register FE1H, FE0H Bit 76543210 Identifier .7 .6 .5 "0" .3 .2 .1 .0 RESET Value 00000000 Read/Write WWWW R/ W W W W Bit Addressing 8888 1/8 888 .7–.5 Serial I/O Clock Selection and SBUF R/W Status Control Bits 000 Use an external clock at the SCK pin; Enable SBUF wh[...]
-
Seite 70
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 28 TMOD0 — Timer/Counter 0 Mode Register F91H, F90H Bit 76543210 Identifier "0" .6 .5 .4 .3 .2 "0" "0" RESET Value 00000000 Read/Write WWWWWWWW Bit Addressing 8888 1/8 888 .7 Bit 7 0 Always logic zero .6–.4 Timer/Counter 0 Input Clock Selection Bits 000 External clock inpu[...]
-
Seite 71
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 29 TOE — Timer Output Enable Flag Register F92H Bit 3210 Identifier “U” TOE0 “U” “U” RESET Value 0000 Read/Write – R/W – – Bit Addressing –1–– .3 Bit3 U Unknown TOE0 Timer/Counter 0 Output Enable Flag 0 Disable timer/counter 0 output at the TCLO0 pin 1 Enable timer/counter 0 outpu[...]
-
Seite 72
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 30 WDFLAG — Watchdog Timer Counter Clear Flag Register F9AH Bit 3 2 1 0 Identifier WDTCF “0” “0” “0” RESET Value 0 0 0 0 Read/Write W W W W Bit Addressing 1/4 1/4 1/4 1/4 WDTCF Watchdog Timer Counter Clear Flag 1 Clears the watchdog timer counter .2–.0 Bits 2–0 0 Always logic zero NOTE : [...]
-
Seite 73
KS57C2308/P2308/C2316/P2316 MEMORY MAP 4 - 31 WDMOD — Watchdog Timer Mode Register F99H, F98H Bit 7 6 5 4 3 2 1 0 Identifier .7 .6 .5 .4 .3 .2 .1 .0 RESET Value 1 0 1 0 0 1 0 1 Read/Write W W W W W W W W Bit Addressing 8 8 8 8 8 8 8 8 WDMOD Watchdog Timer Enable/Disable Control 5AH Disable watchdog timer function Others Enable watchdog timer func[...]
-
Seite 74
MEMORY MAP KS57C2308/P2308/C2316/P2316 4 - 32 WMOD — Watch Timer Mode Register F89H, F88H Bit 76543210 Identifier .7 "0" .5 .4 .3 .2 .1 .0 RESET Value 0000 ( note ) 000 Read/Write WWWW R WWW Bit Addressing 88881888 .7 Enable/Disable Buzzer Output Bit 0 Disable buzzer (BUZ) signal output 1 Enable buzzer (BUZ) signal output .6 Bit 6 0 Alw[...]
-
Seite 75
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 1 5 SAM47 INSTRUCTION SET OVERVIEW The SAM47 instruction set is specifically designed to support the large register files that are typical of most KS57-series microcontrollers. The SAM47 instruction set includes 1-bit, 4-bit, and 8-bit instructions for data manipulation, logical and arithmetic o[...]
-
Seite 76
SAM47 INSTRUCTION SET KS57C2308/P2308/C2 316/P2316 5- 2 Instruction Reference Area Using the 1-byte REF (Reference) instruction, you can reference instructions stored in the addresses 0020H–007FH of program memory (the REF instruction look-up table). The location referenced by REF may contain either two 1-byte instructions or a single 2-byte inst[...]
-
Seite 77
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 3 Reducing Instruction Redundancy When redundant instructions such as LD A,#im and LD EA,#imm are used consecutively in a program sequence, only the first instruction is executed, but the following redundant instructions are ignored, that is, they are handled like a NOP instruction. When LD HL,#[...]
-
Seite 78
SAM47 INSTRUCTION SET KS57C2308/P2308/C2 316/P2316 5- 4 Flexible Bit Manipulation In addition to normal bit manipulation instructions like set and clear, the SAM47 instruction set can also perform bit tests, bit transfers, and bit Boolean operations. Bits can also be addressed and manipulated by special bit addressing modes. Three types of bit addr[...]
-
Seite 79
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 5 ADC and SBC Instruction Skip Conditions The instructions “ADC A,@HL” and “SBC A,@HL” can generate a skip signal, and set or clear the carry flag, when they are executed in combination with the instruction “ADS A,#im”. If an “ADS A,#im” instruction immediately follows an “ADC [...]
-
Seite 80
SAM47 INSTRUCTION SET KS57C2308/P2308/C2 316/P2316 5- 6 SYMBOLS and CONVENTIONS Table 5-4. Data Type Symbols Symbol Data Type d Immediate data a Address data b Bit data r Register data f Flag data i Indirect addressing data t memc × 0.5 immediate data Table 5-5. Register Identifiers Full Register Name ID 4-bit accumulator A 4-bit working registers[...]
-
Seite 81
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 7 OPCODE DEFINITIONS Table 5-7. Opcode Definitions (Direct) Register r2 r1 r0 A 000 E 001 L 0 1 0 H 011 X 100 W 101 Z 110 Y 111 EA 000 HL 010 WX 100 YZ 110 r = Immediate data for register Table 5-8. Opcode Definitions (Indirect) Register i2 i1 i0 @HL 101 @WX 110 @WL 111 CALCULATING ADDITIONAL MA[...]
-
Seite 82
SAM47 INSTRUCTION SET KS57C2308/P2308/C2 316/P2316 5- 8 HIGH-LEVEL SUMMARY This section contains a high-level summary of the SAM47 instruction set in table format. The tables are designed to familiarize you with the range of instructions that are available in each instruction category. These tables are a useful quick-reference resource when writing[...]
-
Seite 83
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 9 Table 5-9. CPU Control Instructions — High-Level Summary Name Operand Operation Description Bytes Cycles SCF Set carry flag to logic one 1 1 RCF Reset carry flag to logic zero 1 1 CCF Complement carry flag 1 1 EI Enable all interrupts 2 2 DI Disable all interrupts 2 2 IDLE Engage CPU idle mo[...]
-
Seite 84
SAM47 INSTRUCTION SET KS57C2308/P2308/C2 316/P2316 5- 10 Table 5-11. Data Transfer Instructions — High-Level Summary Name Operand Operation Description Bytes Cycles XCH A,DA Exchange A and direct data memory contents 2 2 A,Ra Exchange A and register ( Ra) contents 1 1 A,@RRa Exchange A and indirect data memory 1 1 EA,DA Exchange EA and direct dat[...]
-
Seite 85
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 11 Table 5-12. Logic Instructions — High-Level Summary Name Operand Operation Description Bytes Cycles AND A,#im Logical-AND A immediate data to A 2 2 A,@HL Logical-AND A indirect data memory to A 1 1 EA,RR Logical-AND register pair (RR) to EA 2 2 RRb,EA Logical-AND EA to register pair ( RRb) [...]
-
Seite 86
SAM47 INSTRUCTION SET KS57C2308/P2308/C2 316/P2316 5- 12 Table 5-14. Bit Manipulation Instructions — High-Level Summary Name Operand Operation Description Bytes Cycles BTST C Test specified bit and skip if carry flag is set 1 1 + S DA.b Test specified bit and skip if memory bit is set mema.b memb.@L @ H+DA.b BTSF DA.b Test specified memory bit an[...]
-
Seite 87
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 13 BINARY CODE SUMMARY This section contains binary code values and operation notation for each instruction in the SAM47 instruction set in an easy-to-read, tabular format. It is intended to be used as a quick-reference source for programmers who are experienced with the SAM47 instruction set. T[...]
-
Seite 88
SAM47 INSTRUCTION SET KS57C2308/P2308/C2 316/P2316 5- 14 Table 5-15. CPU Control Instructions — Binary Code Summary Name Operand Binary Code Operation Notation SCF 11100111 C ← 1 RCF 11100110 C ← 0 CCF 11010110 C ← C EI 11111111 IME ← 1 10110010 DI 11111110 IME ← 0 10110010 IDLE 11111111 PCON.2 ← 1 10100011 STOP 11111111 PCON.3 ← 1 [...]
-
Seite 89
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 15 Table 5-16. Program Control Instructions — Binary Code Summary Name Operand Binary Code Operation Notation CPSE R,#im 11011001 Skip if R = im d3 d2 d1 d0 0 r2 r1 r0 @ HL,#im 11011101 Skip if (HL) = im 0 1 1 1 d3 d2 d1 d0 A,R 11011101 Skip if A = R 01101 r2 r1 r0 A,@HL 00111000 Skip if A = ([...]
-
Seite 90
SAM47 INSTRUCTION SET KS57C2308/P2308/C2 316/P2316 5- 16 Table 5-16. Program Control Instructions — Binary Code Summary (Continued) Name Operand Binary Code Operation Notation RET – 11000101 PC13–8 ← (SP + 1) (SP) PC7–0 ← (SP + 2) (SP + 3) EMB,ERB ← (SP + 5) (SP + 4) SP ← SP + 6 IRET – 11010101 PC13–8 ← (SP + 1) (SP) PC7–0 ?[...]
-
Seite 91
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 17 Table 5-17. Data Transfer Instructions — Binary Code Summary (Continued) Name Operand Binary Code Operation Notation LD Ra,#im 11011001 Ra ← im d3 d2 d1 d0 1 r2 r1 r0 RR,#imm 10000 r2 r1 1 RR ← imm d7 d6 d5 d4 d3 d2 d1 d0 DA,A 10001001 DA ← A a7 a6 a5 a4 a3 a2 a1 a0 Ra,A 11011101 Ra ?[...]
-
Seite 92
SAM47 INSTRUCTION SET KS57C2308/P2308/C2 316/P2316 5- 18 Table 5-17. Data Transfer Instructions — Binary Code Summary (Concluded) Name Operand Binary Code Operation Notation POP RR 00101 r2 r1 0 RR L ← (SP), RR H ← (SP + 1) SP ← SP + 2 SB 11011101 (SRB) ← (SP), SMB ← (SP + 1), SP ← SP + 2 01100110 Table 5-18. Logic Instructions — Bi[...]
-
Seite 93
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 19 Table 5-19. Arithmetic Instructions — Binary Code Summary Name Operand Binary Code Operation Notation ADC A,@HL 00111110 C, A ← A + (HL) + C EA,RR 11011100 C, EA ← EA + RR + C 10101 r2 r1 0 RRb,EA 11011100 C, RRb ← RRb + EA + C 10100 r2 r1 0 ADS A, # im 1 0 1 0 d3 d2 d1 d0 A ← A + i[...]
-
Seite 94
SAM47 INSTRUCTION SET KS57C2308/P2308/C2 316/P2316 5- 20 Table 5-20. Bit Manipulation Instructions — Binary Code Summary Name Operand Binary Code Operation Notation BTST C 11010111 Skip if C = 1 DA.b 1 1 b1 b0 0 0 1 1 Skip if DA.b = 1 a7 a6 a5 a4 a3 a2 a1 a0 mema.b * 11111001 Skip if mema.b = 1 memb.@L 11111001 Skip if [memb.7–2 + L.3–2]. [L.[...]
-
Seite 95
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 21 Table 5-20. Bit Manipulation Instructions — Binary Code Summary (Continued) Name Operand Binary Code Operation Notation BITR DA.b 1 1 b1 b0 0 0 0 0 DA.b ← 0 a7 a6 a5 a4 a3 a2 a1 a0 mema.b * 11111110 mema.b ← 0 memb.@L 11111110 [memb.7–2 + L3–2].[L.1–0] ← 0 0 1 0 0 a5 a4 a3 a2 @ [...]
-
Seite 96
SAM47 INSTRUCTION SET KS57C2308/P2308/C2 316/P2316 5- 22 Table 5-20. Bit Manipulation Instructions — Binary Code Summary (Concluded) Name Operand Binary Code Operation Notation LDB mema.b,C * 11111100 mema.b ← C memb.@L,C 11111100 memb.7–2 + [L.3–2]. [L.1–0] ← C 0 1 0 0 a5 a4 a3 a2 @ H+DA.b,C 11111100 H + [DA.3–0].b ← (C) 0 0 b1 b0 [...]
-
Seite 97
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 23 INSTRUCTION DESCRIPTIONS This section contains detailed information and programming examples for each instruction of the SAM47 instruction set. Information is arranged in a consistent format to improve readability and for use as a quick-reference re sour ce for application programmers. If you[...]
-
Seite 98
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 24 ADC — Add With Carry ADC dst,src Operation: Operand Operation Summary Bytes Cycles A,@HL Add indirect data memory to A with carry 1 1 EA,RR Add register pair (RR) to EA with carry 2 2 RRb,EA Add EA to register pair ( RRb) with carry 2 2 Description: The source operand, along with the settin[...]
-
Seite 99
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 25 ADC — Add With Carry ADC (Continued) Examples: 3. If ADC A,@HL is followed by an ADS A,#im, the ADC skips on carry to the instruction immediately after the ADS. An ADS instruction immediately after the ADC does not skip even if an overflow occurs . This function is useful for decimal adjust[...]
-
Seite 100
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 26 ADS — Add And Skip On Overflow ADS dst,src Operation: Operand Operation Summary Bytes Cycles A, # im Add 4-bit immediate data to A and skip on overflow 1 1 + S EA,#imm Add 8-bit immediate data to EA and skip on overflow 2 2 + S A,@HL Add indirect data memory to A and skip on overflow 1 1 + [...]
-
Seite 101
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 27 ADS — Add And Skip On Overflow ADS (Continued) Examples: 2. If the extended accumulator contains the value 0C3H, register pair HL the value 12H, and the carry flag = "0": ADS EA,HL ; EA ← 0C3H + 12H = 0D5H JPS XXX ; Jump to XXX; no skip after ADS. 3. If “ADC A,@HL” is follow[...]
-
Seite 102
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 28 AND — Logical And AND dst,src Operation: Operand Operation Summary Bytes Cycles A,#im Logical-AND A immediate data to A 2 2 A,@HL Logical-AND A indirect data memory to A 1 1 EA,RR Logical-AND register pair (RR) to EA 2 2 RRb,EA Logical-AND EA to register pair ( RRb) 2 2 Description: The sou[...]
-
Seite 103
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 29 BAND — Bit Logical And BAND C,src.b Operation: Operand Operation Summary Bytes Cycles C,mema.b Logical-AND carry flag with memory bit 2 2 C,memb.@L 2 2 C,@H+DA.b 2 2 Description: The specified bit of the source is logically ANDed with the carry flag bit value. If the Boolean value of the so[...]
-
Seite 104
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 30 BAND — Bit Logical And BAND (Continued) Examples: 3. Register H contains the value 2H and FLAG = 20H.3. The address of H is 0010B and FLAG(3–0) is 0000B. The resulting address is 00100000B or 20H. The bit value fo r the BAND instruction is 3. Therefore, @H+FLAG = 20H.3: FLAG EQU 20H.3 LD [...]
-
Seite 105
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 31 BITR — Bit Reset BITR dst.b Operation: Operand Operation Summary Bytes Cycles DA.b Clear specified memory bit to logic zero 2 2 mema.b 2 2 memb.@L 2 2 @ H+DA.b 2 2 Description: A BITR instruction clears to logic zero (resets) the specified bit within the destination operand. No other bits i[...]
-
Seite 106
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 32 BITR — Bit Reset BITR (Continued) Examples: 3. For clearing P2.2, P2.3, and P3.0–P3.3 to "0": LD L,#0AH BP2 BITR P1.@L ; First, P1.@0AH = P2.2 ; (111100B) + 10B.10B = 0F2H.2 INCS L JR BP2 4. If bank 0, location 0A0H.0 is cleared (and regardless of whether the EMB value is logic [...]
-
Seite 107
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 33 BITS — Bit Set BITS dst.b Operation: Operand Operation Summary Bytes Cycles DA.b Set specified memory bit 2 2 mema.b 2 2 memb.@L 2 2 @ H+DA.b 2 2 Description: This instruction sets the specified bit within the destination without affecting any other bits in the destination. BITS can manipul[...]
-
Seite 108
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 34 BITS — Bit Set BITS (Continued) Examples: 3. For setting P2.2, P2.3, and P3.0–P3.3 to "1": LD L,#0AH BP2 BITS P1.@L ; First, P1.@0AH = P2.2 ; (111100B) + 10B.10B = 0F 2H.2 INCS L JR BP2 4. If bank 0, location 0A0H.0, is set to "1" and the EMB = "0", BITS has [...]
-
Seite 109
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 35 BOR — Bit Logical OR BOR C,src.b Operation: Operand Operation Summary Bytes Cycles C,mema.b Logical-OR carry with specified memory bit 2 2 C,memb.@L 2 2 C,@H+DA.b 2 2 Description: The specified bit of the source is logically ORed with the carry flag bit value. The value of the source is una[...]
-
Seite 110
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 36 BOR — Bit Logical OR BOR (Continued) Examples: 3. Register H contains the value 2H and FLAG = 20H.3. The address of H is 0010B and FLAG(3–0) is 0000B. The resulting address is 00100000B or 20H. The bit value for the BOR instruction is 3. Therefore, @H+FLAG = 20H.3: FLAG EQU 20H.3 LD H,#2H[...]
-
Seite 111
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 37 BTSF — Bit Test and Skip on False BTSF dst.b Operation: Operand Operation Summary Bytes Cycles DA.b Test specified memory bit and skip if bit equals "0" 2 2 + S mema.b 2 2 + S memb.@L 2 2 + S @ H+DA.b 2 2 + S Description: The specified bit within the destination operand is tested.[...]
-
Seite 112
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 38 BTSF — Bit Test and Skip on False BTSF (Continued) Examples: 3. P2.2, P2.3 and P3.0–P3.3 are tested: LD L,#0AH BP2 BTSF P1.@L ; First, P1.@0AH = P2.2 ; (111100B) + 10B.10B = 0F2H.2 RET INCS L JR BP2 4. Bank 0, location 0A0H.0, is tested and (regardless of the current EMB value) BTSF has t[...]
-
Seite 113
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 39 BTST — Bit Test and Skip on True BTST dst.b Operation: Operand Operation Summary Bytes Cycles C Test carry bit and skip if set (= "1") 1 1 + S DA.b Test specified bit and skip if memory bit is set 2 2 + S mema.b 2 2 + S memb.@L 2 2 + S @ H+DA.b 2 2 + S Description: The specified b[...]
-
Seite 114
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 40 BTST — Bit Test and Skip on True BTST (Continued) Examples: 2. You can use BTST in the same way to test a port pin address bit: BTST P2.0 ; If P2.0 = "1", then skip RET ; If P2.0 = "0", then return JP LABEL3 3. P2.2, P2.3 and P3.0–P3.3 are tested: LD L,#0AH BP2 BTST P1[...]
-
Seite 115
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 41 BTSTZ — Bit Test and Skip on True; Clear Bit BTSTZ dst.b Operation: Operand Operation Summary Bytes Cycles mema.b Test specified bit; skip and clear if memory bit is set 2 2 + S memb.@L 2 2 + S @ H+DA.b 2 2 + S Description: The specified bit within the destination operand is tested. If it i[...]
-
Seite 116
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 42 BTSTZ — Bit Test and Skip on True; Clear Bit BTSTZ (Continued) Examples: 3. Bank 0, location 0A0H.0, is tested and EMB = "0": FLAG EQU 0A0H.0 • • • BITR EMB • • • LD H,#0AH BTSTZ @H+FLAG ; If bank 0 (AH + 0H).0 = 0A0H.0 = "1", clear and skip BITS @H+FLAG ; If[...]
-
Seite 117
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 43 BXOR — Bit Exclusive OR BXOR C,src.b Operation: Operand Operation Summary Bytes Cycles C,mema.b Exclusive-OR carry with memory bit 2 2 C,memb.@L 2 2 C,@H+DA.b 2 2 Description: The specified bit of the source is logically XORed with the carry bit value. The resultant bit is written to the ca[...]
-
Seite 118
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 44 BXOR — Bit Exclusive OR BXOR (Continued) Examples: 3. Register H contains the value 2H and FLAG = 20H.3. The address of H is 0010B and FLAG(3–0) is 0000B. The resulting address is 00100000B or 20H. The bit value for the BOR instruction is 3. Therefore, @H+FLAG = 20H.3: FLAG EQU 20H.3 LD H[...]
-
Seite 119
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 45 CALL — Call Procedure CALL dst Operation: Operand Operation Summary Bytes Cycles ADR14 Call direct in page (14-bits) 3 4 Description: CALL calls a subroutine located at the destination address. The instruction adds three to the program counter to generate the return address and then pushes [...]
-
Seite 120
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 46 CALLS — Call Procedure (Short) CALLS dst Operation: Operand Operation Summary Bytes Cycles ADR11 Call direct in page (11-bits) 2 3 Description: The CALLS instruction unconditionally calls a subroutine located at the indicated address. The instruction increments the PC twice to obtain the ad[...]
-
Seite 121
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 47 CCF — Complement Carry Flag CCF Operation: Operand Operation Summary Bytes Cycles – Complement carry flag 1 1 Description: The carry flag is complemented; if C = "1" it is changed to C = "0" and vice-versa. Operand Binary Code Operation Notation – 11010110 C ← C Ex[...]
-
Seite 122
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 48 COM — Complement Accumulator COM A Operation: Operand Operation Summary Bytes Cycles A Complement accumulator (A) 2 2 Description: The accumulator value is complemented; if the bit value of A is "1", it is changed to "0" and vice versa. Operand Binary Code Operation Nota[...]
-
Seite 123
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 49 CPSE — Compare and Skip if Equal CPSE dst,src Operation: Operand Operation Summary Bytes Cycles R,#im Compare and skip if register equals # im 2 2 + S @ HL,#im Compare and skip if indirect data memory equals # im 2 2 + S A,R Compare and skip if A equals R 2 2 + S A,@HL Compare and skip if A[...]
-
Seite 124
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 50 DECS — Decrement and Skip on Borrow DECS dst Operation: Operand Operation Summary Bytes Cycles R Decrement register (R); skip on borrow 1 1 + S RR Decrement register pair (RR); skip on borrow 2 2 + S Description: The destination is decremented by one. An original value of 00H will underflow[...]
-
Seite 125
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 51 DI — Disable Interrupts DI Operation: Operand Operation Summary Bytes Cycles – Disable all interrupts 2 2 Description: Bit 3 of the interrupt priority register IPR, IME, is cleared to logic zero, disabling all interrupts. Interrupts can still set their respective interrupt status latches,[...]
-
Seite 126
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 52 EI — Enable Interrupts EI Operation: Operand Operation Summary Bytes Cycles – Enable all interrupts 2 2 Description: Bit 3 of the interrupt priority register IPR (IME) is set to logic one. This allows all interrupts to be serviced when they occur, assuming they are enabled. If an interrup[...]
-
Seite 127
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 53 IDLE — Idle Operation IDLE Operation: Operand Operation Summary Bytes Cycles – Engage CPU idle mode 2 2 Description: IDLE causes the CPU clock to stop while the system clock continues oscillating by setting bit 2 of the power control register (PCON). After an IDLE instruction has been exe[...]
-
Seite 128
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 54 INCS — Increment and Skip on Carry INCS dst Operation: Operand Operation Summary Bytes Cycles R Increment register (R); skip on carry 1 1 + S DA Increment direct data memory; skip on carry 2 2 + S @HL Increment indirect data memory; skip on carry 2 2 + S RRb Increment register pair ( RRb); [...]
-
Seite 129
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 55 IRET — Return From Interrupt IRET Operation: Operand Operation Summary Bytes Cycles – Return from interrupt 1 3 Description: IRET is used at the end of an interrupt service routine. It pops the PC values successively from the stack and restores them to the program counter. The stack point[...]
-
Seite 130
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 56 JP — Jump JP dst Operation: Operand Operation Summary Bytes Cycles ADR14 Jump to direct address (14 bits) 3 3 Description: JP causes an unconditional branch to the indicated address by replacing the contents of the program counter with the address specified in the destination operand. The d[...]
-
Seite 131
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 57 JPS — Jump (Short) JPS dst Operation: Operand Operation Summary Bytes Cycles ADR12 Jump direct in page (12 bits) 2 2 Description: JPS causes an unconditional branch to the indicated address with the 4 K byte program memory address space. Bits 0–11 of the program counter are replaced with [...]
-
Seite 132
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 58 JR — Jump Relative (Very Short) JR dst Operation: Operand Operation Summary Bytes Cycles # im Branch to relative immediate address 1 2 @WX Branch relative to contents of WX register 2 3 @EA Branch relative to contents of EA 2 3 Description: JR causes the relative address to be added to the [...]
-
Seite 133
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 59 JR — Jump Relative (Very Short) JR (Continued) Examples: 1. A short form for a relative jump to label “KK” is the instruction JR KK where “KK” must be within the allowed range of current PC–15 to current PC+16. The JR instruc tion has in this case the effect of an unconditional JP[...]
-
Seite 134
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 60 LD — Load LD dst,src Operation: Operand Operation Summary Bytes Cycles A,#im Load 4-bit immediate data to A 1 1 A,@Rra Load indirect data memory contents to A 1 1 A,DA Load direct data memory contents to A 2 2 A,Ra Load register contents to A 2 2 Ra,#im Load 4-bit immediate data to register[...]
-
Seite 135
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 61 LD — Load LD (Continued) Description: Operand Binary Code Operation Notation RR,#imm 10000 r2 r1 1 RR ← imm d7 d6 d5 d4 d3 d2 d1 d0 DA,A 10001001 DA ← A a7 a6 a5 a4 a3 a2 a1 a0 Ra,A 11011101 Ra ← A 00000 r2 r1 r0 EA,@HL 11011100 A ← (HL), E ← (HL + 1) 00001000 EA,DA 11001110 A ←[...]
-
Seite 136
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 62 LD — Load LD (Continued) Examples: 2. If an instruction such as LD A,#im (LD EA,#imm) or LD HL,#imm is written more than two times in succession, only the first LD is executed; the next instructions are treated as NOPs. Here are two examples of this “redundancy effect”: LD A,#1H ; A ←[...]
-
Seite 137
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 63 LD — Load LD (Concluded) Examples: Instruction Operation Description and Guidelines LD EA,@HL Load data memory contents pointed to by 8-bit register HL to the A register, and the contents of HL+1 to the E register. The contents of register L must be an even number. If the number is odd, the[...]
-
Seite 138
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 64 LDB — Load Bit LDB dst,src.b LDB dst.b,src Operation: Operand Operation Summary Bytes Cycles mema.b,C Load carry bit to a specified memory bit 2 2 memb.@L,C Load carry bit to a specified indirect memory bit 2 2 @ H+DA.b,C 2 2 C,mema.b Load memory bit to a specified carry bit 2 2 C,memb.@L L[...]
-
Seite 139
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 65 LDB — Load Bit LDB (Continued) Examples: 1. The carry flag is set and the data value at input pin P1.0 is logic zero. The following instruction clears the carry flag to logic zero. LDB C,P1.0 2. The P1 address is FF1H and the L register contains the value 9H (1001B). The address (memb.7–2[...]
-
Seite 140
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 66 LDC — Load Code Byte LDC dst,src Operation: Operand Operation Summary Bytes Cycles EA,@WX Load code byte from WX to EA 1 3 EA,@EA Load code byte from EA to EA 1 3 Description: This instruction is used to load a byte from program memory into an extended accumulator. The address of the byte f[...]
-
Seite 141
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 67 LDC — Load Code Byte LDC (Continued) Examples: 2. The following instructions will load one of four values defined by the define byte ( DB) directive to the extended accumulator: ORG 0500 DB 66H DB 77H DB 88H DB 99H DISPLAY LD WX,#00H LDC EA,@WX ; EA ← address 0500H = 66H RET If the instru[...]
-
Seite 142
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 68 LDD — Load Data Memory and Decrement LDD dst Operation: Operand Operation Summary Bytes Cycles A,@HL Load indirect data memory contents to A; decrement register L contents and skip on borrow 1 2 + S Description: The contents of a data memory location are loaded into the accumulator, and the[...]
-
Seite 143
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 69 LDI — Load Data Memory and Increment LDI dst,src Operation: Operand Operation Summary Bytes Cycles A,@HL Load indirect data memory to A; increment register L contents and skip on overflow 1 2 + S Description: The contents of a data memory location are loaded into the accumulator, and the co[...]
-
Seite 144
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 70 NOP — No Operation NOP Operation: Operand Operation Summary Bytes Cycles – No operation 1 1 Description: No operation is performed by a NOP instruction. It is typically used for timing delays. One NOP causes a 1-cycle delay: with a 1 µs cycle time, five NOPs would therefore cause a 5 µs[...]
-
Seite 145
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 71 OR — Logical OR OR dst,src Operation: Operand Operation Summary Bytes Cycles A, # im Logical-OR immediate data to A 2 2 A, @HL Logical-OR indirect data memory contents to A 1 1 EA,RR Logical-OR double register to EA 2 2 RRb,EA Logical-OR EA to double register 2 2 Description: The source ope[...]
-
Seite 146
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 72 POP — Pop From Stack POP dst Operation: Operand Operation Summary Bytes Cycles RR Pop to register pair from stack 1 1 SB Pop SMB and SRB values from stack 2 2 Description: The contents of the RAM location addressed by the stack pointer is read, and the SP is incremented by two. The value re[...]
-
Seite 147
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 73 PUSH — Push Onto Stack PUSH src Operation: Operand Operation Summary Bytes Cycles RR Push register pair onto stack 1 1 SB Push SMB and SRB values onto stack 2 2 Description: The SP is then decreased by two and the contents of the source operand are copied into the RAM location addressed by [...]
-
Seite 148
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 74 RCF — Reset Carry Flag RCF Operation: Operand Operation Summary Bytes Cycles – Reset carry flag to logic zero 1 1 Description: The carry flag is cleared to logic zero, regardless of its previous value. Operand Binary Code Operation Notation – 11100110 C ← 0 Example: Assuming the carry[...]
-
Seite 149
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 75 REF — Reference Instruction REF dst Operation: Operand Operation Summary Bytes Cycles memc Reference code 1 1 (note) NOTE : The instruction referenced by REF determines the instruction cycles. Description: The REF instruction is used to rewrite into 1-byte form, arbitrary 2-byte or 3-byte i[...]
-
Seite 150
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 76 REF — Reference Instruction REF (Continued) Examples: 1. Instructions can be executed efficiently using REF, as shown in the following example: ORG 0020H AAA LD HL,#00H BBB LD EA,#FFH CCC TCALL SUB1 DDD TJP SUB2 • • • ORG 0080H REF AAA ; LD HL,#00H REF BBB ; LD EA,#FFH REF CCC ; CALL [...]
-
Seite 151
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 77 REF — Reference Instruction REF (Concluded) Examples: 3. In this example the binary code of “REF A1” at locations 20H–21H is 20H, for “REF A2” at locations 22H–23H, it is 21H, and for “REF A3” at 24H–25H, the binary code is 22H : Opcode Symbol Instruction ORG 0020H 83 00 A[...]
-
Seite 152
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 78 RET — Return From Subroutine RET Operation: Operand Operation Summary Bytes Cycles – Return from subroutine 1 3 Description: RET pops the PC values successively from the stack, incrementing the stack pointer by six. Program execution continues from the resulting address, generally the ins[...]
-
Seite 153
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 79 RRC — Rotate Accumulator Right Through Carry RRC A Operation: Operand Operation Summary Bytes Cycles A Rotate right through carry bit 1 1 Description: The four bits in the accumulator and the carry flag are together rotated one bit to the right. Bit 0 moves into the carry flag and the origi[...]
-
Seite 154
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 80 SBC — Subtract With Carry SBC dst,src Operation: Operand Operation Summary Bytes Cycles A,@HL Subtract indirect data memory from A with carry 1 1 EA,RR Subtract register pair (RR) from EA with carry 2 2 RRb,EA Subtract EA from register pair ( RRb) with carry 2 2 Description: SBC subtracts t[...]
-
Seite 155
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 81 SBC — Subtract With Carry SBC (Continued) Examples: 3. If SBC A,@HL is followed by an ADS A,#im, the SBC skips on “no borrow” to the instruction immediately after the ADS. An “ADS A,#im” instruction immediately after the “SBC A,@HL” instruction does not skip even if an overflow [...]
-
Seite 156
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 82 SBS — Subtract SBS dst,src Operation: Operand Operation Summary Bytes Cycles A,@HL Subtract indirect data memory from A; skip on borrow 1 1 + S EA,RR Subtract register pair (RR) from EA; skip on borrow 2 2 + S RRb,EA Subtract EA from register pair ( RRb); skip on borrow 2 2 + S Description:[...]
-
Seite 157
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 83 SCF — Set Carry Flag SCF Operation: Operand Operation Summary Bytes Cycles – Set carry flag to logic one 1 1 Description: The SCF instruction sets the carry flag to logic one, regardless of its previous value. Operand Binary Code Operation Notation – 11100111 C ← 1 Example: If the car[...]
-
Seite 158
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 84 SMB — Select Memory Bank SMB n Operation: Operand Operation Summary Bytes Cycles n Select memory bank 2 2 Description: The SMB instruction sets the upper four bits of a 12-bit data memory address to select a specific memory bank. The constants 0, n, and 15 are usually used as the SMB operan[...]
-
Seite 159
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 85 SRB — Select Register Bank SRB n Operation: Operand Operation Summary Bytes Cycles n Select register bank 2 2 Description: The SRB instruction selects one of four register banks in the working register memory area. The constant value used with SRB is 0, 1, 2, or 3. The following table shows[...]
-
Seite 160
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 86 SRET — Return From Subroutine and Skip SRET Operation: Operand Operation Summary Bytes Cycles – Return from subroutine and skip 1 3 + S Description: SRET is normally used to return to the previously executing procedure at the end of a subroutine that was initiated by a CALL or CALLS instr[...]
-
Seite 161
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 87 STOP — Stop Operation STOP Operation: Operand Operation Summary Bytes Cycles – Engage CPU stop mode 2 2 Description: The STOP instruction stops the system clock by setting bit 3 of the power control register (PCON) to logic one. When STOP executes, all system operations are halted with th[...]
-
Seite 162
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 88 VENT — Load EMB, ERB, and Vector Address VENTn dst Operation: Operand Operation Summary Bytes Cycles EMB (0,1) ERB (0,1) ADR Load enable memory bank flag (EMB) and the enable register bank flag (ERB) and program counter to vector address, then branch to the corresponding location. 2 2 Descr[...]
-
Seite 163
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 89 VENT — Load EMB, ERB, and Vector Address VENTn (Continued) Example: The instruction sequence ORG 0000H VENT0 1,0,RESET VENT1 0,1,INTA VENT2 0,1,INTB • • • VENT7 0,1,INTG causes the program sequence to branch to the RESET routine labeled “RESET ,” setting EMB to "1" and E[...]
-
Seite 164
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 90 XCH — Exchange A or EA with Nibble or Byte XCH dst,src Operation: Operand Operation Summary Bytes Cycles A,DA Exchange A and data memory contents 2 2 A,Ra Exchange A and register ( Ra) contents 1 1 A,@RRa Exchange A and indirect data memory 1 1 EA,DA Exchange EA and direct data memory con t[...]
-
Seite 165
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 91 XCHD — Exchange and Decrement XCHD dst,src Operation: Operand Operation Summary Bytes Cycles A,@HL Exchange A and data memory contents; decrement contents of register L and skip on borrow 1 2 + S Description: The instruction XCHD exchanges the contents of the accumulator with the RAM locati[...]
-
Seite 166
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 92 XCHI — Exchange and Increment XCHI dst,src Operation: Operand Operation Summary Bytes Cycles A,@HL Exchange A and data memory contents; increment contents of register L and skip on overflow 1 2 + S Description: The instruction XCHI exchanges the contents of the accumulator with the RAM loca[...]
-
Seite 167
KS57C2308/P2308/C2316/P2316 SAM47 INSTRU CTION SET 5- 93 XOR — Logical Exclusive OR XOR dst,src Operation: Operand Operation Summary Bytes Cycles A,#im Exclusive-OR immediate data to A 2 2 A,@HL Exclusive-OR indirect data memory to A 1 1 EA,RR Exclusive-OR register pair (RR) to EA 2 2 RRb,EA Exclusive-OR register pair ( RRb) to EA 2 2 Description[...]
-
Seite 168
SAM47 INSTRUCTION SET KS57C2308/P2308 /C2316/P2316 5- 94 NOTES[...]
-
Seite 169
Oscillator Circuits Interrupts Power-Down RESET I/O Ports Timers and Timer/Counter s LCD Controller/Driver Electrical Data Mechanical Data KS57P2308/P2316 OTP[...]
-
Seite 170
[...]
-
Seite 171
KS57C2308/P2308/C2316 / P 2316 OSCILLATOR CIRCUITS 6 - 1 6 OSCILLATOR CIRCUITS OVERVIEW The KS57C2308/C2316 microcontroller has two oscillator circuits: a main system clock circuit, and a subsystem clock circuit. The CPU and peripheral hardware operate on the system clock frequency supplied through these circuits. Specifically, a clock pulse is req[...]
-
Seite 172
OSCILLATOR CIRCUITS KS57C2308/P2308/C23 16 / P 2316 6 - 2 Clock Control Registers When the system clock mode control register, SCMOD , a nd the power control register, PCON , are both cleared to zero after RESET , the normal CPU operating mode is enabled, a main system clock of fx/64 is selected, and main system clock oscillation is initiated. PCON[...]
-
Seite 173
KS57C2308/P2308/C2316 / P 2316 OSCILLATOR CIRCUITS 6 - 3 XT IN XT OUT Oscillator Stop CPU clock Wait release signal Internal RESET signal Power down release PCON.3, .2 clear IDLE STO fxt fx Watch Timer LCD Controller Basic Timer Timer/Counter Watch Timer LCD Controller Clock Output Circuit SIO fxx CPU stop signal (By IDLE or STOP instruction) X IN [...]
-
Seite 174
OSCILLATOR CIRCUITS KS57C2308/P2308/C23 16 / P 2316 6 - 4 MAIN SYSTEM OSCILLATOR CIRCUITS X IN X OUT Figure 6- 2. Crystal/Ceramic Oscillator X IN X OUT Figure 6- 3. External Oscillator X IN X OUT R Figure 6- 4. RC Oscillator SUBSYSTEM OSCILLATOR CIRCUITS XT IN XT OUT 32.768 kHz Figure 6 - 5. Crystal/Ceramic Oscillator XT IN XT OUT External Clock Fi[...]
-
Seite 175
KS57C2308/P2308/C2316 / P 2316 OSCILLATOR CIRCUITS 6 - 5 POWER CONTROL REGISTER (PCON) The power control register ( PCON ) is a 4-bit register that is used to select the CPU clock frequency and to con trol CPU operating and power-down modes. The PCON can be addressed di rectly by 4-bit write instructions or indirectly by the instructions IDLE and S[...]
-
Seite 176
OSCILLATOR CIRCUITS KS57C2308/P2308/C23 16 / P 2316 6 - 6 + + PROGRAMMING TIP — Setting the CPU Clock To set the CPU clock to 0.95 µs at 4.19 MHz: BITS EMB SMB 15 LD A,#3H LD PCON,A INSTRUCTION CYCLE TIMES The unit of time that equals one machine cycle varies depending on whether the main system clock ( fx) or a subsystem clock ( fxt) is used, a[...]
-
Seite 177
KS57C2308/P2308/C2316 / P 2316 OSCILLATOR CIRCUITS 6 - 7 SYSTEM CLOCK MODE REGISTER (SCMOD) The system clock mode register, SCMOD, is a 4-bit register that is used to select the CPU clock and to control main and sub- system clock oscillation. SCMOD is mapped to the RAM address FB7H. When main system clock is used as clock source, main system clock [...]
-
Seite 178
OSCILLATOR CIRCUITS KS57C2308/P2308/C23 16 / P 2316 6 - 8 Table 6-4 . Main/Sub Oscillation Stop Mode Mode Condition Method to issue Osc Stop Osc Stop Release Source (2) Main Oscillation STOP Mode Main oscillator runs. Sub oscillator runs (stops). System clock is the main oscillation clock. STOP instruction: Main oscillator stops. CPU is in idle mod[...]
-
Seite 179
KS57C2308/P2308/C2316 / P 2316 OSCILLATOR CIRCUITS 6 - 9 Table 6-5 . System Operating Mode Comparison Mode Condition STOP/IDLE Mode Start Method Current Consumption Main operating mode Main oscillator runs. Sub oscillator runs (stops). System clock is the main oscillation clock. – A Main Idle mode Main oscillator runs. Sub oscillator runs (stops)[...]
-
Seite 180
OSCILLATOR CIRCUITS KS57C2308/P2308/C23 16 / P 2316 6 - 10 SWITCHING THE CPU CLOCK Together, bit settings in the power control register, PCON, and the system clock mode register, SCMOD, de termine whether a main system or a subsystem clock is selected as the CPU clock, and also how this frequency is to be divided. This makes it possible to switch d[...]
-
Seite 181
KS57C2308/P2308/C2316 / P 2316 OSCILLATOR CIRCUITS 6 - 11 Table 6-6 . Elapsed Machine Cycles During CPU Clock Switch AFTER SCMOD.0 = 0 SCMOD.0 = 1 BEFORE PCON.1 = 0 PCON.0 = 0 PCON.1 = 1 PCON.0 = 0 PCON.1 = 1 PCON.0 = 1 PCON.1 = 0 N/A 1 MACHINE CYCLE 1 MACHINE CYCLE PCON.0 = 0 SCMOD.0 = 0 PCON.1 = 1 8 MACHINE CYCLES N/A 8 MACHINE CYCLES N/A PCON.0 [...]
-
Seite 182
OSCILLATOR CIRCUITS KS57C2308/P2308/C23 16 / P 2316 6 - 12 CLOCK OUTPUT MODE REGISTER (CLMOD) The clock output mode register, CLMOD, is a 4-bit register that is used to enable or disable clock output to the CLO pin and to select the CPU clock source and frequency. CLMOD is ad dressable by 4-bit write instructions only. F D0 H CLMOD.3 "0" [...]
-
Seite 183
KS57C2308/P2308/C2316 / P 2316 OSCILLATOR CIRCUITS 6 - 13 CLOCK OUTPUT CIRCUIT The clock output circuit, used to output clock pulses to the CLO pin, has the following components: — 4-bit clock output mode register (CLMOD) — Clock selector — Port mode flag — CLO output pin (P2.2) CLO clocks (fxx/8, fxx/16, fxx/64, CPU clock) 4 Clock Selector[...]
-
Seite 184
OSCILLATOR CIRCUITS KS57C2308/P2308/C23 16 / P 2316 6 - 14 + + PROGRAMMING TIP — CPU Clock Output to the CLO Pin To output the CPU clock to the CLO pin: BITS EMB SMB 15 LD EA,#0 4 H LD PMG 2 ,EA ; P 2 ← Output mode BITR P 2.2 ; Clear P2.2 pin output latch LD A,#9H LD CLMOD,A[...]
-
Seite 185
KS57C2308/P2308/C2316/P2316 INTERRUPTS 7 - 1 7 INTERRUPTS OVERVIEW The KS57C2308/C2316 interrupt control circuit has five functional components: — Interrupt enable flags ( IEx) — Interrupt request flags ( IRQx) — Interrupt master enable register (IME) — I nterrupt priority register (IPR) — Power-down release signal circuit Three kinds of [...]
-
Seite 186
INTERRUPTS KS57C2308/P2308/C23 16/P2316 7 - 2 Vectored Interrupts Interrupt requests may be processed as vectored interrupts in hardware, or they can be generated by program software. A vectored interrupt is generated when the following flags and register settings, corresponding to the specific interrupt ( INTn) are set to logic one: — Interrupt [...]
-
Seite 187
KS57C2308/P2308/C2316/P2316 INTERRUPTS 7 - 3 Jump to interrupt start address Verify interrupt source and clear IRQx with a BTSTZ instruction IEx = 1 ? Interrupt is generated. ( INT xx) Generates the corresponding vector interrupt and releases power down High priority interrupt ? IME = 1 ? IS1,0 = 0, 0 ? IS1,0 = 0, 1 ? Stores the contents of PC and [...]
-
Seite 188
INTERRUPTS KS57C2308/P2308/C23 16/P2316 7 - 4 # @ @ IRQB IRQ4 IRQ0 IRQ1 IRQS IRQT0 IRQW IRQ2 IMOD1 IMOD0 INTB INT4 INT0 INT1 INTS INTT0 INTW Power-Down Mode Release Signal IME IPR IS1 IS0 Interrupt Control Unit Vector Interrupt Generator # = Noise Filtering Circuit @ = Edge Detection Circuit Selector IMOD2 INT2 KS0-KS7 IET0 IES IE1 IE0 IE4 IEB IEW [...]
-
Seite 189
KS57C2308/P2308/C2316/P2316 INTERRUPTS 7 - 5 MULTIPLE INTERRUPTS The interrupt controller can service multiple interrupts in two ways: as two-level interrupts, w here either all inter rupt requests or only those of highest priority are serviced, or as multi-level interrupts, when the interrupt service routine for a lower-priority request is accepte[...]
-
Seite 190
INTERRUPTS KS57C2308/P2308/C23 16/P2316 7 - 6 Multi-Level Interrupt Handling With multi-level interrupt handling, a lower-priority interrupt request can be executed by manipulating the interrupt status flags, IS0 and IS1 while a high-priority inter rupt is being serviced (see Table 7- 2). When an interrupt is requested during normal program executi[...]
-
Seite 191
KS57C2308/P2308/C2316/P2316 INTERRUPTS 7 - 7 INTERRUPT PRIORITY REGISTER (IPR) The 4-bit interrupt priority register (IPR) is used to control multi-level interrupt handling. Its reset value is logic zero. Before the IPR can be modified by 4-bit write instructions, all interrupts must first be disabled by a DI instruction. FB2H IME IPR.2 IPR.1 IPR.0[...]
-
Seite 192
INTERRUPTS KS57C2308/P2308/C23 16/P2316 7 - 8 + + PROGRAMMING TIP — Setting the INT Interrupt Priority The following instruction sequence sets the INT1 interrupt to high priority: BITS EMB SMB 15 DI ; IPR.3 (IME) ← 0 LD A,#3H LD IPR,A EI ; IPR.3 (IME) ← 1 EXTERNAL INTERRUPT 0 AND 1 MODE REGISTERS (IMOD0 and IMOD1 ) The following components ar[...]
-
Seite 193
KS57C2308/P2308/C2316/P2316 INTERRUPTS 7 - 9 EXTERNAL INTERRUPT 0 and INTERRUPT 1 MODE REGISTERS (C ontinued ) When a sampling clock rate of fxx/64 is used for INT0, an interrupt request flag must be cleared before 16 ma chine cycles have elapsed. Since the INT0 pin has a clock-driven noise filtering circuit built into it, please take the following[...]
-
Seite 194
INTERRUPTS KS57C2308/P2308/C23 16/P2316 7 - 10 EXTERNAL INTERRUPT 2 MODE REGISTER (IMOD2 ) T he mode register for external interrupt 2 at the K S 0– KS7 pins, IMOD2 , is addressable only by 4-bit write instructions. RESET clears all IMOD2 bits to logic zero. FB6H "0" IMOD2 .2 IMOD 2 .1 IMOD2 .0 If a rising or falling edge is detected at[...]
-
Seite 195
KS57C2308/P2308/C2316/P2316 INTERRUPTS 7 - 11 INT2 KS7 KS6 KS5 KS4 KS3 KS2 KS1 KS0 IRQ2 FALLING EDGE DETECTION CIRCUIT CLOCK SELECTOR RISING EDGE DETECTION CIRCUIT IMOD2 Figure 7 -6 . Circuit Diagram for INT 2 and KS0–KS7 Pins[...]
-
Seite 196
INTERRUPTS KS57C2308/P2308/C23 16/P2316 7 - 12 INTERRUPT FLAGS There are three types of interrupt flags: interrupt request and interrupt enable f lags that correspond to each in terrupt, the interrupt master enable flag, which enables or disables all interrupt processing. Interrupt Master Enable Flag (IME) The interrupt master enable flag, IME, ena[...]
-
Seite 197
KS57C2308/P2308/C2316/P2316 INTERRUPTS 7 - 13 Interrupt Request Flags (IRQx) Interrupt request flags are read/write addressable by 1-bit or 4-bit in structions. IRQx flags can be addressed directly at their specific RAM addresses, regardless of the current value of the enable memory bank (EMB) flag. When a specific IRQx flag is set to logic one, th[...]
-
Seite 198
INTERRUPTS KS57C2308/P2308/C23 16/P2316 7 - 14 + + PROGRAMMING TIP — Enabling the INTB and INT4 Interrupts To simultaneously enable INTB and INT4 interrupts: INTB DI BTSTZ IRQB ; IRQB = 1 ? JP I NT4 ; If no, INT4 interrupt; if yes, INTB interrupt is processed • • • EI IRET INT4 BITR IRQ4 ; INT4 is processed • • • EI IRET[...]
-
Seite 199
KS57C2308/P2308/C2316/P2316 POWER-DOWN 8 - 1 8 POWER-DOWN OVERVIEW The KS57C2308/C2316 microcontroller has two power-down modes to reduce power consumption: idle and stop. Idle mode is initiated by the IDLE instruction and stop mode by the instruction STOP. (Several NOP instructions must always follow an IDLE or STOP instruction in a program.) In i[...]
-
Seite 200
POWER-DOWN KS57C2308/P2308/C2316/P2316 8 - 2 Table 8- 1. Hardware Operation During Power-Down Modes Mode Main Stop Sub Stop Main/Sub Stop Idle System clock Main clock ( fx) Sub clock ( fxt) Main clock ( fx) (1) Main ( fx) or sub clock ( fxt) Instruction STOP Setting SCMOD.2 to “1” STOP IDLE Clock oscillator Main clock oscillation stops Sub cloc[...]
-
Seite 201
KS57C2308/P2308/C2316/P2316 POWER-DOWN 8 - 3 IDLE MODE TIMING DIAGRAMS CLOCK SIGNAL IDLE INSTRUCTION OSCILLATION STABILIZATION (31.3 ms / 4.19 MHz) NORMAL MODE IDLE MODE NORMAL MODE NORMAL OSCILLATION RESET Figure 8- 1. Timing When Idle Mode is Released by RESET NORMAL MODE IDLE MODE NORMAL MODE NORMAL OSCILLATION MODE RELEASE SIGNAL IDLE INSTRUCTI[...]
-
Seite 202
POWER-DOWN KS57C2308/P2308/C2316/P2316 8 - 4 STOP MODE TIMING DIAGRAMS STOP INSTRUCTION OSCILLATION STABILIZATION (31.3 ms / 4.19 MHz) RESET CLOCK SIGNAL NORMAL MODE IDLE MODE NORMAL MODE OSCILLATION RESUMES STOP MODE OSCILLATION STOPS Figure 8- 3. Timing When Stop Mode is Released by RESET OSCILLATION STABILIZATION (BMOD SETTING) NORMAL MODE IDLE [...]
-
Seite 203
KS57C2308/P2308/C2316/P2316 POWER-DOWN 8 - 5 + + PROGRAMMING TIP — Reducing Power Consumption for Key Input Interrupt Processing The following code shows real-time clock and interrupt processing for key inputs to reduce power consumption. In this example, the system clock source is switched from the main system clock to a subsystem clock and the [...]
-
Seite 204
POWER-DOWN KS57C2308/P2308/C2316/P2316 8 - 6 PORT PIN CONFIGURATION FOR POWER-DOWN The following method describes how to configure I/O port pins to reduce power consumption during power-down modes (stop, idle): Condition 1: If the microcontroller is not configured to an external device: 1. Connect unused port pins according to the information in Ta[...]
-
Seite 205
KS57C2308/P2308/C2316/P2316 POWER-DOWN 8 - 7 RECOMMENDED CONNECTIONS FOR UNUSED PINS To reduce overall power consumption, please configure unused pins according to the guidelines described in Table 8-2 . Table 8-2 . Unused Pin Connections for Reduc ing Power Consumption Pin/Share Pin Names Recommended Connection P0.0/ INT4 P0.1/ S CK P0.2/S O P0.3/[...]
-
Seite 206
POWER-DOWN KS57C2308/P2308/C2316/P2316 8 - 8 NOTES[...]
-
Seite 207
KS57C2308/P2308/C2316/P2316 RESET 9 - 1 9 RESET OVERVIEW When a RESET signal is input during normal operation or power-down mode, a hardware reset operation is initiated and the CPU enters idle mode. Then, when the standard oscillation stabilization interval of 31.3 ms at 4.19 MHz has elapsed, normal system operation resumes. Regardless of when the[...]
-
Seite 208
RESET KS57C2308/P2308/C23 16/P2316 9 - 2 HARDWARE REGISTER VALUES AFTER RESET Table 9 - 1 gives you detailed information about hardware register values after a RESET occurs during power-down mode or during normal operation. Table 9 - 1. Hardware Register Values After RESET Hardware Component or Subcomponent If RESET Occurs During Power-Down Mode If[...]
-
Seite 209
KS57C2308/P2308/C2316/P2316 RESET 9 - 3 Table 9 - 1. Hardware Register Values After RESET (Continued) Hardware Component or Subcomponent If RESET Occurs During Power-Down Mode If RESET Occurs During Normal Operation I/O Ports: Output buffers Off Off Output latches 0 0 Port mode flags (PM) 0 0 Pul l-up resistor mode reg (PUMOD ) 0 0 Port N- ch open [...]
-
Seite 210
RESET KS57C2308/P2308/C23 16/P2316 9 - 4 NOTES[...]
-
Seite 211
KS57C2308/P2308/C2316/P2316 I/O PORTS 10 - 1 10 I/O PORTS OVERVIEW The KS57C2308/C2316 h as 9 ports. There are total of 8 input pins, 8 output pin and 24 configurable I/O pins, for a maximum number of 40 pins. Pin addresses for all ports are mapped to bank 15 of the RAM. The contents of I/O port pin latches can be read, written, or tested at the co[...]
-
Seite 212
I/O PORTS KS57C2308/P2308/C23 16/P2316 10 - 2 Table 10- 1. I/O Port Overview Port I/O Pins Pin Names Address Function Description 0 I 4 P0.0 – P0.3 FF0H 4-bit input port. 1-bit and 4-bit read and test are possible. P0.1 and P0.2 are software configurable as input or output for SCK and SO by SMOD register. 4-bit pull-up res istors are software ass[...]
-
Seite 213
KS57C2308/P2308/C2316/P2316 I/O PORTS 10 - 3 PORT MODE FLAGS (PM FLAGS) Port mode flags (PM) are used to configure I/O ports to input or output mode by setting or clearing the corresponding I/O buffer. For convenient program reference, PM flags are organized into two groups — PMG1 and PMG2 as shown in Table 10- 3. They are addressable by 8-bit wr[...]
-
Seite 214
I/O PORTS KS57C2308/P2308/C23 16/P2316 10 - 4 + + PROGRAMMING TIP — Enabling and Disabling I/O Port Pull-Up Resistors P2 and P3 are enabled to be pull-up resistors. BITS EMB SMB 15 LD EA,#0CH LD PUMOD ,EA ; enable the pull-up resistors of P2 and P3 N-CHANNEL OPEN-DRAIN MODE REGISTER (PNE) The n-channel open-drain mode register (PNE) is used to co[...]
-
Seite 215
KS57C2308/P2308/C2316/P2316 I/O PORTS 10 - 5 Table 10-6. Port 8 Pin Addresses and LCD Segment Correspondence Port 8 Pin Number RAM Address LCD Segment P8.0 1F8H SEG24 P8.1 1F9H SEG25 P8.2 1FAH SEG26 P8.3 1FBH SEG27 P8.4 1FCH SEG28 P8.5 1FDH SEG29 P8.6 1FEH SEG30 P8.7 1FFH SEG31[...]
-
Seite 216
I/O PORTS KS57C2308/P2308/C23 16/P2316 10 - 6 PORT 0 CIRCUIT DIAGRAM SCK SCK SO SI SMOD V DD When and SO act as an output, its pull-up resistor is automatically disabled, even though the port's pull-up resistor is enabled by bit settings to the pull-up resistor mode register (PUMOD). NOTE: PUMOD.0 INT4 8 P0.0/INT4 P0.2/SO P0.3/SI P0.1/ SCK SCK[...]
-
Seite 217
KS57C2308/P2308/C2316/P2316 I/O PORTS 10 - 7 PORT 1 CIRCUIT DIAGRAM V DD PUMOD.1 INT0 P1.1 P1.2 P1.3 P1.0 N/R Circuit INT1 INT2 TCL0 INT0 CPU clock fxx/64 INT1 Edge Detection IRQ0 IMOD0 IMOD1 Clock Selector P1.1 P1.0 Edge Detection IRQ1 Noise Filter IMOD0 Figure 10- 2. Port 1 Circuit Diagram[...]
-
Seite 218
I/O PORTS KS57C2308/P2308/C23 16/P2316 10 - 8 PORT 2 CIRCUIT DIAGRAM 8 1, 4 1, 4 M U X P2.0/TCLO0 P2.1 P2.2/CLO P2.3/BUZ PM2 Output Latch When a port pin acts as an output, its pull-up resistor is automatically disabled, even though the port's pull-up resistor is enabled by bit settings to the pull-up resistor mode register (PUMOD). NOTE: TCLO[...]
-
Seite 219
KS57C2308/P2308/C2316/P2316 I/O PORTS 10 - 9 PORT 3 AND 6 CIRCUIT DIAGRAM V DD 1, 4, 8 1, 4, 8 x = port number (3, 6) When a port pin acts as an output, its pull-up resistor is automatically disabled, even though the port's pull-up resistor is enabled by bit settings to the pull-up resistor mode register (PUMOD). NOTE: M U X PMx.2 PMx.3 PMx.1 [...]
-
Seite 220
I/O PORTS KS57C2308/P2308/C23 16/P2316 10 - 10 PORT 4 AND 5 CIRCUIT DIAGRAM V DD 1, 4, 8 1, 4, 8 M U X Px.0 Px.1 Px.2 Px.3 Output Latch CMOS Push-Pull or N-Channel Open-Deain When a port pin acts as an output, its pull-up resistor is automatically disabled, even though the port's pull-up resistor is enabled by bit settings to the pull-up resis[...]
-
Seite 221
KS57C2308/P2308/C2316/P2316 I/O PORTS 10 - 11 PORT 7 CIRCUIT DIAGRAM 8 1, 4 1, 4 P7.0 P7.1 P7.2 P7.3 When a port pin acts as an output, its pull-up resistor is automatically disabled, even though the port's pull-up resistor is enabled by bit settings to the pull-up resistor mode register (PUMOD). NOTE: PUMOD.7 Output Latch M U X V DD PM7 Figur[...]
-
Seite 222
I/O PORTS KS57C2308/P2308/C23 16/P2316 10 - 12 NOTES[...]
-
Seite 223
KS57C2308/P2308/C2316/P2316 TIMERS and TIMER/COUNTERS 11 - 1 11 TIMERS and TIMER/COUNTERS OVERVIEW The KS57C2308/C2316 microcontroller has three timer and timer/counter modules: — 8-bit basic timer (BT) — 8-bit timer/counter (TC0) — Watch timer (WT) The 8-bit basic timer (BT) is the microcontroller's main interval timer. It generates an [...]
-
Seite 224
TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P2316 11 - 2 BASIC TIMER (BT) OVERVIEW The 8-bit basic timer (BT) has five functional components: — Clock selector logic — 4-bit mode register (BMOD) — 8-bit counter register (BCNT) — 8-bit watchdog timer mode register (WDMOD) — Watchdog timer counter clear flag (WDTCF) The basic timer gener[...]
-
Seite 225
KS57C2308/P2308/C2316/P2316 TIMERS and TIMER/COUNTERS 11 - 3 Table 11- 1. Basic Timer Register Overview Register Name Type Description Size RAM Address Addressing Mode Reset Value BMOD Control Controls the clock frequency (mode) of the basic timer; also, the oscillation stabilization interval after power-down mode release or RESET 4-bit F85H 4-bit [...]
-
Seite 226
TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P2316 11 - 4 BASIC TIMER MODE REGISTER (BMOD) The basic timer mode register, BMOD, is a 4-bit write-only register. Bit 3, the basic timer start control bit, is also 1-bit addressable. All BMOD values are set to logic zero following RESET and interrupt request signal generation is set to the longest in[...]
-
Seite 227
KS57C2308/P2308/C2316/P2316 TIMERS and TIMER/COUNTERS 11 - 5 BASIC TIMER COUNTER (BCNT) BCNT is an 8-bit counter for the basic timer. It can be addressed by 8-bit read instructions. RESET leaves the BCNT counter value undetermined. BCNT is automatically cleared to logic zero whenever the BMOD register control bit (BMOD.3) is set to "1" to[...]
-
Seite 228
TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P2316 11 - 6 + + PROGRAMMING TIP — Using the Basic Timer 1. To read the basic timer count register (BCNT): BITS EMB SMB 15 BCNTR LD EA,BCNT LD YZ,EA LD EA,BCNT CPSE EA,YZ JR BCNTR 2. When stop mode is released by an interrupt, set the oscillation stabilization interval to 31.3 ms at 4.19 MHz : BITS [...]
-
Seite 229
KS57C2308/P2308/C2316/P2316 TIMERS and TIMER/COUNTERS 11 - 7 WATCHDOG TIMER MODE REGISTER (WDMOD) The watchdog timer mode register, WDMOD, is a 8-bit write-only register located at RAM address F98H–F99H. WDMOD register controls to enable or disable the watchdog function. WDMOD values are set to logic “A5H” following RESET and this value enabl[...]
-
Seite 230
TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P2316 11 - 8 + + PROGRAMMING TIP — Using the Watchdog Timer RESET DI BITS EMB SMB 15 LD EA,#00H LD SP,EA • • • LD A,#0DH ; WDCNT input clock is 7.82 ms LD BMOD,A • • • MAIN BITS WDTCF ; Main routine operation period must be shorter than ; watchdog • ; timer’s period • • JP MAIN[...]
-
Seite 231
KS57C2308/P2308/C2316/P2316 TIMERS and TIMER/COUNTERS 11 - 9 8-BIT TIMER/COUNTER 0 (TC0) OVERVIEW Timer/counter 0 (TC0) is used to count system “ events ” by identifying the transition (high-to-low or low-to-high) of incoming square wave signals. To indicate that an event has occurred, or that a specified time interval has elapsed, TC0 generate[...]
-
Seite 232
TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P2316 11 - 10 TC0 COMPONENT SUMMARY Mode register (TMOD0) Activates the timer/counter and selects the internal clock frequency or the external clock source at the TCL0 pin. Reference register (TREF0) Stores the reference value for the desired nu mber of clock pulses between in terrupt requests. Counte[...]
-
Seite 233
KS57C2308/P2308/C2316/P2316 TIMERS and TIMER/COUNTERS 11 - 11 Table 11-4 . TC0 Register Overview Register Name Type Description Size RAM Address Addressing Mode Reset Value TMOD0 Control Controls TC0 enable/disable (bit 2); clears and resumes counting operation (bit 3); sets input clock and clock frequency (bits 6–4) 8-bit F90H–F91H 8-bit write[...]
-
Seite 234
TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P2316 11 - 12 TC0 ENABLE/DISABLE PROCEDURE Enable Timer/Counter 0 — Set TMOD0.2 to logic one — Set the TC0 interrupt enable flag IET0 to logic one — Set TMOD0.3 to logic one TCNT0, IRQT0, and TOL0 are cleared to logic zero, and timer/counter operation starts. Disable Timer/Counter 0 — Set TMOD[...]
-
Seite 235
KS57C2308/P2308/C2316/P2316 TIMERS and TIMER/COUNTERS 11 - 13 TC0 PROGRAMMABLE TIMER/COUNTER FUNCTION Timer/counter 0 can be programmed to generate interrupt requests at various intervals based on the selected system clock frequency. Its 8-bit TC0 mode register TMOD0 is used to activate the timer/counter and to select the clock frequency. The refer[...]
-
Seite 236
TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P2316 11 - 14 TC0 EVENT COUNTER FUNCTION Timer/counter 0 can monitor or detect system “ events ” by using the external clock input at the TCL0 pin as the counter source. The TC0 mode register selects rising or falling edge detection for incoming clock signals. The counter register TCNT0 is increme[...]
-
Seite 237
KS57C2308/P2308/C2316/P2316 TIMERS and TIMER/COUNTERS 11 - 15 TC0 CLOCK FREQUENCY OUTPUT Using timer/counter 0, a modifiable clock frequency can be output to the TC0 clock output pin, TCLO0. To select the clock frequency, load the appropriate values to the TC0 mode register, TMOD0. The clock interval is selected by loading the desired reference val[...]
-
Seite 238
TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P2316 11 - 16 TC0 SERIAL I/O CLOCK GENERATION Timer/counter 0 can supply a clock signal to the clock selector circuit of the serial I/O interface for data shifter and clock counter operations. (These internal SIO operations are controlled in turn by the SIO mode register, SMOD). This clock generation [...]
-
Seite 239
KS57C2308/P2308/C2316/P2316 TIMERS and TIMER/COUNTERS 11 - 17 TC0 MODE REGISTER (TMOD0) TMOD0 is the 8-bit mode control register for timer/counter 0. It is addressable by 8-bit write instructions. One bit, TMOD0.3, is also 1-bit writeable. RESET clears all TMOD0 bits to logic zero and disables TC0 operations. F90H TMOD0.3 TMOD0.2 "0" &quo[...]
-
Seite 240
TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P2316 11 - 18 Table 11-7 . TMOD0.6, TMOD0.5, and TMOD0.4 Bit Settings TMOD0.6 TMOD0.5 TMOD0.4 Resulting Counter Source and Clock Frequency 000 External clock input (TCL0) on rising edges 001 External clock input (TCL0) on falling edges 100 fxx/2 10 (4.09 kHz) 101 fxx /2 8 (16.4 kHz) 110 fxx/2 6 (65.5 [...]
-
Seite 241
KS57C2308/P2308/C2316/P2316 TIMERS and TIMER/COUNTERS 11 - 19 TC0 COUNTER REGISTER (TCNT0) The 8-bit counter register for timer/counter 0, TCNT0, is read-only and can be addressed by 8-bit RAM control instructions. RESET sets all TCNT0 register values to logic zero (00H). Whenever TMOD0.3 is enabled, TCNT0 is cleared to logic zero and counting resu[...]
-
Seite 242
TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P2316 11 - 20 TC0 REFERENCE REGISTER (TREF0) The TC0 reference register TREF0 is an 8-bit write-only register. It is addressable by 8-bit RAM control instructions. RESET initializes the TREF0 value to “ FFH ” . TREF0 is used to store a reference value to be compared to the incrementing TCNT0 regis[...]
-
Seite 243
KS57C2308/P2308/C2316/P2316 TIMERS and TIMER/COUNTERS 11 - 21 + + PROGRAMMING TIP — Setting a TC0 Timer Interval To set a 30 ms timer interval for TC0, given fxx = 4.19 MHz, follow these steps. 1. Select the timer/counter 0 mode register with a maximum setup time of 62.5 ms (assume the TC0 counter clock = fxx/2 10 , and TREF0 is set to FFH): 2. C[...]
-
Seite 244
TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P2316 11 - 22 WATCH TIMER OVERVIEW The watch timer is a multi-purpose timer which consists of three basic components: — 8-bit watch timer mode register (WMOD) — Clock se lector — Frequency divider circuit Watch timer functions include real-time and watch-time measurement and inter val timing for[...]
-
Seite 245
KS57C2308/P2308/C2316/P2316 TIMERS and TIMER/COUNTERS 11 - 23 Buzzer Output Frequency Generator The watch timer can generate a steady 2 kHz, 4 kHz, 8 kHz, or 16 kHz signal to the BUZ pin. To s elect the desired BUZ frequency , load the appropriate value to the WMOD register. This output can then be used to actuate an external buzzer sound. To gener[...]
-
Seite 246
TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P2316 11 - 24 8 Selector Circuit IRQW fxt fxx/128 fw (32.768 kHz) MUX fw/2 (256 Hz) 7 fw/2 (2Hz) 14 Enable/ Disable Clock Selector fx = Main System Clock (4.19 MHz) fxt = Subsystem Clock (32.768 kHz) fw = Watch Timer Frequency fxx = System Clock BUZ WMOD.7 WMOD.6 WMOD.5 WMOD.4 WMOD.3 WMOD.2 WMOD.1 WMO[...]
-
Seite 247
KS57C2308/P2308/C2316/P2316 TIMERS and TIMER/COUNTERS 11 - 25 WATCH TIMER MODE REGISTER (WMOD) The watch timer mode register WMOD is used to select specific watch timer operations. It is 8-bit write-only addressable. An exception is WMOD bit 3 (the XT IN input level control bit) which is 1-bit read-only addressable. A RESET automatically sets WMOD.[...]
-
Seite 248
TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P2316 11 - 26 + + PROGRAMMING TIP — Using the Watch Timer 1. Select a subsystem clock as the LCD display clock, a 0.5 second interrupt, and 2 kHz buzzer enable: BITS EMB SMB 15 LD EA,#04 H LD PMG 2 ,EA ; P 2 .3 ← output mode BITR P 2 .3 LD EA,#85H LD WMOD,EA BITS IEW 2. Sample real- time clock pro[...]
-
Seite 249
KS57C2308/P2308/C2316/P2316 LCD CONTROLLER/DRIV ER 12 - 1 12 LCD CONTROLLER/DRIVER OVERVIEW The KS57C2308/C2316 microcontroller can directly drive an up-to- 128- dot ( 32 segments x 4 commons) LCD panel. Its LCD block has the following components: — LCD cont roller/driver — Display RAM for storing display data — 32 segment output pins (SEG0?[...]
-
Seite 250
LCD CONTROLLER/DRIVER KS57C2308/P2308/C23 16/P2316 12 - 2 LCD CIRCUIT DIAGRAM SEG31/P8.7 4 4 TIMING CONTROLLER 1E0H.0 1E0H.1 1E0H.2 1E0H.3 1F4H.0 1F4H.1 1F4H.2 1F4H.3 1FFH.0 1FFH.1 1FFH.2 1FFH.3 4 4 LMOD 8 COM3 COM2 COM1 COM0 COM CONTROL VLC0 VLC1 VLC2 LCDSY LCDCK SEG30/P8.6 SEG29/P8.5 SEG28/P8.4 SEG27/P8.3 SEG26/P8.2 SEG25/P8.1 SEG24/P8.0 SEG23 SE[...]
-
Seite 251
KS57C2308/P2308/C2316/P2316 LCD CONTROLLER/DRIV ER 12 - 3 LCD RAM ADDRESS AREA RAM addresses of bank 1 are used as LCD data memory. These locations can be addressed by 1-bit, 4-bit instructions. When the bit value of a display segment is "1", the LCD display is turned on; when the bit value is "0", the display is turned off. Dis[...]
-
Seite 252
LCD CONTROLLER/DRIVER KS57C2308/P2308/C23 16/P2316 12 - 4 LCD CONTROL REGISTER (LCON) The LCD control register (LCON) is used to turn the LCD display on and off, to output LCD clock (LCDCK) and synchronizing signal (LCDSY) for LCD display expansion, and to control the flow of current to dividing resistors in the LCD circuit. Following a RESET , all[...]
-
Seite 253
KS57C2308/P2308/C2316/P2316 LCD CONTROLLER/DRIV ER 12 - 5 LCD MODE REGISTER (LMOD) The LCD mode control register LMOD is used to control display mode; LCD clock, segment or port output, and display on/off. LMOD can be manipulated using 8-bit write inst ructions, bit 3 (LMOD.3) can be also written by 1-bit instructions. F8CH LMOD.3 LMOD.2 LMOD.1 LMO[...]
-
Seite 254
LCD CONTROLLER/DRIVER KS57C2308/P2308/C23 16/P2316 12 - 6 Table 12-5 . LCD Clock Signal (LCDCK) , Frame Frequency and LCD sync Signal (LCDSY) LCDCK f requency Static 1/2 Duty 1/3 Duty 1/4 Duty fw/2 9 = 64 Hz 64 (16) 32 (16) 21 (21) 16 (16) fw/2 8 = 128 Hz 128 (32) 64 (32) 43 (43) 32 (32) fw/2 7 = 256 Hz 256 (64) 128 (64) 85 (85) 64 (64) fw/2 6 = 51[...]
-
Seite 255
KS57C2308/P2308/C2316/P2316 LCD CONTROLLER/DRIV ER 12 - 7 BIAS PIN LCON.0 V SS 2R R R R V LCD = 3 V Static and 1/3 Bias V LC0 V LC1 V LC2 V DD Voltage Dividing Resistor Adjustment LCON.0 V SS 2R R R R 2R’ R’ R’ R’ BIAS PIN V LC0 V LC1 V LC2 V DD LCON.0 V SS 2R R R R V LCD = 2.5 V 1/2 Bias BIAS PIN V LC0 V LC1 V LC2 V DD R = Voltage dividing[...]
-
Seite 256
LCD CONTROLLER/DRIVER KS57C2308/P2308/C23 16/P2316 12 - 8 COMMON (COM) SIGNALS The common signal output pin selection (COM pin selection) varies according to the selected duty cycle. You must therefore be open any unused COM pins according to this guideline: — In static mode, be open the COM1, COM2, and COM3 pins — In 1/2 duty mode, be open the[...]
-
Seite 257
KS57C2308/P2308/C2316/P2316 LCD CONTROLLER/DRIV ER 12 - 9 V LCD T f = 2 x T COM0, 1 (1/2 DUTY) V LC0 V LC1, 2 V SS V LCD T f = 3 x T COM0, 1 (1/3 DUTY) V LC0 V LC1, 2 V SS T: LCDCK T f : Frame frequency Figure 12-6 . LCD Common Signal Waveform at 1/2 Bias (1/2, 1/3 Duty)[...]
-
Seite 258
LCD CONTROLLER/DRIVER KS57C2308/P2308/C23 16/P2316 12 - 10 T: LCDCK T f : Frame frequency V LCD T f = 4 x T COM0-3 (1/4 DUTY) V LC0 V LC1 V SS V LC2 V LCD T f = 3 x T COM0-2 (1/3 DUTY) V LC0 V LC1 V SS V LC2 Figure 12-7 . LCD Common Signal Waveform at 1/3 Bias (1/3, 1/4 Duty)[...]
-
Seite 259
KS57C2308/P2308/C2316/P2316 LCD CONTROLLER/DRIV ER 12 - 11 SEGMENT (SEG) SIGNALS The 32 LCD segment signal pins are connected to corresponding display RAM locations at 1E0H–1FFH . Bits 0–3 of the display RAM are synchronized with the common signal output pins COM0, COM1, COM2, and COM3 . When the bit value of a display RAM location is "1&q[...]
-
Seite 260
LCD CONTROLLER/DRIVER KS57C2308/P2308/C23 16/P2316 12 - 12 Table 12-8. Select/No-Select Signals for LCD 1/2 Bias Display Mode SEG Select Non-select COM V LC0 /V SS V SS /V LC0 Select V SS /V LC0 –V LC0 / + V LC0 0 V/ 0 V Non-select V LC1 = V LC2 – 1/2 V LCD / + 1/2 VLCD + 1/2 V LCD / – 1/2 V LCD T: LCDCK T COM V LC0 V SS SEG SELECT T V LC1, 2[...]
-
Seite 261
KS57C2308/P2308/C2316/P2316 LCD CONTROLLER/DRIV ER 12 - 13 Table 12-9. Select/No-Select Signals for LCD 1/3 Bias Display Mode SEG Select Non-select COM V LC0 /V SS V SS /V LC0 Select V SS /V LC0 –V LC0 / + V LC0 0 V/ 0 V Non-select V LC1 = V LC2 – 1/3 V LCD / + 1/3 VLCD + 1/3 V LCD / – 1/3 V LCD T: LCDCK T COM V LC0 SEG SELECT T V LC2 V SS V [...]
-
Seite 262
LCD CONTROLLER/DRIVER KS57C2308/P2308/C23 16/P2316 12 - 14 +V LCD – V LCD 0 V SEG12 V LC0 V SS SEG11 V LC0 V SS COM0 V LC0 V SS COM0– SEG11 COM0– SEG12 +V LCD – V LCD 0 V T f Figure 12-11 . LCD Signal Waveforms in Static Mode[...]
-
Seite 263
KS57C2308/P2308/C2316/P2316 LCD CONTROLLER/DRIV ER 12 - 15 SEG16 COM3 COM2 COM1 COM0 Timing Strobe Bit 0 Open Possible SEG0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG15 SEG17 SEG18 SEG19 SEG20 SEG21 SEG23 SEG14 1E8H 1E9H 1EAH 1EBH 1ECH 1EDH 1EEH 1EFH 1F0H 1F1H 1F2H 1F3H 1F4H 1F5H 1F6H 1F7H 1F8H 1F9H 1FAH 1FBH 1FCH 1FDH[...]
-
Seite 264
LCD CONTROLLER/DRIVER KS57C2308/P2308/C23 16/P2316 12 - 16 + V LCD – V LCD V LC0 V SS V LC1, 2 V LC0 V SS V LC1, 2 V LC0 V SS V LC1, 2 + 1/2 V LCD – 1/2 V LCD 0 – V LCD + 1/2 V LCD – 1/2 V LCD 0 + V LCD COM1 SEG9 COM0– SEG9 COM1– SEG9 COM0 T f Figure 12-13. LCD Signal Waveforms at 1/2 Duty, 1/2 B ias[...]
-
Seite 265
KS57C2308/P2308/C2316/P2316 LCD CONTROLLER/DRIV ER 12 - 17 SEG30 SEG31 COM3 COM2 COM1 COM0 Timing Strobe SEG0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 1E8H 1E9H 1EAH 1EBH 1ECH 1EDH 1EEH 1EFH 1F0H 1F1H 1F2H 1F3H 1F4H 1F5H 1F6H 1F7H 1F8H 1F9H 1FAH 1FBH 1FCH 1FDH 1[...]
-
Seite 266
LCD CONTROLLER/DRIVER KS57C2308/P2308/C23 16/P2316 12 - 18 V LC0 V SS V LC1, 2 COM0 T f V LC0 V SS V LC1, 2 COM1 V LC0 V SS V LC1, 2 COM2 V LC0 V SS V LC1, 2 SEG12 + V LCD – V LCD + 1/2 V LCD – 1/2 V LCD 0 COM0– SEG12 – V LCD + 1/2 V LCD – 1/2 V LCD 0 + V LCD COM1– SEG12 – V LCD + 1/2 V LCD – 1/2 V LCD 0 + V LCD COM2– SEG12 Figure[...]
-
Seite 267
KS57C2308/P2308/C2316/P2316 LCD CONTROLLER/DRIV ER 12 - 19 SEG30 SEG31 COM3 COM2 COM1 COM0 Timing Strobe Open SEG0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 1E8H 1E9H 1EAH 1EBH 1ECH 1EDH 1EEH 1EFH 1F0H 1F1H 1F2H 1F3H 1F4H 1F5H 1F6H 1F7H 1F8H 1F9H 1FAH 1FBH 1FCH 1[...]
-
Seite 268
LCD CONTROLLER/DRIVER KS57C2308/P2308/C23 16/P2316 12 - 20 T f + 1/3 V LCD + V LCD COM2– SEG12 – 1/3 V LCD 0 – V LCD + 1/3 V LCD + V LCD COM1– SEG12 – 1/3 V LCD 0 – V LCD LCD + 1/3 V LCD + V LCD COM0– SEG12 – 1/3 V LCD 0 – V SEG12 V V LC0 SS V LC2 V LC1 COM2 V V LC0 SS V LC2 V LC1 COM1 V V LC0 SS V LC2 V LC1 COM0 V V LC0 SS V LC2 [...]
-
Seite 269
KS57C2308/P2308/C2316/P2316 LCD CONTROLLER/DRIV ER 12 - 21 SEG30 SEG31 COM3 COM2 COM1 COM0 Timing Strobe Open SEG0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 1E8H 1E9H 1EAH 1EBH 1ECH 1EDH 1EEH 1EFH 1F0H 1F1H 1F2H 1F3H 1F4H 1F5H 1F6H 1F7H 1F8H 1F9H 1FAH 1FBH 1FCH 1[...]
-
Seite 270
LCD CONTROLLER/DRIVER KS57C2308/P2308/C23 16/P2316 12 - 22 COM0 V V LC0 SS V LC2 V LC1 COM1 V V LC0 SS V LC2 V LC1 COM2 V V LC0 SS V LC2 V LC1 COM3 V V LC0 SS V LC2 V LC1 SEG13 V V LC0 SS V LC2 V LC1 COM0– SEG13 + 1/3 V LCD – V LCD + V LCD – 1/3 V LCD 0 COM1– SEG13 + 1/3 V LCD – V LCD + V LCD – 1/3 V LCD 0 T f Figure 12-19. LCD Signal W[...]
-
Seite 271
KS57C2308/P2308/C2316/P2316 LCD CONTROLLER/DRIV ER 12 - 23 COM3 COM2 COM1 COM0 Timing Strobe 1E8H 1E9H 1EAH 1EBH 1ECH 1EDH 1EEH 1EFH 1F0H 1F1H 1F2H 1F3H 1F4H 1F5H 1F6H 1F7H 1F8H 1F9H 1FAH 1FBH 1FCH 1FDH 1FEH 1FFH 1 1 11 1111111 1 000 111101111 1 01001111101 11 111111010 0 0 11101110111 10 001 0 10111 0 1 00 0 00100010 00 010001010 0 1E0H 1E1H 1E2H [...]
-
Seite 272
LCD CONTROLLER/DRIVER KS57C2308/P2308/C23 16/P2316 12 - 24 NOTES[...]
-
Seite 273
KS57C2308/P2308/C2316/P2316 SERIAL I/O INTERFACE 13- 1 13 SERIAL I/O INTERFACE OVERVIEW The serial I/O interface (SIO) has the following functional components: — 8-bit mode register (SMOD) — Clock selector circuit — 8-bit buffer register (SBUF) — 3-bit serial clock counter Using the serial I/O interface, 8-bit data can be exchanged with an [...]
-
Seite 274
SERIAL I/O INTERFACE KS57C2308/P2308/C23 16/P2316 1 3- 2 * Instruction Execution fxx: System Clock INTERNAL BUS LSB or MSB first SBUF (8-BIT) SI CLOCK SELECTOR R Q D TOL0 CPU CLK fxx/2 fxx/2 R S Q SO SMOD.7 SMOD.6 SMOD.5 SMOD.3 SMOD.2 SMOD.1 SMOD.0 Q0 Q1 Q2 3-BIT COUNTER CLEAR OVERFLOW IRQS CK 8 INTERNAL BUS BITS * 8 - P0.1/ SCK 10 4 Figure 13- 1. [...]
-
Seite 275
KS57C2308/P2308/C2316/P2316 SERIAL I/O INTERFACE 13- 3 SERIAL I/O MODE REGISTER (SMOD) The serial I/O mode register, SMOD, is an 8-bit register that specifies the operation mode of the serial interface. Its reset value is logical zero. SMOD is organized in two 4-bit registers, as follows: FE0H SMOD.3 SMOD.2 SMOD.1 SMOD.0 FE1H SMOD.7 SMOD.6 SMOD.5 0[...]
-
Seite 276
SERIAL I/O INTERFACE KS57C2308/P2308/C23 16/P2316 1 3- 4 SERIAL I/O TIMING DIAGRAMS SCK SI SO IRQS DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0 TRANSMIT COMPLETE SET SMOD.3 Figure 13- 2. SIO Timing in Transmit/Receive Mode SCK SI SO IRQS DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 TRANSMIT COMPLETE SET SMOD.3 HIGH IMPEDANCE Figure 13- 3. SIO[...]
-
Seite 277
KS57C2308/P2308/C2316/P2316 SERIAL I/O INTERFACE 13- 5 SERIAL I/O BUFFER REGISTER (SBUF) The serial I/O buffer register , SBUF, can be read or written using 8-bit RAM control instructions. Following a RESET , the value of SBUF is undetermined. When the serial interface operates in transmit-and-receive mode (SMOD.1 = "1"), transmit data in[...]
-
Seite 278
SERIAL I/O INTERFACE KS57C2308/P2308/C23 16/P2316 1 3- 6 + + PROGRAMMING TIP — Setting Transmit/Receive Modes for Serial I/O (Continued) 3. Transmit and recei ve Data through SIO interface using an internal clock frequency of 4.09 kHz (at 4.19 MHz) in LSB-first mode: BITR EMB LD EA,TDATA ; TDATA address = BANK0 (20H –7FH) LD SBUF,EA LD EA,#8FH [...]
-
Seite 279
KS57C2308/P2308/C2316/P2316 SERIAL I/O INTERFACE 13- 7 + + PROGRAMMING TIP — Setting Transmit/Receive Modes for Serial I/O (Continued) 4. Transmit and receive Data through SIO interface using an external clock in LSB-first mode: BITR EMB LD EA,TDATA ; TDATA address = BANK0 (20H –7FH) LD SBUF,EA LD EA,#0FH LD SMOD,EA ; SIO start EI BITS IES • [...]
-
Seite 280
SERIAL I/O INTERFACE KS57C2308/P2308/C23 16/P2316 1 3- 8 NOTES[...]
-
Seite 281
KS57C2308/P2308/C2316/P2316 ELECTRICAL DATA 14- 1 14 ELECTRICAL DATA OVERVIEW In this section, information on KS57C2308/C2316 electrical characteristics is presented as tables and graphics. The information is arranged in the following order: Standard Electrical Characteristics — Absolute maximum ratings — D.C. electrical characteristics — Mai[...]
-
Seite 282
ELECTRICAL DATA KS57C2308/P2308/C23 16/P2316 14- 2 Table 14- 1. Absolute Maximum Ratings (T A = 25 ° C) Parameter Symbol Conditions Rating Units Supply Voltage V DD – – 0.3 to + 6.5 V Input Voltage V I1 All I/O ports – 0.3 to V DD + 0.3 Output Voltage V O – – 0.3 to V DD + 0.3 Output Current High I OH One I/O p in active – 15 mA All I/[...]
-
Seite 283
KS57C2308/P2308/C2316/P2316 ELECTRICAL DATA 14- 3 Table 14- 2. D.C. Electrical Characteristics (Continued) (T A = – 40 ° C to + 85 ° C, V DD = 1.8 V to 5.5 V) Parameter Symbol Conditions Min Typ Max Units Output l ow v oltage V OL1 V DD = 4.5 V to 5.5 V , Ports 0, 2 –7 I OL = 1 5 mA – 0.4 2 V V OL2 V DD = 4.5 V to 5.5 V , Port 8 only I OL =[...]
-
Seite 284
ELECTRICAL DATA KS57C2308/P2308/C23 16/P2316 14- 4 Table 14- 2. D.C. Electrical Characteristics (Concluded) (T A = – 40 ° C to + 85 ° C, V DD = 1.8 V to 5 . 5 V) Parameter Symbol Conditions Min Typ Max Units VLC0 Output voltage V LC0 T A = 25 ø C 0.6 V DD – 0.2 0.6 V DD 0.6 V DD + 0.2 V VLC1 Output voltage V LC1 T A = 25 ø C 0.4 V DD – 0.[...]
-
Seite 285
KS57C2308/P2308/C2316/P2316 ELECTRICAL DATA 14- 5 Table 14- 3. Main System Clock Oscillator Characteristics (T A = – 40 ° C + 85 ° C, V DD = 1.8 V to 5.5 V) Oscillator Clock Configuration Parameter Test Condition Min Typ Max Units Ceramic Oscillator X IN X OUT C1 C2 Oscillation frequency (1) – 0.4 – 6.0 MHz Stabilization time (2) Stabilizat[...]
-
Seite 286
ELECTRICAL DATA KS57C2308/P2308/C23 16/P2316 14- 6 Table 14- 4. Subsystem Clock Oscillator Characteristics (T A = – 40 ° C + 85 ° C, V DD = 1.8 V to 5.5 V) Oscillator Clock Configuration Parameter Test Condition Min Typ Max Units Crystal Oscillator XT IN XT OUT C1 C2 Oscillation frequency (1) – 32 32.768 35 kHz Stabilization time (2) V DD = 4[...]
-
Seite 287
KS57C2308/P2308/C2316/P2316 ELECTRICAL DATA 14- 7 Table 14-6 . A.C. Electrical Characteristics (T A = – 40 ° C to + 85 ° C, V DD = 1.8 V to 5 . 5 V) Parameter Symbol Conditions Min Typ Max Units Instruction c ycle t CY V DD = 2.7 V to 5.5 V 0.67 – 64 µs t ime (1 ) V DD = 1.8 V to 4.5 V 0.95 – 64 With subsystem clock ( fxt) 114 122 125 TCL0[...]
-
Seite 288
ELECTRICAL DATA KS57C2308/P2308/C23 16/P2316 14- 8 CPU CLOCK = 1/n x oscillator frequency (n = 4, 8, 64) 1 Supply Voltage (V) 250 kHz 500 kHz 750 kHz 1.00 MHz 1.0475 MHz 15.6 kHz CPU Clock 1.5 MHz 3 4 5 6 7 1.8 Main OSC. Frequency 6 MHz 4.19 MHz 3 MHz Figure 14- 1. Standard Operating Voltage Range Table 14-7 . RAM Data Retention Supply Voltage in S[...]
-
Seite 289
KS57C2308/P2308/C2316/P2316 ELECTRICAL DATA 14- 9 TIMING WAVEFORMS t WAIT V DD RESET EXECUTION OF STOP INSTRUCTION V DDDR DATA RETENTION MODE STOP MODE INTERNAL RESET IDLE MODE OPERATING MODE t SREL Figure 14- 2. Stop Mode Release Timing When Initiated By RESET V DD EXECUTION OF STOP INSTRUCTION V DDDR DATA RETENTION MODE STOP MODE t WAIT t SREL ID[...]
-
Seite 290
ELECTRICAL DATA KS57C2308/P2308/C23 16/P2316 14- 10 0.8 V DD 0.2 V DD 0.8 V DD 0.2 V DD MEASUREMENT POINTS Figure 14- 4. A.C. Timing Measurement Points (Except for X IN and XT IN ) X in t XL t XH x V DD – 0.1 V 0.1 V 1/f Figure 14- 5. Clock Timing Measurement at X IN XT in t XTL t XTH 1/f V DD – 0.1 V 0.1 V xt Figure 14- 6. Clock Timing Measure[...]
-
Seite 291
KS57C2308/P2308/C2316/P2316 ELECTRICAL DATA 14- 11 TCL0 t TIL0 t TIH0 1/f 0.2 V DD TI0 0.8 V DD Figure 14- 7. TCL 0 Timing RESET t RSL 0.2 V DD Figure 14- 8. Input Timing for RESET Signal INT0, 1, 2, 4 KS0 to KS7 t INTL t INTH 0.8 V DD 0.2 V DD Figure 14- 9. Input Timing for External Interrupts and Quasi-Interrupts[...]
-
Seite 292
ELECTRICAL DATA KS57C2308/P2308/C23 16/P2316 14- 12 SCK t KL t KH t KCY 0.8 V DD INPUT DATA OUTPUT DATA 0.2 V DD 0.8 V DD 0.2 V DD SI SO t KSO t SIK t KSI Figure 14- 10. Serial Data Transfer Timing[...]
-
Seite 293
KS57C2308/P2308/C2316/P2316 MECHANICAL DATA 15- 1 15 MECHANICAL DATA This section contains the following information about the device package: — Package dimensions in millimeters — Pad diagram — Pad/pin coordinate data table NOTE : Dimensions are in millimeters. 0.80 ± 0.20 0.10 MAX 0.15 +0.10 - 0.05 0-8° 2.65 ± 0.10 3.00 MAX 0.05 MIN 17.9[...]
-
Seite 294
MECHANICAL DATA KS57C2308/P2308/C23 16/P2316 15- 2 NOTES[...]
-
Seite 295
KS57C2308/P2308/C2316/P2316 KS57P2308/P 2316 OTP 16- 1 16 KS57P2308/P2316 OTP OVERVIEW The KS57P2308/P2316 single-chip CMOS microcontroller is the OTP (One Time Programmable) version of the KS57C2308/C2316 microcontroller. It has an on-chip EPROM instead of masked ROM. The EPROM is accessed by a serial data format. The KS57P2308/P2316 is fully comp[...]
-
Seite 296
KS57P2308/P2316 OTP KS57C2308/P2308/C23 16/P2316 16- 2 SEG19 SEG20 SEG21 SEG22 SEG23 P8.0/SEG24 P8.1/SEG25 P8.2/SEG26 P8.3/SEG27 P8.4/SEG28 P8.5/SEG29 P8.6/SEG30 P8.7/SEG31 P 7.3/KS7 P7.2/KS6 P7.1/KS5 P7.0/KS4 P6.3/KS3 P6.2/KS2 P6.1/KS1 P6.0/KS0 P5.3 P5.2 P5.1 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 80 79 78 77 76 75[...]
-
Seite 297
KS57C2308/P2308/C2316/P2316 KS57P2308/P 2316 OTP 16- 3 Table 16-1. Pin Descriptions Used to Read/Write the EPROM Main Chip During Programming Pin Name Pin Name Pin No. I/O Function V LC1 SDAT 10 I/O Serial data pin. Output port when reading and input port when writing can be assigned as Input/push-pull output port respectively. V LC2 SCLK 11 I/O Se[...]
-
Seite 298
KS57P2308/P2316 OTP KS57C2308/P2308/C23 16/P2316 16- 4 Table 16-4 . Absolute Maximum Ratings (T A = 25 ° C) Parameter Symbol Conditions Rating Units Supply Voltage V DD – – 0.3 to + 6.5 V Input Voltage V I1 All I/O ports – 0.3 to V DD + 0.3 Output Voltage V O – – 0.3 to V DD + 0.3 Output Current High I OH One I/O p in active – 15 mA Al[...]
-
Seite 299
KS57C2308/P2308/C2316/P2316 KS57P2308/P 2316 OTP 16- 5 Table 16-5 . D.C. Electrical Characteristics (Continued) (T A = – 40 ° C to + 85 ° C, V DD = 1.8 V to 5.5 V) Parameter Symbol Conditions Min Typ Max Units Output l ow v oltage V OL1 V DD = 4.5 V to 5.5 V , Ports 0, 2 –7 I OL = 1 5 mA – 0.4 2 V V OL2 V DD = 4.5 V to 5.5 V , Port 8 only I[...]
-
Seite 300
KS57P2308/P2316 OTP KS57C2308/P2308/C23 16/P2316 16- 6 Table 16-5 . D.C. Electrical Characteristics (Concluded) (T A = – 40 ° C to + 85 ° C, V DD = 1.8 V to 5 . 5 V) Parameter Symbol Conditions Min Typ Max Units VLC0 Output voltage V LC0 T A = 25 ø C 0.6 V DD – 0.2 0.6 V DD 0.6 V DD + 0.2 V VLC1 Output voltage V LC1 T A = 25 ø C 0.4 V DD ?[...]
-
Seite 301
KS57C2308/P2308/C2316/P2316 KS57P2308/P 2316 OTP 16- 7 Table 16-6 . Main System Clock Oscillator Characteristics (T A = – 40 ° C + 85 ° C, V DD = 1.8 V to 5.5 V) Oscillator Clock Configuration Parameter Test Condition Min Typ Max Units Ceramic Oscillator X IN X OUT C1 C2 Oscillation frequency (1) – 0.4 – 6.0 MHz Stabilization time (2) Stabi[...]
-
Seite 302
KS57P2308/P2316 OTP KS57C2308/P2308/C23 16/P2316 16- 8 Table 16-7 . Subsystem Clock Oscillator Characteristics (T A = – 40 ° C + 85 ° C, V DD = 1.8 V to 5.5 V) Oscillator Clock Configuration Parameter Test Condition Min Typ Max Units Crystal Oscillator XT IN XT OUT C1 C2 Oscillation frequency (1) – 32 32.768 35 kHz Stabilization time (2) V DD[...]
-
Seite 303
KS57C2308/P2308/C2316/P2316 KS57P2308/P 2316 OTP 16- 9 Table 16-9 . A.C. Electrical Characteristics (T A = – 40 ° C to + 85 ° C, V DD = 1.8 V to 5 . 5 V) Parameter Symbol Conditions Min Typ Max Units Instruction c ycle t CY V DD = 2.7 V to 5.5 V 0.67 – 64 µs t ime (1 ) V DD = 1.8 V to 4.5 V 0.95 – 64 With subsystem clock ( fxt) 114 122 125[...]
-
Seite 304
KS57P2308/P2316 OTP KS57C2308/P2308/C23 16/P2316 16- 10 CPU CLOCK = 1/n x oscillator frequency (n = 4, 8, 64) 1 Supply Voltage (V) 250 kHz 500 kHz 750 kHz 1.00 MHz 1.0475 MHz 15.6 kHz CPU Clock 1.5 MHz 3 4 5 6 7 1.8 Main OSC. Frequency 6 MHz 4.19 MHz 3 MHz Figure 16-2 . Standard Operating Voltage Range Table 16-10 . RAM Data Retention Supply Voltag[...]
-
Seite 305
KS57C2308/P2308/C2316/P2316 KS57P2308/P 2316 OTP 16- 11 TIMING WAVEFORMS t WAIT V DD RESET EXECUTION OF STOP INSTRUCTION V DDDR DATA RETENTION MODE STOP MODE INTERNAL RESET IDLE MODE OPERATING MODE t SREL Figure 16-3 . Stop Mode Release Timing When Initiated By RESET V DD EXECUTION OF STOP INSTRUCTION V DDDR DATA RETENTION MODE STOP MODE t WAIT t S[...]
-
Seite 306
KS57P2308/P2316 OTP KS57C2308/P2308/C23 16/P2316 16- 12 0.8 V DD 0.2 V DD 0.8 V DD 0.2 V DD MEASUREMENT POINTS Figure 16-5 . A.C. Timing Measurement Points (Except for X IN and XT IN ) X in t XL t XH x V DD – 0.1 V 0.1 V 1/f Figure 16-6 . Clock Timing Measurement at X IN XT in t XTL t XTH 1/f V DD – 0.1 V 0.1 V xt Figure 16-7 . Clock Timing Mea[...]
-
Seite 307
KS57C2308/P2308/C2316/P2316 KS57P2308/P 2316 OTP 16- 13 TCL0 t TIL0 t TIH0 1/f 0.2 V DD TI0 0.8 V DD Figure 16-8 . TCL 0 Timing RESET t RSL 0.2 V DD Figure 16-9 . Input Timing for RESET Signal INT0, 1, 2, 4 KS0 to KS7 t INTL t INTH 0.8 V DD 0.2 V DD Figure 16-10 . Input Timing for External Interrupts and Quasi-Interrupts[...]
-
Seite 308
KS57P2308/P2316 OTP KS57C2308/P2308/C23 16/P2316 16- 14 SCK t KL t KH t KCY 0.8 V DD INPUT DATA OUTPUT DATA 0.2 V DD 0.8 V DD 0.2 V DD SI SO t KSO t SIK t KSI Figure 16-11 . Serial Data Transfer Timing[...]
-
Seite 309
KS57C2308/P2308/C2316/P2316 KS57P2308/P 2316 OTP 16- 15 START Address= First Location V DD =5V, V PP =12.5V x = 0 Program One 1ms Pulse Increment X x = 10 Verify 1 Byte Last Address V DD = V PP = 5 V Compare All Byte Device Passed Increment Address Verify Byte Device Failed PASS FAIL NO FAIL YES FAIL NO Figure 16-12. OTP Programming Algorithm[...]
-
Seite 310
KS57P2308/P2316 OTP KS57C2308/P2308/C23 16/P2316 16- 16 NOTES[...]
-
Seite 311
KS57C2308/P2308/C2316/P2316 DEVELOPMENT TOOLS 17- 1 17 Development Tools OVERVIEW Samsung provides a powerful and easy-to-use development support system in turnkey form. The development support system is configured with a host system, debugging tools, and support software. For the host system, any standard computer that operates with MS-DOS as its [...]
-
Seite 312
DEVELOPMENT TOOLS KS57C2308/P2308/C2 316/P2316 17- 2 RAM BREAK/ DISPLAY UNIT TARGET APPLICATION SYSTEM PROBE ADAPTER TB572308A/16A TARGET BOARD PROM/MTP WRITER UNIT TRACE/TIMER UNIT SAM4 BASE UNIT POWER SUPPLY UNIT POD RS-232C IBM-PC AT or Compatible BUS SMDS2+ EVA CHIP Figure 17-1 . SMDS Product Configuration (SMDS2+)[...]
-
Seite 313
KS57C2308/P2308/C2316/P2316 DEVELOPMENT TOOLS 17- 3 TB572308A/16A TARGET BOARD The TB572308A/16A target board is used for the KS57C2308/P2308/C2316/P2316 microcontroller. It is supported by the SMDS2+ development system. SM1248A TB572308A/16A 1 25 EXTERNAL TRIGGERS CH1 CH2 OFF ON To User_Vcc RESET + STOP + IDLE 100-PIN CONNECTOR 4 0-PIN CONNECTOR 1[...]
-
Seite 314
DEVELOPMENT TOOLS KS57C2308/P2308/C2 316/P2316 17- 4 Table 17-1. Power Selection Settings for TB572308A/16A “ To User_Vcc ” Settings Operating Mode Comments To User_Vcc ON OFF SMDS2/SMDS2+ TB570502A /0504A TARGET SYSTEM V CC V SS V CC The SMDS2 /SMDS2+ supplies V CC to the target board (evaluation chip) and the target system. To User_Vcc ON OFF[...]
-
Seite 315
KS57C2308/P2308/C2316/P2316 DEVELOPMENT TOOLS 17- 5 Table 17-3. Sub-clock Selection Settings for TB572308A/16A Sub Clock Setting Operating Mode Comments XTAL MDS XTI SMDS2/ SMDS2+ EVA CHIP KS57E2308 No connection 100 pin connector XT IN XT OUT Set the XTI switch to “MDS” when the target board is connected to the SMDS2/SMDS2+. XTAL MDS X TI TARG[...]
-
Seite 316
DEVELOPMENT TOOLS KS57C2308/P2308/C2 316/P2316 17- 6 J101 4 0-PIN DIP CONNECTOR SEG2 SEG0 COM1 COM3 V LC0 V LC2 V SS X IN XT IN RESET P0.1/ P0.3/SI P1.1/INT1 P1.3/TCL0 P2.1 P2.3/BUZ P3.1/LCDSY P3.3 P4.1 P4.3 SEG1 COM0 COM2 BIAS V LC1 V DD X OUT TEST XT OUT P0.0/INT4 P0.2/SO P1.0/INT0 P1.2/INT2 P2.0/TCLO0 P2.2/CLO P3.0/LCDCK P3.2 P4.0 P4.2 P5.0 1 3 [...]
-
Seite 317
(For duplicate copies of this form, and for additional ordering information, please contact your local Sa m sung sales representative. Samsung sales offices are listed on the back cover of this book.) KS 57 SERIES MASK ROM ORDER FORM Product description: Device Number: KS57C__________- ___________(write down the ROM code number) Product Order Form:[...]
-
Seite 318
[...]
-
Seite 319
(For duplicate copies of this form, and for additional ordering information, please contact your local Sa m sung sales representative. Samsung sales offices are listed on the back cover of this book.) KS 57 SERIES REQUEST FOR PRODUCTION AT CUSTOMER RISK Customer Information: Company Name: ____________________________________________________________[...]
-
Seite 320
[...]
-
Seite 321
(For duplicate copies of this form, and for additional ordering information, please contact your local Sa m sung sales representative. Samsung sales offices are listed on the back cover of this book.) KS57C 2308 MASK OPTION SELECTION FORM Device Number: KS57C2308-__________(write down the ROM code number) Attachment (Check one): Diskette PROM Custo[...]
-
Seite 322
[...]
-
Seite 323
(For duplicate copies of this form, and for additional ordering information, please contact your local Sa m sung sales representative. Samsung sales offices are listed on the back cover of this book.) KS57C 2316 MASK OPTION SELECTION FORM Device Number: KS57C2316-__________(write down the ROM code number) Attachment (Check one): Diskette PROM Custo[...]
-
Seite 324
(For duplicate copies of this form, and for additional ordering information, please contact your local Sa m sung sales representative. Samsung sales offices are listed on the back cover of this book.) KS 57 SERIES OTP FACTORY WRITING ORDER FORM (1/2) Product D escription: Device Number: KS 57 P ________-________(write down the ROM code number) Prod[...]
-
Seite 325
[...]
-
Seite 326
(For duplicate copies of this form, and for additional ordering information, please contact your local Sa m sung sales representative. Samsung sales offices are listed on the back cover of this book.) KS 57 P 2308 OTP FACTORY WRITING ORDER FORM (2/2) Device Number: KS57P 2308-__________(write down the ROM code number) Customer Checksums: __________[...]
-
Seite 327
[...]
-
Seite 328
(For duplicate copies of this form, and for additional ordering information, please contact your local Sa m sung sales representative. Samsung sales offices are listed on the back cover of this book.) KS 57 P 2316 OTP FACTORY WRITING ORDER FORM (2/2) Device Number: KS57P 2316-__________(write down the ROM code number) Customer Checksums: __________[...]