,.", MOS Technology NMOS CMOS . ~ A Commodore Company LCD - -~ ~~,,~:;_ ~;::c~ <-""' .... ;:; ~- ,~,e5~ , ~ -- 8INGL:LPORT ' ":'~~~TE~tAeE- ~~ ~~~ :; '" !:.ili~l~t!, ~~~!~~:~ ~~~~~ z~: I! - fi'fit~AAMM-AB _ CHABACT[B SIZE - ~ ~-~BAMMAgu-- ---- SCRfEN FORMA T _ __ __ _ 1982-83 DATA CATALOG $5.00 , . " MOS Technology ~ A Commodore Company ~@~U~~U@ 1982 COMPONENT DATA CATALOG Section Numerical and Functional Indexes 1 Product Cross Reference Guide NMOS M icrocom puters 2 Microprocessors Peripherals ROMs Boards CMOS Microprocessors 3 Peripherals ROMs Consumer Products LCD 4 Packaging Information 5 Application Notes 6 Representatives and Distributors 7 Numerical and Functional Indexes Product Cross Reference Guide ©@MM@@@[F® ©@MM@@@[F® ©@MM@@(Q)[F® ©(Q)[F[FUM(Q)@(Q)[F® ©(Q)MM(Q)@(Q)[F® ©(Q)[F[FU [F[FU(Q)@(Q)[F® ©@M[F[FU(Q)@(Q)[F® ©@MM(Q)@(Q)[F® ©@[F[FUM(Q)@(Q)[F® ©@MM(Q)@(Q)[F® ©(Q)[F[FUM(Q)@(Q)[F® ©@MM(Q)@(Q)[F® ©(Q)[F[FU [F[FU(Q)@(Q)[F® ©(Q)[F[FUM(Q)@(Q)[F® commodore semiconductor group 1-1 NUMERICAL INDEX NMOS Device Description Page 23128 Static ROM (16384x8) ................................................................. 2-153 2316 Static ROM (2048x8) .................................................................. 2-137 2332 Static ROM (4096x8) .................................................................. 2-141 2333 Static ROM (4096x8) .................................................................. 2-145 2364 Static ROM (8192x8) .................................................................. 2-149 6500 Microprocessor Family ................................................................ 2-14 6500/1 Single Chip Microcomputer ........................................................... 2-2 6502 Microprocessor ....................................................................... 2-22 6503 Microprocessor ....................................................................... 2-22 6504 Microprocessor ....................................................................... 2-22 6505 Microprocessor ....................................................................... 2-22 6506 Microprocessor ....................................................................... 2-23 6507 Microprocessor ....................................................................... 2-23 6508 Microprocessor, with RAM and I/O .................................................... 2-25 6509 Microprocessor, with Memory Management ............................................ 2-35 6510 Microprocessor, with I/O ............................................................... 2-36 6512 Microprocessor ....................................................................... 2-23 6513 Microprocessor ....................................................................... 2-24 6514 Microprocessor ....................................................................... 2-24 6515 Microprocessor ....................................................................... 2-24 6520 Peripheral Adapter .................................................................... 2-46 6522 Versatile Interface Adapter (VIA) ........................................................ 2-50 6523 Tri-Port Interface ....................................................................... 2-66 65245 Octal Bus Transceiver with 3 State Outputs ............................................. 2-73 6525 Tri-Port Interface ....................................................................... 2-76 6526 Complex Interface Adapter (CIA) ....................................................... 2-84 6529 Single Port Interface ................................................................... 2-92 6530 Memory, I/O, Timer Array .............................................................. 2-96 6532 Memory, I/O, Timer Array .............................................................. 2-107 6545-1 CRT Controller ........................................................................ 2-11 7 6551 Asynchronous Communication Interface Adapter ....................................... 2-129 MMS 6508-1 Micromodule Board ................................................................... 2-154 NUMERICAL INDEX CMOS Device Description Page 23C16 Static ROM (2048x8) .................................................................. 3-18 23C32 Static ROM (4096x8) .................................................................. 3-22 65COO MicroprocessorFamily ................................................................ 3-2 65C02 Microprocessor ....................................................................... 3-10 65C03 Microprocessor ....................................................................... 3-1 0 65C04 Microprocessor ....................................................................... 3-1 0 65C05 Microprocessor ....................................................................... 3-1 0 65C06 Microprocessor ....................................................................... 3-11 65C07 Microprocessor ....................................................................... 3-11 65C12 Microprocessor ....................................................................... 3-11 65C13 Microprocessor ....................................................................... 3-1 2 65C14 Microprocessor ....................................................................... 3-1 2 65C15 Microprocessor ....................................................................... 3-12 65C23 Tri-Port Interface ....................................................................... 3-1 3 1-2 NUMERICAL INDEX CMOS Device Description Page 6600 Low Power CMOS Remote Control Transmitter ......................................... 3-35 8223 6-Function 3%-4-Digit Stopwatch, %-Multiplexed LCD Display Drive ..................... 3-37 8268 4-Digit 6F Alarm with Snooze, % Multiplexed Display Drive .............................. 3-42 8668 5-Function 8-Digit Watch, % Multiplexed LCD Display Drive ............................. 3-48 8868 8-Digit 6F Alarm with Snooze, % Multiplexed LCD Display .............................. 3-52 887X 5-Function 8-Digit LCD Alarm Watch 7-Segment Programmable Animation, % Multiplexed ... 3-57 NUMERICAL INDEX LCD Device Description Page 5002 K 5% Digit Direct Drive Melody Alarm Clock Display .................................... 4-2 4003 K 4 Digit Biplexed Alarm Clock Display with Alarm, PM, and Data Flag .................. 4-3 4004 L 4 Digit Direct Drive Clock Display with Alarm, AM and PM Flags ...................... 4-4 4005 N 4 Digit Direct Drive Alarm Clock with AM and PM Flags ............................... 4-5 4006 L 4 Digit Biplexed Clock Display with Alarm and PM Flags .............................. 4-6 4007 N 4 Digit Biplexed Alarm Clock Display with PM and Alarm Display ..................... 4-7 5015 F Men's 6 Digit Direct Drive Watch Display with Alarm Flags ............................ 4-8 5017 B Ladies' 3% Direct Drive Watch Display with Alarm and PM Flags ...................... 4-9 5018 E Men's 3% Digit Direct Drive Watch Display with Alarm and PM Flags .................. 4-10 5053 BB Ladies' 3% Digit Biplexed Watch Display .............................................. 4-11 50561 Men's 5% Digit Direct Drive Watch Display Unit with Melody Alarm Flag ............... 4-12 5060 B Ladies' 3% Digit Biplexed Watch Display .......................... '" ................. 4-13 5061 E Men's 3% Digit Biplexed Watch Display ............................................... 4-14 5075 A 3% Digit Biplexed Pen Display ........................................................ 4-15 5101 C Ladies' 3% Large Digit Biplexed Watch Display ....................................... 4-16 5102 E Men's Biplexed Watch Display with PM, Alarm and Day Flag .......................... 4-17 5103 C Ladies' 4 Digit Biplexed Watch Display with Alarm, PM and Day Flags ................ 4-18 51041 Men's 8 Digit Biplexed Watch Display with AM, PM, Alarm and Day Flags ............. 4-19 5107 B Ladies' 4 Digit Biplexed Watch Display with Alarm and PM Flags ...................... 4-20 5108 E Men's Biplexed Watch Display with PM and Alarm Flags .............................. 4-21 5109 C Ladies' 3% Digit Biplexed Watch Display with Alarm, PM and Day Flags ............... 4-22 5111 AA 3% Digit Direct Drive Pen Display with Alarm and PM Flags ........................... 4-23 5112 AA 3% Digit Biplexed Pen Display with Alarm and PM Flags .............................. 4-24 5114 AA 3% Digit Biplexed Pen Display ........................................................ 4-25 5115 E Men's Biplexed Watch Displaywith PM, One Second Interval Stopwatch and Day Flags ... 4-26 PACKAGING INFORMATION ....................................................................... 5-2 APPLICATION NOTES 1. Octal Bus Transceiver, Our Equivalent Asynchronous Two-Way Communicator, TIL-CMOS Compatible ............................................................ 6-2 2. MPS 6525 Versus MC6821/8255 ................................................. 6-3 3. Handling the "RDY" Line in 6500 CPUs ........................................... 6-4 4. MPS6520 Versus MC6820/MC6821 .............................................. 6-5 5. Dual Processor Configuration with the M PS6508 .................................. 6-6 6. 6551 Versus 6850 ................................................................. 6-7 7. Memory Expansion with the 6508 ................................................. 6-8 8. MPS 6545-1 Versus Competition .................................................. 6-9 9. MPS 6508 - An "Active" CPU During Block DMA ................................ 6-10 10. FR208X - The "Melody" Chip .................................................... 6-11 1-3 APPLICATION NOTES Page 11. MPS650B Handling Vectored Interrupts ........................................... 6-12 12. MPS - A Two in One Deal ........................................................ 6-13 13. 650B RAM - Two Places at Once? ............................................... 6-14 14. M PS 6500/1 E - EPRO M Applications ............................................ 6-1 5 15. MPS6500/1 - RAM Memory Expansion .......................................... 6-16 16. Simple Clock Generator for the MPS 6500 Microprocessor Family ................. 6-17 CMOS/LCD Watch-Clock Circuits ..................................................... 6-1B REPRESENTATIVES AND DISTRIBUTORS Representatives ....................................................................... 7-2 Distributors ............................................................................ 7-5 FUNCTIONAL INDEX NMOS MICROCOMPUTERS Page 6500/1 Single Chip Microcomputer ....................................... , ................... 2-2 MICROPROCESSORS 6500 Microprocessor Family ........................................................ , ....... 2-14 6502 Microprocessor ....................................................................... 2-22 6503 Microprocessor .... , .................................................................. 2-22 6504 Microprocessor .... " ............................................. , ........... , ....... 2-22 6505 Microprocessor ................................................... , ....... " .......... 2-22 6506 Microprocessor ....................................................................... 2-23 6507 Microprocessor ................................................... ,. " ................ 2-23 650B Microprocessor, with RAM and 1/0 .................................................... 2-25 6509 Microprocessor, with Memory Management ........................................... 2-35 6510 Microprocessor, with I/O .............................................................. 2-36 6512 Microprocessor ................................................... , ................... 2-23 6513 Microprocessor ....................................................................... 2-24 6514 Microprocessor ....................................................................... 2-24 651 5 Microprocessor ....................................................................... 2-24 PERIPHERALS 6520 Peripheral Adapter .................................................................... 2-46 6522 Versatile Interface Adapter (VIA) ................................... , ................... 2-50 6523 Tri-Port Interface ....................................................................... 2-66 65245 Octal Bus Transceiver with 3 State Outputs ........................................... 2-73 6525 Tri-Port Interface ..................................... , ................................ 2-76 6526 Complex Interface Adapter (CIA) ...................................................... 2-B4 6529 Single Port Interface .................................................................. 2-92 6530 Memory, I/O, Timer Array .............................................................. 2-96 6532 Memory, I/O, Timer Array .......................................... , ........... , ....... 2-107 6545-1 CRT Controller ........................................................................ 2-117 6551 Asynchronous Communication Interface Adapter ...................................... 2-129 ROMs 2316 Static ROM (204BxB) ................................................................... 2-137 2332 Static ROM (4096xB) .................................................................. 2-141 2333 Static ROM (4096xB) .................................................................. 2-145 2364 Static ROM (B192xB) .................................................................. 2-149 2312B Static ROM (163B4xB) ................................................................. 2-153 1-4 FUNCTIONAL INDEX NMOS Page BOARDS MMS 6508-1 Micromodule Board .................................................................. 2-154 FUNCTIONAL INDEX CMOS MICROPROCESSORS Page 65COO Microprocessor Family ................................................................ 3-2 65C02 Microprocessor ....................................................................... 3-1 0 65C03 Microprocessor ....................................................................... 3-1 0 65C04 Microprocessor ....................................................................... 3-1 0 65C05 Microprocessor ....................................................................... 3-1 0 65C06 Microprocessor ....................................................................... 3-11 65C07 Microprocessor ....................................................................... 3-11 65C12 Microprocessor .................................. , .................................... 3-11 65C13 Microprocessor .... , .................................................................. 3-12 65C14 Microprocessor ..................................................... , ................. 3-12 65C15 Microprocessor ....................................................................... 3-12 PERIPHERALS 65C23 Tri-Port Interface ...................................................................... 3-1 3 ROMs 23C16 Static ROM (2048x8) ........................... , ...................................... 3-18 23C32 Static ROM (4096x8) .................................................................. 3-22 1-5 ~commOdore aemlcanductar group ~[ffi@[Q)(UJ~LJ ~[ffiOO@ [ffi[g[p[g[ffi[g~~[g @(UJ O[Q)[g ROM AMD Commodore Signetics Commodore Synertek Commodore Part No. Replacement Part Part No. Replacement Part Part No. Replacement Part AM9217BPC MPS2316 2632N MPS2332 SYP/C6504B M PS/CS6504B AM9217BDC MCS2316 2664N MPS2364 SYP/C6505A M PS/CS6505A AM9232BPC MPS2332 SYP/C6505B M PS/CS6505B AM9232BDC MCS2332 SYP/C6506A M PS/CS6506A T.I. Commodore SYP/C6506B M PS/CS6506B TMS4732NL MPS2332 SYP/C6507A M PS/CS6507A AMI Commodore TMS4732JL MCS2332 SYP/C6507B MPS/CS6507B S68316A MPS2316 TMS4764NL MPS2364 SYP/C6512A M PS/CS6512A S68332 MPS2332 TMS4764JL MCS2364 SYP/C6512B M PS/CS6512B SYP/C6513A MPS/CS6513A EA Commodore Mostek Commodore SYP/C6513B M PS/CS6513B EA2316B MPS2316 MK31000N-3 MCS2316 SYP/C6514A MPS/CS6514A EA2332 MPS2332 MK31000P-3 MPS2316 SYP/C6514B M PS/CS6514B MK36000P-5 MPS2364 SYP/C6515A M PS/CS6515A MK36000N-5 MCS2364 SYP/C6515B M PS/CS6515B G.I. Commodore SYP6520 MPS6520 RO-3-9316B MPS2316 SYP6520A MPS6520A RO-3-9332B MPS2332 SYC6520 MCS6520 MICROPROCESSORS SYC6520A MCS6520A Intel Commodore Synertek Commodore SYP6522 MPS6522 P2316B MPS2316 SYP=Plastic M PS=Plastic SYP6522A MPS6522A C2316B MCS2316 SYC=Ceramic MCS=Ceramic SYC6522 MCS6522 P2332 MPS2332 SYP/C6502 MPS/CS6502 SYC6522A MCS6522A C2332 MCS2332 SYP/C6503 MPS/CS6503 SYP6530 MPS6530 SYP/C6504 MPS/CS6504 SYC6530 MCS6530 SYC/C6505 MPS/CS6505 SYP6532 MPS6532 Motorola Commodore MPS/CS6506 SYP/C6506 SYP6532A MPS6532A MCM68316B MPS2316 SYP/C6507 MPS/CS6507 SYC6532 MCS6532 MCM68332 MPS2332 MPS/CS6512 SYP/C6512 SYC6532A MCS6532A SYP/C6513 MPS/CS6513 SYP6545-1 MPS6545-1 National Commodore SYP/C6514 MPS/CS6514 SYC6545-1 MCS6545-1 MM2316B MPS2316 SYP/C6515 MPS/CS6515 SYP6551 MPS6551 MM52132 MPS2332 SYC6551 MCS6551 A=2MHz A=2MHz MM52164 MPS2364 B=3MHz Rockwell Commodore B=3MHz SYP/C6502A M PS/CS6502A R6502P MPS6502 NEC Commodore SYP/C6502B MPS/CS6502B R6502AP MPS6502A UPD2316B MPS2316 SYP/C6503A M PS/CS6503A R6502C MCS6502 UPD2332 MPS2332 SYP/C6503B M PS/CS6503 B R6502AC MCS6502A UPD2364 MPS2364 SYP/C6504A M PS/CS6504A R6503P MPS6503 1-6 MICROPROCESSORS (CO NT.) Rockwell Commodore Rockwell Commodore Part No. Replacement Part Part No. Replacement Part R6503AP MPS6503A R6515AC MCS6515A R6503AC MCS6503A R6520P MPS6520 R6504P MPS6504 R6520AP MPS6520A R6504AP MPS6504A R6520C MCS6520 R6504C MCS6504 R6520AC MCS6520A R6504AC MCS6504A R6522P MPS6522 R6505P MPS6505 R6522AP MPS6522A R6505AP MPS6505A R6522C MCS6522 R6505C MCS6505 R6522AC MCS6522A R6505AC MCS6505A R6530P MPS6530 R6506P MPS6506 R6530C MCS6530 R6506AP MPS6506A R6532P MPS6532 R6506C MCS6506 R6532AP MPS6532A R6506AC MCS6506A R6532C MCS6532 R6507P MPS6507 R6532AC MCS6532A R6507AP MPS6507A R6500/IP MPS6500/1 R6507C MCS6507 R6500/IAP MPS6500/IA R6507AC MCS6507A R6500/IC MCS6500/1 R6512P MPS6512 R6500/IAC MCS6500/IA R6512AP MPS6512A R6545-IP MPS6545-1 R6512C MCS6512 R6545-IC MCS6545-1 R6512AC MCS6512A R6551P MPS6551 R6513P MPS6513 R6551C MCS6551 R6513AP MPS6513A R6513C MCS6513 Motorola Commodore R6513AC MCS6513A MC6820 MPS6520 R6514P MPS6514 MC6821 MPS6520 R6514AP MPS6514A MC68B21 MPS6520A R6514C MCS6514 MC6845 MPS6545-1 R6514AC MCS6514A R6515P MPS6515 AMI Commodore R6515AP MPS6515A S6821 MPS6520 R6515C MCS6515 S68B21 MPS6520A 1-7 NMOS ©(Q)ffiffi(Q)©J@~ ©(Q)ffiffi@©J@~ ©(Q)ffiffi@©J@~ ©(Q)Mffi(Q)©J@~ ©(Q)ffiffi(Q)©J@~ ©(Q)Mffi(Q)©J@~ ©(Q)ffiffi(Q)©J(Q)~ ©(Q)ffiffi@©J@~ ©(Q)ffiffi(Q)©J@~ ©(Q)ffiffi(Q)©J@~ ©(Q)ffiffi(Q)©J(Q)~ ©(Q)ffiffi@©J@~ ©(Q)ffiffi(Q)©J@~ ©(Q)ffiffi(Q)©J@(f@ commodore semiconductor group 2-1 , . . commodore MPS ~ aarnlconduCl:ar group 6500/1 ~UYAJ@~ ONE-CHIP MICROCOMPUTER 8500/1 ONE-CHIP MICROCOMPUTER INTRODucnoN The MOS Technology 6500/1 Is a complete, high-performance 8-blt NMOS microcomputer on a single chip, and Is totally upward/downward software compatible with all members of the 6500 family. The 650011 consists of a 6502 CPU, an Internal clock oscillator, 2048 bytes of Read Only Memory (ROM), 64 bytes of Random Access Memory (RAM) and flexible Interface circuitry. The· interface circuitry includes a 18-blt programmable counter/latch with four operating modes, 32 bidirectional Input/output lines (Including two edge- sensitive lines), five Interrupts and a counter I/O line. PRODUCT SUPPORT FEATURES To allow prototype clrCl~lt development, Mos Tech- • 6502 CPU nology offers a PROM compatible 64-pln Emulator de- -Software upward/downward compatibility vice. This device provides all 650011 Interface lines -Decimal or binary arithmetic modes plus routing the address bus, data bus, and asso- -13 addressing modes ciated control lines off the chip to be connected to -True direct and indirect indexing external memory. -Memory addressable 110 ORDERING INFORMATION • 2048 x 8 mask programmable ROM Order Package Frequency Temperature Number Type Option Range • 64 x 8 static RAM MPS65OOI1 Plastic 1 MHz O°C to 70°C • 32 bi PAO-PA7 • 4 MHz max crystal or clock external frequency Rgj • 2 MHz or 1 MHz internal clock vee ¢a~ P8(H2B7 • 1 /Ls minimum instruction execution vss • N-channel, silicon gate, depletion load technology VRR ¢a ~ pc()'PC7 • Single + 5V power supply • 500 mW operating power ¢a::> POOPD7 • Separate power pin for RAM • 40 pin DIP CNTR • 64 pin PROM compatible Emulator device Interface Diagram 2-2 MPS 6500/1 FUNCTIONAL DESCRIPTION ,, '~.,'" I ITS lNJV/ /B/O/I Z C CENTRAL PROCESSING UNIT (CPU) Clock OIcIllator = Carry Set l:= 1 0= Carry CI •• r The Clock Oscillator provides the basic timing ZERO (Z)(1) Signals used by the 6500/1 CPU. The reference fre- 1 = Zero Result quency Is provided by an external source, and can be o = Non-Zero Result from a crystal, clock or RC network Input. The RC net· INTERRUPT DISABLE (1) (2) work mode Is a mask option. The external frequency 1 = IRQ Interrupt Disabled o = IRQ Interrupt Enabled can vary from 200 kHz to 4 MHz. The Internal Phase 2 (02) frequency Is one-half the external reference fre- DECIMAL MODE (D) (1) quency. A 4.7K ohm resistor will provide nominal 2 1 = Decimal Mode o = Binary Mode MHz oscillation and 1 MHz Internal operation In the RC mask option (±35%). BREAK COMMAND (B) (1) , = Break Command o = Not Break Command TIming Control OVERFLOW (0) (1) 1 = Overflow set The Timing Control Logic keeps track of the Q = Overflow Clear specific Instructlo:1 cycle being executed. Each data NEGATIVE (N) (1) transfer which takes place between the registers Is NOTES: 1 = Negative Value caused by decoding the contents of both the Instruc· (1) Not initialized by RES o = Positive Value tlon Register and Timing Control Logic. (2) Set to Logic 1 byREs Program Counter Processor Status Register The 16-blt Program Counter provides the addresses which step the CPU through sequential Instructions In a program. The Program Counter Is Incremented each time an instruction or data Is fetched from Processor Status Register memory. The 8-blt Processor Status Register contains seven Instruction Register and Decode status flags. Some of the flags are controlled by the program, others may be controlled both by the pro- Instructions fetched from memory are gated onto gram and the CPU. The 6500 Instruction set contains the Internal Data Bus. These Instructions are iatched a number of conditional branch Instructions which Into the Instruction Register then decoded, along with are designed to allow testing of these flags. timing and Interrupt Signals, to generate controi Signals for the various registers. Interrupt Logic ArIthmetic and Logic Unit (ALU) Interrue!..!9glc controls the sE!Cluenclng of three In· terrupts; RES, ~ and !'RO. iRQ Is generated by any All arithmetic and logic operations take place In the one of three conditions: Counter Overflow, PAO ALU, including incrementing and decrementing Inter· Positive Edge Detected, and PA 1 Negative Edge De- nal registers (except the Program Counter). tected. Accumulator MEMORY The accumulator Is a general purpose 8-blt register 2048 x 8 ROM that stores the results of most arithmetic and logic operations. In addition, the accumulator usually con· The 2048 byte Read-Only Memory (ROM) contains talns one of the two data words used In these opera· the program instructions and other fixed constants. tlons. These program Instructions and constants are mask programmed Into the ROM during fabrication of the Index Registers 6500/1 device. The 650011 ROM is memory mapped from 800 to FFF. There are two 8-blt Index registers, X and Y. These registers can be used for general purpose storage, or as a displacement to modify the base address and 64 x 8 RAM thus obtain a new effective address. Pre· or post· The 64 byte Random Access Memory (RAM) Is used indexing of Indirect addresses is possible. for read/write memory during system operation, and contains the stack. This RAM is completely static in Stack Pointer operation and requires no clock or dynamic refresh. A standby power pin, VRR, allows RAM memory to be The Stack Pointer is an 8-blt register. it Is automat· maintained on 10% of the operating power In the ically incremented and decremented under control of event that VCC power Is lost. the CPU to perform stack manlpuiatlon under d~· tlon of either the program or interrupts NMI and IRQ. In order to take advantage of efficient zero page ad· The stack allows simple Implementation of nested dressing capabilities, the RAM is assigned memory subroutines and multiple level interrupts. addresses 0 to 03F. 2-3 MPS 8500/1 INPUTIOUTPUT EDGE DETECT CAPABILITY BIdirectional 110 Port, There Is an asynchronous edge detect capability on two of the Port A 110 lines. This capability exists in ad- The 650011 provides four 8-blt Input/output ports dition to and Independently from the normal Port A (PA, PB, PC, and PO). Associated with the 110 ports I/O functions. The maximum rate at whiCh an edge are four 8-blt registers located on page zero. See the can be detected Is one-half the 02 clock rate. The system memory map for specific addresses. Each 110 edge detect logic Is contlriuously active. Each edge line Is Individually selectable as an Input or an output detect signal Is associated with a maskable Interrupt. without line grouping or port association restrictions. An Internal active transistor drives each 110 line to PAO PosHIve Edge Detection the low state. An Internal passive resistance pulls the I/O lines to the high state, eliminating the need for ex- A positive (rising) edge Is detectable on .PAO. When ternal pull-up resistors. this edge Is detected, the PAO Positive Edge Detected An option Is available to delete the Internal pull-up bit-Bit 61n the Control Register-Is set to Logic 1. resistance on 8-blt port groups or on the CNTR line at When both this bit and the PAO Interrupt Enable mask time. This option Is employed to permanently Bit-Bit 3 of the Control Register-are sefto Logic 1, assign an 8-blt port group to Input functions, to Inter- an IRQ Interrupt request Is generated. The PAO face with CMOS drivers, or to Interface with external Positive Edge Detected bit Is cleared by writing to ad- pull-up devices. dress 089. Inputs PA1 Negltlve Edge Detection Inputs are enabled by setting the appropriate bit of A negative (failing) edge is detectable on PAl. the 110 port to the high state (Logic 1). A low Input When this edge Is detected, the PA1 Neg~tlve Edge signal causes a logic 0 to be read. A high Input signal Detected bit-Bit 5 of the Control Register-Is set to causes a logic 1 to be read. RES loads Logic 1 Into the Logic 1. When both this bit and the PAl Interrupt 110 ports, thereby Initializing all 110 lines as Inputs. Enable bit-1m...2 of the Control Register-are set to LogiC 1, an IRQ Interrupt request Is generated. The Outputs PA 1 Negative Edge Detected bit Is cleared by writing to address OSA. Outputs are set by loading the desired bit pattern into the corresponding 110 ports. A Logic 1 selects a COUNTERILATCH high output; a Logic 0 selects a low output. The Counter/Latch consists of a l6-blt decrement- CONTROL REGISTER Ing Counter and a 16-blt Latch. The Counter Is com- prised of two 8-bit registers. Address 086 contains the The Control Register (CR) controls four Counter Upper Count (UC) and address OS7 contains the Lower operating modes and three maskable Interrupts. It Count (LC). The Counter counts either 02 clock also reports the status of three Interrupt conditions. periods or occurrences of an external event, depend- There are five control bits and three status bits. The Ing on the selected counter mode. The UC and LC can control bits are set to Logic 1 or cleared to Logic 0 by be read at any time without affecting counter opera- writing the desired state Into the respective bit posi- tion. tions. The Control Register Is cleared to Logic 0 by the The Latch contains the Counter preset value. The occurrence of RES. Latch consists of two 6-blt registers. Address 084 con- tains the Upper Latch (UL) and address 085 contains the lower latch (LL). The 16-blt Latch can hold a count from 0 to 65,535. The Latch can be accessed as two wrlte-only memory locations. 7 6 5 4 3 2 1 0 The Latch registers can be loaded at any time by ~~~~~~rCl'~[ ~O[lE[~ll-'E-ICL~~ COUNTER MODE CONTROl (CMC1' CMCO! storing Into UL and LL. The UL can also be loaded by writing Into address 086. 00 = Inlernal Timer The Counter can be preset at any time by writing to 01 = FtulseGeneralor 10= Even! Counter 1 1 11: Pulse Width Measurement address 086. Presetting the Counter In this manner .. _. ----~. - PAllNTEAAUPT ENABLE (AilE) causes the contents of the accumulator to' be stored I = Enabla PAllnlerrupl Into the UL before the l6-blt value In the Latch (UL and 0= Olsable PAlln18uupi --_ .... - - - PAC INTERRUPT ENABLE (AOIEI LL) Is transferred In the Counter (UC and LC). 1= Enable PAO Inlllrrupi 0= Disable PAO Inlertupl The Counter Is preset to the Latch value when the - -- -- COUNTER INTERRUPT ENABLE (CIE) 1 ::I Enable Counler Interrupt Counter overflows. When the counter decrements 0= Ol5sbieCounier Inlerrupl - - - -- PAl NEGATIVE EDGE DETECTED (A1EDI from 0000, Counter overflow occurs causing the next 1 = PA 1 Negalive Edge DelltCled counter value to be the Latch value, not FFFF. o = PA 1 Negali\18 Edge Not Oelecled PAC POSITIVE EDGE DETECTED (AOEDI 1 = PAO PoSItive Edge Detected When the Counter overflOWS, Counter Overflow o = PAO Positive Edge Nol Delecled bit-Bit 7 of the Control Register-Is set to Logic 1. -- - - COUNTER OVERFlOW (CTRO) 1 = Counl8f Overflow Occurred When both this bit and the Counter Interrupt Enable o = No Counler Overflow bit-Bit 4 of the Control Register-are set, an Min- terrupt request is generated. The Counter Overflow bit In the Control Register can be examined In an IRQ in- terrupt service routine to determine that the IRQ was Control Register generated by Counter overflow. 2-4 MPS 6500/1 The Counter Overflow bit Is cleared when the LC is CNTR are forced to the high (Logic 1) state. All bits of rElad or Counter preset is performed by writing Into ad- the Control Register are reset to Logic 0, causing the dress 088. Interval Timer Mode (Mode 0) to be selected and all in- terrupt enabled bits to be cleared. Neither the Latch COUNTER MODES nor the Counter registers are Initialized by RES. The Interrupt Disable bit In the CPU Processor Status The Counter operates In any of four modes. These Register Is set and the program starts execution at modes are selected by the Counter Mode Control bits the address contained in the Reset Vector location. In the Control Register. TEST LOGIC Mode CMC 1 CMCO Interval Timer ---0- -0- Special test logiC provides a method for thorou.9!!!Y Pulse Generator o 1 testing the 6500/1. Applying a + 10V signal to the RES Event Counter 1 o line places the 6500/1 in the test mode. While In this Pulse Width Measurement 1 1 mode, all memory fetches are made from Port PC. Ex- ternal test equipment can use this feature to test In- The Interval Timer, Pulse Generator, and Pulse ternal CPU logic and 110. A program can be loaded in- Width Measurement Modes are 02 clock counter to RAM allowing the contents of the instruction ROM modes. The Event Counter Mode counts the occur- to be dumped to any port for external verification. rences of an external event on the CNTR line. All 6500/1 microcomputers are tested by MOS Technology using this feature. Interval Timer (Mode 0) MEMORY ADDRESSABLE 1/0 In this mode the Counter is free running and decre- ments at the 02 clock rate. Counter overflow sets the The 110 ports, registers, and commands are treated Control Register status bit and causes the Counter to as memory and are assigned specific addresses. See be preset to the Latch value. the system memory map for the addresses. This 110 The CNTR line Is held in the high state. technique allows the full set of CPU instructions to be used In the generation and sampling of 110 com- Pulse Generator (Mode 1) mands and data. When an instruction is executed with an 110 address and appropriate RNV state, the In this mode the Counter is free running and decre- corresponding 110 function is performed. ments at the 02 clock rate. Counter overflow sets the Control Register status bit and causes the Counter to SYSTEM MEMORY MAP be preset to the Latch value. The CNTR line toggles from one state to the other HEX when Counter overflow occurs. Writing to address 088 IRQ Vector High FFF will also toggle the CNTR line. IRQ Vector Low FFE A symmetric or asymmetlc output waveform can RES Vector High FFO be generated on the CNTR line in this mode. A one- RES Vector Low FFC ROM shot waveform can easily be generated by changing NMI Vector High FFB from Mode 1 to Mode 0 after only one occurrence of NMI Vector Low FFA the output toggle condition. FF9 User Program Event Counter (Mode 2) 800 Unassigned < In this mode the CNTR line is used as an event In- » Control Register 08F put line. The Counter decrements each time a rising 08E edge Is detected on CNTR. The maximum rate at Unassigned which this edge can be detected Is one-half the 02 08B clock rate. Counter overflow sets the Control Register Clear PA 1 Neg Edge Detected (1) 08A status bit and causes the Counter to be preset tb the Clear PAO Pos Edge Detected (1) 089 Latch value. Upper Latch and Transfer Latch to Counter (2) 088 Pulse Width Measurement (Mode 3) InputlOutput Lower Count (2) 087 l!!>Per Count 086 This mode allows the accurate measurement of the Lower Latch 085 duration of a low state on the CNTR line. The Counter Upper Latch 084 decrements at the 02 clock rate as long as the CNTR PORTO 083 line Is held In the low state. The Counter Is stopped PORTC 082 when CNTR Is In the high state. If the CNTR pin Is left PORTB 081 disconnected, this mode may be selected to stop the PORTA 080 Counter since the Internal pull-up device will cause < Unassigned the CNTR Input to be In the high state. RESET CONSIDERATIONS User RAM :} RAM The occurrence of RES gOing from low to high Notel: causes Initialization of various conditions In the (1) I/O command only; I.e., no stored data. 6500/1. All of the 110 ports (PA, PB, PC, and PO) and (2) Clears Counter Overflow-Bit 7 in Control Register. 2-5 MPS 6500/1 INSTRUCTION SET -ALPHABETIC SEQUENCE ADC Add Memory to Accumulator with Carry LOA Load Accumulator with Memory AND "AND" Memory with Accumulator LOX Load Index X with Memory ASL Shift Left One Bit (Memory or Accumulator) LOY Load Index Y with Memory LSR Shift One Bit Right (Memory or Accumulator) BCC Branch on Carry Clear BCS Branch on Carry Set NOP No operation BEO Branch on Result Zero ORA "OR" Memory with Accumulator BIT Test Bits in Memory with Accumulator BMI Branch on Result Minus PHA Push Accumulator on Stack BNE Branch on Result not Zero PHP Push Processor Status on Stack BPL Branch on Result Plus PLA Pull Accumulator from Stack BRK Force Break PLP Pull Processor Status from Stack BVC Branch on Overflow Clear ROL Rotate One Bit Left (Memory or Accumulator) BVS Branch on Overflow Set ROR Rotate One Bit Right (Memory or CLC Clear Carry Flag Accumulator) CLD Clear Decimal Mode RTI Return from Interrupt CLI Clear Interrupt Disable Bit RTS Return from Subroutine CLV Clear Overflow Flag SBC Subtract Memory from Accumulator with CMP Compare Memory and Accumulator Borrow CPX Compare Memory and Index X SEC Set Carry Flag CPY Compare Memory and Index Y SED Set Decimal Mode Decrement Memory by One SEI Set Interrupt Disable Status DEC Decrement Index X by One STA Store Accumulator in Memory DEX Decrement Index Y by One STX Store Index X in Memory DEY STY Store Index Y in Memory EOR "Exclusive-or" Memory with Accumulator TAX Transfer Accumulator to Index X INC Increment Memory by One TAY Transfer Accumulator to Index Y INX Increment Index X by One TSX Transfer Stack Pointer to Index X INY Increment Index Y by One TXA Transfer Index X to Accumulator JMP Jump to New Location TXS Transfer Index X to Stack Register JSR Jump to New Location Saving Return Address TYA Transfer Index Y to Accumulator 6500/1 Block Diagram 2-6 MPS 6500/1 SIGNAL DESCRIPTIONS SIGNAL PIN SIGNAL PIN NAME NO. DESCRIPTION NAME NO. DESCRIPTION VCC 30 Main power supply + 5V 'fimT 40 A negative going edge on the Non- VRR Separate power pin for RAM. In the Maskable Interrupt signal requests event that VCC power Is lost, this that a nO[l;,maskable Interrupt be power retains RAM data. generated within the CPU. VSS 12 Signal ground PAO-PA7 38-31 Four 8 bit ports used for either PBO-PB7 29-22 input/output. Each line consists XTLI 10 Crystal, clock or RC network Input PCO-PC7 20-13 of an active transistor to VSS and for Internal clock oscillator. a passive pull-up to + 5V. The two XTLO 11 Crystal or RC network output from PDO-PD7 9-2 lower bits of the PA port (PAO and Internal clock oscillator. PA1) also serve as edge detect In- m 39 The Reset Input Is used to Initialize the 6500/1. This signal must not CNTR puts with maskable Interrupts. 21 This line Is used as a Counter In- transition from low to high for at put/output line. CNTR Is an Input In least eight cycles after VCC the Event Counter and Pulse Width reaches operating range and the In- Measurement modes and Is an out· ternal oscillator has stabilized. put In the Interval Timer and Pulse Generator modes. + 10V Input enables the test mode. VRR 1 NMI P07 2 RES PD6 3 PAO P05 4 37 PA1 P04 5 36 PA2 P03 6 35 PA3 P02 7 34 PA4 P01 8 33 PA5 POO 9 32 PA6 XTU 10 31 PA7 XTLO 11 30 VCC VSS 12 29 PBO PC7 13 28 PB1 PCS 14 27 PB2 PC5 15 26 PB3 PC4 16 25 PB4 PC3 17 24 PB5 PC2 18 23 PB6 PC1 19 22 PB7 PCO 20 21 CNTR Pin Configuration 2-7 MPS 6500/1 ADDRESSING MODES ACCUMULATOR ADDRESSING-This form of ad- IMPLIED ADDRESSING-In the Impll~ address- dressing Is represented with a one byte Instruction, Ing mode, the address containing the operand Is Im- Implying an operation on the accumulator_ plicitly stated In the operation code of the Instruction. IMMEDIATE ADDRESSING-In Immediate ad- RELATIVE ADDRESSING-Relative addressing Is dressing, the operand Is contained In the second byte used only with branch Instructions and establishes a of the Instruction, with no further memory addressing destination for the conditional branch. required_ The second byte of the Instruction becomes the operand which Is an "Offset" added to the. contents of ABSOLUTE ADDRESSING-In absolute address- the lower eight bits of the program counter when the Ing, the second byte of the Instruction speCifies the counter Is set at the next Instruction. The range of the eight low order bits of the effective address while the offset Is -128 to + 127 bytes from the next Instruc- third byte specifies the eight high order bits_ tion. INDEXED INDIRECT ADDRESSING-In Indexed In- ZERO PAGE ADDRESSING-The zero page In- direct addressing (referred to as [Indirect, X)), the se- structions allow for shorter code and execution times cond byte of the Instruction Is added to the contents by only fetching the second byte of the Instruction of the X Index register, discarding the carry. The result and assuming a zero high address byte. Careful use of this addition points to a memory location on page of the zero page can result In significant Increase In zero whose contents Is the low order eight bits of the code efficiency. effective address. The next memory location In page zero contains the high order eight bits of the effective INDEXED ZERO PAGE ADDRESSING-(X, Y index- address. Both memory locations specifying the high Ing)-This form of addressing Is used In conjunction and low order bytes of the effective address. must be with the Index register and Is referred to as "Zero In page zero. Page, X" or "Zero Page, Y." The effective address Is calculated by adding the second byte to the contents INDIRECT INDEXED ADDRESSING-In indirect of the Index register. Since this Is a form of "Zero indexed' addreSSing (referred to as [Indirect, Y]), Page" addressing, the content of the second byte the second byte of the instruction pOints to a references a location In page zero. Additionally due to memory location in page zero. The contents of this the "Zero Page" addressing nature of this mode, no memory location are added to the contents of the carry Is added to the high order 8 bits of memory and Y index register, the result being the low order crOSSing of page boundaries does not occur. eight bits of the effective address. The carry from this addition is added to the contents of the next page zero memory location, the result being the INDEXED ABSOLUTE ADDRESSING-(X, Y index- high order eight bits of the effective address. Ing)-This form of addressing Is used In conjunction with X and Y Index register and Is referred to as "Ab- ABSOLUTE INDIRECT-The second byte of the solute, X", and "Absolute, Y." The effective address is instruction contains the low order eight bits of a formed by adding the contents of X or Y to the ad- memory location. The high order eight bits of that dress contained In the second and third bytes of the memory location are contained in the third byte of Instruction. This mode allows the Index register to the instruction. The contents of the fully specified contain the Index or count value and the Instruction to memory location are the low order byte of the contain the base address. This type of indexing effective address. The next memory location con- allows any location referencing and the index to tains the high order byte of the effective address modify multiple fields resulting In reduced coding and which Is loaded Into the sixteen bits of the pro- execution time. gram counter. 2-8 MPS 6500/1 INSTRUCTION SET INSTRUCTION SET - OP CODES, Execution Time, Memory Requirements AD C A . M' C - A 1.1111 119 2 2 110. 3 IS J 2 111 II 2 11 S 2 1S. 2 10. 3 19 • AND AI\M-A 1It:lt2 220.321>32 21 II 2 31 S 2 3S. 2 3D. 3 311 • AS L C ... ~ ... I 'E II 3 II S 2 itA 2 1 . III II 2 IE 1 3 • CC .AAHeH ON C-I 121 II 2 2 I C5 IA"HeH ON C·' 12/ .. 2 2 - .:-=. I EQ IAANCH ON Z" 121 F, 2 2 II T AI\M M, I - - u. I MI IRANCH ON N" 121 ]I 2 2 IN E IAANCH ON Z'I 121 Dt 2 2 I PL IAANCH ON N-I 121 II 2 2 • R II IS- F,. 11 II 71 I VC I \I S CLC CL 0 CL1 IRANCH ON V" IRANCH ON V" I-C 1-0 1-1 121 12/ 18 2 082 sa 2 1 1 1 !it 2 7' 2 1-- , f-" - -- ... -- - - -- CLV I-V 18 2 1 -- I CMP A-I\/I 11 CII 2 2 CO. 3 CS 3 CI II 2 01 S 2 OS. 2 00" 3 09. 3 C P II x.... E. 2 2 EC. J U J , I I CPY V-M C' 2 2 CC. 3 C. J I I I oEC M-l - M CE II 3 C6 S 06 II 2 DE 7 J J , o E II DEY II-I - I( V-I-V CA 2 88 2 1 1 "I - J , -- E0 R A ... M - A lit "II 2 2 "0" 3 .5 3 2 ., 6 2 SI S 2 5S. 2 SO" 3 S9" 3 INC M• 1- M EE 6 3 E6 S 2 Fa 6 2 FE 7 J IN II II "-11 E8 2 1 I J INV Y"-V ca 2 1 J 101 P JUMP TO NEW LOC .C 3 J 6C 5 3 J5A IS- F ... 21 Jl.JMP SUI 21 6 J LOA M-A 11 I A9 2 2 AI). 3 A5 3 2 AI 6 2 II 5 2 8S ". 2 BO. 3 .9 " 3 .... , I ....' • .... MU,," _, I ....... ' LOll 101 - II 11 I A2 2 2 AE. 3 AI 3 2 IE" 3 II 4 2 " • LOY M-Y ClIA.2 2AC" 3A.3 2 .... 28C. 3 •• - LS R ..... ~ C U I 3 '" 5 2 "A 2 1 5& I 2 IE 7 3 • • " N0 P NO orEAA TION EA 2 1 ORA AVM-A 19 2 2 . 0 . 3 H 3 2 " a 2 11 " 2 15" 2 1 0" 3 19. 3 5-1-5 '" 3 1 5-1-5 .. 3 I It. 1 ... PLA S'i-S Ms-A PLP 5"-5 Ms-P :It. I IAESTOREDI ROL II.oIIIi ~..m..,J 2E II 3 26 5 2 2A 2 1 .123£13 --- RORI~~~ .EI 3 l t s 26A2 1 111 II 2 7E 7 3 AT I IS-' .. 1l1lTRN INT. "'II I AESTOREDI RT5 IS- F .. 21 AT AN sua It II 1 SIC A .... ..c-A I1IE922EO"3E532 E1 a 2 F1 5 2 F5" 2 FD" 3 F9 " 3 • I 131 - - I SEC l-C 31 2 1 ~:;'::::'~+::"':::'~::"'-----+++-I~H+-++t-HI-+;=:f~~:t-+-1H-++++HHH-+++-IHH+++-1-H-t--_' --=----:-~-~--: STA A-M 10" 3 IS 3 2 II • 2 91 a 2 9S" 2 90 5 3 99 5 3 STX 11-101 8£" 3863 2 96. 2 STY V-M I C . 3 ... 32 ~ • 2 TA II A-II M2 TAY A-V 11.8 2 TSII S-I( 8A 2 1 T II A II - A 811. 2 1 TIIS II-S 911. 2 1 TVA V-A 911 2 1 111 ADD 1 TO .,.. .. IF PAGE BOUNDAAY IS CROSSED I( INDEX X • ADD .. OT MODI' IE D 121 ADt; 1 TO "N" IF IRANCH OCCURS TO SAME PAGE Y INDEx Y SUITRACT M MEMOR, 8,T 7 ADD 2 TO "N" IF IRANCH OCCURS TO DIFFERENT PAGE A ACCUMULATOR M MEMORY BIT 6 II A"'D 131 CAAAY NOT. IELOW M MEMORY PER EfFECTIVE ADORESS .... 0 CVCLES \lOR ,.1 I.F IN DECIMAL MODE Z FLAG IS INVALID ... MEMORV PER,STACK POINTER .., ("CLUSIVE OR NO BYTES ACCI,IIIIULATOR MUST If CHECKED FOR ZERO RESUl T MODIFIED Note: MOS Technology cannot assume liability for the use of undefined OP Codes 2-9 MPS 6500/1 SPECIFICATIONS MlIXlmum Ratings Rating Symbol Value Un" Supply.Voltage VCC -0:3 to +7.0 Vdc Input Voltage Vln -0.3 to +7.0 Vdc Operating Temperature Range TA o to +70 ·C Storage Temperature Range Tstg -55 to + 150 ·C This device contains circuitry to protect the Inputs against damage due to high static voltages, however, It Is ad· vised that· normal precautions be taken to avoid application of any voltage higher than maximum rated voltages to this circuit. Static D.C. Characteristics (VCC = 5V ± 5%, TA = 0 0 -70 0 C) Characteristic Symbol Min Typ Max Unit Power Dissipation (Outputs High) Po - 500 - mW RAM Standby Voltage (Retention Mode) VRR 3.5 - VCC Vdc RAM Standby Current (Retention Mode) IRR - 10 - mAdc Input High Voltage (Normal Operating Levels) VIH +2.0 - VCC Vdc Input Low Voltage (Normal Operating Levels) VIL -0.3 - +0.8 Vdc lilput Leakage Current Vln = 0 to 5.0 Vdc liN - ±1.0 ±2.5 ~dc RES, NMI - ± 1.0 - ~dc Input High Voltage (XTLI) VIHXT +4.0 - VCC Vdc Input Low Voltage (XTLI) VILXT -0.3 - +0.8 Vdc Input Low Current (VIL = 0.4 Vdc) IlL - -1.0 -1.6 mAdc Output High Voltage (VCC = min, ILoad = -100 ~dc) VOH -2.4 - - Vdc Output High Voltage VCMOS VCC-30% - - Vdc (VCr = min) Outpu Low Voltage (VCC = min, ILoad = 1.6 mAde) VOL - - +0.4 Vdc Output High Current (Sourcing) (VOH = 2.4 Vdc) IOH -100 - - ~dc Output Low Current (Sinking) (VOL = 0.4 Vdc) IOL 1.6 - - mAdc Input CapaCitance (Vln- 0, Tte =25°C, f = 1.0 MHz) PA, , PC, PO, CNTR Cln - - 10 pF XTLI, XTLO - - 50 pF Output CapaCitance (Vln- 0, TA = 25°C, f = 1.0 MHz) Cout - - 10 pF I/O Port Resistance RL 3.0 6.0 11.5 KO PAo-PA7, PBO-PB7, PCo-PC7, PDQ-PD7, CNTR NOTE: Negative sign Indicates outward current flow, positive Indicates Inward flow. 2-10 MPS 6500/1 AC Characteristics NCC 5V±5%, TA 1 MHz 2MHz Parameter Symbol Min Max Min Max Unit XTLI Input Clock Cycle Time Tcyc 0.500 5.0 0.250 5.0 /Lsec Internal Write to Peripheral Data Valid (TTL) TpDW 1.0 - 0.5 - JLSec Internal Write to Peripheral Data Valid (CMOS) TCMOS 2.0 - 1.0 - /Lsec Peripheral Data Setup Time TPDSU 400 - 200 - nsec Count and Edge Detect Pulse Width TpW 1.0 - 0.5 - /Lsec TIMING CHARACTERISTICS 1/0 PORT OUTPUT TIMING 02 ~ I I ~---TCMOS '-----....It-___ TpDW PA. PB. PC. PO OUTPUT 1/0 PORT INPUT TIMING L---jl- R/W _ _ _ -f=T70s~- 2.0V PA, PB. PC. PO INPUT -------------------------~ PAO AND PAt EDGE DETECT TIMING ---------- o.av 02 =>til T P D S u - - t 1L...-_ . . . . . . . J 1 PAOorPA1 20V !a v ~020aVv _ • ~--.----------~T~PW- --------------------------- iRlS will stay low until serviced. EVENT COUNTER TlMtNG 02.--1 ILL- 20V~ PDSU CNTR_{20: . :-i o.av I /o.av t - - - - - - T p w - - - - -••-I- ~ TPW:::::.:j 2-11 MPS 8500/1 PROGRAMMING INSTRUCTIONS FOR MOS TECHNOLOGY 650011 MOS Technology utilizes computer aided techniques to manufacture and test custom bit patterns. New custom bit data and address Information is supplied on standard 80 column computer cards, 1 Inch wide paper tape, or standard 1/4 inch wide audio tape cassette, or 270812716 EPROMS. ROM Data will also be accepted In other for· mats. Consult MOS Technology for details. MOS TECHNOLOGY (6500) CARD FORMAT All addresses and related bit patterns must be completely defined. Each deck of cards consists of: 1) Four Title Cards, 2) Address and Memory Data Records. Positive logic is generally used on all Input cards: A logic "1" is the most positive or high level (True), and logic "0" is the most negative or low level (False). This includes chip select specifications as well as bit patterns. TITLE CARDS COLUMN INFORMATION FIRST CARD 1-4 MOS PART NUMBER (6500/1) 5-80 BLANK (FOR MOS TECHNOLOGY USE) SECOND CARD 1·20 CUSTOMER NAME 21·40 CUSTOMER PART NUMBER 41-60 CUSTOMER TECHNICAL CONTACT (PERSON) 61-80 CUSTOMER PHONE NUMBER THIRD CARD 1·20 DATA FORMAT (PUNCH "MOS") 21·40 LOGIC FORMAT (PUNCH "POSITIVE" OR "NEGATIVE) 41-60 VERIFICATION CODE (PUNCH "HOLD" IF CUSTOMER APPROVAL REO., PUNCH "OKAY" IF FINAL APPROVAL NOT REO.) 61·80 BLANK (FOR MOS TECHNOLOGY USE) FOURTH CARD 1-6 PULLUP SELECT CARD (PUNCH "PULLUP") 7 PULLUP OPTION FOR I/O PORT A: 1 PULLUP 8 PULLUP OPTION FOR 110 PORT B;1 = PULLUP 9 PULLUP OPTION FOR I/O PORT C;1 PULLUP = 10_____ PUL~~~J'21Q~ FOR I/O PORT 0;1 = PULLUP ____ A set of four (4) Title Cards should accompany each data deck. These cards provide our computer programs ad· ditional information necessary to accurately produce the ROM Data. These four Title Cards must contain the above information. MOS CARD DECK FORMAT Output data is punched on standard 80 column cards in ASCII Hollerith Code. Each byte of data to be stored is converted to two half bytes. The half bytes (whose possible values are 0 to FHEX) are translated into their ASCII equivalents and punched onto cards. Each record contains record length, memory address, and checksum infor· mation in addition to data. A column by column description of a data record follows. COLUMN ONE -Record Mark. Signals start of record. ASCII character" ; " (HEX 3B) COL. 2-3 -Record Length. Two ASCII characters representing a HEX number in the range 0 to 18HEX (0 to 24). This is the count of actual data bytes in the record. A record length of 0 indicates end of file. COL. 4- 7 -Load Address. Four ASCII characters. The starting address high and starting address low are the left and right bytes respectively. The first data byte is stored in the memory location pOinted to by the load address, succeeding data bytes are loaded into ascending address. COL. 8-n -Data. Each 8 bit memory word is represented by two ASCII characters (0 to 9, A to F) to repre· sent a hexadecimal number (0 to 255). n = 8 + 2*(RECORD)_ 1 } { LENGTH COL. n + 1- n + 5 -Checksum. The sum of all 8 bit bytes in the record since the record mark ( ; ) in four ASCII characters (HEX). REMAINING -Not Used. Leave blank or use for comment or labels. COLUMNS SPECIAL LAST -As mentioned above, a record length of zero ("0") indicates an end of file. Following the reo CARD cord length on this terminal record should be a four character ASCII (HEX) count of all data records in deck. Following this is the usual checksum for this record. See the example under heading "MOS PAPER TAPE FORMAT." A set of four title cards should accompany each data deck. 2-12 MPS 6500/1 MOS PAPER TAPE FORMAT The paper tape which should be used Is 1 " wide paper tape using 7 or 8 bit ASCII code. Each byte of data to be stored Is converted to two half bytes. The half bytes (whose possible values are 0 to FHEX) are translated Into their ASCII equivalents and written onto paper tape In this form. Each record output begins with a semicolon (";") character (ASCII 3B) to mark the start of a valid record. The next byte transmitted (Range: 1 to 18HEX) Is the number of data bytes contained In the record. The record's star- ting address high (1 byte, 2 characters), starting address low (1 byte, 2 characters), and data (usually 24 bytes, 48 characters) follow. Each record Is terminated by the record's check-sum' (2 bytes, 4 characters), a carriage return I (ASCII 00), Line Feed (ASCII OA), and six "NULL" characters (ASCII 0). No other characters, such as rubouts, are allowed anywhere. The last record transmitted has zero data bytes (indicated by ;00). The starting address field is replaced ~y a four digit HEX number representing the total number of data records contained ill the transmission, followed by the records usual check-sum digits. An "XOFF" character ends the transmission. EXAMPLE: ;180000FFEEODCCBBAAOO99887766554433221122334455667788990AFC;OOOOO10001 All records must be punched in consecutive order and the data at each address must be completely and ex- pliCitly defined. All Invalid data will be Ignored and zeros substituted. Additional information as described In sec- tion entitled "TITLE CARDS" should be provided at transmission. Commodore Semiconductor Group reserves the right to make changes to any products herein to improve reliability, function or design. Commodore Semiconductor Group does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 2-13 If'A.commodore ~ aamicanduct;or group MPS ~~@® 6500 MICROPROCESSORS 6500 MICROPROCESSORS THE 8500 MICROPROCESSOR FAMILY CONCEPT - The 6500 Series Microprocessors represent the first totally software compatible microprocessor family. This family of products Includes a range of software compatible microprocessors which pro- vide a selection of addressable memory range, Interrupt input options and on-chlp clock oscillators and drivers. All of the microprocessors In the 6500 group are software compatible within the group and are bus compatible with the M6800 product offering. The family Includes six microprocessors with on-board clock osclliators and drivers and four microprocessors driven by external clocks. The on-chlp clock versions are aimed at high perfor- mance, low cost applications where single phase Inputs, crystal or RC Inputs provide the time base. The external clock versions are geared for the multi processor system applications where maximum timing control Is mandatory. All versions of the microprocessors are available in 1 MHZ, '2 MHz ("A" suffix on product numbers), and 3 MHz ("B" suffix on product numbers) maximum operating frequencies. FEATURES OF THE 8500 FAMILY • Single + 5 volt supply • 8 BIT Bi-directional Data Bus • N channel, silicon gate, depletion load • Addressable memory range of up to technology 65K bytes • Eight bit parallel processing • "Ready" input (for single cycle execution) • 56 Instructions • Direct memory access capability • Decimal and binary arithmetic • Bus compatible with M6800 • Thirteen addressing modes • Choice of external or on-board clocks • True Indexing capability • 1 MHz,2 MHz, and 3 MHz operation • Programmable stack pOinter • On-the-chip clock options • Variable length stack * External single clock input • Interrupt capability * RC time base input L • Non-maskable Interrupt * Crystal time base input • Use with any type or speed memory • Pipeline architecture MEMBERS OF THE e&OO MICROPROCESSOR (CPU) FAMILY ORDER NUMBER: Ml!S ~ Microprocessors with On-Chlp Clock Oscillator Model AdcIreuabie Memory R6502 65K Bytes R6503 4K Bytes R6504 8K Bytes R6505 4K Bytes FREQUENCY RANGE R6506 4K Bytes NO SUFFIX = 1 MHz R6507 8K Bytes A = 2 MHz Microprocessors with External Two Phase B = 3 MHz Clock Inputs - MODEL DESIGNATOR Model AdcIreuabIe Memory XX = 02,03, G4, ... 15 R6512 65K Bytes R6513 4K Bytes L--__ PACKAGE DESIGNATOR R6514 8K Bytes C = CERAMIC R6515 4K Bytes P = PLASTIC 2-14 MPS 6500 COMMENTS ON THE DATA SHEET The data sheet is constructed to review first the basic "Common Characterlstlcs"-those features which are common to the general family of microprocessors. Subsequent to a review of the family characteristics will be sections devoted to each member of the group with specific features of each. I COMMON CHARACTERISTICS _ REGISTER SECTION CONTROL SECTION ~ ......- - - - R D Y INSTRUCTION DECODE A7 ADDRESS IUS 0t flNI 1 0512,13,14,15 0zflNI j CLOCK INPlTT 1J 0502,J,4,5,0,7 00 (IN) 0tOlTT 0z0lTT L..-_--I~ RjW L -_ _ _ DBE 6S12 DI LEGEND ft - 8 lIT LINE _D4 DATA IUS _D5 I -lilT LINE D6 D7 J Note: 1. Clock Generator Is not Included on 6512,13,14,15 2. Addressing Capability and control options vary with each of the 6500 Products. 8500 Internal Architecture 2-15 MPS 6500 COMMON CHARACTERISTICS MAXIMUM RATINGS RATING I SYMBOL J VALUE I UNIT Thla device contalna Input protection SUPPLY VOLTAGE Vee -0.3 to +7.0 Vdc agalnat damage due to high atatlc voItagea or electric flelda; hOweVer, INPUT VOLTAGE Vln -0.3 to +7.0 Vdc precautlona ahould be taken to avoid ap- OPERATING TEMPERATURE o to +70 'C plication of voItagea higher than the TA maximum rating. STORAGE TEMPERATURE TSTG -55 to +150 'C ELECTRICAL CHARACTERISTICS (Vee = 5.0V :t 5%, VII - 0, TA == 00 to + 700 C) 0., ~ (In) applies to 6512,13, 14, 15; 0 0 (ln) applies to 6502,03,04,05,06 and 07 CHARACTERISTIC SYMBOL MIN. TYP. MAX. UNIT Input High Voltage Logle,0. (In) Vea + 2.4 - Vee Vdc 0"I2lt(ln) VIH Vee - 0.2 - Vee + tov Vdc Input High Voltage RES, NMI, ROY, ~, Data. 5.0. Vea + 2.0 - - Vdc Input Low Voltage Logle,0. (In) Vas - 0.3 - Vea + 0.4 Vdc 0"I2lt(ln) VIL Vea - 0.3 - Vas + 0.2 Vdc m, mlI, ROY, iRi5, Data, 5.0. - - Vas + 0.8 Vdc Input Leakage Current (Vln = 0 to 5.25V, Vee = 5.25V) Logic (Exel. RDY,S.O.) lin - - 2.5 pA 0"I2lt(ln) - - 100 pA 0·(ln) - - 10.0 pA Three State (Off State) Input Current (Vln = 0.4 to 2.4V, Vee = 5.25V) Data Lines ITSI - - 10 pA Output High Voltage (IOH = -100pAdc, Vee =4.75V) SYNC, Data, AO-A 15, RI'N VOH Vea + 2.4 - - Vdc Out Low VOltage (IOL = 1.8mAdc, Vee = 4.75V) SYNC, Data, AO-A15, RI'N VOL - - Vas + 0.4 Vdc Power Supply Current ICC - 70 160 mA Capacitance C pF (Vln = 0, TA = 25'C, f = 1MHz) , Logic Cln - - 10 Data - - 15 AO-A15,RI'N, 'SYNC Coot - - 12 00(ln) C0 0(ln) - - 15 0, C0, - 30 50 I2lt C0. - 50 80 2-16 MPS 6500 COMMON CHARACTERISTICS Clock Tlmlng- 8S02, 03, 04, 05, 08, 07 Clock Tlmlng- 8512, 13, 14, 16 -+j r TF00 l r-- ~_ _ _ _ _ _ _~/-1.5Y --\"...;:,.4.:.,Y_ __ TR00 2.4Y 14=-- PVYH00l .. I.. PVYH00H-J 0., r- l.SY (OUTl;.;..;.;_ _ _, I...-PVYH0, =\.,"---_---J/ ----l - AIW ADDRESS FROM MPU AIW DATA ADDRESS FROM FROM MEMORY MPU DATA S.O. FROM MEMORY ROY 5.0. SYNC ROY I SYNC Timing for Reading Data from Memory or Peripherals I I I I I AIW Timing for Reading Data from Memory or Peripherals I I I I ADDRESS AIW FROM MPU DATA 2.0 Y' l_--+--- - 0.2VI TF,TR - - 25 15 -- Iii lie DeI8y Time ~ Clockl ~.tO.2VI TO 0 - - 0 READIWRfTE TIMING (LOAD • ITTL) CHARACTERISTIC SYMBOl. MIN. TYP. MAX. MIN. TYP. MAX. MIN. TYP. MAX. UNITS AIecWirI1a a.tup nme from MOO TAWS - 100 300 100 150 eo 110 AdcIr.a a.tup TI .... from MOO TADS - 100 300 100 150 eo 125 ". Memory ANd AcoIN n .... TACC - - 575 300 170 ". Data StabI"ty nme "-locI TD8U 100 - - 50 50 ". Data Hold nme-ANd THR 10 - - 10 10 ". Data Hold n .... -Wrlt. THW 30 eo - 30 eo 10 ". Data a.tup TI .... from MOO TMDS - 150 200 75 100 70 100 nI S.D. a.tup nme TS.O. 100 - - 50 50 ". SYNC a.tup Time from MOO TSYNC - - 350 175 120 nI AdcIr.a Hold Time THA 30 eo - 30 eo 10 30 lie -- f - - RIW Hold Time THAW 30 eo - 30 eo 10 30 ". RDYa.tupn .... TROY 100 - - 50 15 2-18 MPS 6500 COMMON CHARACTERISTICS PROGRAMMING MODEL 7 A ACCUMULATOR A INlvl IBID I Z C PROCESSOR STATUS REG. "p" 7 I Y INDEX REGISTER Y 7 I )( INDEX REGISTER X 1 = TRUE CARRY 15 7 c:= PCH I 8 7 PCl PROGRAM COUNTER "PC" l...-...,. ZERO ~ IRQ DISABLE 1 z RESUL T ZERO 1 = DISABLE L -_ _ _ DECIMAL MODE 1 = TRUE 111 STACK POINTFR "S" ' - - - - - - BRK COMMAND L -_ _ _ _ _ _ OVERFLOW 1 = TRUE L - - - - -_ _ _ _a NEGATIVE 1 - NEG INSTRUCTION SET - OP CODES, Execution Time, Memory Requirements --...c Oft"" ()fiN ·O'~ -O"J\j -()PH ~N _0''''' 0''''' _OPH -OPN -OI'N • ()PH _()fiN. N l e i 0", ... 0 C 141111 " 2 J 10'" J.5 ] 1 I' , 1 11 5 2' 15'" 1 10'" 3 1'1" l AND AI\M-A 1112'92 1JD4 315J 2 116 2 J 1 5 1 n .. 1304 3 3 ' 4 J ASl c ... ~.... . E ' J 16 5 :lIeA"I 1 16' , IE 1 3 • CC , .. AHC;H 0.. C.. '2' .... ' .... IfIIIAHCH ON I" I"ANC'H ON N·' ",' .... eN E '''ANeM ON 1-' IR' ISM'" 11 Hi I I vC IRANCH ON V-, IAANCH ()fill V'I ", e l v I·e 1'0 ., 08 1 I , t1 C9' 2 CO" ) C!I J "} E.' 2 iC'" J E4 ] 2 COY C,"} :1 CC" ] (4 J "1 .. , DEC CAl' 0' y , • o· "'yM-A 111492 140'" J 45 l 1 41 6 2 ~I 5 2 ~!o 4 1 50 4 J 59 4 J I I EE";3EI'51 f66 1H 1 J I I - - -- JUMr TO IIIIn. l.OC 4C J 1 IS-F. "A)wsua H' 1 l1'A,2 1 AD 4 J A5 1 , AI 6 2' 111 5 , B~'" 2 110'" 3 19 ". 1 l.Olll M-lII 111"21,,,,(4 J .... 3 2' 1(43 11.2'"" - - -- .. - y 111 AI' 1 AC 4 1 ... 4 J :1 1 Ie 4 J ... 4 " " - _ - - . .~c .1134651.A" ye:Z5E11 1",,--- l1li 0 .. fifO OPERATION 111 AOD I TO'~ I' 'AGE IOV""OARV IS CAOSSEO '2' ADO 1 TO "N' I' IRANCH OCCURS TO SAME ... AuE M ME",.ON't 811 , ADo:1 TO ""f04 I' I"ANCH OCCURS TO DlffEHE".T PAul A ACCUMUlA TOH M. MEMOfh 1116 ... 1,41 MOR'" ~tR fH(ClIV( A(}OHISS "" ""0 CYCLES 141 IF 1l1li O(CI ... Al MOOI I n"'G IS '''''VALID Y\ MtMORY 'fR STAC'" 'OtNT(R "'CCUMULATOR MUST II CHECKID lOA lIRO A(SUl T Note: MOS Technology cannot assume liability for the use of undefined OP Codes 2-19 MPS 6500 I COMMON CHARACTERISTICS I 8&00 SIGNAL DESCRIPTION CIoab (0" 0a) The 661X requires a two phase non-overlapplng clock that runs at the Vee voltage level. The 660X clocks are supplied with an Internal clock generator. The frequency of these clocks Is externally controlled. AdIhIa au. CA.-At.) These outputs are TTL compatible, capable of driving one standard TTL load and 130 pf. DatIl au. (D..o,) EIght pins are used for the data bus. This Is a bI-dlrectlonal bus, transferring data to and from the device and peripherals. The outputs are trl-state buffers capable of driving one standard TTL load and 13Opf. DatIl au. Enable (DIE) This TTL compatible Input allows external control of the trl·state data output buffers and will enable the microprocessor bus driver when In the high state. In normal operation DBE would be driven by the phase two (0 1) clock, thus allowing data output from mlcroprOC888Of' only during 0 1 , During the read cycle, the data bus drivers are Internally disabled, beComing essentially an open circuit. To disable data bus drivers externally, DBE should be held low. RMdy(RDy) This Input signal allows the user to single cycle the microprocessor on all cycles except write cycles. A negative transition to the low atate during or coincident with phase one (0,) and up to 100ns after phase two (0 1) will halt the microprocessor with the output address lines reflecting the current address being fetched. This condition will remain through a subsequent phase two (0a) In which the Ready signal Is low. This feature allows microprocessor Interfacing with low apeed PROMS as well as fast (max. 2 cycle) Direct Memory Access (DMA). If Ready Is low during a write cycle, It Is Ignored until the followlrig read operation. IntenupI RequIat (IRQ) This TTL level Input requests that an Interrupt sequence begin within the microprocessor. The microprocessor will complete the current Instruction being executed before recognizing the request. At that time, the Interrupt mask bit In the Status Code Register will be examined. If the Interrupt mask flag Is not set, the microprocessor will begin an Interrupt sequence. The Program Counter and PrOC888Of' Status Register are stored in the stack. The microprocessor will then set the Interrupt mask flag high so that no further Interrupts may occur. At the end of this cycle, the program counter low will be loaded from address FFFE, and pro- gram counter high from location FFFF, therefore transferring program control to the memory vector locat~ at these addresses. The ROY signal must be In the high state for any Interrupt to be recognized. A 3KO external resistor should be used for proper wlre-OR operation. NoNtalkable Interrupt (NMI) A ~atlve going edge on this Input requests that a non-maskable Interrupt sequence be generated within the microprocessor. Rm Is an unconditional Interrupt. Following completion of the current Instruction, the sequence of oper~tlons defined for ma will be performed, regardless of the Interrupt mask flag status. The vector address loaded Into the program counter, low and high, are locations FFFA and FFFB respectively, thereby transferring program control to the memory vector located at these ad· dresses. The Instructions loaded at these locations cause the microprocessor to branch to a non-maskable interrupt routine In rnerTlQIY. Rm also requires an external 3KO resister to Vcc for proper wlre-OR operations. Inputs iA'a and NJJT are hardware Interrupt lines that are sampled during 0 1 (phase 2) and will begin the appropriate Interrupt routine on the 0 , (phase 1) following the completion of the current Instruction. Set Overflow Flag (8.0.) A NEGATIVE going edge on this Input sets the overflow bit In the Status Code Register. This signal Is sampled on the trailing edge of 0 " SYNC Thla output line Is provided to Identify those cycles In which the microprocessor Is doing an OP CODE~ fetch. The SYNC line goes high during 0 , of an OP CODE fetch and stays high for the remainder of that cycle. If the ROY line IS: pulled low during the 0 , clock pulse In which SYNC went high, the processor will stop In Its current state and will remain In the state until the ROY line goes high. In this manner, the SYNC signal can be used to control ROY to cause single Instruction execution . ...... This Input Is used to reset or start the microprocessor from a power down condition. During the time that this line Is held low, writing to or from the microprocessor Is Inhibited. When a positive edge Is detected on the Input, the microprocessor will 1m· mediately begin the reset sequence. After a system Initialization time of six clock cycles, the mask Interrupt flag will be set and -the microprocessor will load the program counter from the memory vector locations FFFC and FFFD. This Is the start location for program control. After Vee reaches 4.75 volts In a power up routine, reset must be held low for at least two clock cycles. Atthls time the ANI and (SYNC) signal will become valid. When the reset signal goes high following these two clock cycles, the microprocessor will proceed with the normal reset pro- cedure detailed above. 2-20 MPS 6500 COMMON CHARACTERISTICS ADDRESSING MODES ACCUMULATOR ADDRESSING-This form of IMPLIED ADDRESSING-In the Implied ad- addressing Is represented with a one byte dressing mode, the address containing the Instruction, Implying an operation on the operand Is Implicitly stated in the operation accumulator. code of the Instruction. I IMMEDIATE ADDRESSING-In Immediate ad- RELATIVE ADDRESSING-Relative addressing dressing, the operand Is contained In the sec- is used only with branch Instructions and estab- ond byte of the Instruction, with no further lishes a destination for the conditional branch. memory addressing required. The second byte of the instruction becomes the ABSOLUTE ADDRESSING-In absolute ad- operand which is an "Offset" added to the con- dressing, the second byte of the Instruction tents of the lower eight bits of the program specifies the eight low order bits of the effec- counter when the counter is set at the next In- tive address while the third byte specifies the struction. The range of the offset is -128 to eight high order bits. Thus, the absolute ad- + 127 bytes from the next instruction. dressing mode allows access to the entire 65K bytes of addressable memory. INDEXED INDIRECT ADDRESSING-In In- ZERO PAGE ADDRESSING-The zero page in- dexed indirect addressing (referred to as (In- structions allow for shorter eode and execution direct, X)), the second byte of the instruction Is times by only fetching the second byte of the in- added to the contents of the X index register, struction and assuming a zero high address discarding the carry. The result of this addition byte. Careful use of the zero page can result in points to a memory location on page zero significant Increase in code efficiency. whose contents is the low order eight bits of the effective address. The next memory location In INDEXED ZERO PAGE ADDRESSING-(X, Yin- page zero contains the high order eight bits of dexlng)-This form of addressing is used in the effective .address. Both memory locations conjunction with the index register and is re- specifying the high and low order bytes of the ferred to as "Zero Page, X" or "Zero Page, Y." effective address must be in page zero. The effective address Is calculated by adding the second byte to the contents of the index INDIRECT INDEXED ADDRESSING-In Indirect register. Since this is a form of "Zero Page" ad- indexed addressing (referred to as (Indirect), Y), dressing, the content of the second byte the second byte of the instruction points to a references a location In page zero. Additionally, memory location in page zero. The contents of due to the "Zero Page" addressing nature of this memory location is added to the contents this mode, no carry Is added to the high order 8 of the Y index register, the result being the low bits of memory and crossing of page bound- order eight bits of the effective address. The aries does not occur. carry from this addition is added to the contents of the next page zero memory location, the INDEXED ABSOLUTE ADDRESSING-(X, Yin- result being the high order eight bits of the ef- dexing)-This form of addressing is used in fective address. conjunction with X and Y Index register and is referred to as "Absolute, X," and "Absolute, Y." ABSOLUTE INDIRECT-The second byte of the The effective address Is formed by adding the instruction contains the low order eiQht bits of a contents of X and Y to the address contained in memory location. The high order eight bits of the second and third bytes of the instruction. that memory location is contained In the third This mode allows the index register to contain byte of the instruction. The contents of the fully the index or count value and the instruction to specified memory location is the low order byte contain the base address. This type of indexing of the effective address. The next memory loca- allows any location referencing and the index to tion contains the high order byte of the effective modify multiple fields resulting in reduced address which is loaded Into the sixteen bits of coding and execution time. the program counter. INSTRUCTION SET -ALPHABETIC SEQUENCE ADC Add Memory to Accumulator with Carry LOA Load Accumulator with Memory LOX Load Index X with Memory ~~~ ~~~tDI~f~~r::~1Itl:;e~~C~~~I:~~umulator) LOY Load Index Y with Memory BCC Branch on Carry Clear LSR Shift One Bit Right (Memory or Accumulator) BCS Branch on Carry Set NOP No Operation BEQ Branch on Result Zero BIT Test Bits in Memory with Accumulator ORA "OR" Memory with Accumulator BMI Branch on Result Minus PHA Push Accumulator on Stack BNE Branch on Result not Zero PHP Push Processor Status on Stack BPL Branch on Result Plus PLA Pull Accumulator from Stack BRK Force Break PLP Pull Processor Status from Stack BVC Branch on Overllow Clear BVS Branch on Overllow Set ROL Rotate One Bit Left (Memory or Accumulator) CLC Clear Carry Flag ROR Rotate One Bit Right (Memory or Accumulator) CLD Clear Decimal Mode RTI Return from Interrupt CLI Clear Interrupt Disable Bit ATS Return from Subroutine CLV Clear Overllow Flag SBC Subtract Memory from Accumulator with Borrow CMP Compare Memory and Accumulator SEC Set Carry Flag CPX Compare Memory and Index X SED Set Decimal Mode CPY Compare Memory and Index Y SEI Set Interrupt Disable Status DEC Decrement Memory by One STA Store Accumulator in Memory DEX Decrement Index X by One STX Store Index X in Memory DEY Decrement Index Y by One STY Store Index Y in Memory EOR "Exclusive-or" Memory with Accumulator TAX Transfer Accumulator to Index X INC Increment Memory by One TA Y Transfer Accumulator to Index Y INX Increment Index X by One TSX Transfer Stack Pointer to Index X INY Increment Index Y by One TXA Transfer Index X to Accumulator JMP Jump to New Location TXS Transfer Index X to Stack Register JSR Jump to New Location Saving Return Address TYA Transfer Index Y to Accumulator 2-21 ~ MPS ~~@@ 6500 VSS RES 8502-40 Pin Package ROY (112 (OUll ¢1 (OUll S.O. IRQ \/lO(IN) Features of 8502 N.c. NC. NMI- N.e. • 65K Addressable Bytes of Memory (AO-A15) SYNe R/W • IRQ Interrupt vee DO • On·the-chlp Clock AO 01 TIL Level Single Phase Input Al 02 A2 03 RC Time Base Input A3 04 Crystal Time Base Input A4 05 • SYNC Signal A5 06 (can be used for single Instruction execution) A6 07 A7 A15 • ROY Signal AS A14 (can be used to halt or single cycle execution) A9 A13 • Two Phase Output Clock for Timing of Al0 A12 All Support Chips VSS • NMI Interrupt ¢2 (OUll ¢O(IN) R/W 6503-26 Pin Package NMI DO vee 01 AO 02 Features of 6503 Al 03 A2 • 4K Addressable Bytes of Memory (AO-A11) 04 A3 05 • On·the·chip Clock A4 06 • IRQ Interrupt A5 07 • NMI Interrupt A6 All A7 • 8 Bit Bidirectional Data Bus Al0 AS A9 ¢2(OUll ¢O(IN) R/W 6504-28 Pin Package DO 01 02 Features of 6504 03 A3 04 • 8K Addressable Bytes of Memory (AO-A 12) A4 05 • On·the·chip Clock A5 06 • IRQ Interrupt A6 07 A7 A12 • 8 Bit Bidirectional Data Bus AS All A9 Al0 ¢2(OUll (/lO(IN) ROY R/W 6505-28 Pin Package IRQ DO vee 01 Features of 6505 AO 02 Al 03 • 4K Addressable Bytes of Memory (AO-A11) A2 04 A3 05 • On·the-chlp Clock A4 06 • IRQ Interrupt AS 07 • ROY Signal A6 All • 8 Bit Bidirectional Data Bus A7 Al0 AS A9 2-22 ~ MPS ~~@@ 6500 flES 02 (OUT) {/lo (IN) R/W 6506-28 Pin Package DO vee 01 Features of 6506 AO 02 Al 03 • 4K Addressable Bytes of Memory (AO-A11) I A2 04 • On·the-chip Clock A3 05 06 • IRQ Interrupt A4 A5 07 • Two phase output clock for timing of A6 All support chips A7 Al0 • 8 Bit Bidirectional Data Bus A8 A9 RES 02 (oun ¢O(1N) ROY p;./W DO 6507-28 Pin Package vee AO 01 Al 02 Features of 6507 A2 03 A3 04 • 8K Addressable Bytes of Memory (AO-A12) 05 A4 • On-the·chip Clock A5 06 07 • ROY Signal A6 A7 A12 • 8 Bit Bidirectional Data Bus A8 All A9 Al0 \ISS RES ROY ¢2 (OUT) {/ll(1N) s.o. iRQ ¢2(IN) 6512-40 Pin Package \ISS OBE NMI NC Features of 6512 SYNe R/W vee DO 01 • 65K Addressable Bytes of Memory (AO-A 15) AO Al 02 • IRQ Interrupt A2 03 • NMI Interrupt 04 A3 • ROY Signal A4 05 06 • 8 Bit Bidirectional Data Bus A5 A6 07 • SYNC Signal A7 A15 • Two phase clock input A14 A8 • Data Bus Enable A9 A13 Al0 A12 All VSS 2-23 C= ~~@@ MPS 8500 RES ¢2(1N) IRQ R/W 8513-28 Pin Package NMI DO vee 01 AD 02 F.aturea of 8513 Al 03 A2 04 • 4K Addressable Bytes of Memory (AO-A 11) A3 05 • Two phase clock Input A4 06 • IRQ Interrupt A5 A6 07 All • NMf Interrupt A7 Al0 • 8 Bit Bidirectional Data Bus A8 A9 RES 02(1NI IRO R/W 8514-28 Pin Package vee DO AD 01 Al 02 F.aturea of 8514 A2 03 A3 04 • 8K Addressable Bytes of Memory (AO-A 12) A4 05 • Two phase clock input A5 06 07 • IRQ Interrupt A6 A7 A12 • 8 Bit Bidirectional Data Bus A8 All A9 Al0 VSS RES ¢2(INI 8515-28 Pin Package R/W IRO DO vee 01 F.aturea of 8515 AD 02 Al 03 • 4K Addressable Bytes of Memory (AO-A11) A2 04 • Two phase clock Input A3 05 • IRQ Interrupt A4 06 A5 • ROY Signal 07 A6 All • 8 Bit Bidirectional Data Bus A7 AID A8 A9 MOS TECHNOLOGY, INC. reserves the right to make changes to any products herein to Improve reli- ability, function or design. MOS TECHNOLOGY, INC. does not assume any liability arising out of the application or use of any product or circuit described herein; neither does It convey any license under Its patent rights nor the rights of others. 2-24 , . . , commodore MPS ~ aemlcanduct;ar group '6508 ~~@~ MICROPROCESSOR II WITH RAM AND I/O [ 6508 MICROPROCESSOR WITH RAM AND 1/0 DESCRIPTION The 6508 is a low-cost microcomputer system capable of solving a broad range of small-systems and peripheral-control problems at minimum cost to the user. ,J\ One full page (2~6 bytes) of RAM is I~cated .(on chip) ~~ncurrently at Page a and ~a~ 1, allowing Zero Page Addressing and stack operations With no additional RAM. """,,,., """",.j \ An 8-bit Bi-Directional 1/0 Port is located on-chip with the Output Register at .,. ti~re&&:Q, a'o.~ and the Data-Direction Register at Address 0 a a a. The 110 Port is bit-by-bit prog~~ ~I~,. ,"""''''' I) The Three-State sixteen-bit Address Bus allows Direct Memory A{c\,.~ .\lfo'Mf.) and multi- processor systems sharing a common memory. ''\",\,\\,i,/l''''''''''''',\,,,,,,~:'7 The internal processor architecture is identical to the MOS TeG~·n"e:l'tGg~. provide software compatibility. '\ . PIN CONFIGURATION FEATURES OF THE 6508 ... RES 40 liI2 1N 01 1N 39 RfW • 8-Bit Bi-Directional 1/0 Port iRa 38 DB. • 256 Bytes fully Static RAM (internal) AEC 4 37 DB, • Single + 5 volt supply Vee 5 36 DB, • N channel, silicon gate, deple A. 35 DB, • Eight bit parallel processin A, 34 DB. • 56 Instructions A, 8 33 DB. • Decimal and binary ar) A, 9 32 DB. • Thirteen addressing m A. 10 6508 31 DB, • True indexing ca A. 11 30 Po • Programmable A. 12 29 p, • Variable len t A, 13 28 P, • Interrupt A. 14 27 p, • 8 Bit B' i~C us A, 15 26 P. • Addres ' b "Ai . ory nge of up to 65K bytes AIO 16 25 P. • Direct me ccess capability A" 17 24 P. • Bus compatl . ith M680a A" 18 23 P, • Pipeline archit ture A" 19 22 A" • 1 MHz, 2MHz (Suffix "A'), and 3MHz (Suffix "B") vss 20 21 Au • Use with any type or speed memory 2-25 MPS 6508 r:iL----r-.--J r-H~DA-,-------'TA DIRECTION ~~g~6~~ REGISTER II AEC 256 x B RAM L-_--....-_~ } : A PERIPHERAL OUTPUT REGISTER L...----...,., L-___ PERIPHERAL INTERFACE BU_F_R_ER____J _ C P,o P7 Ao - INDEX REGISTER k:::: , ....: s- INTERRUPT LOGIC At - ~_ _y_____ A2 - INDEX ~ ,--_R_E_G_ll_TE_R_.r-- r- II A3 - ~ F:=r=~ I L- A4 - a: w ~ 31'1 Rf~~TTER..r-- t-~ « STACK _ _(S__I ___ ~ - ~ As u. u. z :::> As - III I-A ffi INSTRUCTION ~----I~ Cc11 F~ DECODE ~ W A7 - a: o I 'CO o As - III A7 _. ffia: o o « As - w ~ ~ TIMING J ~CONTROL As -- ~w Alo - a: J: ..... 1l,IN All - PROCESSORJ STATUS 0 2 1N Au -- REGISTER Al 3 IL....____.... RIW Al 4 -- Al 5 ~ LEGEND D=SBITLINE I = 1 BIT LINE 6510 BLOCK DIAGRAM 2-37 MPS 6510 6510 CHARACTERISTICS MAXIMUM RATINGS RATING I SYMBOL 1 VALUE 1 UNIT SUPPLY VOLTAGE Vee -0.3 to + 7.0 Vde This device contains Input protection against -- damage due to high static voltages or INPUT VOLTAGE Vln -0.3 to + 7.0 Vde electric fields; however, precautions should be taken to avoid application of voltages OPERATING TEMPERATURE TA o to + 70 'c higher than the maximum rating. STORAGE TEMPERATURE TSTG -55 to + 150 'c ELECTRICAL CHARACTERISTICS Nee = 5.0V :t 5%, Vss = 0, TA = 00 to + 70°C) CHARACTERISTIC SYMBOL MIN. TYP. MAX. UNIT Input High Voltage VIH Vcc - 0.2 Vcc + 1.0V Vdc Input High Voltage RES, Po·P,IRQ, Data Vss + 2.0 Vdc -.-..~-.-~ ~-~~.----I--------. -----+---------j---------I Input Low Voltage VIL Vss - 0.3 Vss + 0.2 Vdc RES, Po'p, IRQ, Data Vss + 0.8 Vdc ----- Input Leakage Current (Vln = 0 to 5.25V, Vee = 5.25V) Logic lin 2.5 0,,0'(in) 100 ~---------------~--------+------- ------ Three State (Off State) Input Current (Vln = 0.4 to 2.4V, Vcc = 5.25V) Data Lines ITSI 10 -- --------I----~-.- Output High Voltage I (lOH = -100!iAdc, Vee = 4.75V) Data, AO·A15, AMI, Poop, VOH Vss + 2.4 Vdc ~--------------------------------- ---~ ---~-- ··-r-- ---- - ---.---~---------+------ Out Low Voltage (IOL = 1.6mAdc, Vcc = 4.75V) Data, A().A15, AMI, Po'P' VOL Vss + 0.4 Vdc -- --------~--- - . - - - - - - - - - I-----~--- - - - f - - - - -.----.........-.-----j-- -----------f---~---- Power Supply Current ICC 125 mA ~---------~---------.----------r---------~ I---------------I-~.--- .--... --.--r___----------t-~----- Capacitance C pF Vln = 0, TA = 25'C, f = 1MHz) Logic, PooP, 10 Data 15 AO-A15, AMI Cout 12 0, 30 50 0, 50 80 2-38 MPS 6510 CLOCK TIMING ~-----------------_--------TCYC------------_____________~ I 1 4 - - - - - - - - - PWHO, - . - -_ _ _ _~ VCC-O.2V VCC-O.2V 0,(ln) 0,(ln) I. TRWS THRW 2.0V R/W THA ADDRESS FROM 2.0V MPU O.BV TADS 2.0V DATA FROM MEMORY O.BV --f\i;:::.-------1t---r TDSU TpDSU PERIPHERAl. DATA AES ADDRESS _ ENABLE CONTROL ___________ . f VCC.-02V TIMING FOR READING DATA FROM MEMORY OR PERIPHERALS 2-39 MPS 6510 CLOCK TIMING ~1 ------ PWH0. - - - - - l.. VCC-O.2V I I I 0.(ln) _ _ _ _"" O.2V I --i TO VCC-O.2V ~ I I I O.2V I 0,(ln) R/W O.8V ADDRESS FROM 2.0V MPU O.8V TAOS DATA TO MEMORY TMDS PERIPHERAL DATA ADDRESS ENABLE CONTROL f""'- .." TIMING FOR WRITING DATA TO MEMORY OR PERIPHERALS 2-40 MPS 6510 AC CHARACTERISTICS 1 MHz TIMING 1 ,--I_ _2_M_H_z_T_IM_I_NG _ _-----' ELECTRICAL CHARACTERISTICS (VCC = 5V ± 5%, VSS = OV, TA = 0° -70°C) CLOCK TIMING CHARACTERISTIC Cycle Time Minimum Clock Frequency = 50 KHz SYMBOL TCYC MIN. 1000 TYP. MAX. f---- MIN. 500 TYP. MAX. UNITS ns I -----------+- ----+ , ' - Clock Pulse Width 01 PWH01 430 215 ns (Measured at vcc - 0.2V) 02 PWH02 470 235 ns ~---- -r------ ,--- ,--,-- ------I----~""- ------- Fall Time, Rise Time (Measured from 0.2V to VCC - 0.2V) 25 15 ns , ------ - - - - ----'------'------'-- Delay Time between Clocks ~~-- (Measured at 0.2V) ns -- READIWRITE TIMING (LOAD =1TTL) CHARACTERISTIC SYMBOL MIN. TYP. MAX. MIN. TYP. MAX. UNITS "- t- , - I--- ------- -- ReadlWrite Setup Time from 6508 TAWS 100 300 100 150 ns ----,--- 1--- - Address Setup Time from 6508 TAOS 100 300 100 150 ns --- --- Memory Read Access Time TACC 575 300 ns ---,--- --t-- Data Stability Time Period TDSU 100 50 ns 1-------- - - - - - ,-----, f-------- - - - - Data Hold Tlme·Read THA ns 1----'---- ----- t----- ------ Data Hold Tlme-Wrlte THW 10 30 10 30 ns I----~- -------- ~, Data Setup Time from 6510 TMDS 150 200 75 100 ns --- ~---- ~~- ---~ Address Hold Time THA 10 30 10 30 ns -- ----- -- ------ RIW Hold Time THAW 10 30 10 30 ns -- t------ ~-----, ---- Delay Time, Address valid to 02 positive transition TAEW 180 ns I---'~ ~J Delay Time, 02 negative transition to Peripheral Data valid 1 0.5 TpDW 1--------- - - - , f-~--- 1-- Peripheral Data Setup Time TpDSU 300 1------- -f---- f------ Address Enable Setup Time 60 60 ns TAES '~ -_._--- 2-41 MPS 6510 SIGNAL DESCRIPTION Clocks (0" O 2 ) The 6510 requires a two phase non-overlapping clock that runs at the Vcc voltage level. Address Bus (Ao-A,5) The three state outputs are TIL compatible, capable of driving one standard TIL load and 130 pf. Data Bus (00 -0 7 ) Eight pins are used for the data bus. This is a Bi-Directional bus, transferring data to and from the device and peripherals. The outputs are tri-state buffers capable of driving one standard TTL load and 130 pf. Reset This input is used to reset or start the microprocessor from a power down condition. During the time that this line is held low, writing to or from the microprocessor is inhibited. When a positive edge is detected on the input, the microprocessor will immediately begin the reset sequence. After a system initialization time of six clock cycles, the mask interrupt flag will be set and the microprocessor will load the program counter from the memory vector locations FFFC and FFFD. This is the start location for pro- gram control. After Vcc reaches 4.75 volts in a power up routine. reset must be held low for at least two clock cycles. At this time the R/W signal will become valid. When the reset signal goes high following these two clock cycles, the microprocessor will proceed with the nor- mal reset procedure detailed above. Interrupt Request (IRQ) This TTL level input requests that an interrupt sequence begin within the microprocessor. The microprocessor will complete the current instruction being executed before recognizing the request. At that time, the interrupt mask bit in the Status Code Register will be examined. If the interrupt mask flag is not set, the microprocessor will begin an interrupt sequence. The Program Counter and Processor Status Register are stored in the stack. The microprocessor will then set the interrupt mask flag high so that no further interrupts may occur. At the end of this cycle, the program counter low will be loaded from address FFFE, and program counter high from location FFFF, therefore transferring program control to the memory vector located at these addresses. Address Enable Control (AEC) The Address Bus is valid only when the Address Enable Control line is high. When low, the Address Bus is in a high-impedance state. This feature allows easy DMA and multiprocessor systems. I/O Port (PO-P 7) Eight pins are used for the peripheral port, which can transfer data to or from peripheral devices. The Output Register is located in RAM at Address 0001, and the Data Direction Register is at Address 0000. The outputs are capable at driving one standard TTL load and 130 pf. Read/Write (R/W) This signal is generated by the microprocessor to control the direction of data transfers on the Data Bus. This line is high except when the microprocessor is writing to memory or a peripheral device. 2-42 MPS 6510 ADDRESSING MODES ACCUMULATOR ADDRESSING-This form of IMPLIED ADDRESSING-In the Implied ad- addressing Is represented with a one byte dressing mode, the address containing the Instruction, Implying an operation on the operand Is Implicitly stated In the operation code accumulator. of the Instruction. IMMEDIATE ADDRESSING-In Immediate ad· dressing, the operand Is contained in the second RELATIVE ADDRESSING-Relative addressing I byte of the instruction, with no further memory is used only with branch Instructions and estab- addressing required. lishes a destination for the conditional branch. ABSOLUTE ADDRESSING-In absolute ad· The second byte of the Instruction becomes the dressing, the second byte of the Instruction operand which Is an "Offset" added to the con- specifies the eight low order bits of the effective tents of the lower eight bits of the program address while the third byte specifies the eight counter when the counter Is set at the next in- high order bits. Thus, the absolute addressing struction. The range of the offset is -128 to mode allpws access to the entire 65K bytes of ad· + 127 bytes from the next instruction. dressable memory. INDEXED INDIRECT ADDRESSING-In indexed ZERO PAGE ADDRESSING-The zero page in- indirect addressing (referred to as [Indirect, Xl), structions allow for shorter code and execution the second byte of the instruction is added to the times by only fetching the second byte of the in- contents of the X index register, discarding the struction and assuming a zero high address byte. carry. The result of this addition points to a Careful use of the zero page can result in signifi- memory location on page zero whose contents is cant increase In code efficiency. the low order eight bits of the effective address. The next memory location in page zero contains INDEXED ZERO PAGE ADDRESSING-(X, Yin- the high order eight bits of the effective address. dexing)-This form of addressing Is used in con- Both memory locations specifying the high and junction with the index register and is referred to low order bytes of the effective address must be as "Zero Page, X" or "Zero Page, Y." The effective In page zero. address is calculated by adding the second byte to the contents of the index register. Since this is INDIRECT INDEXED ADDRESSING-In indirect a form of "Zero Page" addressing, the content of indexed addressing (referred to as [Indirect, Yl). the second byte references a location in page the second byte of the instruction points to a zero. Additionally, due to the "Zero Page" ad- memory location in page zero. The contents of dressing nature of this mode, no carry is added to this memory location is added to the contents of the high order 8 bits of memory and crossing of the Y index register, the result being the low order page boundaries does not occur. eight bits of the effective address. The carry from this addition is added to the contents of the next INDEXED ABSOLUTE ADDRESSING-(X, Yin- page zero memory location, the result being the doxing)-This form of addressing is used in con- high order eight bits of the effective address. junction with X and Y index register and is re- ferred to as "Absolute, X," and "Absolute, Y." The ABSOLUTE INDIRECT-The second byte of the effective address is formed by adding the con- instruction contains the low order eight bits of a tents of X and Y to the address contained in the memory location. The high order eight bits of that second and third bytes of the instruction. This memory location is contained in the third byte of mode allows the index register to contain the in- the instruction. The contents of the fully dex or count value and the instruction to contain specified memory location is the low order byte the base address. This type of indexing allows of the effective address. The next memory loca- any location referencing and the index to modify tion contains the high order byte of the effective multiple fields resulting in reduced coding and address which is loaded into the sixteen bits of execution time. the program counter. INSTRUCTION SET -ALPHABETIC SEQUENCE ADC Add Memory to Accumulator with Carry LDA Load Accumulator with Memory AND "AND·' Memory with Accumulator LDX Load Index X with Memory ASL Shift left One Bit (Memory or Accumulator) LDY Load Index Y with Memory BGC Branch on Carry Clear LSR Shift One Bit Right (Memory or Accumulator) BeS Branch on Carry Set BEQ Branch on Result Zero NOP No Operation BIT Test Bits in Memory with Accumulator ORA "OR" Memory with Accumulator BMI Branch on Result Minus BNE Branch on Result not Zero PHA Push Accumulator on Stack BPL Branch on Result Plus PHP Push Processor Status on Stack BRK Force Break PLA Pull Accumulator from Stack BVC Branch on Overflow Clear PLP Pull Processor Status from Stack BVS Branch on Overflow Set CLC Clear Carry Flag ROL Rotate One Bit Left (Memory or Accumulator) CLD Clear Decimal Mode ROR Rotate One Bit Right (Memory or Accumulator) RT! Return from Interrupt CLI Clear Interrupt Disable Bit RTS Return from Subroutine CLV Clear Overflow Flag CMP Compare Memory and Accumulator SBC Subtract Memory from Accumulator with Borrow CPX Compare Memory and Index X SEC Set Carry Flag CPY Compare Memory and Index Y SED Set DeCimal Mode DEC Decrement Memory by One SEI Set Interrupt Disable Status DEX Decrement Index X by One STA Store Accumulator in Memory DEY Decrement Index Y by One STX Store Index X in Memory STY Store Index Y in Memory EaR "Exclusive·or" Memory with Accumulator INC Increment Memory by One TAX Transfer Accumulator to Index X INX Increment Index X by One TAY Transfer Accumulator to Index Y INY Increment Index Y by One TSX Transfer Stack Pointer to Index X TXA Transfer Index X to Accumulator JMP Jump to New Location TXS Transfer Index X 10 Stack Register JSB Jump to New Location Saving Return Address TYA Transfer Index Y to Accumulator 2-43 MPS 6510 PROGRAMMING MODEL 7 0 o L_A===:J ACCUMULATOR A NIV BI D liZ C PROCESSOR STATUS REG "P" 7 0 I Y I INDEX REGISTER Y X INDEX REGISTER X CARRY 1 ~ TRUE 15 7 0 --.... ZERO 1 :i: RESULT ZERO r l-~PC~H---+-----~ ~_~1~ PCl _~J PROGRAM COUNTER "PC" IRQ DISABLE 1 = DISABLE 8 7 0 ' - - - - - . DECIMAL MODE 1 = TRUE L:L_~ ~~~=~~==::J STACK POINTER "S" '---------.BRKCOMMANO '------------.... OVERFlOW 1 = TRUE ~ NEGATIVE ~----------1.. 1 = NEG INSTRUCTION SET - OP CODES, Execution Time, Memory Requirements ....INo C.-cr::::::J]- MAHCHOMC-' n'!&it ''104 t"'" III 'E e 3 ... 2 ,A 21 ~, . " F' 2 2 3122 MAHCHON ... ' BRANCH ON N"" til I~I fOIl· 'il22 • ISHFIQ II MAMC;:HONV'" w If 2 2 .. - foo' u. ~~~~~----r;~+-r+~~~~~7b~-+-rr;~+-r+~+4~~~~+1-+~r;~~,~,----- I I ~'IG·21JUU"IU8 ItII • a I I ~ ,, 3'532 ~~~·~=~~S~·_~'=~S~r;~+-r+~+4~~r+.~~-+~r;~+-r+~+1-r~~-r+1-+~-+-r+----~---- .... , . W'..u. &-t.,.. 9+1"5 Mr • ~ fiI " 0 T R I p( ta.,., .. _, ISellFlg2J ::::n., MlllNe. RTRNSUE ... , •• c ..-..-eo-.. "'''' • t 10 • • •112 t,t I·t N • • • I ST. 3 8S 3 '2 .. T • II • • • • • . ~: :, 1'-" aA'2 I III ADO' TO N IF PAGE BOUNDARY IS CROSSED (21 ADO I TO N IF BRANCH OCCURS TO SAME PAGE ADO 2 TO N IF BRANCH OCCURS TO DIFFERENT PAGE M MEMORV' P£R EFFEC1W[ ADDRESS M7 MEMORVall? ,4, IF IN DECIMAL MODE Z Fl.AG IS INVALID loiS MEMORY PER STACK POINTER Me MEMORY BITe ACCUMULATOR MUST BE CHECKED FOR ZERO RESULT Note: Commodore Semiconductor Group cannot assume liability for the use of undefined OP Codes 2-44 C= ~~@@ MPS 6510 FFFF 1 V ADDRESSABLE EXTERNAL MEMORY f I .;' 0200 01FF STACK 01 FF . . . - - - - - POINTER INITIALIZED I STACK Page 1 0100 OOFF I 0000 Page 0 OUTPUT REGISTER DATA DIRECTION REGISTER 6510 MEMORY MAP 0001 0000 :=J I----.---- Used For Internal I/O Port APPLICATIONS NOTES Locating the Output Register at the internal I/O Port in Page Zero enhances the powerful Zero Page Addressing instructions of the 6510. By assigning the 1/0 Pins as inputs (using the Data Direction Register) the user has the ability to change the con- tents of address 0001 (the Output Register) using peripheral devices. The ability to change these contents using peripheral inputs, together with Zero Page Indirect Addressing instructions, allows novel and versatile programming techniques not possible earlier. COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or design. COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising at of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 2-45 , . . commodore MPS ~ aamlconduCl:Dr group 6520 ~[iYA]@@ . PERIPHERAL ADAPTER 6520 PERIPHERAL ADAPTER DESCRIPTION The 6520 Peripheral Adapter is designed to solve a broad range of peripheral control problems in the implementation of microcomputer systems. This device allows a very effective trade-off between software and hardware by providing significant capability and flexibility in a low cost chip. When coupled with the power and speed of the 6500 family of microprocessors, the 6520 allows implementation of very complex systems at a minimum overall cost. Control of peripheral devices is handled primarily through two 8-bit bi-directional ports. Each of these lines can be programmed to act as either an input or an output. In addition, four peripheral control/interrupt input lines are provided. These lines can be used to interrupt the processor or for "hand-shaking" data between the processor and a peripheral device. FEATURES • High performance replacement for Motorola/AMI /MOSTEK/Hitachi peripheral adapter. 6520 • N channel, depletion load technology, single +5V supply. • Completely Static and TTL compatible. vss CA1 • CMOS compatible peripheral control lines. PAO CA2 • Fully automatic "hand-shake" allows very positive control PA1 IROA of data transfers between processor and PA2 IROB peripheral devices. PA3 RSO PA4 RSl PA5 RES PA6 DO Basic 6520 Interface Diagram PA7 01 PBO 02 PB1 03 PB2 04 PB3 05 CONTROL PB4 06 PB5 ~ 07 8 BIT { DATA 8 BIT PB6 ¢2 ~ BUS 6520 DATA PORT PERIPHERAL DEVICES - PB7 CS1 ox 8 BIT PRINTERS, CB1 CS2 0° a::Ll) DATA PORT DISPLAYS, ETC. a.. CD CB2 CSO ~ CONTROL c::::::> CONTROL vCC RfW Q ~ 2-46 MPS 6520 SUMMARY OF 6520 OPERATION See MOS TECHNOLOGY Microcomputer Hardware Manual for detailed description of 6520 operation. CA1/CBI CONTROL CRA(CRB) Active Transition IRQA(IRQB) Bit 1 Bit 0 of Input 81gn81* Interrupt Outputs a a negative Disable - remain high a negative Enable - goes low when bit 7 in CRA (CR B) is set by active transition of signal on CA 1 (CB 1) a positive Disable - remain high 1 positive Enable - as explained above *Note: Bit 7 of CRA (CRB) will be set to a logic 1 by an active transition of the CA1 (CB1) signal. This is independent of the state of Bit 0 in CRA (CRB). CA2/CB2 INPUT MODES CRA(CRB) ~ctlve Transition IRQA(IRQB) Blt5 Blt4 Blt3 of Input 81gn81* Interrupt Output a a a negative Disable - remains high a a negative Enable-goes low when bit6 in CRA(CRB) is set by active transition of signal on CA2 (CB2) a 1 a positive Disable - remains high a 1 1 positive Enable - as explained above *Note: Bit 6 of CRA (CRB) will be set to a logic 1 by an active transition of the CA2 (CB2) signal. This is independent of the state of Bit 3 in CRA (CRB). CA2 OUTPUT MODES CRA Bit 5 Bit 4 Blt3 Mode Description 1 a a " Handshake" CA2 is set high on an active transition of the CA 1 interrupt on Read input signal and set low by a microprocessor "Read A Data" operation. This allows positive control of data transfers from the peripheral device to the microprocessor. 1 a 1 Pulse Output CA2 goes low for one cycle after a "Read A Data" operation. This pulse can be used to signal the peripheral device that data was taken. 1 1 a Manual Output CA2 set low 1 1 1 Manual Output CA2 set high CB2 OUTPUT MODES CRB Blt5 Blt4 Blt3 Mode Description 1 a a "Handshake" CB2 is set low on microprocessor "Write B Data" on Write operation and is set high by an active transition of the CB 1 interrupt input signal. This allows positive control of data transfers from the microprocessor to the peripheral device. 1 a 1 Pulse Output CB2 goes low for one cycle after a microprocessor "Write B Data" operation. This can be used to signal the peripheral device that data is available. 1 1 a Manual Output CB2 set low 1 1 1 Manual Output CB2 set high 2-47 MPS 6520 MAXIMUM RATINGS COMMENT Supply Voltage, Vee -0.3 to + 7.0V Stresses above those listed under "Absolute Maximum Input Voltage, VIN -0.3 to +7.0V Ratings" may cause permanent damage to the device. These Operating Temperature Range, TA o to +70o e are stress ratings only. Functional operation of this device at Storage Temperature Range, TSTG -55 to + 150 0 e these or any other conditions above those indicated in the operational sections of this specification is not implied and This device contains circuitry to protect the inputs against exposure to absolute maximum rating conditions for extended damage due to high static voltages, however, it is advised that periods may affect device reliability. normal precautions be taken to avoid application of any voltage higher than maximum rated voltages to this circuit. STATIC D.C. CHARACTERISTICS (VCC = 5.0 V ± 5%, VSS = 0, TA = 25°C unless othelWise noted) Characteristic Symbol Min Typ Max Unit Input High Voltage (Normal Operating Levels) +2.0 VCC Vdc Input Low Voltage (Normal Operating Levels) -0.3 +.8 Vdc Input Threshold Voltage 0.8 2.0 Vdc Input Leakage Current uAdc !JAde Yin = 0 to 5.0 Vdc _ ±1.D ±2.5 RN/, Reset. RSO,RS 1,CSO,CS 1,CS2,CA 1,CB 1 ,¢2 Three-State (Off State Input Current) (Vin = 0.4 to 2.4 Vdc, VCC = max) DO-D7,PBQ-PB7,CB2 ±2.0 ±10 !JAde Input High Current (VIH = 2.4 Vdc) PAO-PA7,CA2 -100 -250 f,JAdc Input Low Current (YIL = 0.4 Vdc) PAO-PA7,CA2 -1.0 -1.6 mAdc Output High Voltage (VCC = min, 1 Load = -100 uAdc) 2.4 Vdc Output Low Voltage (VCC = min, 1 Load = 1 .6 mAde) +0.4 Vdc Output High Current (Sourcing) (YOH = 2.4 Vdc) -100 -1000 f,JAdc -1.0 -2.5 mAdc (YO = 1.5 Vdc, the current lor driving other than TIL, e.g., Darlington Base) PBO-PB7,CB2 Output Low Current (Sinking) (VOL = 0.4 Vdc) _ - 1.6 _ mAdc Output Leakage Current (Off State) IROA, IROB 1.0 10 /JAdc Power Dissipation 200 500 mW Input Capacitance pF (Yin - 0, TA = 25'C, I = 1.0 MHz) DO-D7,PAO-PA7,PBO-PB7,CA2,CB2 10 RN/,Res'et,RSO,RS1 ,CSO,CS1 ,CS2, 7.0 CA1 ,CB1 ,02 20 Output Capacitance Cout (Yin - 0, TA = 25'C, 1= 1.0 MHz) 10 pF NOTE: Negative sign indicates outward current flow, positive indicates inward Ilow. FIGURE 1 - READ TIMING CHARACTERISTICS Enable 2.4 V Address 0.4 V 2.4 V Peripheral Data 0.4 V 2.4 V Data Bus 0.4 V CA2 2.4 V (Pulse Out) 0.4 V 2.4 V CA 1 0.4 V CA2 2.4 V (Hand Shake) 0.4 V 2-48 MPS 6520 FIGURE 2 - WRITE TIMING CHARACTERISTICS Enable 2.4 V Address 0.4 V 2.4 V Read/Write 0.4 V 2.4 V Data Bus 0.4 V ------- _VCC- 30 '" 2.4 V I Peripheral Data 0.4 V 2,4 V CB 2 (Pulse Out) 0.4 V 2.4 V CB 1 0.4 V CB 2 2.4 V (Hand Shake) 0,4 V A.C. CHARACTERISTICS Figure 1 - Read Timing Characteristics (Loading 130 pF and one TTL load) Characteristics Symbol Min Typ Max Unit --oelay "Time, Address valid to Enable positive transition TAEW 180 - - ns Delay Time, Enable positive transition to Data valid on bus TEDR - - 395 ns Peripheral Data Setup Time TPDSU 300 - - ns Data Bus Hold Time THR 10 - - ns DelayTime, Enable negative transition to CA2 negative transition TCA2 - - 1.0 IJs Delay Time, Enable negative transition to CA2 positive transition TRS1 - - 1.0 ~s Rise and Fall Time for CA 1 and CA2 input signals tr,tf - - 1,0 IJS Delay Time from CA 1 active transition to CA2 positive transition TRS2 - - 2.0 IJS Rise and Fall Time for Enable input trE,tfE - - 25 ns Figure 2 - Write Timing Characteristics Characteristics Symbol Min Typ Max Unit Enable Pulse Width TE 0.470 - 25 IJs Delay Time, Address valid to Enable positive transition TAEW 180 - - ns Delay Time, Data valid to Enable negative transition TDSU 300 - - ns Delay Time, Read/Write negative transition to Enable positive TWE 130 - - ns transition Data Bus Hold Time THW 10 - - ns Delay Time, Enable negative transition to Peripheral Data valid TpDW - - 1,0 I-ls Delay Time, Enable negative transition to Peripheral Data valid, TCMOS - - 2,0 IJS CMOS (V~C - 30%) PAO-PA7, CA2 Delay Time, nable positive transition to CB2 negative transition TCB2 - - 1.0 IJs Delay Time, Peripheral Data valid to CB2 negative transition TDC 0 - 1,5 I-ls Delay Time, Enable positive transition to CB2 positive transition TRS1 - - 1,0 IJs Rise and Fall Time for CB1 and CB2 input signals tr,tf - - 1.0 I-ls Delay Time, CB 1 active transition to CB2 positive transition TRS2 - - 2,0 I-lS COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or design. COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 2-49 , . . , commodore MPS ~ aamicanduct:or group 6522 VERSATILE ~UYAJ@@ INTERFACE ADAPTER 6522 VERSATILE INTERFACE ADAPTER DESCRIPTION The 6522 Versatile Interface Adapter (VIA) provides all of the capability of the 6520.1 n addition, this device contains a pair of very powerful interval timers, a serial-to-parallellparallel-to-serial shift register and input data latching on the peripheral ports. Expanded handshaking capability allows control of bi-directional data transfers between VIA's in multiple processor systems. Control of peripheral devices is handled primarily through two 8-bit bi-directional ports. Each of these lines can be programmed toactaseitheran inputoran output.Also, several peripheralI/O lines can be controlled directly from the interval timers for generating programmable-frequency square waves and for counting externally generated pulses. To facilitate control of the many powerful features of this chip, the internal registers have been organized into an interrupt flag register, an interrupt enable register and a pair of function control registers. FEATURES • Very powerful expansion of basic 6520 capability. 6522 • N channel, depletion load technology, single +5V supply. • Completely static and TIL compatible. vSS CA1 • CMOS compatible peripheral control lines. PAO CA2 • Expanded "handshake" capability allows very positive PA1 RSO control of data transfers betvoJeen processor PA2 RS1 and peripheral devices. PA3 RS2 PA4 RS3 PA5 RES PA6 DO 6522 Interface Diagram PA7 01 PBO 02 PB1 03 PB2 04 8 Bit Data Bus --.. Control PB3 05 PB4 06 R/W 8 Bi: PB5 07 To Clock Port To PB6 6522 Peripheral ¢2 650X PB7 CS1 Register 8 Bit Devices & Chip Port CB1 CS2 Selects CB2 R/W Control VCC IRQ IRQ 2-50 MPS 6522 INTERRUPT CONTROL INPUT FlAB! IIFRI _ ~1!H_ DATA OUTPUT PORT IUS ENABLE loRAI A IIERI DATA OIR. 100RA PORT A REGISTERS CAl PORT A CA2 R/W FUNCTION PORT B CONTROL CLK HANDSHAKE CONTROL CSI CBI I ffi CBl RSO RII PORT B REGISTERS RSZ INPUT LATCH RI3 OUTPUT 1/"'"---....1 BUFFERS PORT IOABI IPBI B DATA OIR. 100RBI Figure 1. 6522 Block Diagram PROCESSOR INTERFACE 4. Read/Write Line (R/W) This section contains a description of the buses and control The direction of data transfers ,between the 6522 and the lines which are used to interface the 6522 to the system system processor is controlled by the R/W line. If R/W is low, processor. AC and DC parameters associated with this inter- data will be transferred out of the processor into the selected face are specified on pages 21 through 24 of this document. 6522 register (write operation). If R/W is high and the chip is 1. Phase Two Clock «(J'2) selected, data will be transferred out of the 6522 (read operation). Data transfers between the 6522 and the system processor 5. Data Bus (OBo-OB7) take place only while the Phase Two Clock is high. In addition, The 8 bi-directional data bus lines are used to transfer data ;j2 acts as the time base for the various timers, shift registers, between the 6522 and the system processor. The internal etc. on the chip. drivers will remain in the high-impedance state except when the 2. Chip Select Lines (CS1 , CS2) crip is selected (CS1 = 1 ,CS2 = 0), Read/Write is high and the The two chip select inputs are normally connected to Phase Two Clock is high. At this time, the contents of the processor address lines either directly or through decoding. selected register are placed on the data bus. When the chip is The selected 6522 register will be accessed when CS1 is high selected, with Read/Write low and,02 = 1, the data on the data and CS2 is' low. bus will be transferred into the selected 6522 register. 3. Register Select Lines (RSO, RS1, RS2, RS3) 6. Reset (RES) The four Register select lines are normally connected to the The Reset input clears all internal registers to logic 0 (except processor address bus lines to allow the processor to select the T1, T2 and SR). This places all peripheral interface lines in the internal 6522 register which is to be accessed. The sixteen input state, disables the timers, shift register, etc. and disables possible combinations access the registers as follows: interrupting from the chip. RS3 RS2 RS1 RSO Register Remarks RS3 RS2 RS1 RSO Register Remarks L L L L ORB H L L L T2L-L Write Latch L L L H ORA T2C-L Read Counter Controls Handshake H L L H T2C-H Triggers T2L-LJ L L H L DDRB T2C-L Transfer L L H H DDRA H L H L SR L H L T1L-L H L H H ACR L Write Latch T1C-L Read Counter H H K K PCR L H H L T1C-H H H L H IFR Trigger T1 L-LJ H H H IER T1 Col Trans!. L H H L T1L-L H H H H ORA No Effect on Handshake L H H H T1L-H Note. L - D.4V DC, H - 2.4V DC. 2-51 MPS 6522 7. Interrupt Request (IRQ) The Interrupt Request output goes low whenever an internal Register. These lines represent one standard TI~ load in the interrupt flag is setand the corresponding interrupt enable bit is input mode and will drive one standard TIL load In the output a logic 1. This output is "open-drain" to allow the interrupt mode. In addition, they are capable of sourcing 1.0 ma at 1.5 request signal to be "wire-or'ed" with other equivalent signals in VDC in the output mode to allow the outputs to directly drive the system. Darlington transistor switches. PERIPHERAL INTERFACE 6522 OPERATION This section contains a brief description of the buses and This section contains a discussion of the various blocks of control lines which are used to drive peripheral devices under logic shown in Figure 1.ln addition, the internal operation of the control of the internal 6522 registers. 6522 is described in detail. 1. Peripheral A Port (PAo-PA7) A. Data Bus Buffers (DB), Peripheral A Buffers (PA), The Peripheral A port consists of a lines which can be Peripheral B Buffers (PB) individually programmed to act as an input or an output under The characteristics of the buffers which provide the required control of a Data Direction Register. The polarity of output pins voltage and current drive capability were discussed in the is controlled by an Output Register and input data can be previous section. AC and DC parameters fOl these buffers are latched into an internal register under control of the CA 1 line. All specified on pages 21 through 24 of this document. of these modes of operation are controlled by the system processor through the internal control registers. These lines B. Chip Access Control represent one standard TIL load in the input mode and will The Chip Access Control contains the necessary logic to drive one standard TIL load in the output mode. detect the chip select condition and to decode the Register Select inputs to allow acceSSing the desired internal register. In 2. Peripheral A Control Lines (CA1 , CA2) addition, the R/W and ~2 signals are utilized to control the The two peripheral A control lines act as interrupt inputs or as direction and timing of data transfers. When writing into the handshake outputs. Each line controls an internal interrupt flag 6522, data is first latched into a data input register during ~2. with a corresponding interrupt enable bit. In addition, CA 1 Data is then transferred into the desired internal register dunng controls the latching of data on Peripheral A Port input lines. 02 . Chip Select. This allows the peripheral I/O line to change The various modes of operation are controlled by the system without "glitching." When the processor reads the 6522, data is processor through the internal control registers. CA 1 is a high- transferred from the desired internal register directly onto the impedance input only while CA2 represents one standard TIL Data Bus during 0'2. load in the input mode. CA2 will drive one standard TIL load in the output mode. C. Port A Registers, Port B Registers Three registers are used in accessing each of the a-bit 3. Peripheral B Port (PBo-PB7) peripheral ports. Each port has a Data Direction .Register The Peripheral B port consists of a bi-directionallines which (DORA, DDRB) for specifying whether the peripheral pins are to are controlled by an output register and a data direction reg ister act as inputs or outputs. A 0 in a bit of the Data Direction in much the same manner as the PA port. In addition, the Register causes the corresponding peripheral pin to act as an polarity of the PB 7 output signa I can be controlled by one of the input. A 1 causes the pin to act as an output. interval timers while the second timer can be programmed to Each peripheral pin is also controlled by a bit in the Output count pulses on the PB6 pin. These lines represent one Register (ORA, ORB) and an Input Register (IRA, IRB). When standard TIL load in the input mode and will drive one standard the pin is programmed to act as an output, the voltage on the pin TIL load in the output mode. In addition, they are capable of is controlled by the corresponding bit of the Output Register. A sourcing 30 ma at 1.5 VDC in the output mode to allow the 1 in the Output Register causes the pin to go high, and a 0 outputs to directly drive Darlington transistor switches. causes the pin to go low. Data can be written into Output 4. Peripheral B Control Lines (CB1, CB2) Register bits corresponding to pins which are programmed to The Peripheral B control lines act as interrupt inputs or as act as inputs; however, the pin will be unaffected. handshake outputs. As with CA 1 and CA2, each line controls Reading a peripheral port causes the contents of the Input an interrupt flag with a corresponding interrupt enable bit. In Register (IRA, IRB) to be transferred onto the Data Bus. With addition, these lines act as a serial port under control of the Shift input latching disabled, IRA will always reflect the data on the +5 V +5 v InpuVOutput~ Control : '--_-+-........_ PAO-PA 7, PBO-PB7, CA2 CB1, CB2 Output Data I Input Data .......- - - - - - - - ' Input Data _ - - - - - - - - - - - Figure 2. Peripheral Output Buffers 2-52 MPS 6522 PA pins. With input latching enabled, IRA will reflect the generation of a "Data Taken" signal. The peripheral device contents of the Port A prior to setting the CA 1 Interrupt Flag responds by making new data available. This process con- (IFR1) by an active transition on CA1. tinues until the data transfer is complete. The IRB register operates in a similar manner. However, for In the 6522, automatic "Read" handshaking is possible on output pins, the corresponding I RB bit will reflect the contents the Perij2)heral A port only. The CA 1 interrupt input pin accepts of the Output Register bit instead of the actual pin. This 'allows the "Data Ready" signal and CA2 generates the "Data Taken" proper data to be read into the processor if the output pin is not signal. The Data Heady signal will set an internal flag which may allowed to go to full voltage. With input latching enabled on Port interruptthe processor or which can be polled under software B, setting CB 1 interrupt flag will cause I RB to latch this control. The Data Taken signal can be either a pulse or a DC combination of input data and ORB data until the interrupt flag level which is set low by the system processor and is cleared by is cleared. the Data Ready signal. These options are shown in Figure 3 O. Handshake Control which illustrates the normal Read Handshaking sequence. The 6522 allows very positive control of data transfers Write Handshake between the system processor and peripheral devices through The sequence of operations which allows handshaking data the operation of "handshake" lines. Port A lines (CA1, CA2) from the system processor to a peripheral device is very similar handshake data on both a read and a write operation while the to that described in Section A for Read Handshaking. However, Port B lines (CB1, CB2) handshake on a write operation only. for "Write" handshaking, the processor must generate the "Data Read Handshake Ready" signal (through the 6522) and the peripheral device Positive control of data transfers from peripheral devices into must respond with the "Data Taken" signal. This can be accom- the system processor can be accomplished very effectively plished on both the PA port and the PB port on the 6522. CA2 or using "Read" handshaking. In this case, the peripheral device CB2 acts as a Data Ready output in either the DC level or pulse must generate "Data Ready" to signal the processor that valid mode and CA 1 or CB 1 accepts the "Data Taken" Signal from data is present on the peripheral port. This signal normally the peripheral device, setting the interrupt flag and clearing the interrupts the processor, which then reads the data, causing "Data Ready" output. This sequence is shown in Figure 4. Data Available (CAl) IRQOutput l ~ ________________ ~r- Read ORA _______________________ ~r__l~ _____________________ Operation 2 Data Taken- Handshake M o d e - - - - - - - - - - - - - - - - - - , (CA2) '------------1 r--- Data Taken- Pulse Mode L-1 (CA2) Notes: 1. Signals "data available" 10 the system processor. 2. R/W- l.~-O.CSl - l.RS3-0. RS2 -0. RSl -O.RSO- 1. Figure 3. Read Handshake Timing Sequence Phase Two Clock ~~~ Write ORA Operation l ~~----------------------~~ Data Availabl&- Handshake Mode (CA2.CB2) ~ __________ ~r---- Data Available- Pulse Mode (CA2.CB2) Data Taken (CA1,CB1) iFiQ Output2 ~---- __________ ~r---- Notes: 1. R/W-O,CS2-0,CSl -l,RS3-0,RS2-0,RSl -0.RSO-1 2. Signals "data taken" to the system processor. Figura 4. Write Handshake Timing Sequence 2-53 MPS 6522 TIMER 1 TImer 1 Operating Modes Introduction Two bits are provided in the Auxiliary Control Register to Interval Timer T1 consists of two 8-bit latches and a 16-bit allow selection of the T1 operating modes. These bits and the counter. The latches are used to store data which is to be four possible modes are as follows: loaded into the counter. After loading, the counter decrements ACR7 ACR6 at system clock rate, i.e., under control of the clock applied to Output "Free-Run" the Phase Two input pin. Upon reaching zero, an interrupt flag Enable Enable Mode will be set, and iTiQ will go low. The timer will then disable any 0 0 Generate a single time-out interrupt each time Tl is further interrupts, or will automatically transfer the contents of loaded. PB7 disabled. the latches into the counter and will continue to decrement. In 0 1 Generate continuous interrupts. PB7 disabled. addition, the timer can be instructed to invert the output signal 1 0 Generate a single interrupt and an output pulse on PB7 on a peripheral pin each time it "times-out." Each of these for each Tl load operation. modes is discussed separately below. 1 1 Generate continuous interrupts and a square wave output on PB7. Writing the Timer 1 Registers The operations which take place when writing to each of the Timer 1 One-Shot Mode four T1 addresses are as follows: The interval timer one-shot mode allows generation of a single interrupt for each timer load operation. As with any Transfer low order latch into low order interval timer, the delay between the "write T1 C-H" operation and generation of the processor interrupt is a direct function of RS3 RS2 RS1 RSO Operation (R/W = L) the data loaded into the timing counter. In addition to gener- L H L L Write into low order latch. ating a single interrupt, Timer 1 can be programmed to produce L H L H Write into high order latch. a single negative pulse on the PB7 peripheral pin. With the Write into high order counter. output enabled (ACR&=1) a "write T1 C-H" operation will cause Transfer low order latch into low order counter. Reset Tl interrupt flag. PB7 to go low. PB7 will return high when Timer 1 times out. The H result is a single programmable width pulse. L H L Write low order latch. L H H H Write high order latch. NOTE Reset Tl interrupt flag. PB7 will act as an output if DDRB7 = 1 or if ACR7 = 1. However, if Note that the processor does not write directly Into the low both DDRB7 and ACR7 are logic 1, PB7 will be controlled from Timer 1 order counter (T1 Col). I nstead, this half of the counter is loaded and ORB7 will have no effect on the pin. automatically from the low order latch when the processor In the one-shot mode, writing into the high order latch has no writes into the high order counter. In fact, it may not be effect on the operation of Timer 1. However, it will be necessary necessary to write to the low order counter in some appl ications to assure that the low order latch contains the proper data since the timing operation is triggered by writing to the high before initiating the count-down with a "write T1 C-H" operation. order counter. When the processor writes into the high order counter, the T1 The second set of addresses allows the processor to write interrupt flag will be cleared, the contents of the low order latch into the latch register without affecting the count-down in will be transferred into the low order counter, and the timer will progress. This is discussed in detail below. begin to decrement at system clock rate. If the PB7 output is enabled, this signal will go low on the phase two following the Reading the Timer 1 Registers write operation. When the counter reaches zero; the T1 interrupt For reading the Timer 1 registers, the four addresses relate flag will be set, the IRQ pin will go low (interrupt enabled), and directly to the four registers as follows: the signal on PB7 will go high. At this time the counter will RS3 RS2 RS1 RSO Operation (R/W = HI continue to decrement at system clock rate. This allows the L H L L Read Tl low order counter. system processor to' read the contents of the counter to Reset Tl interrupt flag. determine the time since interrupt. However, the T1 interrupt L H L H Read Tl high order counter. flag cannot be set again unless it has been cleared as L H H L Read Tl low order latch. described on page 13 of this specification. L H H H Read Tl high order latch. Timing for the 6522 interval timer one-shot modes is shown in Figure 5. Phase Two Clock Write TtC-Hl Operation ~L----------Ilf---------------­ IRQ Output - - - - - - - - - - - - - - - - I f - - - - - - - - - , L -_ _ _ _ _ _ __ PB7 Output _ _ _ _....., o I I I FF FE I FD I FC I ·1 Notes: 1. RtW-L,CS2-L,CS1-H,RS3-LRS2-H,RS1-RSO-H. Figure 5. Interval Timer "One-shot" Mode Timing Sequence. 2-54 MPS 6522 Timer 1 Free-Running Mode The most important advantage associated with the latches in peripheral pin. A single control bit is provided in the Auxiliary T1 is the ability to produce a continuous series of evenly Control Register to select between these two modes. This timer spaced interrupts and the ability to produce a square wave on is comprised of a "write-only" low-order latch (T2L-L), a "read- PB7 whose frequency is not affected by variations in the only" low-order counter and a read/write high-order counter. processor interrupt response time. This is accomplished in the The counter registers act as a 16-bitcounterwhich decrements "free-running" mode. at 02 rate. In the free-running mode (ACR6 = 1), the interrupt flag is set Timer 2 addressing can be summarized as follows: and the signal on PB7 is inverted each time the counter reaches zero. However, instead of continuing to decrement RS3 RS2 RS1 RSO R/W=O R/W=1 from zero after a time-out, the timer automatically transfers the H L L L Write T2L-L Read T2C-L Clear Interrupt flag contents of the latch into the counter (16 bits) and continues to H L L H WriteT2C-H Read T2C-H decrement from there. The interrupt flag can be cleared by Transfer T2L-L to T2C-L writing T1 C-H, by reading T1 C-L, or by writing directly into the Clear Interrupt flag flag as described below. However, it is not necessary to rewrite the timer to enable setting the interrupt flag on the next time-out. Timer 2 Interval Timer Mode I All interval timers in the 6500 family devices are "re- As an interval timer, T2 operates in the "one-shot" mode triggerable." Rewriting the counter will always re··initialize the similarto Timer 1.ln this mode, T2 provides a single interruptfor time-out period. In fact, the time-out can be prevented com- each "write T2C-H" operation. After timing out, the counter will pletely if the processor continues to rewrite the timer before it continue to decrement. However, setting of the interrupt flag will reaches zero. Timer 1 will operate in this manner if the be disabled after initial time-out so that it will not be set by the processor writes into the high order counter (T1 C-H). However, counter continuing to decrement through zero. The processor by loading the latches only, the processor can access the timer must rewrite T2C-H to enable setting of the interrupt flag. The during each down-counting operation without affecting the interrupt flag is cleared by reading T2C-L or by writing T2C-H. time-out in process. Instead, the data loaded into the latches Timing for this operation is shown in Figure 5. will determine the length of the next time-out period. This capability is particyl§lrly valuable in the free-running mode with Timer 2 Pulse Counting Mode In the pulse counting mode, T2 serves primarily to count a the output enabled. In this mode, the signal on PB7 is inverted and the interrupt flag is set with each time-out. By responding to predetermined number of negative-going pulses on PB6. This the interrupts with new data for the latches, the processor can is accomplished by first loading a number into T2. Writing into determine the period of the next half cycle during each half T2C-H clears the interrupt flag and allows the counter to cycle of the output signal on PB7.ln this manner, very complex decrement each time a pulse is applied to PB6. The interrupt flag will be set when T2 reaches zero. At this time the counter will waveforms can be generated. Timing for the free-running mode is shown in Figure 6. continue to decrement with each pulse on PB6. However, it is necessary to rewrite T2C-H to allow the interrupt flag to set on TIMER 2 subquent down-counting operations. Timing for this mode is Timer 2 operates as an interval timer (in the "one-shot" mode shown in Figure 7. The pulse must be Iowan the leading edge only), or as a counter for counting negative pulses on the PB6 02. systemClock~~~~ Write T1 C-H .-----, . Operation - - - - J L----Jlt-----------·---------------- 'iRa Output ------------~fI~--------~ '-----------1)/ t (! PB70utput ~~. _ _ _ _~ " f---- N+1.5 Cycles + N+2 Cycles Figure 6. Timer 1 "Free-Running" Mode WriteT2C-H Operation ~-------------------------------------- PB61nput u u.-----·-II u u iRQ Output N N-1 N-2 fJ 2 o Figure 7. Timer 2 Pulse Coulntlng Mode 2-55 MPS 6522 SHIFT REGISTER The Shift Register (SR) performs serial data transfers into and Mode 001 - Shift In under Control ot Timer 2 out of the CB2 pin under control of an internal modulo-8 In this mode the shifting rate is controlled by the low order 8 counter. Shift pulses can be applied to the CB1 pin from an bits of T2. Shift 'pulses are generated on the CB 1 pin to control external source or, with the proper mode selection,shift pulses shifting in external devices. The time between transitions of this generated intemally will appear on the CB 1 pin for controlling output clock is a function of the system clock period and the shifting in external devices. contents of the low order T2 latch. The control bits which allow control of the various shift The shifting operation is triggered by writing or reading the register operating modes are located in the Auxiliary Control shift register. Data is shifted first into the low order bit of SR and Register. These bits can be set and cleared by the system is then shifted into the next higher order bit of the shaft register processor to select one of the operating modes diSCUSSed in on the trailing edge of each clock pulse.As shown in Figure 8, the following paragraphs. the input data should change before the leading edge of the clock pulse. This data is loaded into the shift register during the Shift Register Input Modes system clock cycle following the trailing edge of the clock Bit 4 of the Auxiliary Control Register selects the input or pulse. After 8 clock pulses, the shift register interrupt flag will be output modes. There are three input modes and four output set and IRQ will go low. modes, differing primarily in the source of the pulses which control the shifting operation. With ACR4 = 0 the input modes Mode 010 - Shift In at System Clock Rate are selected by ACR3 and ACR2 as follows: In this mode the shift rate is a direct function of the system clock frequency. CB1 becomes an output which generates ACR4 ACR3 ACR2 Mode shift pulses for controlling external devices. Timer 2 operates as 0 0 0 Shift Register Disabled an independent interval timer and has no effect on SR. The 0 0 1 Shift in under control of Timer 2 shifting operation is triggered by reading or writing the Shift 0 1 0 Shift in at System Clock Rate. Register. Data is shifted first into bit 0 and is then shifted into the 0 1 1 Shift in under control of external next higher order bit of the shift register on the trailing edge of input pulses each clock pulse. After 8 clock pulses, the shift register interrupt flag will be set, and the output clock pulses on CB1 will stop. Mode 000 - Shift Register Disabled The 000 mode is used to disable the Shift Register. In this Mode 011 - Shift In under Control of External Clock mode the microprocessor can write or read the SR, but the In this mode CB 1 becomes an input. This allows an external shifting operation is disabled and operation ofCB1 and CB2 is device to load the shift register at its own pace. The shift register controlled by the appropriate bits in the Peripheral Control counter will interrupt the processor each time 8 bits have been Register (PCR). In this mode the SR Interrupt Flag is disabled shifted in. However, the shift register counter does not stop the (held to a logic 0). shifting operation; it acts simply as a pulse counter. Reading or Write or Read ----.lI Shift Reg. ~----- CS2 Input Data y//llll CS1 Shift Clock IRQ Figure 8. Shifting In Under Control of T2 System Clock (02) WriteSR ~'--_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ Operation Output Clock - - - - - - - - - - - -{~­ (CS1) Input Data (CB2) \\\\\\\\\\\\\\\\illlli\"S%\\"VX K\\\\\~~ K\\\\\\\\\\\ IRQ Figure 9. Timing Sequence tor Shifting In at System Clock Rate 2-56 MPS 6522 writing the Shift Register resets the Interrupt flag and initializes Mode 101 - Shift out under Control of T2 the SR counter to count another 8 pulses. In this mode the shift rate is controlled by T2 (as in the Note that data is shifted during the first system clock cycle previous mode). However, with each read or write of the shift following the leading edge of the CB1 shift pulse. For this register the SR Counter is reset and 8 bits are shifted onto CB2. reason, data must be held stable during the first full cycle At the same time, 8 shift pulses are generated on CB 1 to control foliowingCB1 going high.Timing forthis operation is illustrated shifting in external devices. After the 8 shift pulses, the shifting is in Figure 10. disabled, the SR Interrupt flag is set and CB2 goes to a state Shift Register Output Modes determined by the CB2 Control bit (PCS) in the Peripheral The four Shift Register Output Modes are selected by setting Control F~egister. the InpuVOutput Control Bit (ACR4) to a logic 1 and then If the shift register is reloaded before the last time-out, the selecting the specific output mode with ACR3 and ACR2. In shifting will continue. This sequence is illustrated in Figure 11. each of these modes the Shift Register shifts data out of bit 7 to the CB2 pin. At the same time the contents of bit 7 are shifted Mode 1 '10 - Shifting out at System Clock Rate back into bit O. As in the input modes, CB 1 is used either as an In this mode the shift register operation is similar to that output to provide shifting pulses out or as an input to allow shown in Figure 11. However, the shifting rate is a function of the shifting from an external pulse. The four modes are as follows: I system clock on the chip enable pin (02) and is independent of ACR4 ACR3 ACR2 Mode T2. Timer 2 resumes its normal function as an independent 1 0 0 Shift out - Free-running mode. interval timer. Figure 12 illustrates the timing sequence for Shift rate controlled by T2. mode 110. 1 0 1 Shiftout-ShiftratecontroliedbyT2. Shift pulses generated on CB1. 1 1 0 Shift out at system clock rate. Mode 111 - Shift out under Control of an External Pulse 1 1 1 Shift out under control of an external In this mode, shifting is controlled by pulses applied to the pulse. CB1 pin by an external device. The SR counter sets the SR Interru pt flag each ti me it counts 8 pulses but it does not disable Mode 100 Free-Running Output the shifting function. Each time the microprocessor writes or This mode is very simiJar to mode 101 in which the shifting reads the shift register, the SR Interrupt flag is reset and the SR rate is set byT2. However, in mode 100 the SR Counter does not Counter is initialized to begin counting the next 8 sh ift pulses on stop the shifting operation. Since the Shift Register bit 7 (SR7) is pin CB 1. After 8 shift pulses, the interrupt flag is set. The micro- recirculated back into bit 0, the 8 bits loaded into the shift processor can tren load the shift register with the next byte of register will be clocked onto 9B2 repetitively. In this mode the data. . shift register counter is disabled. CB1 L-----ffr-- - - - ' L CB.2 ________________ ~x__~ _________________ IRQ NOTE: Data is shifted at pOint A Figure 10. Timing sequence for shifting In under control of external clock Phase Two Clock WRITE SR ~L-________~_______________________________ Operation Output Data (CB2) --------~x~-----------~f~,---_________ ~ ~---------~~~~------------- Output Clock (CB1) IRQ Notes: 1. Data out determined by CB2 control in PCR. Figure 11. Shifting out under Control of T2. 2-57 MPS 6522 INTERRUPT CONTROL Controlling interrupts within the 6522 involves three prin- Bits sixthrough zero are latches which are set and cleared as cipal operations. These are flagging the interrupts, enabling follows: interrupts and signalling to the processor that an active interrupt exists within the chip. Interrupt flags are set by Blt# Selby Cleared by interrupting conditions which exist within the chip or on inputs 0 Active transition of the Reading or writing the A Port Output signal on the CA2 pin. Register (ORA) using address 0001. to the chip. These flags normally remain set until the interrupt 1 Active transition of the Reading or writing the A Port Output has been serviced. To determine the source of an interrupt, the signal on the CA 1 pin. Register (ORA) using address 0001 . microprocessor must examine these flags in order from highest Reading or writing the Shift Register. 2 Completion of eight shifts to lowest priority. This is accomplished by reading the flag 3 Active transition of the Reading or writing the B Port Output register into the processor accumulator, shifting this register signal on the CB2 pin. Register. either right or left and then using conditional branch instruc- 4 Active transition of the Reading or writing the B Port Output tions to detect an active interrupt. signal on the CB1 pin. Register. Associated with each interrupt flag is an interrupt enable bit. S Time-<>ut of Timer 2. Reading T2 low order counter. Writing T2 high order counter. This bit can be set or cleared by the processor to enable 6 Time-<>ut of Timer 1. Reading T1 lower order counter. interrupting the processor from the corresponding interrupt Writing T1 high order latch. flag. If an interrupt flag is set to a logic 1 by an interrupting condition, and the corresponding.interrupt enable biti§...§.et to a The IFR bit 7 is not a flag. Therefore, this bit is not directly 1, the Interrupt Request Output (IRO) will go low. IRO is an cleared by writing a logic 1 into it. It can only be cleared by "open-collector" output which can be "wire or'ed" with other clearing all the flags in the register or by disabiling all the active devices in the system to interrupt the processor. interrupts as discussed in the next section. In the 6522, all the interrupt flags are contained in one Interrupt Enable Register (lER) register. In addition, bit 7 of this register will be read as a logic 1 For each interrupt flag in I FR, there is a corresponding bit in when an interrupt exists within the chip. This allows very the I nterrupt Enable Register. The system processor can set or convenient polling of several devices within a system to locate clear selected bits in this register to facilitate controlling the source of an interrupt. individual interrupts without affecting others. This is accom- plished by writing to address 1110 (IER address). If bit 7 of the 7 6 5 4 3 2 1 0 data placed on the system data bus during this write operation Interrupt IRQ T1 T2 CB1 CB2 SR CA1 CA2 is a 0, each 1 in bits 6 through 0 clears the corresponding bit in Flag Register the Interrupt Enable Register. For each zero in bits 6 through 0, Interrupt SeV T1 T2 CB1 CB2 SR CA1 CA2 the corresponding bit is unaffected. Enable clear Setting selected bits in the Interrupt Enable Register is Register control accomplished by writing to the same address with bit 7 in the data word set to a logic 1.In this case, each 1 in bits 6 through 0 Interrupt Flag Register will set the corresponding bit. For each zero, the corresponding The IFR is a read/bit-clear register. When the proper chip bit will be unaffected. This individual control of the setting and select and register signals are applied to the chip, the contents clearing operations allows very convenient control of interrupts of this register are placed on the data bus. Bit 7 indicates the during system operation. status of the I RO output. This bit corresponds to the logic In addition to setting and clearing IER bits, the processor function: IRO = IFR6 X IER6 + IFR5 X IER5 + IFR4 X IER4 + can read the contents of this register by placing the proper IFR3 X IER3 + IFR2 X IER2 + IFR1 X IER1 + IFRO X IERO. address on the register select and chip select inputs with the Note: X = logic AN D, + = Logic OR. RNI line high. Bit 7 will be read as a logic O. Phase Two Clock ~-------------------------------------- Write SA Operation Clock Out (CB1) ~ ----~~~--~--~~ Data Out (CB2) IAQ Figure 12. Shifting out under Control of System Clock Write SA Operation ---II' - - - - - - - - - - - - - - - - - - - - - - - - - - - InputCLK ~ (CB1) Output Data (CB2) ________Jx,~__________~x~____~i~------- IAQ Figure 13. Shifting out under Control of External Clock 2-58 MPS 6522 FUNCTION CONTROL Control of the various functions and operating modes within In the independent input mode, writing or reading the ORA the 6522 is accomplished primarily through two registers, the register has no effect on the CA2 interruptflag. This flag must be Peripheral Control Register (PCR), and the Auxiliary Control cleared by writing a logic 1 into the appropriate IFR bit. This Register (ACR). The PCR is used primarily to select the mode allows the processor to handle interrupts which are operating mode for the four peripheral control pins. The independent of any operations taking place on the peripheral Auxiliary Control Register selects the operating mode for the I/O ports. interval timers (T1, T2), and the serial port (SR). The handshake and pulse output modes have been de- scribed previously. Note that the timing of the output signal Peripheral Control Register varies slightly depending on whether the operation is initiated The Peripheral Control Register is organized as follows: by a read or a write. 3. CB1 Control Control of the active transition of the CB1 input signal operates in exactly the same manner as that described above forCA1.lf PCR4 isa logicOtheCB1 interrupt flag (lFR4) will be I Each of these functions is discussed in detail below. set by a negative transition of the CB1 input signal and cleared bya read or write of the ORB register. If PCR4 is a logic 1, IFR4 1. CA 1 Control will be set by a positive transition of CB1. Bit 0 of the Peripheral Control Register selects the active If the Shift Register function has been enabled, CB 1 will act transitiol) of the input signal applied to the CA 1 interrupt input as an input or output for the shift register clock signals. In this pin. If this bit is a logic 0, the CA 1 interrupt flag will be set by a mode the CB1 interrupt flag will still respond to the selected negative transition (high to low) of the signal on the CA 1 pin. If transition of the signal on the CB 1 pin. PCRO is a logic 1, the CA 1 interrupt flag will be set by a positive transition (low to high) of this signal. 4. CB2 Control With the serial port disabled, operation of the CB2 pin is a 2. CA2 Control function of the three high order bits of the PCR. The CB2 modes The CA2 pin can be programmed to act asn an interrupt are very similar to those described previously for CA2. These input or as a peripheral control output. As an input, CA2 modes are selected as follows: operates in two modes, differing primarily in the methods available for resetting the interrupt flag. Each of these two input PCR7 FCR6 PCR5 Mode modes can operate with either a positive or a negative active 0 0 0 Interrupt input mode - Set CB2 interrupt flag transition as described above for CA 1. (IFR3) on a negative transition of the CB2 input In the output mode, the CA2 pin combines the operations signal. Clear IFR3 on a read or write of the Peripheral B Output Register. performed on the CA2 and CB2 pins of the 6520. This added 0 0 1 Independent interrupt input mode - Set IFR3 on flexibility allows processor to perform a normal "write" hand- a negative transition of the CB2 input signal. shaking in a system which uses CB1 and CB2 for the serial Reading or writing ORB does not cear the operations described above. The CA2 operating modes are interrupt flag. selected as follows: 0 1 0 Input mode- SetCB2 interrupt flag on a pOSitive transition of the CB2 input signal. Clear the CB2 interrupt flag on a read or write of ORB. PCR3 PCR2 PCR1 Mode 0 1 1 Independent input mode - Set IFR3 on a posi- 0 0 0 Input mode - Set CA2 interrupt flag (I FRO) on a tive transition of the CB2 input Signal. Reading or negative transition of the input signal. Clear I FRO writing ORB does notcieartheCB2 interrupt flag. on a read or write of the Peripheral A Output Register. 1 0 0 Handshake output mode - Set CB2 Iowan a write ORB operation. Reset CB2 high with an 0 0 1 I ndependent interrupt input mode - Set IFRO on active transition of the CBl input signal. a negative transition of the CA2 input signal. Reading or writing ORA does not clear the CA2 1 0 1 Pulse output mode - Set CB2 low for one cycle interrupt flag. following a write ORB operation. 0 1 0 Input mode - Set CA2 interrupt flag on a positive 1 1 0 Manual output mode - The CB2 output is held transition of the CA2 input signal. Clear IFRO with low in this mode. a read or write of the Peripheral A Output Register. I 1 1 Manual output mode - The CB2 output is held 0 1 1 Independent interrupt input mode -Set IFRO on high in this mode. a positive transition of the CA2 input Signal. Reading or writing ORA does not clear the CA2 interrupt flag. 1 0 0 Handshake output mode - Set CA2 output low Auxiliary Control Register on a read or write of the Peripheral A Output Many of the functions in the Auxiliary Control Register have Register. Reset CA2 high with an active transition been discussed previously. However, a summary of this register on CAl. is presented here as a convenient reference for the 6522 user. 1 0 1 Pulse Output mode - CA2 goes low for one cycle following a read or write of the Peripheral A The Auxiliary Control Register is organized as follows: Output Register. 1 1 0 Manual output mode - The CA2 output is held low in this mode. Bit#:- Function- 1 I 6 5 T2 4 I 3 I 2 1 PB PA 0 Tl Control Control Shift Register Control Latch Latch 1 1 1 Manual output mode - The CA2 output is held Enable Enable high in this mode. 2-59 MPS 6522 APPLICATION OF THE 6522 1. PA Latch Enable The 6522 represents a significant advance in general- The 6522 provides input latching on both the PA and PB purpose microprocessor I/O. Unfortunately, its many powerful ports. In this mode, the data present on the peripheral A input features, coupled with a set of very flexible operating modes, pins will be latched within the chip when the CA 1 interrupt flag cause this device to appear to be very complex at first glance. is set. Reading the PA port will result in these latches being wever, a detailed analysis will show that theVIA is organized to transferred into the processor. As long as the CA 1 interrupt flag allow convenient control of these powerful features. This is set, the data on the peripheral pins can change without section seeks to assist the system designer in his under- standing of the 6522 by illustrating how the device can be used affecting the data in the latches. This input latching can be used in microprocessor-based systems. with any of the CA2 input or output modes. It is important to note that on the PA port, the proCessor A. Control of 6522 Interrupts always reads the data on the peripheral pins (as reflected in the Organization of the 6522 interrupt flags into a single register latches). For output pins, the processor still reads the latches. greatly facilitates the servicing of interrupts from this device. Since there is only one I RQ output for the seven possible This mayor may not reflect the data currently in the ORA. Proper sources of interrupt within the chip, the processor must exam- system operation requires careful planning on the part of the ine these flags to determine the cause of an interrupt. This is system designer if input latching is combined with output pins best accomplished by first transferring the contents of the flag on the peripheral ports. register into the accumulator. At this time it may be necessary to Input latching is enabled by setting bit a in the Auxiliary mask off those flags which have been disabled in the Interrupt Control Register to a logic 1.As long as this bit isaO, the latches Enable Register. This is particularly important for the edge will directly reflect the data on the pins. detecting inputs where the flags may be set whether or not the interrupting function has been enabled. Masking off those flags 2. PB Latch Enable can be accomplished by performing an AND operation be- Input latching on the PB port is controlled in the same tween the IE R and the accumulator or by performing an "AN D manner as that described for the PA port. However, with the IMMEDIATE." The second byte of this AND # instruction peripheral B port the input latch will store either the voltage on should specify those flags which correspond to interrupt the pin or the contents ofthe Output Register (ORB) depending functions which are to be serviced. on whether the pin is programmed to act as an input or an If the N flag is set after these operations, an active interrupt output. As with the PA port, the processor always reads the input exists within the chips. This interrupt can be detected with a latches. series of shift and branch instructions. Clearing interrupt flags is accomplished very conveniently 3. Shift Register Control by writing a logic 1 directly into the appropriate bit of the The Shift Register operating mode is selected as follows: Interrupt Flag Register. This can be combined with an interrupt enable or disable operation as follows: LDA #@1 001 0000 initialize accumulator ACR4 ACR3 ACR2 Mode STA IFR clear interrupt flag 0 0 0 Shift Register Disabled. STA IER set interrupt enable flag 0 0 1 Shift in under control of Timer 2. or: 0 1 0 Shift in under control of system clock. LDA #@00001 000 initialize accumulator 0 1 1 Shift in under control of extemal clock pulses. STA IFR clear interrupt flag 1 0 0 Free-running output at rate determined by Timer 2. STA IFR disable interrupt 1 0 1 Shift out under control of Timer 2. Another very useful technique for clearing interrupt flags is to 1 1 0 Shift out under control of the system clock. simply transfer the contents of the flag register back into this register as follows: 1 1 1 Shift out under control of external clock pulses. LDAIFR transfer I FR to accumulator STA IFR clear flags corresponding to active 4. T2 Control interrupts Timer 2 operates in two modes. If ACR5 = a, T2 acts as an After completion of this operation the accumulator will still interval timer in the one-shot mode. If ACR5 = 1, Timer 2 acts to contain the interrupt flag information. Most important, writing count a predetermined number of pulses on pin PB6. into the flag register clears only those flags which are already 5. T1 Control set. This eliminates the possibility of inadvertently clearing a flag while it is being set. Timer 1 operates in the one-shot or free-running mode with the PB7 output control enabled or disabled. These modes are B. Use of Timer 1 selected as follows: Timer 1 represents one of the most powerful features of the 6522. The ability to generate very evenly spaced interrupts and the ability to control the voltage on PB7 makes this timer ACR7 ACR8 Mode particularly valuable in various timing,data detection and wave- 0 0 One-shot mode - Output to PB7 disabled. form generation applications. 0 1 Free-running mode -Output to PB7 disabled. Tlme-of-Day Clock Applications 1 0 One-shot mode - Output to PB7 enabled. An important feature of many 'systems is the time-of-day 1 1 Free-running mode. Output to PB7 enabled. clock. In microprocessor-based systems the time of day is usually maintained in memory and is updated in an interrupt service routine. A regular processor interrupt will then assure that this time of day will always be available when it is needed in the main program. 2-60 MPS 6522 Generating very regular interrupts using previously available (output mode). In this mode a single negative pulse can be timers presented difficulties because of the need to re-Ioad the generated on PB7 (one-shot mode), or in the free-running timer for each interrupt. Unfortunately, the time between the mode, a continuous waveform can be generated. In this latter interrupts will fluctuate due to variations in the interrupt response mode the voltage on PB7 will be inverted each time T1 times time. This program is eliminated in the Timer 1 "free-running" out. mode. The accuracy of these "free-running" interrupts is only a function of the system clock and is not affected by interrupt A single solenoid can be triggered very conveniently in the response time. one-shot mode if the PB 7 signal is used to control the solenoid directly. With this configuration the solenoid can be triggered Asynchronous Data Detection by simply writing to T1 C-H. The extraction of clock and data information from serial Generating very complex waveforms can be a simple prob- asynchronous ASCII signals or from any single channel data lem ifT1 is used to control PB7 in the free-running mode. During recording device relies on the ability to establish accurate any count-down process the latches can be loaded to deter- strobes. As discussed previously, the period of these strobes mine the length of the next count-down period. Figure 15 shows can be seriously affected by the interrupt response time using this timing sequence for generating ASCII serial data. conventional timers. However, T1 again allows generation of very accurate interrupts. The processor responds to these An application where this mode of operation is also very interrupts by strobing the input data. The ability to reload the T1 powerful is in the generation of bi-phase encoded data for tape I latches without affecting the count-down in progress is very useful in this application. This allows the strobe time to be or disk storage. This encoding technique and the sequence of doubled or halved during data detection. See Figure 14 for operations which would take place are illustrated in Figure 16. sequence of operations. These applications represent only a tiny portion of the potentia1 T1 applications. Some other possibilities are pulse Waveform Generation with Timer 1 width modulation waveforms, sound generation for video In addition to generating processor interrupts, Timer 1 can games, AID techniques requiring very accurate pulse widths, be used to control the output voltage on peripheral pin PB7 and waveform synthesis in electronic games. Start Bit Data Bit Data Bit u U L.J 4 T III « 2T Load T into T1 counter and 2T into T1 latch at beginning of start bit. -I • Figure 14. Detecting Asynchronous Data Using Timer 1 2T 2T -----00/ Output I Start Bit Data Bit I I Data (PB7) I ~ L -_ _ ----JI IRO ~ L~ I I I I 1. Load T into T1 counter and latch. Load T into T2 to trigger T1 latch reload 2. Load 2T into T1 latch dUrIng this bit time. Load 2T ,nto T2. 3. Load T into T1 latch anytime during this period. Load NT into T2. N = number of 1's or O'S which follow. 4. A series of 1's and O's will be generated until the T1 latch IS again changed. Note that the use of T2 to control reloading the T1 latch eliminates the need to interrupt on each transition. Figure 15. ASCII Serial Data Generation Using T1 Output I I 1 I Data fPB7) IL.___---J ~'--_--'I I L,-' 1. Load T1 counter and latch. 2. Shift T1 latch one bit to the right during this period. 3. Shift T1 latch left during this period. 4. Shift T1 latch right during this period. Note that T1 must be accessed only when the output data changes. A string of 1's and O's can be generated without processor intervention. Figure 16. Generating SI-phase Encoded Data 2-61 MPS 6522 Using the 6522 Shift Register The Shift Register in the 6522 is designed primarily as a CB2 Data CBI Ctock synchronous serial communications port for distributed sys- PBO Setect I tems. These systems can be either single-processor with 650X 6522 PBI Setect 2 distributed peripheral controllers or distributed processor sys- tems. The most important characteristic of the Shift Register in ~H-j...j.........-..I PB2 PB3 Setect3 il To Display lamp Drivers these applications is its ability to transfer information at rela- tively slow data rates to allow the use of R-C noise suppression techniques. This transfer can be accomplished while the processor is servicing other aspects of the system. An example of a simple 2-processor distributed system is shown in Figure Tone'" display 17. Use of the 6522 Shift Register allows effective communica- To Display Lamp Drivers tion between the two systems without the use of relatively complex asynchronous communications techniques. System I System 2 CB2 Data CB2 CBI Clock CBI 6522 PBO "Busy" Control PBO Figure 18. USing the Shift Register for Servicing Remote Status Displays TO Lamp Drivers. elc Figure 17. Using Shift Register for Inter-System Communication In a system with distributed peripherals, the Shift Register CB2 can be used to transfer data to the peripheral interface devices. This is illustrated in Figure 18 for a system with a number of CS' PBO distributed status displays. These displays. are serviced by stand-alone controllers which actuate the lamps in the status 6522 rP-"'S'-' +--+_+_-----+-+------+...., displays through simple drivers. The data and clock lines are wired in parallel to each unit. In addition, a single 6522 peripheral port output allows selection of the display to be loaded. These select lines can be eliminated if all displays are to contain the same information. With the system shown, the status display can be updated at any time by simply selecting To lnp~t SWItches the desired display and then writing to the Shift Register. Figure 19. expanding System I/O Using Shift Register Remote input devices can be serviced in much the same manner by shifting data into the Shift Register under control of a Clock Generation Using the Shift Register peripheral port output as shown in Figure 18. Each set of input In all output modes the data shifted out of bit 7 will also be switches can be polled by first selecting the set to be polled and shifted into bit O. For this reason the Shift Register need not be then triggering the shifting operation with a Shift Register read re-Ioaded if the same data is to be shifted out each time. A Shift operation. A shift register interrupt can be used to cause the Register read operation can be used to trigger the shifting processor to read the resulting input information after shifting is operation. complete. This capability is very useful for generating peripheral clocks The techniques described above can be utilized to expand in the continuous output mode. This mode allows an 8-bit I/O capability in a microprocessor based system. In a system pattern to be shifted out continuously. This is illustrated in with many status lamps or many input switches, simple TTL shift Figure 20. Note that in this mode the shifting operation is registers will provide the necessary I/O in a very cost effective controlled by Timer 2. A single bit time can therefore be up to manner. This is illustrated in Figure 19. 256 clock cycles in length. CB1 -IT I-- CB2 ~~------~L-____________~ L....-_ _ _ _ _---I r Notes: 1. Shift Register loaded with 1110 00002 initially. 2. T determined by Timer 2. Figure 20. Clock Generation Using SR Free-Running Mode 2-62 MPS 6522 MAXIMUM RATINGS COMME.NT Supply Voltage, Vcc -0.3V to + 7.0V Stresses above those listed under "Absolute Maximum Input/Output Voltage, VIN -0.3V to + 7.0V Ratings" may cause permanent damage to the device. Operating Temperature, TOp OCto 70 C These are stress ratings only. Functional operation of this Storage Temperature, TSTG -55 C to 150 C device at these or any other conditions above those indi- All inputs contain protection circuitry to prevent damage due cated in the operational sections of this specification is not to high static discharges. Care should be exercised to implied and exposure to absolute maximum rating condi- prevent unnecessary application of voltages in excess of the tions for extended periods may affect device reliability. allowable limits. STATIC D.C. CHARACTERISTICS 01cc = 5.0 V ± 5%, Vss = 0, TA = 0 to +70 0C unless otherwise noted) Characteristic Symbol Min Typ Max Unit Input high voltage (normal operation) VIH +2.4 - Vcc Vdc Input low voltage (normal operation) VIL -0.3 - +0.4 Vdc Input leakage current- Vin = 0 to 5 Vdc .IIN - ±1.0 ±2.5 /JAdc RAN, RES, RSO, RS1, RS2, RS3,CS1, CS2, CA1,,02 Off-state input current- Vin = .4 to 2.4 V ITSI - ±2.0 ±10 /JAde Vcc= Max, DO to 07 Input high current- VIH = 2.4 V IIH -100 -250 - /JAdc PAO-·PA7, CA2, PBO-PB7, CB1, CB2 Input low current- VIL = 0.4 Vdc IlL - -1.0 -1.6 mAdc PAO-.pA 7, CA2, PBO-PB 7, CB 1, CB2 Output high voltage VCH 2.4 - - Vdc Vcc = min, Iload = -1 00 ~Adc PAO .. PA7, CA2, PBO-PB7, CB1, CB2 Output low voltage VOL - - +0.4 Vdc Vcc = min, Iload = 1.6 mAdc Output high current (sourcing) IOH VOH = 2.4 V -100 -1000 - /JAdc VOH = 1.5 V, PBO-PB7, CB1, CB2 -3.0 -5.0 - mAdc Output low current (sinking) IOL 1.6 - - mAdc VOL = 0.4 Vdc. OU!£l:!t leakage current (off state) IOFF - 1.0 10 /JAde IRQ Input Capacitance- TA = 25 cc, f = 1 MHz CIN RAN, RES, RSO, RS1, RS2, RS3,CS1,CS2 - - 7.0 pF 00-07, PAO-PA7, CA2, PBO-PB7, - - 10 pF CB1, CB2 02 input - - 20 pF Output capacitance- TA = 25 cc, f = 1 MHz COUT - - 10 pF Power dissipation Po - 1000 MW 2-63 MPS 6522 Phase Two Clock --2.4V Phase Two Address Clock _ _ _ _+-.JJ 0.4 V r..---- 2.4 V Address ReadJWrite ______ 0.4V Peripheral Data Data Bus 1\---+-'1- - - - - - - - - 0.4 V TCP~W ------.Vcc . ' --2.4V Data Bus Peripheral Data ------------------------- Figure 21. Read Timing Characteristics Figure 22. Write Timing Characteristics A.C. CHARACTERISTICS Read Timing Characteristics (loading 130 pF and one TIL load) Characteristic Symbol Min Typ Max Unit Delay time, address valid to clock positive transition TACR 180 - - nS Delay time, clock positive transition to data valid on bus TCDR - - 395 nS Peripheral data setup time TPCR 300 - - nS Data bus hold time THR 10 - - nS Rise and fall time for clock input TRC - - 25 nS TRF Write Timing Characteristics Characteristic Symbol Min Typ Max Unit Enable pulse width TC 0.47 - 25 IJS Delay time, address valid to clock positive transition TACW 180 - - nS Delay time, data valid to clock negative transition TDCW 300 - - nS Delay time, read/write negative transition to clock TWCW 180 - - nS positive transition Data bus hold time THW 10 - - nS Delay time, Enable negative transition to peripheral data valid TCPIN - - 1.0 }JS Delay time, clock negative transition to peripheral data valid TCMOS - .- 2.0 IJS CMOS Nee - 300AlI 2.4V \r. .------- k CB2Seriai Data In -----------------------. 0.4 V f SR3 TICW - - - - - 1 2.4 V --_.~=1------------::: CBI Clock -A~------------- CB2Seriai DaIaOuI 0.4 V Figure 23. 1/0 Timing Characteristics 2-64 MPS 6522 Peripheral Interface Characteristics Characteristics Symbol Min Typ Max Unit Rise and fall time for CA 1, CB 1, CA2 and CB2 input signals. TRF 1.0 I-lS Delay time, clock negative transition to CA2 negative TCA2 1.0 IJS transition (read handshake or pulse mode). Delay time, clock negative transition to CA2 positive TRS1 1.0 IJS transition (pulse mode). Delay time, CA 1 active transition to CA2 positive TRS2 2.0 fJS transition (handshake mode). I Delay time,clock positive transition to CA2 or CB2 TWHS 1.0 IJS negative transition (write handshake). Delay time, peripheral data valid to CB2 negative TDC 0 1.5 I-lS transition. Delay time, clock positive transition to CA2 or CB2 TRS3 1.0 fJS positive transition (pulse mode). Delay time, CB 1 active transition to CA2 or CB2 positive TRS4 2.0 I-lS transition (handshake mode). Delay time, peripheral data valid to CA 1 or CB 1 active TIL 300 nS transition (input latching). Delay time, CB1 negative transition to CB2 data valid TSR1 300 nS (internal SR clock, shift out). Delay time, negative transition of CB 1 input clock to TSR2 300 nS CB2 data valid (external clock. shift out). Delay time. CB2 data valid to positive transition of TSR3 300 nS CB 1 clock (shift in. internal or external clock) Pulse Width - PB6 Input Pulse TIPW I-lS Pulse Width,---- CB1 Input Clock TICW 2 IJS Pulse Spacing - PB6 Input Pulse liPS JJS Pulse Spacing - CB1 Input Pulse IICS JJS COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or design. COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 2-65 , . . , commodore MPS ~ aemlcanduct:or group 6523 ~~@© TRI-PORT INTERFACE 6523 TRI-PORT INTERFACE CONCEPT ... The 6523 TRI-PORT Interface (TPI) is designed to simplitythe implementation of complex I/O operations in microcomputer systems. It has three dedicated 8-bit I/O ports which provide 24 individually programmable I/O lines. 6523 REGISTERS FEATURES: *000 RO PRA - Port Register A • 24 individually programmable I/O lines 001 R1 PRB - Port Register B 010 R2 PRC - Port Register C • Completely static operation 011 R3 DDRA- Data Direction Register A • Two TIL Drive Capability 100 R4 DDRB - Data Direction Register B 101 R5 DDRC - Data Direction Register • 6 directly addressable registers 11 0 Illegal States 111 Illegal States • 1 MHz, 2M Hz and 3MHz operation *NOTE: RS2, RS1, RSO respectively ORDER NUMBER: 6523 PIN CONFIGURATION MXS6523 -r- Vss 1 40 087 PAO 2 39 086 PA1 3 38 085 PA2 4 37 084 PA3 5 36 083 PA4 6 35 082 PAS 7 34 081 '-- SPEED RANGE PA6 8 33 080 = NO SUFFIX 450 ns PA7 P80 9 10 32 31 PC7 PC6 A =225 ns = 8 165 ns P81 P82 11 12 30 29 PC5 PC4 P83 13 28 PC3 l_____ PACKAGE DESIGNATOR P84 14 27 PC2 C=CERAMIC P85 15 26 PC1 P=PLASTIC P86 16 25 PCO P87 17 24 RSO CS 18 23 RS1 R/W 19 22 RS2 voo 20 21 REs 2-66 MPS 6523 6523 INTERNAL ARCHITECTURE Port Data Bus r ) Register A K ) PortA C :=> DB7- DBO Data Bus Buffers [ Data PortA Buffers k' PA7-PAO Direction ) r A I I Port '\ CS ~ ) Register K" / Port B B Port B - r Data Buffers K ) Direction B PB7-PBO RfW --+ I II ~ Chip RSO Access Control RS1 --+ RS 2 --.. Port ) Register ( ) Port C C Port C RE S --.. r Data Buffers K ) Direction PC7-PCO (1 C 11 2-67 MPS 6523 MAXIMUM RATINGS COMMENT Supply Voltage, Vcc -O.3V to + 7.0V Stresses above those listed under "Absolute Maximum InpuVOutputVoltage, VIN -O.3V to + 7 .OV Ratings" may cause permanent damage to the device. Operating Temperature, TOp ODCto 70 DC These are stress ratings only. Functional operation of D D Storage Temperature, TSTG -55 C to 150 C this device at these or any other conditions above those All inputs contain protection circuitry to prevent damage indicated in the operational sections of this specifica- due to high. static discharges. Care should be exer- tion is not implied and exposure to absolute maximum cised to prevent unnecessary application of voltages in rating conditions for extended periods may affect excess of the allowable limits. device reliability. CHARACTERISTICS (VCC = 5.0 V ± 5%, VSS = OV, TA = 0'" to 70 C) G CHARACTERISTIC SYMBOL MIN TYP MAX UNIT Input High Voltage (Normal Operating Levels) VIH + 2.0 VCC V Input Low Voltage (Normal Operating Levels) VIL -0.3 +0.8 V Input Leakage Current liN 0 ± 1.0 ± 2.5 luA Vin = 0 to 5.0 V WRITE, RES, CS, RS2-RSO Three-State (Off State) Input Current ITSI / 0 ± 2.0 ±10 /-I A (Vin = 0.4 to 2.4 V VCC = max) 00-07, PAO-P7, PBO-PB7. PCO-PC7 Output High Voltage VOH 2.4 3.5 VCC V (VCC = min, Load = 200/-lA) Output Low Voltage VOL VSS 0.2 0.4 V (VCC = min, Load = 3.2 mAl Output High Current (Sourcing) IOH -200 -1000 - /-IA (VOH = 2.4 V) Output Low Current (Sinking) IOL 3.2 - - mA (VOL = 0.4 V) Supply Current ICC - 50 100 mA I nput Capacitance Cin - 7 10 pF (Vin OV, TA = 25"C, f = 1.0 MHz) 00-07, PAo-PA7, PBO-PB7, PCo-PC7 WRITE, RES, RS2-RSO, CS Output Capacitance Cout - 7 10 pF (Vin = OV, TA = 25"C, f = 1.0 MHz) Note: Negative sign indicates outward current flow, positive indicates inward flow. 2-68 MPS 6523 READ CYCLE ~------------TRe--------·------~ RS2-RSO R/IN TRes I es TAOD TOTO DATA OUT DB7-DBO TpDS TpDH POFlTIN WRIlOE CYCLE .. Twe RS2-RSO \~ TAWS---' TAWH l,V /~ j TWA R(W es \ }V TDH DATA IN DB7-DBO ~ ~ ~TDS ----.. I\. JK- Ir-- PORT OUT ~ ~ ~TWPD----+ Note: All timings referenced to VI Lmax, VIH min on inputs and VOL max, VOH min on outputs. 2-69 MPS 6523 READ CYCLE TIMING 6523 6523A 6523B SYMBOL CHARACTERISTIC MIN MAX MIN MAX MIN MAX UNITS TRC Read Cycle 450 - 225 - 165 - ns TACC Access Time 1 - 450 - 225 - 165 ns TCO CS to Output Valid - 270 - 120 - 70 ns - TRCS R/W high to CS Setup 0 - 0 - 0 - ns - I TRCH R/W high to CS Hold 0 - 0 - 0 - ns TOTO CS to Output Off Delay 20 120 20 120 20 120 ns TAOD Address to Output Delay 50 - 50 - 50 - ns TPDS Port Input Setup 120 - 60 - 40 - ns TpDH Port Input Hold 150 - 150 - 150 - ns Note 1: Access Time measured from later of WRIT( high or RS stable. WRITE CYCLE TIMING 6523 6523A 6523B SYMBOL CHARACTERISTIC MIN MAX MIN MAX 'MIN MAX UNITS TWC Write Cycle 450 - 225 - 165 - ns TWA Write Active Time 2 420 - 200 - 150 - ns TAWS Address to R/W low Setup 0 - 0 - 0 - ns TAWH Address to R/W low Hold 0 - 0 - 0 - ns TDS Data bus in Setup 150 - 100 - 50 - ns TDH Data bus in Hold 0 - 0 - 0 - ns TWPD Write active to Port out DelSlY - 1000 - 500 - 330 ns Note 2: TWA is the time while both CS and R/W are low. 2-70 MPS 6523 6523 FUNCTIONAL DESCRIPTION Three 8 bit bi-directional ports (A, S, C) are available on the 6523. Each port has two associated read/write registers: Data Direction Registers (DORA, DDRB, DDRC) Each bit of the data direction registers controls the corresponding pin of the associated port as follows: DDR bit Direction of port pin Port Registers (PRA, PRB, PRC) 0 1 Input (Output driver disabled) Output (Output driver enabled) I Reading the Port Register returns the logic states of the associated port pins. The pin voltage levels must meet the VI Hand VI L specification limits to ensure valid data. (Excessive loading of the output driver may cause the data read to differ from the expected output.) If the portpin is programmed as an output by the DDR, the output driver is set to the last data written to the corresponding PR bit. 6523 INTERFACE SIGNALS CS - Chip Select Input The CS input controls thEl...§ctivity of the 6523. A low level on Cs causes the devi~to respond to signals on the R/W and address (RS) lines. A high on CS prevents these lines from controlling the 6523. The CS line is normally activated (low) by the appropriate address combination from the processor. R/W - Read/Write Input The R/W signal is normally supplied by the microprocessor and controls the direction of data transfers of the 6523. A high on R/W indicates a read (data transfer out of the 6523). while a low indicates a write (data transfer into the 6523). RS2-RSo - Address Inputs The address inputs select the internal registers (in conjunction with CS and R/W) as indicated by the register table. 2-71 MPS 6523 DB7·DBO - Data Bus Inputs/Outputs The eight data bus pins transfer information between the 6523 and the system data bus. These pins are high impedance inputs unless CS is low and R(W is high, to read the device. During this read, the data bus output buffers are enabled, driving the data frOm the selected register onto the system data bus. RES - Reset Input A low on the RES pin clears internal registers. This sets all three ports as inputs (floating), preventing any conflicts on the bi- directional port lines. For port pins to be used as outputs, the desired output data may be written to the port register before enabling the output driver. This sequence can eliminate undesired output conditions when the outputs are enabled via the DDR. COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or design. COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising out of the application or use of any product or circuit described herein: neither does it convey any license under its patent rights nor the rights of others. 2-72 , . . commodore MPS ~ aernicanducl:ar group 65245 ~UYAJ@~ OCTAL BUS TRANSCEIVER WITH 3-STATE OUTPUTS 65245 OCTAL BUS TRANSCEIVER WITH 3-STATE OUTPUTS DESCRIPTION The 65245 is an octal bus transceiver designed for asynchronous, bi-directional communica- tion. between data busses. The level of the Direction input (01 R) allows data transmission from bus A to bus B or from bus B to bus A. The Enable input (E) can be used to provide isolation between the busses. The device is fully TTL and CMOS compatible, and is pin-for-pin compatible with .the 74LS245. PIN CONFIGURATION 65245 TRUTH TABLE DIR VDD 20 AO 2 19 E E DIR OUTPUT A1 3 18 80 A2 4 17 81 L L B data to A bus L H A data to B bus A3 S 16 82 H X Isolation A4 6 1S 83 AS 7 14 84 L = LOW level H = HIGH level A6 8 13 8S X = Irrelevant A7 9 12 86 vss 10 11 87 2-73 MPS 65245 MAXIMUM RATINGS RATING SYMBOL VALUE UNIT SUPPLY VOLTAGE Vee -0.3 to +7.0 Vde This device contains circuitry to protect the Inputs against damage due to high INPUT VOLTAGE Yin -0.3 to +7.0 Vde static voltages, however, It Is advised that normal precautions be taken to avoid OPERATING TEMPERATURE TA o to +70 °C application of any voltage hlgherthah STORAGE TEMPERATURE -55 to +150 °C maximum rated voltages to this circuit. TSTG ELECTRICAL CHARACTERISTICS (Vee = 5.0V ± 5%, Vas = 0, TA =0° to + 70°C) CHARACTERISTIC SYMBOL MIN. TYP. MAX. UNIT Input High Voltage VIH 2.0 - - Vde Input low Voltage Vil - - 0.8 Vde Output High Voltage Vee-MIN, VIH=2.0V IOH= -3mA VOH 2.4 - - Vde IOH= -15mA 2.0 - - Output low Voltage Vee-MIN, Vil = 0.8V IOl= 12mA VOL - - 0.4 Vde IOl = 24mA - 0.5 High-Impedance Output Current E - 2.0V, Vee = MAX IOZH - - 50 fJA Vout = 2.7V High-Impedance Output Current E = 2.0V, Vee = MAX IOZl - - -50 fJA Vout = 0.4V High-level Input Current Vee=MAX, VIH = 2.7V IIH - 20 100 nA low-level Input Current Vee = MAX, Vil = 0.4V III - 20 -100 nA High-level Output Current Vee=NOM, Vout = 2.4V IOH - - -15 mA low-level Output Current Vee = NOM, Vout = O.4V IOl - - 24 rnA Power Supply Current Outputs High 47 64 Outputs low 44 100 Outputs Hi-Z ICC - 56 105 mA 2-74 MPS 65245 AC CHARACTERISTICS (VCC=5.0V, VSS=OV, TA=+25°C) CHARACTERISTIC SYMBOL CONDITIONS MIN. TYP. MAX. UNIT Propagation Delay TPLH - - 40 ns Data to Output TPHL - - 40 ns Output Enable Time TPZH SEE - - 40 ns TPZL BELOW - - 40 ns ·I: Output Disable Time TPHZ - - 40 ns TPLZ - - 40 ns .. VOUTo---------~----~ ~----~ 820.n. Commodore Semiconductor Group reserves the right to make changes to any products herein to improve reliability, function or design. Commodore Semiconductor Group does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 2-75 v- '-'commodore aamicanduct;or group MPS 6525 ~~@@ TRI-PORT INTERFACE 6525 TRI·PORT INTERFACE CONCEPT ... The 6525 TRI·PORT Interface (TPI) is designed to simplify the implementation of complex I/O operations in microcomputer systems. It combines two dedicated a·bit 110 ports with a third a-bit port programmable for either normal 110 operation or priority interrupt/handshaking control. Depending on the mode selected, the 6525 can provide 24 individually programmable 110 lines or 16 110 lines, 2 handshake lines and 5 priority interrupt inputs. 6525 REGISTERS FEATURES: • 24 individually programmable 110 lines or 16 110 lines, 2 handshake lines and 5 in- ·000 RO PRA - Port Register A 001 R1 PRB - Port Register B terrupt inputs. 010 R2 PRC - Port Register C • Priority or non-priority interrupts 011 R3 DDRA - Data Qirection Register A • Automatic handshaking 100 R4 DDRB - Data Direction Register B • Completely static operation 101 R5 DDRC - Data Qirection Register C • Two TTL Drive Capabi Iity 110 R6 CR-Control Register 111 R7 AIR-Active Interrupt Register • a directly addressable registers • 1 MHz, 2MHz and 3MHz operation -NOTE: RS2. RS1, RSO respectively ORDER NUMBER: 6525 PIN CONFIGURATION MXSM25 T Vss 1 40 DB7 PAO 2 39 DBB PA1 3 38 DB5 PA2 4 37 DB4 PA3 5 36 DB3 PA4 6 35 DB2 L SPEED RANGE NO SUFFIX = 450 ns PAS PA6 PA7 7 8 9 34 33 32 DB1 DBO PC7 A=225 ns PBO 10 31 PC6 PB1 11 30 PC5 B = 155 ns PB2 12 29 PC4 PB3 13 26 PC3 PACKAGE DESIGNATOR PB4 14 PC2 27 C=CERAMIC PBS 15 26 PC1 P=PLASTIC PB6 16 25, pco PB7 17 24 RSO cs 18 23 RS1 R/W 19 22' RS2 VDD 20 21 REs 2-76 MPS 6525 6525 INTERNAL ARCHITECTURE Data Bus Data Bus PortA DB7-DBO Buffers' Buffers PortA PA7-PAO CS RNY RSO Chip Access Control Port B Buffers Port B PB7-PBO I RS1 RS2 RST Control Register Interrupt Stack PortC PC7-PCO ~~~ - Mode 1 Only 2-77 MPS 6525 MAXIMUM RATINGS COMMENT Supply Voltage, Vcc -O.3V to +7.OV Stresses above those listed under "Absolute Maximum InpuVOutput Voltage, VI N -O.3V to +7.OV Ratings" may cause permanent damage to the device. Operating Temperature, TOp O°Cto 70°C These are stress ratings only. Functional operation of Storage Temperature, TSTG -55°C to 150°C this device at these or any other conditions above those All inputs contain protection Circuitry to prevent damage indicated in the operational sections of this specifica- due to high static discharges. Care should be exer- tion is not implied and exposure to absolute maximum cised to prevent unnecessary application of voltages in rating conditions for extended periods may affect excess of the allowable limits. device reliability. CHARACTERISTICS (VCC = 5.0 V ± 5%, VSS = OV, TA = 0° to 70°C) CHARACTERISTIC SYMBOL MIN TYP MAX UNIT Input High Voltage (Normal Operating Levels) VIH + 2.0 1.5 VCC V I nput Low Voltage (Normal Operating Levels) VIL -0.3 1.2 +0.8 V I nput Leakage Current liN 0 ±1.D ± 2.5 fUA Vin = 0 to 5.0 V_ WRITE, RES, CS, RS2-RSO Three-State (Off, State) Input Current ITSI 0 ± 2.0 ±10 IJA (Vin = 0.4 to 2.4 V VCC= max) 00-07, PAO-P7, PBO-PB7, PCG-PC? Output High Voltage VOH 2.4 3.5 VCC V (VCC = min, Load = 200 IJA) Output Low Voltage VOL VSS 0.2 0.4 V (VCC = min, Load = 3.2 mAl Output High Current (Sourcing) IOH -200 -1000 - IJA (VOH = 2.4 V) Output Low Current (Sinking) IOL 3.2 - - mA (VOL = 0.4 V) Supply Current ICC - 50 100 mA I nput Capacitance Cin - 7 10 pF (Vin OV, TA = 25°C, f = 1.0 MHz) 00-07, PAG-PA7, PBO-PB7, PCG-PC7 WRITE, RES, RS2-RSO, CS Output Capacitance Cout - 7 10 pF (Vin = OV, TA = 25°C, f = 1.0 MHz) Note: Negative sign indicates outward current flow, positive indicates inward flow. 2-78 MPS 6525 READ CYCLE TIMING III(: TRC TACS ~ TACH---' RS2-RSO ~: !IIi TRCS ~ TRCH-+ L ~ / L \ V DATA BUS OUT III(: I+-- TPDH ~ TACC ~TCO~ -+ < !4- TOTO -+ -' I POATINPUa_~,--_ _ TpDS WRITE CYCLE TIMING 1~1IIi.--------------------------TWC RS2-RSO CS DATA BUS IN PORT OUTPUT Note: All timings referenced to VIL max, VIH min on inputs and VOL max, VOH min on outputs. 2-79 MPS 6525 READ CYCLE TIMING 6525 6525A 65258 Symbol Characteristic MIN MAX MIN MAX MIN MAX UNITS TRC Read Cycle 450 225 165 ns TACC Access Time 1 450 225 155 ns TCO CS to Output Valid 270 120 70 ns TACS RS to CS Set Up 0 0 0 ns TACH RS to CS Hold 0 0 0 ns TRCS R/WhightoCSSetUp 0 0 0 ns TRCH R/W high to CS Hold 0 0 0 ns TOTO CS to Output off Delay 20 120 20 120 20 100 ns TPDS Port Input Set Up 120 60 40 ns TPDH Port Input Hold 150 150 150 ns NOTE 1 - Access time measured from later of R/W high or RS stable. WRITE CYCLE TIMING 6525 6525A 65258 Symbol Characteristic MIN MAX MIN MAX MIN MAX UNITS TWC Write Cycle 450 225 165 ns TACS RS to CS Set Up 0 0 0 ns TACH RS to CS Hold 0 0 0 ns TWCS R/W low to CS Set Up 0 0 0 ns TWCH R/W low to CS Hold 0 0 0 ns TDS Data Bus to CS Set Up 150 100 50 ns TDH Data Bus to CS Hold 0 0 0 ns TCPD C§ to Port Out Delay 1000 500 330 ns TCSp CS Pulse Width 420 200 150 ns 2-80 MPS 6525 6525 INTERNAL REGISTERS ADDRESS REGISTER BITS REGISTER NAME COMMENT RS2 RSl RSO MC 07 De 05 D4 03 02 01 DO 0 0 0 X PAl PA6 PA5 PA4 PA3 PA2 PAl PAO Port Register A (PRA) 0 0 1 X PB? PB6 PB5 PB4 PB3 PB2 PBl PBO Port Register B (PRB) 0 1 0 0 PC? PC6 PC5 PC4 PC3 PC2 PCl PCO Port Register C (PRC) 0 1 0 1 CB CA IRQ IL4 IL3 IL2 ILl ILO Port Register C (PRC) Handshake and Interrupt Latches (MODE 1) 0 1 1 X DA? DA6 DA5 DA4 DA3 DA2 DAl DAO Data Direction O=lnput; 1=Output Register A (DDRA) 1 0 0 X DB? DB6 DB5 DB4 DB3 DB2 DBl DBO Data Direction O=lnput; 1=Output Register B (DDRB) 1 0 1 0 DC? DC6 DC5 DC4 DC3 DC2 DCl DCO Data Direction O=lnput 1=Output (MODE 0) Register C (DDRC) 1 0 1 1 - - - M4 M3 M2 Ml MO Interrupt Mask Register O=Mask; 1=Enable (MODE 1) 1 1 0 X CBl CBO CAl CAO IE4 IE3 IP MC Control Register (CR) Mode Selected by MC 1 1 1 1 - - - AI4 AI3 AI2 All AIO Active Interrupt Register(AI R} 6525 FUNCTIONAL DESCRIPTION Control Register (CR) Port Registers (PRA, PRB, PRC) The bits of the control register select the various operating Reading the Port Register returns the logic states of the modes of the 6525. Although the exact function of each bit is associated port pins. The pin voltage levels must meet the explained throughout tne functional description. the func- VIH and VIL specification limits to ensure valid data. (Exces- tions are summarized here for convenience. sive loading of the output driver may cause the data read to differ from the expected output.) If the port pin is pro- !cONTROL f~EGISTER BIT I7 6 5 4 0 I grammed as an output by the DDR. the output driver is set to IFUNCTIONAL DESIGNMIONICBl CBo CAl CAO IE4 IE:! IP MC I the last data written to the corresponding PR bit. CB L,", Coo,", -~' ~ I CA Line Control J . MODE 1 - (MC=1) 14 Active Edge Select In Mode 1, the 6525 provides 2 8-bit bi-directional ports (A and B) as in Mode O. By writing MC=1 , Port C is automati- 13 Active Edge Select - - - - -_ _ _ _ _ _-' cally converted to a 5 level priority interrupt controller with Interrupt Priority _ _ _ _ _ _ _ _ _ _ _ _ _ _--' interrupt output (I RQ) and a handshake control line for each Enable port (CA and CB). Mode Control MODE 0 PIN NAMES PC? PC6 PC5 PC4 PC3 PC2 PCl PCO MODE 1 PIN NAMES CB CA IRQ 14 13 12 11 10 Port Register C - PRC (Mode 1) MODE 0 - (MC=O) All bits of the PRC can be read as in Mode 0 but the state In Mode 0, three 8 bit bi-directional ports (A, B, C) are of the interrupt latches, rather than the interrupt pins, is available on the 6525. Each port has two associated readl returned in the five low order bits of PRC. Writing "0" to a PRC write registers: bit clears the corres.Q0nding interrupt latch but has no effect Data Direction Registers (DORA, DDRB, DDRC) on the CA, CB, or I RO outputs. Writing" 1" to a PRC bit has no effect on Mode 1. Each bit of the data direction registers controls the corresponding pin of the associated port as follows: MODE 0 BIT NAMES EDD;b;' Direction of port pin Input (Output driver disabled) Output (Output driver enabled) MODE 1 BIT NAMES 2-81 MPS 6525 CA and CB Outputs - (PCS and PC7) DESCRIPTION OF PRIORITY INTERRUPT OPERATION CA and CB may be used as general purpose outputs or No Priority Operation Selected - (lP=O) as data transfer signals for ports A and B. The operation of CA and CB is selected as follows: When an active transition occurs on an interrupt input (see 14-10), the corresponding interrupt latch is set. If this CA1 CAO CA OUTPUT MODE CB1 CBo CB OUTPUT MODE latch is not masked, the corresponding bit of the AI R is set, 0 0 Set high by active 0 0 Set low by writing PRB. IRQ (PC5) is activated low, and other interrupt latches are transition 0113. Reset low Reset high by active prevented from setting new bits in the AI R. After reading the by reading PRA transition 01 14. 0 1 Pulses lowloratleast500 0 1 Pulses low loratleast 500 AI R, the interrupt latch corresponding with the bit set in the ns alter reading PRA. ns alter writing PRB. AI R is cleared to await new input and I RQ is reset high. Any 1 0 CAlow 1 0 CB low 1 1 CA high 1 1 CB high interrupt latches remaining set will now restart this interrupt .sequence. If multiple interrupts have been received in the interim, multiple bits will be set in theAIR and all correspond- IRQ Output - (PCS) ing interrupt latches will be cleared when the AIR is read. Therefore, software must recognize the occurrence of multi- The Interrupt Request is set low when an unmasked ple interrupts when no priority operation is selected. interrupt (see below) is activated. TR'Ci" is reset high by reading the Active Interrupt Register (AIR). The IRQ output Priority Operation Selected - (lP=1) has an open drain to allow wire AND tying of multiple outputs. The five interrupt inputs have a fixed priority: 14> 13> 12> 11 > 10. When priority operation is selected, 14, 13, 12, 11, 10 Inputs - (PC4-PCO) only the highest priority interrupt is placed in the AIR, ensuring only one bit set in the AI R at any time. When an The five low order pins of Port C are interrupt inputs in interrupt occurs, the corresponding interrupt latch is set as Mode 1.A negative (high to low) transition on 12,11 or 10 sets before but is then compared with the present active interrupt, the corresponding latch in PRC to indicate an interrupt, the new bit in the AI R is set and IRQ is activated low. When while either transition of 13 or 14 can be selected to set its AI R is read, the contents of the AI R are pushed onto a 5 level latch as follows: stack for comparison with subsequent interrupts and AI R is cleared. IE3 13 EDGE SELECTION IE4 14 EDGE SELECTION After servicing the new interrupt, the processor must write 0 13 sets IL3 latch on negative 0 14 sets IL4 latch on negative to the AI R (clearing the AI R) to instruct the 6525 that this (hi-low) transition. transition. interrupt service is complete. The previous interrupt status is 1 13 sets IL3 latch as positive 1 14 sets IL4 latch on positive then recalled (popped) to the top of the stack to be used for (low-hi) transition. transition. evaluating new interrupt inputs. Interrupts of lesser priority than the active interrupt are masked until all higher level Interrupt Mask Register (DDRC In Mode 1) interrupts are acknowledged and completed by the pro- In Mode 1, the five low order bits of the DDRC are utilized cessor (as indicated by AI R reads and writes). When all as interrupt mask bits of the five corresponding interrupt higher priority interrupts have been serviced, the 6525 will latches. Writing a "1" to. the mask register enables the allow a lower priority interrupt to indicate a new interrupt corresponding interrupt latch to initiate an interrupt while a sequence. "0" masks the interrupt latch output. Masking does not The following examples illustrate the priority interrupt prevent the interrupt latch from being set by an active input operation: transition. The interrupt mask register can be read and A. Single Interrupt written. 1. Interrupt received by negative transition on 11. 2. Interrupt latch 1 (I L1) is set. Active Interrupt Register (AIR) 3. Bit A1 set in AIR. The five low order bits of the AI R contain the present 4. I RQ activated low. interrupt status of the 6525. A "1 " in a bit of the AI R indicates 5. Processor responds by reading AI R to determine that the corresponding interrupt is active. Reading the AI R which interrupt occurred. clears all AI R bits and resets any interrupt latch which had 6. AIR is pushed onto interrupt stack and latch 1 is set a bit in the AIR. READING AND WRITING OF THE AIR cleared. AFFECTS THE INTERRUPT PRIORITY STACK. Therefore, 7. AIR is cleared and IRQ reset high. the AI R should be accessed only in strict accordance to the 8. Upon completion of service, processor writes to AI R. following rules: 9. Interrupt stack is popped, restoring previous inter- rupt status. 1. READTHEAIRONLYTOINDICATE BEGINNINGOF INTERRUPT SERVICE. 2. WRITE TH E AI RON LY TO INDICATE CONCLUSION OF INTERRUPT SERVICE. 2-82 MPS 6525 B. Lower priority interrupt received during active interrupt When selecting Mode 1, all interrupt inputs and IE3, IE4 1. 11 received and latched. must be stable before writing MC bit to "1." If this can not be 2. A1 is set and IRQ activated low. ensured, the interrupt latches (PRC4-PRCO) should be 3. Processor reads AIR to determine 11 is active. cleared by writing 0 to PRC after MC=1 and before unmask- 4. AI R pushed onto stack and I L1 cleared. ing the interrupt latches. Similarly, if CA and CB are to be 5. AIR cleared and IRQ reset high. used as data transfer handshake lines, no PRA reads orPRB 6. Processor is servicing 11 while 10 occurs and sets writes should occur after RES or before actual data transfers ILO· are to begin. 7. Interrupt stack prevents lower priority ILO from initiating a new interrupt. Processor Interface 8. Upon completion of 11 service, processor writes to AIR, popping 11 interrupt out of stack. The 6525 is a fully static device with interface charac- 9. ILO is now permitted to initiate a new interrupt teristics similar to a static RAM. To read, the RS and R/W service. lines are stabilized and then CS is switched low, gating the desired register onto the system data bus. (In 650X systems, C. Higher priority interrupt received during active interrupt CS may be gated with .02). The system timing must accom- 1. Interrupt 11 received and latched. modate both the TACC (address) and TCO (chip select) 2. Al is set and IRQ activated low. delays before requiring valid data. To write to the 6525, 3. Processor reads AI R to determine 11 is active. similar timing is required, with the processor providing valid 4. AI R is pushed onto stack and I L1 cleared. write data at least OS before CS switches high. To guarantee 5. AIR cleared and IRQ reset high. proper operation of the 6525, THE R/W LINE MUST BE 6. Processor is servicing 11 when 12 occurs and sets STABLE ANY TIME CS IS LOW. IL2· _ 7. A2 is set and I RQ activated low because I L2 has higher priority than 11 in stack. 8. Processor recognizes interrupt request and calls interrupt service routine. 9. Processor reads AI R to determine 12 is active. 10. New AI R is pushed onto interrupt stack and I L2 cleared. 11. AI R cleared and I RQ reset high. 12. Processor services 12. 13. Upon completion of 12 service, processor writes to AIR popping 12 interrupt from stack, restoring 11 status to top of stack (still preventing an 10 interrupt). 14. Processor return from interrupt resumes services of suspended 11 routine. 15. Upon completion of 11, processor writes to AI R, popping 11 interrupt from stack, leaving no active interrupts. 6525 INTERFACE AND CONTROL Initialization A low on the RES pin clears all 6525 internal registers. This puts the 6525 in Mode 0 with all three ports selected as inputs (floating), preventing any conflicts on the bi-directional port lines. For port pins to be used as outputs, the desired output data may be written to the port register before enabling the output driver. This sequence can eliminate undesired output conditions when the outputs are enabled via the DDR. COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or design. COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising ot of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 2-83 MPS , . . , commodore 6526 ~ aanlcanduct;ar group COMPLEX INTERFACE ~UYAJ@~ ADAPTER (CIA) 6526 COMPLEX INTERFACE ADAPTER (CIA) DESCRIPTION The 6526 Complex Interface Adapter (CIA) is a 65XX bus compatible peripheral Interface device with extremely flexible timing and I/O capabilities. FEATURES • 16 Individually programmable I/O lines • 8 or 16-Bit handshaking on read or write • 2 independent, linkable 16-Bit interval timers • 24-hour (AM/PM) time of day clock with programmable alarm • 8-Bit shift register for serial I/O • 2TTL Load capability • CMOS compatible I/O lines • 1 or 2 MHz operation available ORDERING INFORMATION MXS 6526 1 40 CNT PAO 2 39 SP PA1 3 38 RSO PA2 4 37 RS1 PA3 5 36 RS2 PA4 6 35 RS3 PA5 7 34 RES PA6 8 33 DBO PA7 9 32 DB1 PBO 10 6526 31 DB2 PB1 11 30 DB3 PB2 12 29 DB4 PB3 13 28 DB5 PB4 14 27 DB6 PB5 15- 26 DB7 PB6 16 25 ~2 PB7 17 24 FLAG Pc 18 23 es TOO 19 22 RNV vee 20 21 IRQ 2-84 MPS 8528 6526 BLOCK DIAGRAM DATA BUS BUFFERS eRB TIMER A IRQ - . - -...... IiiO BUFFER eRA R/W 912 CS RS3 RS2 RS1 RSO RES 2-85 MPS 6526 MAXIMUM RATINGS. COMMENT Supply Voltage, Vee -O.3V to + 7.0V Stresses above those listed ,under "Absolute Maximum InpuVOutput Voltage, VIN -O.3V to + 7.0V Ratings" may cause permanent damage to the device. O~C to 70 c c Operating Temperature, TOp These are stress ratings only. Functional operation of this Storage Temperature, TSTG -55°C to 150~'C device at these or any other conditions above those indi- All inputs contain protection circuitry to prevent damage due cated in the operational sections of this specification is not to high static discharges. Care should be exercised to implied and exposure to absolute maximum rating condi- prevent unnecessary application of voltages in excess of the tions for extended periods may affect device reliability. allowable limits. ELECTRICAL CHARACTERISTICS (VCC ± 5%, VSS = Ov, TA = D-70°C) Characteristic Symbol Min. Typ. Max. Unit Input High Voltage VIH +2.4 - VCC V Input Low Voltage VIL -0.3 - +0.8 V Input Leakage Current..i..YlN = VSS + 5v liN - 1.0 2.5 }JA (TOO, RNI, FLAG, ~2, RES, RSO-RS3, CS) Port Input Pull-up Resistance RPI 3.1 5.0 - Kn Output Leakage Current for High Impedance ITSI - ± 1.0 ± 10.0 fA State (Three State); VIN = 4v to 2.4v; (OBD-OB7, SP, CNT, IRQ) Output High Voltage VOH + 204 - VCC V VCC=MIN, I LOAD < -200J.JA (PAD-PA7, PC PBD-PB7,OBD-OB7) Output Low Voltage VOL - - + 0040 V VCC - MIN, ILOAO < 32mA Output High Current (Sourcing); IOH -200 -1000 - fA VOH;) 2.4v (PAO-PA7, PBO-PB7, PC, OBO-OB7) Output Low Current (Sinking); VOL < .4 v IOL 3.2 - - rnA (PAD-PA7, PC, PBO-PB7, OBD-OB7) Input Capacitance CIN - 7 10 pf Output Capacitance COUT - 7 10 pf Power Supply Current ICC - 70 100 mA 2-86 MPS 6526 6526 WRITE TIMING DIAGRAM _ _ TCLW _ _ _ _ _~ ~2 INPUT TpD PERIPHERAL DATA OUT RS3-RSO RIW DATA IN DB7-DBO 6526 READ TIMING DIAGRAM ~2 INPUT PORT IN )( I TpS j( k- _-TWCS II 1\ V -==; I ~ -TADS TADH - f-- RS3-RSO ---> "- RIW DATA OUT -- TRWS r4 ~TCO-, TRWH- --' DB7-DBO i-of----- TACC -----J .. TDRj 6526 INTERFACE SIGNALS 912 - Clock Input DB7-BDO - Data Bus Inputs/Outputs The 02 clock is a TTL compatible input used for The eight data bus pins transfer information between internal device operation and as a timing reference for the 6526 and the system data bus. These pins are high communicating with the system data bus. impedance inputs unless CS is low and RNV and.02 are high, to read the device. During this read, the data bus CS - Chip Select Input output buffers are enabled, driving the data from the The CS input controls the activity of the 6526. A low selected register onto the system data bus. level on CS while 02 is high causes the device to respond to signals on the RNV and address (RS) lines.A IRQ - Interrupt Request Output high on CS prevents these lines from controlling the IRQ is an open drain output normally connected to 6526. The CS line is normally activated (low)at¢2 by the the processor interrupt input. An external~up resistor appropriate address combination. holds the signal high, allowin.9...!:!1ultiple IRQ outputs to be connected together. The I RQ output is normally off R/W - Read/Write Input (high impedance) and is activated low as indicated in The RNV signal is normally supplied by the micro- the functional description. processor and controls the direction of data transfers of the 6526. A high on RNV indicates a read (data transfer RES - Reset ~ut out of the 6526), while a low indicates a write (data A Iowan the RES pin resets all internal registers. The transfer into the 6526). port pins are set as inputs and port registers to zero (although a read of the ports will return all highs RS3-RSO - Address Inputs because of passive pullups). The timer control registers The address inputs select the internal registers as are set to zero and the timer latches to all ones. All other described by the Register Map. registers are reset to zero. 2-87 MPS 6526 6626 TIMING CHARACTERISTICS 1M"z 2M Hz Symbol Ch....ct.rlltlc MIN MAX MIN MAX Unit ~2Clock TCYC Cycle Time 1,000 20,000 500 20,000 nS TA,TF Aise and Fall Time 25 25 nS TCHW Clock Pulse Width (High) 420 10,000 200 10,000 nS TCLW Clock Pulse Width (Low) 420 10,000 200 10,000 nS Write Cycle TpD Qytput Delay From 112 1,000 500 nS TWCS CS low while 112 high 420 200 nS TAOS Address Setup Time 0 0 nS TADH Address Hold Time 10 5 nS TAWS ANI Setup Time 0 0 nS TAWH ANI Hold Time 0 0 nS TDS Data Bus Setup Time 150 75 nS TDH Data Bus Hold Time 0 0 nS Read Cycle TpS Port Setup Time 300 150 nS TWCS(2) CS low while %2 high 420 200 nS TADS Address Setup Time 0 0 nS TADH Address Hold Time 10 5 nS TAWS ANI Setup Time 0 0 nS TAWH RNI Hold Time 0 0 nS TACC Data Access from RS3-RSO 550 275 nS TCO(3) Data Access from GS 320 150 nS TOR Data Release Time 50 25 nS NOTES: 1 - All timings are referenced from VIL max and VI'eSin on inputs and VOL max and VOH min on outputs. 2 - TWGS is measured from the I~ter of 1'2 high or low. CS must be low at least until the end of 1'2 high. 3 - TCO is measured from the later of 112 high or CS low. Valid data is available only after the later of TACG or TCO. REGISTER MAP 6626 FUNCTIONAL DESCRIPTION 1183 R82 AS1 RIO REG I/O Ports (PRA, PRB, DORA, DDRB) 0 0 0 0 0 PRA PERIPHERAL DATA REG A 0 0 0 1 PRB PERIPHERAL DATA REG B 0 DATA DIRECTION REG A Ports A and B each consist of an 8-bit Peripheral 0 0 DORA 0 0 1 1 DDRB DATA DIRECTION REG B Data Register (PR) and an 8-bit Data Direction Register 0 0 0 TA LO TIMER A LOW REGISTER (DDR).lf a bit in the DDR is set to a one, the correspond- 0 0 1 TA HI TIMER A HIGH REGISTER ing bitin the PR is an output, if a DDA bit is set to a zero, 0 0 TB LO TIMER B LOW REGISTER the corresponding PR bit is defined as an input. On a 0 1 1 1 7 TB HI TIMER B HIGH REGISTER READ, the PR reflects the information present on the 0 0 0 8 TOO 10THS 10THS OF SECONDS REGISTER actual port pins (PAO-PA 7, PBo-PB7) for both input and 0 0 1 9 TOO SEC SECONDS REGISTER output bits. Port A and Port B have passive pull-up 0 0 A TOO MIN MINUTES REGISTER devices as well as active pull-ups, providing both 0 1 1 B TOO HR HOURS - AM/PM REGISTER CMOS and TTL compatibility. Both ports have two TTL 0 0 C SDR SERIAL DATA REGISTER INTERRUPT CONTROL REGISTER load drive capability. In addition to normal I/O opera- 0 0 ICR 0 E CRA CONTROL REG A tion, PB6 and PB7 also provide timer output functions. F CRB CONTROL REG B 2-88 MPS 6526 Handshaking Force Load A strobe bit allows the timer latch to be loaded into the Handshaking oLLdata transfers can ~ccom­ timer counter at anytime, whether the timer is running or plished using the PC output pin and the F~G input not. pin.l5C will go low for one cycle following a read or write of PORT B. This signal can be used to indicate Input Mode: "data ready" at PORT B or "data accepted" from PORT Control bits allow selection of the clock used to decre- B. Handshaking on 16-;bit data transfers (using both ment the timer. TIMER A can count ¢2 clock pulses or PORT A and PORT B) is possible by always reading or external pulses applied to the CNT pin. TIMER B can writing PORT A first. FLAG is a negative edge sensitive count 02 pulses, external CNT pulses, TIMER A under- input which can be used for receiving the PC output flow pulses orTI MER A underflow pulses while the CNT from another 6526, or as a general ~ose interrupt pin is held high. input. .Any negative transition on FLAG will set the FLAG interrupt bit. The timer latch is loaded into the timer on any timer underflow, on a force load orfollowing a write to the high REG NAME D7 De DS D4 D3 D2 D1 DO byte of the prescaler while the timer is stopped. If the I o PRA PAl PAS PA5 PA4 PA3 PA2 PA1 PAO timer is running, a write to the high byte will load the 1 PRB PB? PBS PB5 PB4 PB3 PB2 PB1 PBo timer latch, but not reload the counter. 2 DORA DPA? DPAS DPA5 DPA4 DPA3 DPA2 D PA 1 DPAO READ (TIMER) 3 DDRB DPB? DPBS DPB5 DPB4 DPB3 DPB2 DPB1 DPBO REG NAME 4 TA La TAL7 TAL6 TAL5 TAL4 TAL3 TAL2 TAL1 TALO Interval Timers (TImer A, Timer B) 5 TA HI TAH7 TAHS TAH5 TAH4 TAH3 TAH2 TAH1 TAHO Each interval timer consists of a 16-bit read-only S TB La TBL7 TBLS TBL5 TBL4 TBL3 TBL2 TBL1 TB~Q Timer Counter and a 16-bit write-only Timer Latch. Data TB HI TBH7 TBHS TBH5 TBH4 TBH3 TBH2 TBH1 TBHO written to the timer are latched in the Timer Latch, while data read from the timer are the present contents of the WRITE (PRESCALER) Timer Counter. The timers can be used independently REG ~ or linked for extended operations. The various timer 4 TA La PAL7 PALS PAL5 PAL4 PAL3 PAL2 PAL1 PALO modes allow generation of long time delays, variabre 5 TA HI PAH7 PAHS PAH5 PAH4 PAH3 PAH2 PAH1 PAHO width pulses, pulse trains and variable frequency wave- S TB La PBL7 PBLS PBL5 PBL4 PBL3 PBL2 PBL1 PBLO forms. Utilizing the CNT input, the timers can count TB HI PBH7 PBHS PBH5 PBH4 PBH3 PBH2 PBH1 PBHO external pulses or measure frequency, pulse width and delay times of external signals. Each timer has an associated control register, providing independent Time of Day Clock (TOO) control of the following functions: The TOO clock is a special purpose timer for real-time Start/Stop applications. TOO consists of a 24-hour (AM/PM) clock A control bit allows the timer to be started or stopped with 1/1 Oth second resolution. It is organized into 4 by the microprocessor at any time. registers: 10ths of seconds, Seconds, Minutes and Hours. The AM/PM flag is in the MSB of the Hours PB On/Off: rr;gister for easy bit testing. Each register reads out in A control bit allows the timer output to appear on a BCD format to simplify conversion for driving displays, PORT B output line (PB6 for TIMER A and PB7 for etc. The clock requires an external 60 Hz or 50 Hz TIMER B). This function overrides the- DDRB control (programmable) TIL level input on the TOO pin for bit and forces the appropriate PB line to an output. accurate time-keeping. In addition to time-keeping, a programmable ALARM is provided for generating an Toggle/Pulse interrupt at a desired time. The ALARM registers are A control bit selects the output applied-to PORT B. On located at the same addresses as the corresponding every timer underflow the output can either toggle or TOO registers. Access to the ALARM is governed by a generate a Single positive pulse of one cycle duration. Control Register bit. The ALARM is write-only; any read The Toggle output is set high whenever the timer is of a TOO address will read time regardless of the state of started and is set low by RES. the ALARM access bit. One-Short/Continuous A specific sequence of events must be followed for A control bit selects either timer mode. In one-shot proper setting and reading of TOO. TOO is auto- mode, the timer will count down from the latched value matically stopped whenever a write to the Hours to zero, generate an interrupt, reload the latched value, register occurs. The clock will not start again until after then stop. In continuous mode, the timer will count from a write to the 1Oths of seconds register. This assures the latched value to zero, generate an interrupt, reload TOO will always start at the desired time. Since a carry the latched value and repeatthe procedure continuously. 2-89 MPS 6526 from one stage to the next can occur at any time with The bidirectional capability of the Serial Port and respect to a read operation, a latching function is CNT clock allows many 6526 devices to be con- included to keep all Time Of Day information constant nected to a common serial communication bus on during a read sequence. All four TOO registers latch which one 6526 acts as a master, sourcing data and on a read of Hours and remain latched until after a shift clock, while all other 6526 chips act as slaves. Both read of 1Oths of seconds. The TOO clock continues to CNT and SP outputs are open drain to allow such a count when the output registers are latched. If only one common bus. Protocol for master/slave selection can register is to be read, there is no carry problem and the be transmitted over the serial bus, or via dedicated register can be read "on the fly," provided that any read handshaking lines. of Hours is followed by a read of 1Oths of seconds to disable the latching. READ REG NAME 8 TOO 10THS 0 0 0 0 Ta T4 T2 T1 9 TOO SEC 0 SH4 SH2 SH1 SLa SL4 SL2 SL1 A TOO MIN 0 MH4 MH2 MH1 MLa ML4 ML2 ML1 Interrupt Control (ICR) B TOO HR PM 0 0 HH HLa HL4 HL2 HL1 There are five sources of interrupts on the 6526: WRITE underflow from TIMER A, underflow from TIMER B, CRB7=O TOO TODALARIv1,Serial Portfull/emptyand FLAG.Asingle CRBr1 ALARM (SAME FORMAT AS READ) register provides masking and interrupt information. The Interrupt Control Register consists of a write-only MASK register and a read-only DATA register. Any interrupt will set the corresponding bit in the DATA Serial Port (SDR) register. Any interrupt which is enabled by the MASK The serial port is a buffered, 8-bit synchronous shift register will set the IR bit (MSB) of the DATA register register system. A control bit selects input or output and bring the IRQ pin low. In a mu'iti-chip system, the mode. In input mode, data on the SP pin is shifted into I R bit can be polled to detect which chip has gener- the shift registeron the rising edge of the signal ated an interrupt re~t. The interrupt DATA register applied to the CNT pin. After 8 CNT pulses, the data in is cleared and the I RQ line returns high following a the shift register is dumped into the Serial Data read of the DATA register. Since each interrupt sets an Register and an interrupt is generated. In the output interrupt bit regardless of the MASK, and each inter- mode, TIMER A is used for the baud rate generator. rupt bit can be selectively masked to prevent the Data is sh ifted out on the S P pi nat V2 the underflow rate generation of a processor interrupt, it is possible to of TIMER A. The maximum baud rate possible is ¢2 intermix polled interrupts with true interrupts. However, divided by 4, but the maximum useable baud rate will polling the I R bit will cause the DATA register to clear, be determined by line loading and the speed at which therefore, it is up to the user to preserve the informa- the receiver responds to input data. Transmission will tion contained in the DATA register if any polled start following a write to the Serial Data Register interrupts were present. (provided TIMER A is running and in continuous The MASK register provides convenient control of mode). The clock Signal derived from TIMER A ap- individual mask bits. When writing to the MASK regis- pears as an output on the CNT pin. The data in the ter, if bit 7 (SET/CLEAR) of the data written is a ZERO, Serial Data Register will be loaded into the shift any mask bit written with a one will be cleared, while register then shift out to the SP pin when a CNT pulse those mask bits written with a zero will be unaffected. If occurs. Data shifted out becomes valid on the falling bit 7 of the data written is a ONE, any mask bit written edge of CNT and remains valid until the next falling with a one will be set, while those mask bits written with edge. After 8 CNT pulses, an interrupt is generated to a zero will be unaffected. I n order for an interrupt flag to indicate more data can be sent. If the Serial Data set I R and generate an Interrupt Request, the corre- Register was loaded with new information prior to this sponding MASK bit must be set. interrupt, the new data will automatically be loaded into the shift register and transmission will continue. If READ (lNT DATA) the microprocessor stays one byte ahead of the shift REG NAME register, transmission will be continuous. If no further 0 ICR I IR I 0 I 0 FLG I I sp ALRMI TB TA I data is to be transmitted, after the 8th CNT pulse, CNT will return high and SP will remain at the level of the last WRITE (lNT MASK) data bit transmitted. SDR data is shifted but MSB first REG NAME and serial input data should also appear in this format. 0 ICR I SIC I X I x FLGI SP IALRMI TB TA I 2-90 MPS 6526 CONTROL REGISTERS There are two control registers in the 6526, CRA and CRB. eRA is associated with TI M ER A and CRB is associated with TIMER B. The register format is as follows: CRA: Bit Name Function o START 1=START TIMER A, O=STOP TIMER A. This bit is automatically reset when underflow occurs during one-shot mode. 1 PBON 1=TIMER A output appears on PB6, 0=PB6 normal operation. 2 OUTMODE 1=TOGGLE,O=PULSE 3 RUN MODE 1=ONE-SHOT,O=CONTINUOUS 4 LOAD 1=FORCE LOAD (this is a STROBE input, there is no data storage, bit 4 will always read back a zero and writing a zero has no effect). 5 INMODE 1=TIMER A counts positive CNT transitions, O=TIMER A counts ~2 pulses. I 6 SPMODE 1=SERIAL PORT output (CNT sources shift clock), O=SERIAL PORT input (external shift clock required). 7 TODIN 1=50 Hz clock required on TOO pin for accurate time, 0=60 Hz clock required on TOO pin for accurate time. CRB: Bit Name Function (Bits CRBO-CRB4 are identical to CRAO-CRA4 forTIMER B with the exception that bit 1 controls the output of TIMER B on PB7). 5.6INMODE Bits CRB5 and CRB6 select one of four input modes for TIMER Bas: CRB6 CRB5 o 0 TIMER B counts ¢2 pulses. o 1 TIMER B counts positive CNT transistions. 1 0 TIMER B counts TIMER A underflow pulses. 1 1 TIMER B counts TIMER A underflow pulses while CNT is high. 7 ALARM 1=writing to TOO registers sets ALARM, O=writing to TOO registers sets TOO clock. TOO SP IN RUN OUT REG NAME IN MODE MODE LOAD MODE MODE PBON START E CRA 0=60Hz O=INPUT ~O=~2 1=FORCE O=CONT. O=PULSE 0=PB60FF O=STOP LOAD 1=50Hz 1=OUTPUT 1=CNT (STROBE) 1=O.S. 1=TOGGLE 1=PB6 ON 1=START TA RUN OUT REG NAME ALARM IN MODE LOAD MODE MODE PBON START r-----.-------.---~---r--------r_----_.--------_.--------._------~ F eRB O=TOD 0 0=0'2 1=FORCE O=CONT. O=PULSE 0=PB7 OFF O=STOP o 1=CNT LOAD 1 O=TA 1= 1 1=CNT-TA (STROBE) 1=O.S. 1=TOGGLE 1=PB7 ON 1=START ALARM TB All unused register bits are unaffected by a write and are forced to zero on a read. COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or deSign. COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 2-91 , . . , commodore MPS ~ aamlcanduct;ar graup 6529 [t\!][K!A]@~ SINGLE-PORT INTERFACE 6529 SINGLE PORT INTERFACE DESCRIPTION The 6529 is a static microprocessor compatible, 8-bit I/O Port with passive output pull-up devices. Data is written to the port when CS and RNI/ are low. Data is read from the port when CS is low and RNI/ is high. The passive output pull-ups allow a single bit to act as either an input or an output without I/O mode switching. This device is provided with special circuitry to provide power-on reset. Under normal fast power- on conditions the outputs will initialize in the input high impedance state. With very slow or noisy power-up, there is some possibility the device will initialize with putputs driven low. It is recommended that the 6529 be interfaced to open collector output type devices. TRUTH TABLE PIN CONFIGURATION CS RNI/ 00- 0 7 RNI/ 20 VDD L L DATA BUS TO PORT L H PORT TO DATA BUS 19 CS PO 2 H X ISOLATION P1 3 18 DBO L = LOW Level H= HIGH Level P2 4 17 DB1 X =1 rrelevant P3 5 6529 16 DB2 P4 6 15 DB3 ORDER INFORMATION P5 7 14 DB4 MXS 6529 L FREQUENCY RANGE NO SUFFIX = 1 MHz P6 8 13 DB5 A = 2 MHz P7 9 12 DB6 a = 3 MHz VSS 10 11 DB7 ' - - - - - - PACKAGE DESIGNATOR C = Ceramic P = Plastic 2-92 MPS 6529 MAXIMUM RATINGS This device contains circuitry to RATING SYMBOL VALUE UNIT protect the inputs against damage SUPPLY VOLTAGE VCC -0.3 to +7.0 Vdc due to high static voltages, how- ever, it is advised that normal INPUT VOLTAGE Vin -0.3 to +7.0 Vdc precautions be taken to avoid application of any voltage higher OPERATING TEMPERATURE RANGE TA o to + 70 °C than maximum rated voltages to STORAGE TEMPERATURE RANGE Tstg -55 to +150 °C this circuit. CHARACTERISTICS (VCC = 5.0V ± 5%, VSS = OV, TA = 0° to 70°C) CHARACTERISTIC Input High Voltage(Normal Operating Levels) Input Low Voltage (Normal Operating Levels) SYMBOL VIH VIL MIN +2.0 -0.3 MAX VCC +0.8 UNIT Vdc Vdc I Input Leak~ge Current Vin = 0 to 5.0Vdc liN - ±2.5 !JAdc WRITE,CS Three-State (Off State Input Current) ITSI - ±10 flAdc (Vin = 0.4 to 2.4 Vdc, VCC = Max) 00- 0 7 Output High Voltage (VCC = Min, Load = -600~Adc, PO-P7) VOH 2.4 - Vdc (VCC = Min, Load = -200,uAdc, 0007) Output Low Voltage (VCC = Max, Load = 6.4mAdc, PO-P7) VOL - +0.4 Vdc (VCC = Max, Load = 3.2mA, 00-0 7) Output High Current (Sourcing) PO-P7 10H -600 - AJAdc (VOH = 2.4 Vdc) 00- 0 7 10H -200 ftJAdc Output Low Current (Sinking) PO-P7 10L 6.4 - mAdc (VOL = 0.4 Vdc) 00- 0 7 10L 3.2 mAde Supply Current ICC - 80 mA NOTE: Negative sign indicates outward current flow, positive indicates inward flow. 2-93 MPS 6529 6529 WRITE CYCLE TIMING DIAGRAM - cs ) V TWA ~ Rf\N \ 1\ 1/ ~ 07-00 IN > 14-- TOS ---... "iI(---TOH-+ •• 7 K >t TCPO PORT OUT Note: All timings referred to VI Lmax, VIH min for inputs and VOL max, VOH min for outputs. 6529 WRITE CYCLE CHARACTERISTICS 1 MHz 2 MHz 3MHz Symbol Characteristic MIN MAX MIN MAX MIN MAX UNIT TWA* Write Active 450 - 225 - 160 - ns TCPD CS to Port Out Delay - 1000 - 500 - 330 ns TDS Data to CS Setup 150 - 100 - 100 - ns TDH Data to CS Hold a - a - a - ns - *TWA is the time while both CS and R/W are low 2-94 MPS 6529 6529 READ CYCLE DIAGRAM D7-DO OUT I PORT IN R/W Note: All timings referenced to VIL max, VIH min for inputs and VOL max, VOH min for outputs. 6529 READ CYCLE CHARACTERISTICS 1 MHz 2 MHz 3MHz Symbol Characteristic MIN MAX MIN MAX MIN MAX UNITS TACC Access Time - 450 -- 225 - 160 ns TpOS Port Input Setup 120 - 60 - 40 - ns TPOH Port Input Hold 30 - 30 - 30 - ns - R/W to CS Setup 0 - 0 - 0 - ns TRCS TRCH R/W to CS Setup 0 - 0 - 0 - ns TOTO CS to Output Off Delay 20 120 20 120 20 120 ns COMMODORE SEMICONDUCTOR GROUP reserves the rigtlt to make changes to any products herein to improve reliability, function or design. COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 2-95 , . . , commodore MPS ~ semiconductor group 6530 ~~@~ MEMORY, I/O, TIMER ARRAY 6530 (MEMORY, I/O, TIMER ARRAY) DESCRIPTION The 6530 is designed to operate in conjunction with the 650X Microprocessor Family. It is comprised of a mask programmable 1024 x8 ROM,a 64x8 static RAM, two software controlled 8bit bi-directional data ports allowing direct interfacing between the microprocessor unit and peripheral devices, and a software programmable interval timer with interrupt, capable of timing in various intervals from 1 to 262,144 clock periods. FEATURES • 8 bit bi-directional Data Bus for direct communication with the microprocessor • 1024 x 8 ROM • 64 x 8 static RAM • Two 8 bit bi-directional data ports for interface to peripherals • Two programmable I/O Peripheral Data Direction Registers • Programmable Interval Timer • Programmable Interval Timer Interrupt • TTL & CMOS compatible peripheral lines • Peripheral pins with Direct Transistor Drive Capability • High Impedance Three-State Data Pins • Allows up to 7K contiguous bytes of ROM with no external decoding Figure 1 . 6530 Block Diagram PA7 DATA CONTROL I/O PERIPHERAL I/O INTERVAL REGISTER DATA BUFFER REGISTER 'REGISTER TIMER A B B A DATA CHIP BUS ADDRESS 64 x 8 SELECT BUFFER DECODER RAM R/W DO 01 AO A9 CS1 CS2 ¢2 R/W RES 2-96 MPS 6530 MAXIMUM RATINGS COMMENT Supply Voltage, Vcc -0.3V to + 7.0V Stresses above those listed under "Absolute Maximum Input/Output Voltage, VIN -0.3V to + 7.0V Ratings" may cause permanent damage to the device. Operating Temperature, TOp OCto 70 C These are stress ratings only. Functional operation of this Storage Temperature, TSTG -55 C to 150 C device at these or any other conditions above those indi- All inputs contain protection circuitry to prevent damage due cated in the operational sections of this specification is not to high static discharges. Care should be exercised to implied and exposure to absolute maximum rating condi- prevent unnecessary application of voltages in excess of the tions for extended periods may affect device reliability. allowable limits. ELECTRICAL CHARACTERISTICS (VCC=5.0v±5%, VSS=Ov, TA=25° C) CHARACTERISTIC Input High Voltage Input Low Voltage Input Leakage Current; VI N=VSS+5v AO-A9, RS, R/W, RES, ~2, PB6*, PB5* Input Leakage Current for High Impedance State (Three State); VI N=.4v to 2.4v; 00-07 SYMBOL VIH VIL liN ITSI MIN. VSS+2.4 VSS-·3 TYP. 1.0 ±1.0 MAX. VCC VSS+.4 2.5 -_.- ±10.0 UNIT V V )JA fA -- I Input High Current; VIN=2.4v IIH -100. -300. fJA PAO-PA7, PBO-PB7 Input Low Current; VIN=.4v IlL -1.0 -1.6 MA PAO-PA7, PBO-PB7 Output High Voltage VOH V VCC=MIN, ILOAD ~ -100JjA(PAO-PA7,PBO-PB7,DO-D7) VSS+2.4 I LOAD ~ -3 MA (PAO-PBO) VSS+1.5 -- Output Low Voltage VCC=MIN, I LOAD ~ 1.6MA VOL VSS+.4 V Output High Current (Sourcing); IOH VOH ~ 2Av (PAO-PA7,PBO-PB7,DO-D7) -100 -1000 uA ~ 1.5v Available for other than TIL -3.0 -5.0 MA (Darlingtons) (PAO,PBO) -- Output Low Current (Sinking); VOL ~ Av (PAO-PA 7) IOL 1.6 MA (PBO-PB7) Clock Input Capacitance CClk 30 pF I nput Capacitance CIN 10 pF Output Capacitance COUT 10 pF Power Dissipation Po 500 1000 MW *When programmed as address pins. All values are D.C. readings. 2-97 MPS 6530 WRITE TIMING CHARACTERISTICS CHARACTERISTIC SYMBOL MIN. TYP. MAX. UNIT Clock Period TCYC 1 10 ;US Rise & Fall Times TR, TF 25 NS Clock Pulse Width TC 470 NS R/W valid before positive transition of clock TWCW 180 NS Address valid before positive transition of clock TACW 180 NS Data Bus valid before negative transition of clock TDCW 300 NS Data Bus Hold Time THW 10 NS Peripheral data valid after negative transition TCPW 1 ;US of clock Peripheral data valid after negative transition TCMOS 2 fJS of clock driving CMOS (Level=VCC-30%) READ TIMING CHARACTERISTICS CHARACTERISTIC SYMBOL MIN. TYP. MAX. UNIT R/W valid before positive transition of clock TWCR 180 NS Address valid before positive transition of clock TACR 180 NS Peripheral data valid before positive transition TPCR 300 NS of clock Data Bus valid after positive transition of clock TCDR 395 NS Data Bus Hold Time THR 10 NS - IRQ (Interval Timer Interrupt) valid before TIC 200 NS positive transition of clock Loading= 30 pF + 1 TIL load for PAO-PA7, PBO-PB7 =130 pF + 1 TIL load for 00-07 2-98 MPS 6530 CLOCK INPUT "'-- 2.4V R/VV D.4V 2.4V ADDRESS D.4V DATA BUS PERIPHERAL DATA T Dew --+------+4t--~-4-::--:::~------- Vee 2.4V D.4V -3D% 2.4V D.4V I Figure 2 Write Timing Characteristics CLOCK INPUT 2 4 V R/VV D.4V 2.4V ADDRESS D.4V PERIPHERAL 2.4V DATA D.4V 2.4V DATA BUS D.4V PB7(TRO) __________ .~~TIC_ _ _ __ 2.4V D.4V Figure 3 Read Timing Characteristics 2-99 MPS 6530 INTERFACE SIGNAL DESCRIPTION Reset (RES)' Data Bus (00-07) During system initialization a Logic "0" on the RES The 6530 has eight bi-directional data pins (00-07). input will cause a zeroing of all four I/O registers. This These pins connect to the system's data lines and in turn will cause all I/O buses to act as inputs thus allow transfer of data to and from the microprocessor protecting external components from possible dam- array. The output buffers remain in the off state except age and erroneous data while the system is being when a Read operation occurs. configured under software control. The Data Bus Buffers are put into an OFF-STATE du~ Reset. Inter!!:!Q! capability is disabled with the RES signai. Peripheral Data Ports The RES signal must be held low for at least one clock period when reset is required. The 6530 has 16 pins available for peripheral I/O operations. Each pin is individually software program- mable to act as either an input or an output. The 16 Input Clock pins are divided into 2 a-bit ports, PAO-PA 7 and PBO- PB7. PB5, PB6 and PB7 also have other uses which The input clock is a system Phase Two clock which are discussed in later sections. The pins are set up as can beeithera low level clock(VIL < O.4,vIH > 2.4)or an input by writing a "0" into the corresponding bit of the data direction register. A "1" into the data direction high level clock (VIL < 0.2, VIH = Vcc +.3 ). -.2 register will cause its corresponding bit to be an output. When in the input mode, the peripheral output buffers are in the "1" state and a pull-up device acts as Read/Wrlte (R/W) less than one TTL load to the periphera data lines. On a Read operation, the microprocessor unit reads the The R/W signal is supplied by the microprocessor peripheral pin. When the peripheral device gets infor- array and is used to control the transfer of data to and mation from the 6530 it receives data stored in the data from the microprocessor array and the 6530. A high on register. The microprocessor will read correct infor- the R/W pin allows the processor to read (with proper mation if the peripheral lines are greater than 2.0 volts addressing) the data supplied by the 6530. A low on for a "1" and less than 0.8 volts for a "0" as the the R/W pin allows a write (with proper addressing) to peripheral pins are all TTL compatible. Pins PAO and the 6530. PBO are also capable of sourcing 3 ma at 1 .5v, thus making them capable of Darlington drive. Interrupt Request (IRQ) Address Unes (A~A9) The I RQ pin is an interrupt pin from the interval timer. This same pin, if not used as an interrupt, can be used There are 10 address pins. In addition to these 10, as a peripheral I/O pin (PB 7). When used as an there is the ROM SELECT pin. The above pins,AO-A9 interrupt, the pin should be set up as an input by the and ROM SELECT, are always used as addressing data direction register. The pin will be normally high pins. There are 2 additional pins which are mask with a low Indicating an interrupt from the 6530. An programmable and can be used either individually or external pull-up device is not required; however, if together as CHIP SELECTS. They ar,e pins PB5 and coliector-OR'd with other devices, the internal pullup PB6. When used as peripheral data pins they cannot may be omitted with a mask option. be used as chip selects. 2-100 MPS 6530 INTERNAL ORGANIZATION A block diagram of the internal architecture is During a read operation the microprocessor is not shown in Figure 1. The 6530 is divided into four basic reading the I/O Registers but in fact is reading the sections, RAM, ROM, I/O and TIMER. The RAM and peripheral data pins. For the peripheral data pins ROM interface directly with the microprocessorthrough which are programmed as outputs the microprocessor the system data bus and address lines. The I/O section will read the corresponding data bits of the I/O consists of 2 8-bit halves. Each half contains a Data Register. The only way the I/O Register data can be Direction Register (DDR) and an I/O Register. changed is by a microprocessor Write operation. The I I/O Register is not affected by a Read of the data on the peripheral pins. ROM 1 K Byte (8K Bits) The 8K ROM is in a 1024 x 8 configuration. Address lines AO-A9, as well as RSO are needed to address the Interval Timer entire ROM. With the additio'l of CS1 and CS2, seven 6530's may be addressed, giving 7168 x 8 bits of The Timer section of the 6530 contains three basic contiguous ROM. parts: prel iminary divide down reg ister, prog rammable 8-bit register and interrupt logic. These are illustrated in Figure 4. RAM - 64 Bytes (512 Bits) The interval timer can be programmed to count up to 256 time intervals. Each time interval can be either A 64 x 8 static RAM is contained on the 6530. It is addressed by AO-A5 (Byte Select), RSO, A6, A 7, A8, A9 1T, 8T, 64T or 1024T increments, where T is the system and, depending on the number of chips in the system, clock period. When a full count is reached, an interrupt flag is set to a logic "1." After the interrupt flag is set the CS1 and CS2. internal clock begins counting down to a maximum of -255T.Thus, after the interruptflag is set, a Read ofthe Internal Peripheral Registers timer will tell how long since the flag was set up to a maximum of 255T. There are four internal registers, two data direction The 8 bit system Data Bus is used to transfer data to registers and two peripheral I/O data registers. The two and from the Interval Timer. If a count of 52 time data direction registers (A side and B side) control the intervals were to be counted, the pattern aa 1 1 a 1 aa direction of the data into and out of the peripheral pins. would be put on the Data Bus and written into the A "1" written into the Data Direction Register sets up Interval Time register. the corresponding peripheral buffer pin as an output. Therefore, anything then written into the I/O Register At the same time that data is being written to the will appear on that corresponding peripheral pin. A "a" Interval Timer, the counting intervals of 1,8,64, 1024T written into the DDR inhibits the output buffer from are decoded from address lines AO and A 1. During a transmitting data to or from the I/O Register. For Read or Write operation address line A3 controls the example, a "1" loaded into data direction register A, interrupt capability of PB7, i.e.,A3 = 1 enables IRO on position 3, sets up peripheral pin PA3 as an output. If a PB7,A3 =0 disables IROon PB7.When PB7 istobe "a" had been loaded, PA3 would be configured as an used as an interrupt flag with the interval timer it should input and remain in the high state. The two data I/O be programmed as an input. If PB7 is enabled by A3 registers are used to latch data from the Data Bus and an interrupt occurs PB7 will go low. When the during a Write operation until the peripheral device timer is read prior to the interrupt flag being set, the can read the data supplied by the microprocessor number of time intervals remaining will be read, i.e., 51, array. 50,49, etc. 2-101 MPS 6530 When the timer has counted down to 0 0 0 0 0 0 0 0 the timer. Again, assume time written as 0 0 1 1 01 00 on the next count time an interrupt will occur and the (=52). With a divided by 8, total time to interrupt is (52 x counter will read 1 1 1 1 1 1 1 1 After interrupt, the timer 8) + 1 = 417T. Total elapsed time would be 416T + 28T register decrements at a divide by "1" rate of the =444T,assumingthevalueread after interrupt was 11 system clock. If after interrupt, the timer is read and a 1 001 0 O. value of 1 1 1 0 0 1 0 0 is read, the time since interrupt is After the interrupt, whenever the timer is written or 28T. The value read is in two's complement. read the interrupt is reset. However, the reading of the timer at the same time the interrupt occurs will not reset Value read = 1 1 1 00 1 00 the interrupt flag. When the interrupt flag is read on Complement = 0 0 0 1 1 0 1 1 DB? all other DB outputs (DBO thru DB6) go to "0". ADD 1 = 0 0 0 1 1 1 0 0 = 28. Figure 5 illustrates an example of interrupt. When reading the timer after an interrupt, A3 should be low so as to disable the I RQ pin. This is done so as Thus, to arrive at the total elapsed time, merely do a to avoid future interrupts until after another Write timer two's complement add to the original time written into operation. R/W A3 07 D6 05 04 03 02 DI DO R/W AI AO IRQ 02 o7 D6 05 D4 03 02 01 DO Figure 4. Basic Elements of Interval Timer ® ® @) ® R121N ~~~ WRITE T ..r--ll....-___________________________ 1. Data written into interval timer is 0 01 1 01 00 =5210 2. Data in Interval timer is 0 0 0 1 1 001 = 2510 52 - 213 - 1 = 52-26-1 = 25 8 3. Data in Interval timer is 0 0 0 0 0 0 0 0 = 010 52 - 41 5 - 1 = 52-51-1 = 0 8 4. Interrupt has occurred at j12 pulse #416 Data in Interval timer = 1 1 1 1 1 1 1 1 5. Data in Interval timer is 1 0 1 0 1 1 00 two's complement is 0 1 0 1 0 1 0 0 = 841 0 84 + (52 x 8) = 50010 Figure 5 2-102 MPS 6530 ADDRESSING Addressing of the 6530 offers many variations to the I/O Register - Timer Addressing user for greater flexibility. The user may configure his system with RAM in lower memory, ROM in higher Figure 8 illustrates the address decoding for the memory, and I/O registers with interval timers between internal elements and timer programming. Address the extremes. There are 10 address lines (AO-A9). In lines A2 distinguishes I/O registers from the timer. addition, there is the possibility of 3 additional address When A2 is high and I/O timer select is high, the I/O lines to be used as chip-selects and to distinguish registers are addressed. Once the I/O registers are ·I: between ROM, RAM, I/O and interval timer. Two of the addressed, address lines A 1 and AO decode the additional lines are chip-selects 1 and 2 (CS1 and desired register. CS2). The chip-select pins can also be PB5 and PB6. When the timer is selected A 1 and AO decode the Whether the pins are used as chip-selects or periph- divide by matrix. This decoding is defined in Figure 8. ... eral I/O pins is a mask option and must be specified In addition, Address A3 is used to enable the interrupt when ordering the part. Both pins act independently of flag to P87. each other in that either or both pins may be designated as a chip-select. The third additional address line is RSO. The 6502 and 6530 in a 2-chip system would use RSO to distinguish between ROM and non-ROM sections of the 6530. With the addressing pins avail- able, a total of 7K contiguous ROM may be addressed with no external decode. Below is an example of a 1- chip and a 7-chip 6530 Addressing Scheme. One-Chip Addressing Figure 6 illustrates a 1-chip system decode for the 6530. Seven-Chip Addressing In the 7-chip system the objective would be to have 7Kofcontiguous ROM,with RAM in low order memory. The 7K of ROM could be placed between addresses 65,535 and 1024. For this case, assume A 13, A 14 and A15 are all 1 when addressing ROM, and 0 when addressing RAM or I/O. This would place the 7K ROM between Addresses 65,535 and 58,367. The 2 pins designated as chip-select or I/O would be masked programmed as chip-select pins. Pin RSO would be connected to address line A 10. Pins CS1 and CS2 would be connected to address lines A 11 and A 12 respectively. See Figure 7. The two examples shown would allow addressing of the ROM and RAM; however, once the I/O or timer has been addressed, further decoding is necessary to select which of the I/O registers are desired, as well as the coding of the interval timer. 2-103 MPS 6530 ...J - J .....-- INT. TIMER SEl. A31NTERVAL A1 TIMER ro- AO I/O TIMER SEL. ~ -==LJ ~ I-- I/O SEL. A1 I/O ~ AO fi ----------Q; RAM SEL A5 r----- A4 A3 RAM A2 CS2 10- ~ A1 CS1 4>- .. ~ [, ~ AO RSO Y> l.- I.- .-1" "I' 4> "" \V "I' ROM SEL. A9 J!\ AS 4>- , ~ A9 A7 4>- I.- "'I' AB A6 4>- "" ,,, ,[, A7 A6 4>- L.. ______ J 71' ,~ A5 A4 - - - ------ - -- - - ' A5 A4 A3 A3 A2 A2 A1 A1 AO AO A. X indicates mask programming i.e. ROM select=CS1 • RSO RAM select=CS1 .RSO.A9.A7.A6 I/O TIMER SELECT....CS1.RSO.A9.AS.A7.A6 B. Notice that AS is a don't care for RAM select C. CS2 can be used as PB5 in this example. Flgure6. 6530 One Chip Address Encoding Diagram 2-104 MPS 6530 The addressing of the ROM select, RAM select and I/O Timer select lines would be as follows: CS2 CS1 RSO A12 A11 A10 A9 AS A7 A6 6530 #1, ROM SELECT 0 0 1 X X X X RAM SELECT 0 0 0 0 0 0 0 I/O TIMER 0 0 0 1 0 0 0 6530 #2, I ROM SELECT 0 1 0 X X X X RAM SELECT 0 0 0 0 0 0 1 I/O TIMER 0 0 0 1 0 0 1 6530 #3, ROM SELECT 0 1 1 X X X X RAM SELECT 0 0 0 0 0 1 0 I/O TIMER 0 0 0 1 0 1 0 6530 #4, ROM SELECT 1 0 0 X X X X RAM SELECT 0 0 0 0 0 1 1 I/O TIMER 0 0 0 1 0 1 1 6530 #5, ROM SELECT 1 0 1 X X X X RAM SELECT 0 0 0 0 1 0 0 I/O TIMER 0 0 0 1 1 0 0 6530 #6, ROM SELECT 1 1 0 X X X X RAM SELECT 0 0 0 0 1 0 1 I/O TIMER 0 0 0 1 1 0 1 65~IO #7, ROM SELECT 1 1 1 X X X X RAM SELECT 0 0 0 0 1 1 0 I/O TIMER 0 0 0 1 1 1 0 *RAM select for 6530 #5 would read = A12eA11 eA1 OeAgeA8eA7eA6 Figure 7. 6530 Seven Chip Addressing Scheme 2-105 C= ~~@@ MPS 6530 ADDRESSING DECODE ROM SELECT RAM SELECT I/O TIMER SELECT R/W A3 A2 A1 AD READ ROM 0 0 X X X X WRITE RAM 0 0 0 X X X X READ RAM 0 0 X X X X WRITE DORA 0 0 0 X 0 0 READ DORA 0 0 I X 0 0 WRITEDDRB 0 0 0 X 0 I READ DDRB 0 0 X 0 I WRITE PER. REG. A 0 0 0 X 0 0 0 READ PER. REG. A 0 0 X 0 0 0 WRITE PER. REG. B 0 0 0 X 0 0 READ PER. REG. B 0 0 X 0 0 WRITE TIMER 0 0 0 0 0 +1T +8T 0 0 0 * 0 I -:- 64T 0 0 0 * 0 + 1024T 0 0 0 * * READ TIMER 0 0 X 0 READ INTERRUPT FLAG 0 0 *X X *A3 = I Enables IRO to PB7 A3 = 0 Disables IRO to PB7 Figure 8. Addressing Decode for I/O Register and Timer 10omax. Vs 5 PAl 40 21.-L __ ~ PAO PA2 Dot or To NotCDq - Locate -- .600 mall:. ~----r (15.87) .625 RSO 02 PA3 PA4 Pin No. I • 05.24mm) (15.11) .595 A9 PA~ -J1__-~'5m L L J 1. AS PA6 o •• - . A7 PA7 (3 93mm) A6 OBO 2.020 max. (51.30 mm) 190 max. R/W OBI (4.82mm) jJtL l - AS OB2 ~~=...L1·~~~' _~a~i .--.L A4 083 A3 OB4 A2 OB5 (1.65) .040 (1.01) .065 Typ. L-' . .100mln. AI OB6 (2.54mm) AO OB7 (.55) .022 Typ. .. _ 010 mIn RES PBO (.45) .ole 1.910 (48.5Imm) (.25mm)· 1.890 (48.00mm) IRQ/PB7 PBI 19 Equal Spaces CSI/PB6 PB2 .100 2.4) or high level clock (Vil < 0.2, VIH = Vcc ~ :~) ReadIWrlt. (RIW) The RIW signal Is supplied by the microprocessor array and Is used to control the transfer of data to and from the microprocessor array and the 6532. A high on the RIW pin allows the processor to read (with proper addressing) the data supplied by the 6532. A low on the ANI pin allows a write (with proper addressing) to the 6532. Int.rru~t Request (iIm) . The fRO pin is an Interrupt pin from the Interrupt control logic. The pin will be normally high with a low in- dicating an Interrupt from the 6532. An external pull-up device Is required. The fRO pin may be activated by a transition on PA7 or timeout of the interval timer. Data Bus (OO-Dn The 6532 has eight bi-directional data pins (00-07). These pins connect to the system's data lines and allow transfer of data to and from the microprocessor array. The output buffers remain In the off state ex- cept when a Read operation occurs and are capable of driving one standard TTL load and 130 pf. Peripheral Data Ports The 6532 has 16 pins available for peripheral I/O operations. Each pin is individually software programmable to act as either an input or an output. The 16 pins are divided into 2 a-bit ports, PAo-PA7 and PBO-PB7. PA7 also has other uses which are discussed in later sections. The pins are set as inputs by writing a "0" into the corresponding bit of the data direction register. A "1" into the data direction register will cause the corresponding pin to be an output. When in the input mode, the peripheral output buffers are in the" 1" state and pull-up device acts as less than one TTL load to the peripheral data lines. On a Read operation, the microprocessor unit reads the peripheral pin. When the peripheral device gets information from the 6532 it receives data stored in the data register. The microprocessor will read correct information if the peripheral lines are greater than 2.0 volts for a "1" and less than o.a volts for a "0" as the peripheral pins are all TTL compatible. Pins PBO-PB7 are also capable of sourcing 3 ma at 1.5v, thus making them capable of Darlington drive. .. Address Lines (Ao-A6) . There are 7 address pins. In addition to these 7, there is a RAM SELECT pin. These pins, Ao-A6 and RAM SELECT, are always used as addreSSing pins. There are two additional pins which are used as CHIP SELECTS. They are pins CS1 and CS2. 2-113 MPS 6532 Interval nnw The Timer section of the 6532 contains three basic parts: preliminary divide down register, programmable 8-blt register and Interrupt logic. Figure 2. BASIC ELEMENTS OF INTERVAL TIMER RIW PA7 A3 D7 De D6 Dol D3 D2 D1 DO RIW A1 • I' I. r r I INTERRUPT PROGRAMMABLE - DIVIDE - CONTROL REGISTER DOWN t2 I ~ . Ir 07 De os EM 03 02 01 DO The Interval time can be programmed to count up to 255 time intervals. Each time interval can be either 1T, 8T, 64T or 1024T Increments, where T is the system clock period. When a full count is reached, an interrupt flag is set to a logic "1". After the Interrupt flag Is set the internal clock begins counting down to a maximum of - 255T. Thus, after the Interrupt flag Is set, a Read of the timer wi" tell how long since the flag was set up to a maximum of 255T. The 8 bit system Data Bus is used to transfer data to and from the Interval Timer. If a count of 52 time intervals were to be counted, the pattern 0 0 1 1 0 1 0 0 would be put on the Data Bus and written into the Interval Time register. At the same time that data Is being written to the Interval Timer, the counting intervals of 1, 8, 64, 1024T are decoded from address lines AO and A 1. During a Read or Write operation address line A3 controls the interrupt capability; I.e., A, = 1 enables IRO, A, = 0 disables IRO. When the timer is read prior to the interrupt flag being set, the number of time Intervals remaining will be read, i.e., 51,50,49, etc. When the timer has counted thru 00000000 on the next count time an interrupt will occur and the counter will read 1 1 1 1 1 1 1 1. After Interrupt, the timer register decrements at a divide by "1" rate of the system clock. If after Interrupt, the timer Is read and a value of 1 1 1 0 0 1 0 0 is read, the time since interrupt Is 27T. The value read is In two's complement, but remember that interrupt occurred on count number. Therefore, we must subtract 1. Value read = 1 1100 10 0 Complement = 0 0 0 1 1 0 1 1 ADD 1 = 0 0 0 1 1 1 0 0 = 28 Equals two's complement of register SUB 1 =00011011 =27 2-114 MPS 6532 Thus, to arrive at the total elapsed time, merely do a two's complement add to the original time written Into the timer. Again, assume time written as 00 1 1 0 1 00 ( = 52). With a divide by 8, total time to Interrupt Is (52 x 8) + 1 = 417T. Total elapsed time would be 416T + 28T = 444T, assuming the value read after Interrupt was 11 1 001 0 O. After the Interrupt, whenever the timer Is written or read the Interrupt Is reset. However, the reading of the timer at the same time the Interrupt occurs will not reset the Interrupt flag. When the Interrupt flags are read (DB7 for the timer, DB6 for edge detect) data bus lines DO-D5 go to O. Figure 3. TIMER INTERRUPT TIMING 12 IN I ~",T ~~_______________________________________________________________ 1. Data written Into interval timers Is 0 0 1 1 0 1 0 0 = 52,0 2. Data In Interval timer Is 0 0 0 1 1 0 0 1 = 25,0 52.213.1 = 52·26-1 = 25 8 3. Data In Interval timer Is 0 0 0 0 0 0 0 0 = 010 52.4~5.1 =52·51·1 =0 4. Interrupt has occurred at 02 pulse #416 Data In Interval timer = 1 1 1 1 1 1 1 1 5. Data in Interval timer is 1 0 1 0 1 1 0 0 two's complement Is 0 1 0 1 0 1 0 0 = 8410 = 84 + (52x8) 50010 When reading the timer after an interrupt, A3 should be low so as to disable the IRQ pin. This is done so as to avoid future Interrupts until after another Write operation. Interrupt Flag Register The Interrupt Flag Register consists of two bits: the timer interrupt flag and the PA7 interrupt flag. When a read operation Is performed on the Interrupt Flag Register, the bits are transferred to the processor on the data bus, as the diagram below, Indicates. Figura 4. INTERRUPT FLAG REGISTER 7 6 I, 5 4 I I2 3 o I j ·0· PA7 FLAG TIMER FLAG The PA7 flag Is cleared when the Interrupt Flag Register is read. The timer flag is cleared when the timer register is either written or read. 2-115 MPS 6532 ADDRESSING Addesslng of the 6532 Is accomplished by the 7 addressing pins, the AS pin and the two chip select pins CS1 and CS'2. To address the R~ CS1 must be high with CS2 and AS low. To address the 110 and Interval timer CS1 and AS must be high with ~~ low. As can be seen to access the chip CS1 Is high and ~ is low. To distinguish between RAM or 110 Timer the AS pin Is used. When this pin Is low the RAM Is addressed, when high the 110 Inter- val timer section Is addressed. To distinguish between timer and 110 address line A2 is utilized. When A2 is high the Interval timer Is accessed. When A2 Is low the 110 section Is addressed. Table 1 Illustrates the chip addressing. Edge Sen.. Interrupt In addition to Its use as a peripheral 110 line, the PA7 pin can function as an edge sensitive Input. In this mode, an active transition on PA7 will set the Internal Interrupt flag (bit 6 of the Interrupt Flag Register). When this occurs, and providing ttle PA7 Interrupt Is enabled, the lAO output will go low. Control of the PA7 edge detecting logic Is accomplished by performing a write operation for one of four ad- dresses. The data lines for this operation are "don't care" and the addresses to be used are found in Figure 4. The setting of the Internal Interrupt flag by an active transition on PA71s always enabled, no matter whether PA7 Is set up as an Input or an output. The RES signal disables the PA71nterrupt and sets the active transition to the negative edge-detect state. During the reset operation, the Interrupt flag may be set by a negative transition. It may, therefore, be necessary to clear the flag before its normal use as an edge detecting Input is enabled. This can be achieved by reading the Interrupt Flag Register, as defined by Figure 4 immediately after reset. 110 Register-Timer Addreselng Table 1 Illustrates the address decoding for the internal elements and timer programming. Address line A2 distinguishes 110 registers from the timer. When A2 Is low and Fffi is high, the 110 registers are addressed. Once the 110 registers are addressed, address lines A 1 and AO decode the desired register. When the timer Is selected A 1 and AO decode the "divide-by" matrix. This decoding is defined in Table 1. In addi- tion, Address A3 Is used to enable the Interrupt flag to fRO. Table 1: ADDRESSING DECODE OPERATION ~ ANI M A3 A2 Al WrIte RAM 0 0 Read RAM 0 1 Write DORA 0 0 0 Read DORA 1 0 0 WrlteDDRB 0 0 1 Read DDRB 1 0 1 1 Wrlte Output Reg A 0 0 0 o Read Output Reg A 1 0 0 o Wrlte Output Reg B 0 0 o Read Output Reg B 1 0 o Write TImer +IT 0 (s) 0 o +BT 0 (s) 0 1 +64T 0 (s) o +1024T 0 (s) Read TImer (s) Read Interrupt Flag(s) 1 Wrlte Edge Detect Control (b) (e) NOTES:- = Don't care, '"1'" =High ItMtI (;o2.4V),'"0'" = Low I_I (.. 0.4V) (.) A3 = 0 to disable Interrupt from timer to IRQ A3 = 1 to enable interrupt from timer to iRQ (b) Al =0 to disable Interrupt from PA7 to iR<:i Al = 1 to en.ble Interrupt from PA7 to iR<:i = (e) AO 0 for negative edge-detect AO = 1 for positive edge-detect COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or design. COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 2-116 , . . , commodore MPS ~ aernlcanductoor group 6545-1 CRT ~UYAJ@@ CONTROLLER (CRTC) 6545-1 CRT Controller (CRTC) CONCEPT The 6545-1 is a CRT Controller intended to provide capability for interfacing the 6500/6800 I microprocessor families to CRT or TV-type raster scan displays. A unique feature is the inclusion of several modes of operation, so that the system designer can configure the system with a wide assortment of techniques. FEATURES: • Single +5 volt (±5%) power supply. • External light pen capability. • Alphanumeric and limited graphics • Capable of addressing up to 16K character capabi Iities. video display RAM. • Fully programmable display (rows, columns, • No DMA required. blanking, etc.). • Pin-compatible with MC6845. • Non-interlaced scan. • Row/Column or straight-binary addressing .50/60 Hz operation. for video display RAM. • Fully programmable cursor. • Internal 8-bit status register. ORDERING INFORMATION 6545-1 PIN DESIGNATION MXS 6545-1 1 MHz GNO 40 VSYNC 1 MXS 6545A-1 2 MHz RES 2 39 HSYNC LPEN 3 38 RAO CCO/MAO 4 37 RAl CC1/MAl 5 36 RA2 CC2/MA2 6 35 RA3 CC3/MA3 7 34 RA4 CC4/MA4 8 33 080 CC5/MA5 9 32 081 CC6/MA6 10 31 082 CC7/MA7 11 30 083 CRO/MA8 12 29 084 CR1/MA9 13 28 085 CR2/MA10 14 27 086 - - - - PACKAGE DESIGNATOR CR3/MA11 15 26 087 C = CERAMIC CR4/MA12 16 25 CS P = PLASTIC CR5/MA13 17 24 RS DISPLAY ENA8LE 18 23 !1\2 CURSOR 19 22 R/w VCC 20 21 CCLK 2-117 MoPS 6545-1 MAXIMUM RATINGS COMMENT Supply Voltage, VCC -0.3V to +7.0V Stresses above those listed under "Absolute Maximum InpuVOutput Voltage, VIN -0.3V to + 7.0V Ratings" may cause permanent damage to the device. Operating Temperature, TOp O°C to 70°C These are stress ratings only. Functional operation of this Storage Temperature, TSTG -SsoC to 1S0°C device at these or any other conditions above those indi- All inputs contain protection circuitry to prevent damage due cated in the operational sections of this specification is not to high static discharges. Care should be exercised to implied and exposure to absolute maximum rating condi- prevent unnecessary application of voltages in excess of the tions for extended periods may affect device reliability. allowable limits. ELECTRICAL CHARACTERISTICS (Vee = 5.aV ± 5%, T A = a to 7aoe, unless otherwise noted) Symbol Characteristic Min. Max. Unit VIH Input High Voltage 2.0 VCC V VIL Input Low Voltage -0.3 0.8 V liN Input Leakage (~2, R/w, RES, CS, RS, LPEN, CCLK) 2.S fJA ITSI Three-State Input Leakage (DBO-DB 7) 10.0 J-lA VIN = 0.4 to 2.4V VOH Output High Voltage 2.4 Vee V ILOAD = 20Sf-}A (DBO-DB7) I LOAD = 1OOfJA (all others) VOL Output Low Voltage VSS 0.4 V I LOAD = 1.6mA Po Power Dissipation 1000 mW CIN Input Capacitanc~ !1!2, R/w, RES, es, RS, LPEN, CeLK 10.0 pF DBO-DB7 12.S pF COUT Output Capacitance 10.0 pF INTERFACE DIAGRAM VCC GND MPU 1/F I I r--....I--~---. DBO-DB? HSYNC r - - - - l.... VSYNC <1>2 I-------,~ DISPLAY ENABLE R/w 6545-1 CRTC r-----'~ CURSOR CS ~--- LPEN RS 1 + - - - - CCLK RES ~A~A RA~Aj13 REFRESH RAM AND CHARACTER ROM 2-118 MPS 6545-1 MPU BUS INTERFACE CHARACTERISTICS WRITE CYCLE CS,RS DATA BUS I WRITE TIMING CHARACTERISTICS (Vee = 5,OV ± 5%, TA = a to 70o e, unless otherwise noted) 6545-1 6545A-1 Symbol Characteristic Min. Max. Min. Max. Unit tCYC Cycle Time 1.0 40 0,5 40 !Js tc ¢2 Pulse Width 470 - 235 - ns tACW Address Set-Up Time 180 - 90 - ns tCAH Address Hold Time 0 - 0 - ns twcw R;W Set-Up Time 180 - 90 - ns tCWH - RNJ Hold Time 0 - 0 - ns tDCW Data Bus Set-Up Time 265 - 100 - ns tHW Data Bus Hold Time 10 - 10 - ns (tr and tf = 10 to 30 ns) 2-119 MPS 6545-1 MPU BUS INTERFACE CHARACTERISTICS READ CYCLE CS, RS R/W ~ tCDR ~ tHR~_ tWCR tCDA -:--- DATA BUS ------ READ TIMING CHARACTERISTICS Nee = 5.0V ± 5%, TA = a to 70°C, unless otherwise noted) 6545-1 6545A-1 Symbol Characteristic Min. Max. Min. Max. Unit tCYC Cycle Time 1.0 40 0.5 40 I-lS tc ¢2 Pulse Width 470 - 235 - ns tACR Address Set-Up Time 180 - 90 - ns teAR Address Hold Time 0 - 0 - ns twCR R/wSet-Up Time 180 - 90 - ns tCDR Read Access Time - 340 - 150 ns tHR Read Hold Time 10 - 10 - ns tCDA Data Bus Active Time (Invalid Data) 40 - 40 - ns (tr and tf = 10 to 30 nsj 2-120 MPS 6545-1 MEMORY AND VIDEO INTERFACE CHARACTERISTICS (Vee - 5.av ± 5%, TA = a to 7aoe, unless otherwise noted) Output Parameter MAO-MA13 tMAD RAO-RA4 tRAD DISPLAY-ENABLE tOTO HSYNC tHSD VSYNC tvSD CURSOR tCDD SYSTEM TIMING SYSTEM TIMING PARAMETERS (Vee = 5.aV + 5%, TA = a to 7aoe, unless otherwise noted) Symbol tCCY tCCH tMAD Characteristics Character Clock Cycle Time Character Clock Pulse Width MAO-MA 13 Propagation Delay Min. 0040 200 - 6545-1 Max. 40 - 300 Min. OAO 200 - 6545A-1 Max. 40 - 300 Unit /-ls ns ns I tRAD RAO-RA4 Propagation Delay - 300 - 300 ns tOTO DISPLAY ENABLE Propagation Delay - 375 - 375 ns tHSD HSYNC Propagation Delay - 375 - 375 ns tvSD VSYNC Propagation Delay - 375 - 375 ns tCDD CURSOR Propagation Delay - 375 - 375 ns tLPH LPEN Hold Time 100 - 100 -;- ns tLP1 LPEN Set-up Time 20 - 20 - ns tLP2 CCLK to LPEN Delay 0 - 0 - ns tr, tf == 20 ns (max) LIGHT PEN STROBE TIMING DEFINITIONS CCLK LPEN MAO-MA13 ______________~X~_______ n_+_l____ ~)(~________n+_2____~)(~________ NOTE: "Safe" time position for LPEN positive edge to cause address n+2 to load into Light Pen Register. tLP2 and tLPl are time positions causing uncertain results. 2-121 MPS 6545-1 MPU INTERFACE SIGNAL DESCRIPTION .2 (Clock) CURSOR The input clock is the system 02 clock and is used to trigger The CURSOR Signal is an active-high output and is used to all data transfers between the system microprocessor and indicate when the scan coincides with the programmed the 6545-1. cursor position, The cursor position may be programmed to be any character in the address field, Furthermore, within the R/Yi (Read/Wrlte) character, the cursor may be programmed to be any block of scan lines, since the start scan line and the end scan line are The R/W signal is generated by the microprocessor and is both programmable, The CU RSOR position may be delayed used to control the direction of data transfers. A high on the R/W pin allows the processor to read the data supplied by by one character time by setting bit 5 of R8 to a "1." the 6545-1 ; a lowon the R/iipin allows awritetothe6545-1. LPEN CS (Chip Select) The LPEN signal is an edge-sensitive input and is used to load the internal Light Pen Register with the contents of the The Chip Select input is normally connected to the pro- Refresh Scan Counter at the time the active edge occurs, cessor address bus either directly or through a decoder. The The active edge of LPEN is the low-to-high transition. 6545-1 is selected when CS is low. CCLK RS (Register Select) The CCLK signal is the character timing clock input and is The Register Select input is used to access internal registers. used as the time base for all internal counVcontrol functions, A low on this pin permits writes into the Address Register and reads from the Status Register. The contents of the RES Address Register is the identity of the register accessed The RES signal is an active-low inpu!J!sed to initialize all when RS is high. internal scan counter circuits. When RES is low, all internal DBO-DB7 (Data Bus) counters are stopped and cleared, all scan and video outputs are low, and control registers are unaffected, RES The DBO-DB7 pins are the eight data lines used for transfer must stay low for at least one CCLK period. All scan timing is of data between the processor and the 6545-1 . These lines initiated when RES goes high. In this way, RES can be used are bi-directional and are normally high-impedance except to synchronize display frame timing with line frequency, during read cycles when the chip is selected. MEMORY ADDRESS SIGNAL DESCRIPTION VIDEO INTERFACE SIGNAL DESCRIPTION MAQ-MA 13 (Refresh RAM Address Lines) HSYNC (Horizontal Sync) These signals are active-high outputs and are used to address the Refresh RAM for character storage and display The HSYNC signal is an active-high output used to deter- operations, The starting scan address is fully programmable mine the horizontal position of displayed text. It may drive a and the 'ending scan address is determined by the total CRT monitor directly or may be used for composite video number of characters displayed, which is also program- generation. HSYNC time position and width are fully mable, in terms of characters/line and lines/frame. programmable. There are two selectable address modes for MAO-MA 13: VSYNC (Vertical Sync) In the straight binary mode, characters are stored in suc- The VSYNC Signal is an active-high output used to deter- cessive memory locations, Thus, the software must be mine the vertical pOSition of displayed text. Like HSYNC, designed so that row and column character co-ordinates VSYNC may be used to drive a CRT monitor or composite are translated into sequentially-numbered addresses, In the video generation circuits. VSYNC position and width are row/column mode MAO-MA 7 become column addresses both fully programmable. CCO-CC7 and MA8-MA 13 become row addresses CRO- C~5, In this case, the software can manipulate characters in DISPLAY ENABLE terms of row and column locations, but additional address The DISPLAY ENABLE Signal is an active-high output and is compression circuits are needed to convert the CCO-CC7 used to indicate when the 6545-1 is generating active and CRO-CR5 addresses into a memory efficient binary display information, The number of horizontal displayed address scheme, characters and the number of vertical displayed characters are both fully programmable and together are used to RAQ-RA4 (Raster Address Lines) generate the DISPLAY ENABLE Signal. Display Enable can These signals are active-high outputs and are used to select be delayed by one character time by setting bit 4 of R8 to a each raster scan within an individual character row, The "1", number of raster scan lines is programmable and deter- mines the character height, including spaces between character rows, 2-122 MPS 6545-1 DESCRIPTION OF INTERNAL REGISTERS Figure 1 illustrates the format of a typical video display and is Horizontal Total (RO) necessary to understand the functions of the various 6545-1 This 8-bit register contains the total of displayed and internal registers. Figure 2 illustrates vertical and horizontal non-displayed characters, minus one, per horizontal line. timing. Figure 3 summarizes the internal registers and indi- The frequency of HSYNC is thus determined by this cates their address selection and read/write capabilities. register. Addll'888 Register This is a 5-bit register which is used as a "pointer" to direct Horizontal Displayed (R1) 6545-1 data transfers to and from the system MPU. Its contents is the number of the desired register (0-31). When This 8-bit register contains the number of displayed RS is low, then this register may be loaded; when. R~ is high, characters per horizontal line. then the register selected is the one whose identity IS stored Horizontal Sync Position (R2) in this register. I This 8-bit register contains the position of the HSYNC.on Status Register the horizontal line, in terms of the character location number on the line. The position of the HSYNC deter- This register is used to monitor the status of the CRTC, as mines the left-to-right location of the displayed text on the follows: video screen. In this way, the side margins are adjusted. 17161514131211101 NOT USErl -l [ L NOT USED J VERTICAL BLANKING "0" Scan currently not in vertical blanking portion of Its timing "1" Scan currently is in Its vertical blanking time LPEN REGISTER FULL "0" This bit goes to "0" whenever either register R16 or R17 is read by the MPU "1" This bit goes to "1" whenever a LPEN strobe occurs HORTOTAL_ ~ "0' o"""eo I I r------.- ABC 0 E F G H I J K L ]- ~~AE~ to! N 0 P NUMBER OF SCAN LINES PER } CHARACTER ROW Figure 1. Video Display Format 2-123 1 COMPLETE FIELD (VERTICAL TOTAL) VERTICAL DISPLAYED 9 ~ DISPLAY ~ ENABLE © HSYNC @i) "II C c a VSYNC ~ < CD ~ RAD-RA4 n . !. :::I Q, ~ ::J: 0 I'\) ~ ::::!. N 0 :::I !: CCLK -I 3" ;- (Q DISPLAY ENABLE ~I r---- I HSYNC MAD-MA13 RAO-RA4 CIS:CS Ul ~ UI ....• MPS 6545-1 Horizontal and Vertical SYNC Widths (R3) Control of these parameters allows the 6545-1 to be interfaced to a variety of CRT monitors, since the HSYNC This 8-bit register contains the widths of both HSYNC and VSYNC timing signals may be accommodated and VSYNC, as follows: without the use of external one-shot timing. Ir-7""1-01-r-14""I-031-2r-1-r1-'I 6 5 0 Vertical Total (R4) II IIIII I 842184'21 The Vertical Total Register is a 7-bit register containing the total number of character rows in a frame, minus one. L-,-----i '-----r------' This register, along with R5, determines the overall frame VSYNC WIDTH' HSYNC WIDTH rate, which should be close to the line frequency to I I ensure flicker-free appearance. If the frame time is (NUMBER OF SCAN (NUMBER OF CHARACTER adjusted to be longer than the period of the line fre- LINES) CLOCK TIMES) quency, then RES may be used to provide absolute 'IF BITS 4-7 ARE ALL "0". THEN VSYNC WILL BE 18 SCAN LINES WIDE. synchronism. Address Reg Register Bit - Reg. CS RS 4 3 2 1 0 No. Register Name Stored Info RD WR 7 6 5 4 3 2 1 0 1 - - - - - - - X X X X X X X X 0 0 - - - - - - Address Reg. Reg. No. v X X X A4 A3 A2 A1 AO 0 0 - - - - - - Status Reg. v U L V X X X X X 0 1 0 0 0 0 0 RO Horiz. Total # Charac. v • • • • • • • • 0 1 0 0 0 0 1 R1 Horiz. Displayed # Charac. v • • • • • • • • 0 1 0 0 0 1 0 R2 Horiz. Sync Position # Charac. v • • • • • • • • # Scan Lines & v 1/3 V2 V1 Vo H3 H2 H1 HO 0 1 0 0 0 1 1 R3 VSYNC, HSYNC Widths :#: Char. Times 0 1 0 0 1 0 0 R4 Vert. Total # Charac. Row v X • • • • • • • 0 1 0 0 1 0 1 R5 Vert. Total Adjust. :#: Scan Lines v X X X • • • • • 0 1 0 0 1 1 0 R6 Vert. Displayed # Charac. Rows v X • • • • • • • 0 1 0 0 1 1 1 R7 Vert. Sync Position # Charac. Rows v X • • • • • • • 0 1 0 1 0 0 0 R8 Mode Control v • • • • • • • • 0 1 0 1 0 0 1 R9 Scan Line # Scan Lines v X X X • • • • • 0 1 0 1 0 1 0 R10 Cursor Start Scan Line No. v X B1 BO • • • • • 0 1 0 1 0 1 1 R11 Cursor End Scan Line No. v X X X • • • • • 0 1 0 1 1 0 0 R12 Display Start Addr (H) v X X • • • • • • 0 1 0 1 1 0 1 R13 Display Start Addr (L) v • • • • • • • • 0 1 0 1 1 1 0 R14 Cursor Position (H) v v X X • • • • • • 0 1 0 1 1 1 1 R15 Cursor Position (L) v v • • • • • • • • 0 1 1 0 0 0 0 R16 Light Pen Reg. (H) v X X • • • • • • 0 1 1 0 0 0 1 R17 ~ight Pen Reg. (L) v • • • • • • • • Notes • Designates binary bit X Designates unusued bit. Reading this bit is always "0", except for R31, which does not drive the data bus at all, and for CS "1" which operates likewise. Figure 3. Internal Register Summary 2-125 MPS 6545-1 Vertical Total Adjust (RS) Cursor Start (R1 0) and Cursor End (R11) The Vertical Total Adjust Register is a 5-bit write only These 5-bit registers select the starting and ending scan register containing the number of additional scan lines lines for the cursor. In addition, bits 5 and 6 of R1 0 are needed to complete an entire frame scan and is intended used to select the cursor mode, as follows: as a fine adjustment for the video frame time. Vertical Displayed (R6) This 7-bit register contains the number of displayed BIT character rows in each frame. I n this way, the vertical size CURSOR MODE of the displayed text is determined. 6 5 Vertical Sync Position (R7) 0 0 No Blinking This 7-bit register is used to select the character row time 0 1 No Cursor at which the VSYNC pulse is desired to occur and, thus, 1 0 Blink at 1/16 field rate is used to position the displayed text in the vertical direction. 1 1 Blink at 1/32 field rate Mode Control (RS) This register is used to select the operating modes of the Note that the ability to program both the start and end 6545-1 and is outlined as follows: scan line for the cursor enables either block cursor or underline to be accommodated. Registers R14 and R15 are used to control the character position of the cursor over the entire 16K address field. 17161514131211101 Display Start Address High (R12) and Low (R13) L INTERLACE MODE CONTROL These registers together comprise a 14-bit register whose contents is the memory address of the first character of the displayed scan (the character on the top ~ OPERATION left of the video display, as in Figure 1). Subsequent I 1I 0 memory addresses are generated by the 6545-1 as a xlo Non Interlace result of CCLK input pulses. Scrolling of the display is x 11 Invalid (Do Not Use) accomplished by changing R12 and R13 to the memory address associated with the first character of the desired line of text to be displayed first. Entire pages of text may I....- VIDEO DISPLAY RAM ADDRESSING be scrolled or changed as well via R12 and R13. "0" for straight binary "1" for Row/Column Cursor Position High (R14) and Low (R1S) L . . . - - MUST PROGRAM TO "0" These registers together comprise a 14-bit register whose contents is the memory address of the current cursor position. When the video display scan counter ' - - - - - DISPLAY ENABLE SKEW "0" for no delay (MA lines) matches the contents of this register, and "1" to delay Display Enable one character time when the scan line counter (RA lines) falls within the bounds set by R1 0 and R11, then the CURSOR output ' - - - - - - CURSOR SKEW becomes active. Bit 5 of the Mode Control Register (R8) "0" for new delay may be used to delay the CURSOR output by a full CCLK "1" to delay Cursor one character time time to accommodate slow access memories. '--_ _ _ _ ] - NOT USED LPEN High (R16) and Low (R17) These registers together comprise a 14-bit register whose contents is the light pen strobe pOSition, in terms of the video display address at which the strobe occurred. Scan Line (R9) When the LPEN input changes from low to high, then, on This 5-bit register contains the number of scan lines per the next negative-going edge of CCLK, the contents of character row, including spacing. the internal scan counter is stored in registers R16 and R17. 2-126 MPS 6545-1 In this way, the user may select whichever mode is best for DETAILED DESCRIPTION OF OPERATION the given application. The trade-ofts between the modes are Register Formats software versus hardware. Straight-binary mode minimizes hardware requirements and row/column requires minimum Register pairs R12/R13, R14/R15, and R16/R17 are for- software. matted in one of two ways: Memory Contention Schemes 1. Straight binary if register R8, bit 2 is a "0". for Memory Addressing 2. Row/Column if register R8,bit2 isa "1 ".Inthiscasethe From the diagram of Figure 4, it is clear that both the 6545-1 low byte is the Character Column and the high byte is and the system MPU must be capable of addressing the tt,e Character Row. video display memory. The 6545-1 repetitively fetches Figure 4 illustrates the address sequence for the video character information to generate the video signals in order display control for each mode. to keep the screen display active. The M PU occasionally accesses the memory to change the displayed information Note from Figure 4 that the straight-binary mode has the or to read out current data characters. Three ways of advantage that all display memory addresses are stored in a resolving this dual-contention requirements are apparent: I continuous memory block, starting with address 0 and ending at 1919. The disadvantage with this method is that, if • M PU Priority it is desired to change a displayed character location, the In this technique, the address lines to the video display row and column identity of the location must be converted to memory are normally driven by the 6545-1 unless the its binary address before the memory may be written. The MPU needs access, in which case the MPU addresses row/column mode, on the other hand, does not need to immediately override those from the 6545-1 and the undergo this conversion. However, memory is not used as M PU has immediate access. efficiently, since the memory addresses are not continuous, but gaps exist. This requires that the system be equipped • 01/02 Memory Interleaving with more memory than is actually used and this extra This method permits both the 6545-1 and the M PU memory is wasted. Alternatively, address compression logic access to the video display memory by time-sharing via may be employed to translate the row/column format into a the system 01 and 02 clocks. During the 01 portion of continuous address block. each cycle (the time when (1.\2 is low), the 6545-1 address I TOTAL - 90 - - - - - ---l ~ -TOTAL-90--- ~ COLUMN ADDRESS (MAO-MA7) --~ - --l - iDISPLAY-80---1 I - - - DISPLAY - 80 ---I I I eo I iT : :;, : , : : : :.: ,: : : :, : : i o ,2 77 78 79 89 110 0 '2 77 18 '. 80 .'--'---l~. F) I I~' "8 ,~ >34 f~t-;;~ -;-31 - G4, 4: ~ 2 ~ 513 !l14 -.~-~-- 589 590 59~ 592 593 +-". :601 ~ I .: : --+--t---r, ~ ~ ~ : 1-;--1-- f-I- I----+---'--J-- ;'; :::i « I L -' ~ is f- --1---- '- 'I ~cr: 0~ . ~~~!~ . .. f-~= --'-t- ..--~. -~= ~".7_-=-~ g 1760 1761 1762 ••• 1837 fl838 1839 18401841 1849 ...J 22 5109 5710 5711 5712 5713 _ L" ~ 18401141 1842. • •• 1917 1918 1919 1920 1921 1929 0 ~ ~888 ~889 5890 •.. ..• 5965 ~966 ~96 !l968 ~969 ... •• 22 '0'000 ,'0092,' "'00 2 .•• ... 1997 1999 1999 ~ ~~~ ." 2_~ I- ~ 24 6144 614~ 6146 ••• 6221 6222 6223 6224 622~~.. ~~ ~ ~~~~~~~~~ 6481 ;~ L 2077 2018 2079 2080 208' ... 2089 2:!J 64:00 MOl 6402 ... •.. ~4--+-f-+--+~~+--+~-~- I--.~ 2640 2641 2642 ,., 2~9 2717 2718 2719 2720 2721 L--'----'-_L-..L----'-_L...-'-_-'-__ '--_ ___ _ ~8448844984'0'" "._. 8"'B.2~~..".""~ STRAIGHT BINARV ADDRESSING SEQUENCE ROW/COLUMN ADDRESSING SEQUENCE Figure 4. Display Address Sequences (with Start Address = 0) for 80 x 24 Example SYSTEM BUS .1 6545-1 CRT CONTROLLER HSYNC VSYNC ~PLAY ENABLE ~ } 'I MAO-MA13 RAO-RA4 o DISPLAY ADDRESS I CONTENTION I I I F ADDRESS SHIFT A SCAN LINE MPU MPU I CONTROL COUNT I REGISTER r ~, ADDRESS BUS tl .1 VIDEO 1 .1 " MPU '1 DISPLAY RAM I " I '"_m' GENERATOR ROM SCAN LINE CHARACTER DATE DOT PATTERN DATA BUS Figure 5. Typical System Configuration 2-127 MPS 6545-1 outputs are gated to the video display memory. In the 132 Cursor and Display Enable Skew Control time, the MPU address lines are switched in. In this way, Bits 4 and 5 of the Mode Control register (RB) are used to both the 6545-1 and the MPU have unimpeded access delay the Display Enable and Cursor outputs, respectively. to the memory. Figure 6 illustrates the timings. Figure 7 illustrates the effect of the delays. CCLK , (NO DELAY) h,--' ---i--- nl,---_ ¢2CLOCK CURSOR : : I { (WITH DELAy) I VIDEO DISPLAY MEMORY ADDRESSES DISPLAY (NO DELAy) ENABLE Figure 6. pl1/p2 Interleaving POSITIVE EDGE { __(W __IT_H_D_E_L_AY) ________ ~------------- • Vertical Blanking With this approach, the address circuitry is identical to the case for M PU Priority updates. The only difference is DISPLAY (NO DELAY) ENABLE that the Vertical Retrace status bit (bit 5 of the Status NEGATIVE Register) is used by the M PU so that access to the video EDGE display memory is only made during vertical blanking { -----1 DELAY) ( W I T H' - - - time (when bit 5 is a "1 "). In this way, no visible screen perturbations result. Figure 7. Cursor and Display Enable Skew FRAME FRAME VERTICAL VERTICAL DISPLA YEO BLANKING DISPLAY ENABLE VERTICAL BLANKING l , 1------_-----1 STATUS BIT "0" _ DISPLAY ACT~VE ~J~T~tER ~--------------------~ ~ "1" - VERTICAL BITS) SWITCHES STATE AT BLANKING END OF LAST DISPLAYED ACTIVE SCAN LINE Figure 8. Operation of Vertical Blanking Status Bit Commodore Semiconductor Group reserves the right to make changes to any products herein to improve reliability, function or design. Commodore Semiconductor Group does not assume any liability ariSing out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 2-128 MPS , . . commodore 6551 ~ aamiconduct:ar group ASSYNCH RONOUS ~~@~ COMMUNICATION INTERFACE ADAPTER [ 6551 ASYNCHRONOUS COMMUNICATION INTERFACE ADAPTER CONCEPT: The 6551 is an Asynchronous Communication Adapter (ACIA) intended to provide for interfacing the 6500/6800 microprocessor families to serial communication data sets and modems. A unique feature is the inclusion of an on-chip programmable baud rate generator, with a crystal being the only external com pone t required. FEATURES: • On-chip baud rate generator: 15 programmable baud ) rates derived from a standard 1.8432 M Hz external -standard baud rates (up crystal (50 to 19,200 baud). • Programmable interrupt and status register to simplify engths; number of stop bits; and software design. nd detection. • Single +5 volt power supply. control signals provided. • Serial echo mode. :¥ep';' none, mark, space). • False start bit detection. r half-duplex operation. • 8-bit bi-directional data bus for direct communicati~ 9 bit transmission. ORDER NUMBER 6551 PIN CONFIGURATION MXS 6551 GND 1 28 R/W 2 27 ~2 3 26 iRa 4 25 DB7 5 24 DB6 6 23 DB5 7 22 DB4 RTS 8 21 DB3 CTS 9 20 DB2 TxD 10 19 DB1 PACKAGE DESIGNATOR l5'i'R 11 18 DBO C = CERAMIC RxD 12 17 DSR P = PLASTIC RSO 13 16 DCD RS1 14 15 Vce 2-129 MPS 6551 Figure 1. Block Diagram TRANSMIT CONTROL CTS TRANSMIT TRANSMIT DATA SHIFT TxD REGISTER REGISTER fRO 132 STATUS INTERRUPT REGISTER LOGIC OCD R;W CS o i5SR SELECT CS1 AND CONTROL RSO LOGIC RS1 RxC RES CONTROL BAUD REGISTER RATE XTAL 1 GENERATOR XTAL2 DATA RECEIVE RECEIVE BUS DATA SHIFT RxD BUFFERS REGISTER REGISTER COMMAND RECEIVE REGISTER CONTROL L------------__ DiR L-------------__________ ~_Rf:S 2-130 MPS 6551 MAXIMUM RATINGS COMMENT Supply Voltage, Vcc -0.3V to + 7.0V Stresses above those listed under "Absolute Maximum Input/Output Voltage, VIN -0.3V to + 7.0V Ratings" may cause permanent damage to the device. Operating Temperature, TOp ODC to 70 DC These are stress ratings only. Functional operation of this Storage Temperature, TSTG -55 DC to 150°C device at these or any other conditions above those indi- All inputs contain protection circuitry to prevent damage due cated in the operational sections of this specification is not to high static discharges. Care should be exercised to Implied and exposure to absolute maximum rating condi- prevent unnecessary application of voltages in excess of the tions for extended periods may affect device reliability. allowable limits. ELECTRICAL CHARACTERISTICS \Vee = 5.aV + 5%, TA = a to 7aoe, unless otherwise noted) r-----------------------------.-----.----.---~---,_----~ Characteristic Symbol Min Typ Max Unit Input High Voltage 2.0 VCC v Input Low Voltage Input LeaJs,.age Cu~nt: VI N=O to 5V. _ (t/},~R!W, RES, CSO, CS1, RSO, RS1, CTS, RxD, DCD, DSR) r--------------------------+-----~--~----~----~-------.- Input Leakage Current for High Impedance State (Three State) __ ITSI -0.3 ±1.0 ±2.0 0.8 ±2.5 ±10.0 V IJA IJA I Output High Voltage: ILOAD=-1 OO,uA VOH 204 V Output Low Voltage: I LOAD = 1 .6mA VOL 0.4 V (DBO-DB7, TxD, RxC, RTS, DTR, I RO) Output High Current (Sourcing): VOH=2.4V 10H -250 Output Low Current (Sinking): VOL =Oo4V 10L. 1.6 Output Leakage Current (off state): VOUT=5V 10FF 1.0 10.0 (IRQ) Clock Capacitance (02) CCLK 20 pF Input Capacitance (except XTAL 1 and XTAL2) 10 pF Output Capacitance COUT 10 pF Power Dissipation Po 170 300 mw Power Dissipation vs Temperature 200 1711 ~ ~ TYPICAL POWER 150 DISSIPATION -~ (mWI 126 100 o 20 40 10 III T"- ENT I"CI 2-131 MPS 6551 XTAL 1 (TRANSMIT CLOCK INPUT) OTR TxO NOTE: TxO rate is 1/16 TxC rate. IRQ (CLEAR) _ _ _ _ _ _ _ _ _ _.....J Figure 48. Transmit Timing with External Clock Figure 4b. Interrupt and RTS Timing RxC (INPUT) NOTE: RxO rate is 1/16 RxC rate. Figure 4c. Receive External Clock Timing TRANSMIT/RECEIVE CHARACTERISTICS 6551 6551A Characteristic Symbol Min Max Min Max Unit TransmiVReceive Clock Rate tCCY 400* - 400* - ns TransmiVReceive Clock High Time tCH 175 - 175 - ns TransmiVReceive Clock low Time tCl 175 - 175 - ns XTAl1 to TxD Propagation Delay tDD - 500 - 500 ns RTS Propagation Delay tRTS - 500 - 500 ns - I RO Propagation Delay (Clear) tiRO - 500 - 500 ns a (tr, tf = 1 to 30 nsec) *The baud rate with external clocking is: Baud Rate = 16xTCCY INTERFACE SIGNAL DESCRIPTION IRQ (Interrupt Request) RES (Reset) The I RO pin is an interrupt signal from the interrupt control logic. It is an open drain output, permitting several devices During system initialization a low on the RES input will to be connected to the common IRO microprocessor cause internal registers to be cleared. input. Normally a high level, IRO goes low when an interrupt occurs. _2 (Input Clock) The input clock is the system 912 clock and is used to trigger DBo - DB7(Data Bus) all data transfers between the system microprocessor and The DBO-DB7 pins are the eight data lines used for transfer the 6551. of data between the processor and the 6551. These lines are bi-directional and are normally high-impedance except Rfii (Read/Wrlte) during Read cycles when selected. The RNI is generated by the microprocessor and is used to CSQ, CS1 (Chip Selects) control the direction of data transfers. A high on the RNI pin The two chip select inputs are normally connected to the allows the processor to read the data supplied by the 6551. processor address lines either directly or through de- A low on the RNI pin allows a write to the 6551. coders. The 6551 is selected when CSO is high and CS1 is low. 2-132 MPS 6551 Figure 2. ~---- tCYC -~-------.., ~-tC---"'1 Write Timing Characteristics Ir----- VIH 02 -----_....# VIL eSa, CS1 , RSa, RS1 1.--------- VIH RNi DATABUS _ _ _ - k -L·_t_D_C_W_ _ _ _tH_W_-"""""'ii -------~ ==== VIL VVIIHL fYee = 5.0V ± 5%, TA = 0 to 70 oe, unless otherwise noted) Charactertlllc Cycle Time 92 Pulse W,dlh Address Set-Up Time Address HOld Time Symbol ICVC IC IACW ICAH twcw Min 1.0 470 180 180 8551 Max 40 Min 0.5 235 90 90 8551A Max 40 Un" IJS o XTALl 6 Clock Generation EXTERNAL CLOCK OPEN CIRCUIT XTAL 1 6 XTAl2 7 I 6551 ICWH Data Bus Set-Up Time IDew 300 150 INTERNAL CLOCK EXTERNAL CLOCK Data Bus Hold Time IHW 10 10 (I, and 11- 101030 nsl Figure 3. Read Timing Characteristics flJ2 -----~-- CSa, CS1, RSa, RS, DATA BUS fYee = 5.0V ± 5%, TA = 0 to 70 e, unless otherwise noted) 0 l16li1 85111 A Charactertotlc Symbol Min Mu Min Max Un" Cyc~Tlme ICvC 1.0 40 0.5 40 1'. Pul.e Wldlh (~21 IC 470 235 Add'es. SeI·Up Time IACR 180 90 Address Hold Time tCAR RiW Set·Up Time twCR 180 90 Read Access Time ICDR 395 200 Read Hold Time tHR 10 10 (~and tl- 101030 n81 Test Load for Data Bus (OBO"OB7) TXI), 15Tft, RTS Outputs 2-133 MPS 6551 RSo, RS1 (Register Selects) CTS (Clear to Send) The CTS input pin is used to control the transmitter The two register select lines are normally connected to the operation. The enable state is with Ei'S low. The transmitter processor address lines to allow the processor to select is automatically disabled if CTS is high. the various 6551 internal registers. The following table indicates the internal register select coding: DTR (Data Terminal Ready) This ouput pin is used to indicate the status of the 6551 to the modem. A Iowan DTR indicates the 6551 is enabled RS1 RSo Write Read and a high indicates it is disabled. The processor controls this pin via bit 0 of the Command Register. 0 0 Transmit Data Receiver Data Register Register DSR (Data Set Ready) 0 1 Programmed Status Register The DSR input pin is used to indicate to the 6551 the status Reset (Data is of the modem. A low indicates the "ready" state and a high, "Don't Care") "not-ready." DSR is a high-impedance input and must not be a no-connect. If unused, it should be driven high or low, but 1 0 Command Register not switched. 1 1 Control Register Note: II Command Register Bit 0 = 1 and a change of state on I5SR occurs, I RQ will be set,and Status Register Bit 6 will rellectth~ new level. The state of DSR does not affect either Transmitter or The table shows that only the Command and Control Receiver operation. registers are read/write. The Programmed Reset operation DCD (Data Carrier Detect) does not cause any data transfer, but is used to clear the 6551 registers. The Programmed Reset is slightly different The DCD input pin is used to indicate to the 6551 the status from the Hardware Reset (RES) and these differences are of the carrier-detect output of the modem. A low indicates described in the individual register definitions. that the modem carrier signal is present and a high, that is is not. DCD, like DSR, is a high-impedance input and must not be a no-connect. ACIA/MODEM INTERFACE SIGNAL Note: If Command Register Bit 0 = 1 and a change of state on DCD occurs. 1M will be set. and Status Register Bit 5 will reflect the DESCRIPTION new level. The state of DCD does not affect Transmitter operation. XTAL 1, XTAL2 (Crystal Pins) but must be low for the Receiver to operate. These pins are normally directly connected to the external crystal (1 .8432 M Hz) used to derive the various baud rates. INTERNAL ORGANIZATION Alternatively, an externally generated clock may be used to drive the XTAL 1 pin, in which case the XTAL2 pin must float. The Transmitter/Receiver sections of the 6551 are de- XTAL 1 is the input pin for the transmit clock. picted by the block diagram in Figure 5. TxD (Transmit Data) 1----<1>--- RxD The TxD output line is used to transfer serial N RZ (non- return-to-zero) data to the modem. The LSB (least signifi- cant bit) of the Transmit Data Register is the first data bit transmitted and the rate of data transmission is determined Rxe - - - - - -__..1 by the baud rate selected. RxD (Receive Data) XTAL 1 The RxD input line is used to transfer serial N RZ data into the ACIA from the modem, LSB first. The receiver data rate XTAL2 is either the programmed baud rate or the rate of an externally generated receiver clock. This selection is made by programming the Control Register. RxC (Receive Clock) 1------TxD The RxC is a bi-directional pin which serves as either the receiver 16x clock input or the receiver 16x clock output. The latter mode results if the internal baud rate generator is Figure 5. Transmitter/Receiver Clock Circuits selected for receiver data clocking. RTS (Request to Send) Bits 0-3 of the Control Register select the divisor used to generate the baud rate for the Transmitter. If the Receiver The RTS outpin pin is used to control the modem from the clock is to use the same baud rate as the Transmitter, ttlen processor. The state of the RTS pin is determined by the RxC becomes an output pin and can be used to slave other contents of the Command Register. circuits to the 6551. 2-134 MPS 6551 CONTROL REGISTER The Control Register is used to select the desired mode for the 65,51. The word length, number of stop bits, and clock controls are all determined by the Control Regis- ter, which is depicted in Figure 6. CONTROL REGISTER 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 WORD LENGTH 0 1 1 0 I-/~ D~~~~~HRD 0 1 1 1 1 0 0 0 1200 o 0 8 I 1 0 0 1 1800 o 1 7 1 0 1 0 2400 1 0 6 1 0 1 1 3600 1 1 5 1 1 0 0 4800 RECEIVER CLOCK SOURCE - - - - - - - - - - - - - - ' 1 1 0 1 7200 o = External Receiver Clock 1 = Baud Rate Generator I 1 1 1 0 9600 1 1 1 1 19,200 "This allows for 9-bit transmission (8 data bits plus parity). HARDWARE RESET PROGRAM RESET Figure 6. Control Register Format COMMAND REGISTER The Command Register is used to control Specific Transmit/Receive functions and is shown in Figure 7, COMMAND REGISTER 17161514132 1 0] PARITY CHECK CONTROLS ------'--~---' I I I II I L -_ _ _ _ _ _ _ _ DATA TERMINAL READY BIT OPERATION 0 = Disable Receiver and All 7 6 5 Interrupts (DTR high) - - 1 = Enable Receiver and All 0 Parity Disabled - No Parity Bit Generated - No Parity Bit Received I Interrupts (DTR low) 0 0 1 Odd Parity Receiver and Transmitte~_ L - - _ ._ _ _ _ _ _ RECEIVER INTERRUPT ENABLE 0 1 1 Even Parity Receiver and Transmitter 0 = IRQ Interrupt Enabled from Bit 3-~ 1 0 1 Mark Parity Bit Transmitted. of Status Register ~_-r~~-r~P~ar~ity~C~hec~k~D~isa~b~led=-__~____ _ 1 1 = IRQ Interrupt Disabled 1 1 1 Space Parity Bit Transmitted. Parity Check Disabled TRANSMITTER CONTROLS BIT TRANSMIT RTS TRANSMITTER I--'JT INTERRUPT LEVEL 0 0 Disabled High Off -'O~---~= NORMAL/ECHO MODE 0 1 Enabled Low FOR RECEIVER [ 0 = Normal 1 = Echo (Bits 2 and 3 must be "0") 1 1 1 0 1 Disabled Disabled Low Low On Transmit BRK HARDWARE RESET PROGRAM RESET Figure 7. Command Register Format 2-135 MPS 6551 STATUS REGISTER TRANSMIT AND RECEIVE DATA: REGISTERS The Status Register is used to indicate to the processor These registers are used as temporary data storage for the status of various 6551 functions and is outlined in the 6551 Transmit and Receive ci'rcuits. The Transmit Figure 8. Data Register is characterized as follows: • Bit a is the leading bit to be transmitted. • Unused data bits are the high-order bits and are "don't care" for transmission. 171elsH31211101 The Receive Data Register is characterized in a similar ~ STATUS SET BY CLEARED BY fashion: Parity Error" O· No Error Salf Clearing"" • Bit a is the leading bit received. 1 = Error • Unused data bits are the high-order bits and are "0" 0" No Error Self Clearing·· Framing Error· 1 ::a:: Error for the receiver. Overrun- 0'" No Error Self Clearlng-" • Parity bits are not contained in the Receive Data 1 :II' Error Register, but are stripped-off after being used for I ~ Receive Data 0= Not Full R•• d Receive Reginar Full 1'0 Full Oat. RegISter external parity checking. Parity and all unused high- Transmit Data 0= Not Empty Write Transmit order bits are "0". Register Empty 1 = Empty Data Reginer Not Resellable Figure 9 illustrates a single transmitted or received data 0= DCD Low Reflects DCD DCD 1 = DCD H'gh State word, for the example of 8 data bits, parity, and 1 stop bit. Not Resellable 0= DSR Low Reflects 5SR ~ 1 = DSR High State "MARK" "MARK" o = No Interrupt Read IRQ 1 = Interrupt Status Register L 1011 7 I P 1_ J I DATA BITS "NO INTERRUPT GENERATED FOR THESE CONDITIONS. "CLEARED AUTOMATICALLY AFTER A READ OF RDR AND THE NEXT ERROR FREE RECEIPT OF DATA START BIT PAR1ITY BIT I STOP BIT Figure 9 Serial Data Stream Example HARDWARE RESET PROGRAM RESET Figure 8. Status Register Format COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or design. COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising ot of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 2-136 MPS , . " commodore ~ aemicanduCl:ar group 2316 STATIC READ ~~@~ ONLY MEMORY (2048x8) 2316 STATIC READ ONLY MEMORY (2048x8) DESCRIPTION The 2316 high performance read only memory is organized 2048 words by 8 bits with access times of less than 350 ns. This ROM is designed to be compatible with all microprocessor and similar applications where high performance, large bit storage and simple interfacing are important design considerations. The 2316 operates totally asynchronously. No clock input is required. The three programmable chip select inputs allow eight 16K ROMS to be OR-tied without external decoding. Designed to replace two 2708 8K EPROMS, the 2316 can eliminate the need to redesign printed circuit boards for volume mask programmed ROMS after prototyping with EPROMS. .400mV Noise Immunity on Inputs • Three-State Outputs for Wire-OR Expansion .2048 x 8 Bit Organization • Three Programmable Chip Selects • Single +5 Volt Supply • Pin Compatible with 2716 EPROM • Access Time - 450 ns, 350 ns • Replacement for two 2708s • Totally Static Operation .2708/2716 EPROMS Accepted as Program • TIL Compatible Data Inputs ORDERING INFORMATION PIN CONFIGURATION 2316 A7 vcc As AS A5 Ag A4 CS3/CS3 FREQUENCY RANGE A3 CS,/CS, NO SUFFIX = 450ns A2 AIO A = 350ns AI CS2 / CS2 Ao Os " - - - - - - - - PACKAGE DESIGNATOR 01 07 C=CERAMIC 02 06 P = PLASTIC 03 05 GND 04 2-137 MPS 2316 ABSOLUTE MAXIMUM RATINGS COMMENT Ambient Temperature under Bias °C to +70°C Stresses above those listed under "Absolute Storage Temperature -65°C to +150°C Maximum Ratings" may cause permanent Supply Voltage to Ground Potential -0.5V to +7.0V damage to the device. This is a stress rating Applied Output Voltage -0.5V to + 7.0V only and functional operation of the device at Applied Input Voltage -0.5V to +7.0V these or any other conditions above those Power Dissipation 1.0W indicated in the operational sections of this specification is not implied. D. C. CHARACTERISTICS (TA = O°C to + 70°C, VCC = 5.0V ± 5%, unless otherwise specified) Symbol Parameter Min. Max. Units Test Conditions ICC1 Power Supply Current 100 mA VIN = VCC, Vo = Open, TA = O°C ICC2 Power Supply Current 95 mA VIN =VCC,VO= Open,TA =25°C 10 Output Leakage Current 10 fJA Chip Deselected, Vo = 0 to VCC II Input Load Current 10 fJA VCC = Max. VIN = 0 to VCC VOL Output Low Voltage 0.4 Volts VCC = Min. IOL = 2.1 mA VOH Output High Voltage 2.4 Volts VCC = Min. IOH = -400,uA VIL Input Low Voltage -0.5 0.8 Volts See Note 1 V,H Input High Voltage 2.0 VCC+1 Volts A. C. CHARACTERISTICS (TA = O°C to + 70°C, VCC = 5.0V ± 5%, unless otherwise specified) 2316 2316A Symbol Parameter Min. Max. Min. Max. Units Test Conditions tACC Address Access Time 450 350 ns tco Chip Select Delay 200 200 ns tDF Chip Deselect Delay 175 175 ns See Note 2 tOH Previous Data Valid 40 40 ns After Address Change Delay CAPACITANCE (TA = 25°C, f = 1.0MHz, See Note 3) Symbol Parameter Min. Max. Units Test Conditions CIN Input Capacitance 8 pF All Pins except Pin under COUT Output Capacitance 10 pF Test Tied to AC Ground Note 1: Input levels that swing more negative than -0.5V will be clamped and may cause damage to the device. Note 2: Loading 1 TTL + 100 pF, input transition time: 20 ns Timing measurement levels: input 1.5V, output 0.8V and 2.0V. Note 3: This parameter is periodically sampled and is not 100% tested. 2-138 MPS 2316 TIMING DIAGRAMS ADDRESS INPUTS ___N__ D___ vA_L__ >tC___________v_A_L__D__________==:~~-----IN-V_A_L__'D___________ CHIP I I SELECT DISABLED ENABLED DISABLED INPUTS DATA HIGH HIGH OUTPUTS IMPEDANCE IMPEDANCE ~----IACC------~ BLOCK DIAGRAM 01 A3 0:: 02 A4 w 0:: 163 a 4 LL 03 AS LL :::> BIT CD °4 AS CELL Os A7 ..... :::> ARRAY a. ..... Os Aa :::> 0 °7 °a CS, CS3 CS2 2-139 MPS 2316 TYPICAL CHARACTERISTICS ACCESS TIME VS AC CE SST' ... E V S SUPPLY VOLTAGE CAPAC,T,vE LOAD 500 500 400 400 t ACC 300 300 InS) InS) TA' 250C VCC.4.75V I TTL LOAD TA. 25°C 200 ~ CLi 100PF ZOO I TTL LOAD - 100 I '00 I I 5 6 'DO ZOO :500 400 500 VCC (V) SUPPLY CURRENT VS. SUPPLY C:URRENT 'IS. AMBIENT TEMPERATuRE SUPPLY VOLTAGE 140 100 120 10 _ I TA '25·C /' :,/ ICC 100 VCC' 5.25V ICC 10 ~ / ImA) (mA) 80 10 60 20 40 60 80 eo V TA AM81ENT TEMPERATuRE ·C 'Icc I VI PACKAGING DIAGRAM CERAMIC PACKAGE MOLDED PACKAGE Commodore Semiconductor Group reserves the right to make changes to any products herein to improve reliability, function or design. Commodore Semiconductor Group does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 2-140 , . . commodore MPS ~ aamicanduct;ar group 2332 ~UYAJ@@ STATIC READ ONLY MEMORY (4096x8) C.__233_2_S_TA_Tl_C_REA_D_ON_LY_ME__M_O_RY_(40_96_xB_)_ _ ----I DESCRIPTION The 2332 high performance read only memory is organized 4096 words by 8 bits with access times of less than 350 ns. This ROM is designed to be compatible with all microprocessor and similar applications where high performance, large bit storage and simple interfacing are important design considerations. This device offers TTL input and output levels. The 2332 operates totally asynchronously. No clock input is required. The two programmable chip select inputs allow four 32K ROMS to be OR-tied without external decoding. Designed to replace two 2716 16K EPROMS. the 2332 can eliminate the need to redesign printed circuit boards for volume mask programmed ROMS after prototyping with EPROMS. • 4096 x 8 Bit Organization • Three-State Outputs for Wire-OR Expansion • Single + 5 Volt Supply • Two Programmable Chip Selects • Access Time - 2332 450 ns • Pin Compatible with 2716 & 2732 EPROM 2332A 350 ns • Replacement for Two 2716s • Completely TTL Compatible • 2708/2716 EPROMS Accepted as Program Data Inputs • Totally Static Operation • 400mV Noise Immunity on Inputs ORDERING INFORMATION MXS 2332 __ l A? A6 PI. CONFIGURATION 2332 vcc AS A5 A9 A4 CS2/CS2 FREQUENCY RANGE A3 CS I ICS I NO SUFFIX = 450ns A2 AIO A = 350ns AI All AO Os PACKAGE DESIGNATOR °1 07 C = CERAMIC 02 06 P = PLASTIC 03 05 GND 04 2-141 MPS 2332 ABSOLUTE MAXIMUM RATINGS COMMENT Ambient Operating Temperature OOto +70°C Stresses above those listed under "Absolute Storage Temperature -65°C to + 150°C Maximum Ratings" may cause permanent damage to the device. This is a stress rating Supply Voltage to Ground Potential -0.5V to + 7.0V only and functional operation of the device Applied Output Vohage -0.5V to + 7.0V at these or any other conditions above Applied Input Voltage -0.5V to + 7.0V those indicated in the operational sections of this specification is not implied. Power Dissipation 1.0W D.C. CHARACTERISTICS TA = O°C to + 70°C. VCC = 5.0V ± 5% (unless otherwise specified) Symbol Parameter Min. Max. Units T.stCondltlons ICC1 Power Supply Current 100 rnA VIN = VCC' Vo = Open. TA = O°C ICC2 Power Supply Current 95 rnA VIN = VCC' Vo = Open. TA = 25°C 10 Output Leakage Current 10 IJA Chip Deselected. Vo = 0 to VCC II Input Load Current 10 IJA VCC = Max. VIN = 0 to VCC VOL Output Low Voltage 0.4 Volts VCC = Min.IO L = 2.1mA VO H Output High Voltage 2.4 Volts VCC = Min. IOH = - 4OO IJA VIL Input Low Voltage -0.5 0.8 Volts See note 1 VIH Input High Voltage 2.0 VC C +l Volts A. C. CHARACTERISTICS TA = ocC to + 70°C. VCC = 5.0V ±5% (unless otherwise specified) Parameter 2332 2332A Units Test Conditions Symbol Min. Max. Min. Max. tACC Address Access Time 450 350 ns tco Chip Select Delay 200 200 ns See Note 2 tDF Chip Deselect Delay 175 175 ns tOH Previous Data Valid 40 40 ns After Address Change Delay CAPACITANCE TA = 25°C. f = 1.0MHz. See Note 3 Symbol Parameter Min. Max. Units T.st Conditions CIN Input Capacitance 8 pF All Pins except Pin under COUT Output Capacitance 10 pF Test Tied to AC Ground Note 1: Input levels that swing more negative than -0.5V will be clamped and may cause damage to the device. Note 2: Loading 1 TTL + 100 pF. input transition time: 20 ns. Timing measurement levels: input 1.5V. output 0.8V and 2.0V. CL = 100 pF. Note 3: This parameter is periodically sampled and is not 100% tested. 2-142 MPS 2332 n•••1 DIAIIA. f ADDRESS 1< INVALID VALID INVALI 0 INPUTS CHIP I SELECT DISA BLED I INPUTS I DATA HIGH I HIGH OUTPUTS IMPEDANCE IMPEDANCE ~ BLOCK DIICIA. A4 01 A5 02 A6 32768 03 A7 BIT 04 AS CELL 05 Ag ARRAY 06 A10 °7 A11 08 CSI CS2 2-143 MPS 2332 nPlCAL CllAlAmllinCI ACCESS TIME VS CAPACITIVE LOAD ~OO I ACC (n5) 400 300 ,.,- ~ 'i3i2 VCC. 4.7~V - TA'Z~·C 200 I TTL LOAD - 100 I I 100 200 300 400 ~OO C L (pF I I 140 SU~PL.Y AMIIENT CURRENT V5. TE MPER A T URE 110 SUPPLY SUPPLY CURRENT VOLTAGE VS. 120 110 _ I TA '25·C ICC 100 VCC' ~.2~V ICC ./ / 100 (iliA) - - - ' " - - 2332 (mA) -;~~? 10 .0 // V 60 18 o 20 40 60 80 TA AMBIENT TEMPERATURE·C vee 1\/1 COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or design. COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 2-144 " , commodore MPS ~ aemlconduct:ar group 2333 STATIC READ ~[M]@® ONLY MEMORY (4096x8) [________23_~__S_TA_J_IC_R_~_D__ON_r_Y_M_E_M_OR_Y_(_~ __X_8)______~ DESCRIPTION The 2333 high performance read only memory is organized 4096 words by 8 bits with access times of less than 350 ns. This ROM is designed to be compatible with all microprocessor and similar applications where high performance, large bit storage and simple interfacing are important design considerations. This device offers TTL input and output levels. The 2333 operates totally asynchronously. No clock input is required. The two programmable chip select inputs allow four 32K ROMS to be OR-tied without external decoding. Designed to replace two 2716 16K EPROMS, the 2333 can eliminate the need to redesign printed circuit boards for volume mask programmed ROMS after prototyping with EPROMS. • 4096 x 8 Bit Organization • Three-State Outputs for Wire-OR Expansion • Single + 5 Volt Supply • Two Programmable Chip Selects • Three Week Prototype Turnaround • Pin Compatible with 2716 & 2732 (INTEL) EPROMS • Access Time-2333 450 ns • Replacement for Two 2716s 2333A 350 ns • 270812716 EPROMS Accepted as Program Data Inputs • Completely TTL Compatible • 400 mV Noise Immunity on Inputs • Totally Static Operation PIN CONFIGURATION 2333 A, vee ORDERING INFORMATION: A. A. Part Package Access Temperature A. A. Number* Type Time Range A. A .. MPS2333 Molded 450 ns O°C to + 70°C A. eSt/~t MPS2333A Molded 350 ns O°C to + 70°C A, At. MCS2333 Ceramic 450 ns O°C to + 70°C At es,/cs, MCS2333A Ceramic 350 ns O°C to + 70°C A. O. Ot 0, * Final Part Number will be assigned by manufacturer 0, o. 0, O. GND O. 2-145 MPS 2333 ABSOLUTE MAXIMUM RATINGS COMMENT Ambient Operating Temperature 0° to +70°C Stresses above those listed under "Absolute Storage Temperature -65°C to + 150°C Maximum Ratings" may cause permanent damage to the device. This is a stress rating Supply Voltage to Ground Potential -0.5V to + 7.0V only and functional operation of the device Applied Output Voltage -0.5V to + 7.0V at these or any other conditions above Applied Input Voltage -0.5V to + 7.0V those indicated in the operational sections of this specification is not implied. Power Dissipation 1.0W D.C. CHARACTERISTICS T A = O°C to + 70°C. VCC = 5.0V ±5% (unless otherwise specified) Symbol Parameter Min. Max. Units T.st Conditions ICC1 Power Supply Current 125 mA VIN = VCC' Vo = Open. TA = 0 C ICC2 Power Supply Current 120 mA VIN = VCC' Vo = Open. TA = 25 C 10 Output Leakage Current 10 IlA Chip Deselected. Vo = 0 to VCC II Input Load Current 10 IlA VCC = Max. VIN = OtoV CC VOL Output Low Voltage 0.4 Volts VCC = Min.IO L = 2.1mA VO H Output High Voltage 2.4 Volts VCC = Min. 10H = -4001lA V IL Input Low Voltage -0.5 0.8 Volts See note 1 V IH Input High Voltage 2.0 VCC+1 Volts A. C. CHARACTERISTICS T A = aoc to + 70°C. VCC = 5.0V ±5% (unless otherwise specified) 2333 233M Symbol Parameter Units Test Conditions Min. Max. Min. Max. tACC Address Access Time 450 350 ns tco Chip Select Delay 200 200 ns See Note 2 tDF Chip Deselect Delay 175 175 ns tOH Previous Data Valid 40 40 ns After Address Change Delay CAPACITANCE T A = 25°C. f = 1.0MHz. See Note 3 Symbol Parameter Min. Max. Units T.st Conditions CIN Input Capacitance 8 pF All Pins except Pin under COUT Output Capacitance 10 pF Test Tied to AC Ground Note 1: Input levels that swing more negative than -0.5V will be clamped and may cause damage to the device. Note 2: Loading 1 TTL + 100 pF. input transition time: 20 ns. Timing measurement levels: input 1.SV. output O.BV and 2.0V. CL = 100 pF. Note 3: This parameter is periodically sampled and is not 100% tested. 2-146 MPS 2333 TIMING DIAGRAM ADDRESS INPUTS ___I_N_V_A_L_ID___>tC~ _________ V_A_L_I_D_________ ~~_____IN___ VA_L_10____________ CH I P SE LEC T DISABLED ENABLED DISABLED IN PU T S DATA HI G H HIGH OUTPUTS IMPEDANCE IMPEDANCE ~-----'ACC------~~ BLOCK DIAGRAM A4 01 A5 0:: 02 0:: w A6 w 32768 u. 03 0 u. ~ A7 0 BIT u CD °4 w AS Cl CELL °5 f- ~ Ag ~ ARRA'r a.. 06 a f- J:: ::> AlO a °7 A11 08 CSI CS2 2-147 MPS 2333 TYPICAL CHARACTERISTICS ACCESS TIME VS. ACCESS TIME VS SUPPLY VOLTAGE CAPACITIVE LOAD ~OO ~OO 400 400 I ACC tACC 300 ......... 300 (nS) TA.2~.;~ (nS' 200 i I TTL LOAO I-- C L 100PF 200 100 I 100 I I 4 5 6 100 200 300 400 500 VCC (V) SUPPLY CURRENT VS. SUPPLY CURRENT VS. AMBIENT TEMPER ATURE SUPPLY VOLTAGE 140 110 120 I I - - TA '25·C 110 // ----- ICC ICC VCC' 5.25V 100 100 V "? (mA) 2333 (mA' 80 90 ./ V 60 10 0 20 40 60 80 :3 . ~ 6 7 TA AMBIENT TEMPERATURE ·C vce (v, COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or design. COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising ot of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 2·148 '-'cammadare MPS ~ aerniconduCl:Dr group 2364 STATIC READ ~~@@ ONLY MEMORY (8192x8) L______~ __~__ATI_C_R_Bm__O_NL_y_M_EM_O_~_(~81_~~)____~ DESCRIPTION The 2364 high performance read only memory is organized 8192 words by 8 bits with access times of less than 350 ns. This ROM is designed to be compatible with all microprocessor and similar applications where high performance, large bit storage and simple interfacing are important design considerations. This device offers TIL input and output levels. The 2364 operates totally asynchronously. No clock input is required. The programmable chip select input allows two 64K ROMS to be OR-tied without external decoding. Designed to replace two 2732 32K EPROMS, the 2364 can eliminate the need to redesign printed circuit boards for volume mask programmed ROMS after prototyping with EPROMS. • 8192 x 8 Bit Organization • One Programmable Chip Select • Single +5 Volt Supply • Pin Compatible with 2716 & 2732 EPROM • Access Time - 450 ns, 350 ns • Replacement for Two 2732s • Completely TIL Com~atible • 2716/2732 EPROMS Accepted as • Totally Static Operation Program Data Inputs • Three-State Outputs for Wire-OR Expansion • 400mV Noise Immunity on Inputs ORDERING INFORMATION PIN CONFIGURATION MXS 2364 2364 A7 Vcc A6 AS A5 Ag A4 A12 FREQUENCY RANGE NO SUFFIX = 450ns A3 CS,/CS, A = 350ns A2 A,O A, All PACKAGE DESIGNATOR AO Os C=CERAMIC 0, 07 P = PLASTIC 02 06 03 05 GND 04 2-149 MPS 2364 TIMING DIAGRAM ADDRESS INPUTS ___IN__ VA_L__ ID___ >tC___________V_A_L__ID___________>tC_______I__NV_A_L_1_0___________ CHIP I :3ELECT DISA BLED INPUTS DATA HIGH HIGH OUTPUTS IMPEDANCE BLOCK DIAGRAM A5 _0, A6 02 a: w A7 6S536 ~ °3 u.. ::> A8 81T CD °4 Ag CELL °5 AlO 3: ARRAY u. 06 0 I- a: ::> A11 0 °7 A12 08 C~}; 2-150 MPS 2364 ABSOLUTE MAXIMUM RATINGS COMMENT Ambient Temperature under Bias °C to +70°C Stresses above those listed under "Absolute Storage Temperature -65°C to +150"C Maximum Ratings" may cause permanent Supply Voltage to Ground Potential -0.5V to + 7.0V damage to the device. This is a stress rating Applied Output Voltage -0.5V to + 7.0V only and functional operation of the device at Applied Input Voltage -0.5V to + 7.0V these or any other conditions above those Power Dissipation 1.0W indicated in the operational sections of this specification is not implied. D. C. CHARACTERISTICS (TA = 0 C to +70 C, VCC = 5.0V ± 5%, unless otherwise specified) Symbol Parameter Min. Max. Units Test Conditions ICCl Power Supply Current 100 mA VIN = VCC, Vo = Open, TA = OSC s ICC2 Power Supply Current 95 mA VI N = VCC, Vo = Open, TA = 25 C 10 Output Leakage Current 10 fJA Chip Deselected, Vo = 0 to VCC II I nput Load Current 10 ~!.A VCC = Max. VIN = 0 to VCC VOL Output Low Voltage 0.4 Volts VCC = Min. IOL = 2.1 mA VOH Output High Voltage 2.4 Volts VCC = Min. IOH = -400/JA VIL Input Low Voltage -0.5 0.8 Volts See Note 1 I VIH Input High Voltage 2.0 VCC+ 1 Volts A. C. CHARACTERISTICS (T A = 0 C to + 70 e. Vee = 5.0V ± 5Oia. unless otherwise specified) 2364 2364A Symbol Parameter Min. Max. Min. Max. Units Test Conditions tAce Address Access Time 450 350 ns tco Chip Select Delay 200 200 ns tDF Chip Deselect Delay 175 175 ns See Note 2 tOH PrevIous Data Valid 40 40 ns After Address ehange Delay CAPACITANCE (TA = 25 e, f = 1.0MHz. See Note 3) Symbol Parameter Min. Max. Units Test Conditions CIN I nput Capacitance 8 pF All Pins except Pin under COUT Output Capacitance 10 pF Test Tied to AC Ground - Note 1: Input levels that swing more negative than -0.5V will be clamped and may cause damage to the device. Note 2: Loading 1 TIL + 100 pF, input transition time: 20 ns Timing measurement levels: input 1.5V, output 0.8V and 2.0V. C L = 100 pF Note 3: This parameter is periodically sampled and is not 100% tested. 2-151 MPS 2364 TYPICAL CHARACTERISTICS ACCESS TIME VS ACCESS TIME VS SUPPLY VOLTAGE CAPACITivE LOAD ~OO !lOt> 400 300 InS) TA, 2~.C (nS) VCC'4,7~V I TTL LOAD TA, 2~.C 200 ~ cli 100PF --...---1 200 I TTL LOAD - 100 1 100 I I 100 200 300 400 ~OO VCC (V) C L (pF) SUPPLY CURRENT VS, SUPPL'i cuRRENT VS AMBIENT TEMPERATURE SUPPLY vOLTAGE 140 110 I 120 110 t-- TA'2!!·C V --- -- ICC ICC Vec· ~,2~V ./ 100 100 (mA) (mA) ~I:lt. 80 2364 .0 V V 60 80 0 20 40 60 BO 3 4 ~ 6 7 TA AM81ENT TEMPERATURE ·C Vce (V) COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or design, COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others, 2-152 MPS ,.." commodore 23128 V- semiconductor group 128K STATIC READ ONLY ~~@~ MEMORY (19384x8) 23128 -128K STATIC READ ONLY MEMORY (16384x8) DESCRIPTION The 23128 high performance read only memory is organized as 16384 words by 8 bits. ThiS~~M,. is designed to be compatible with all microprocessor and similar applications W~f ~,i~ performance, large bit storage and simple interfacing are important design conside~~~~n;"" i~\ device offers TTL input and output levels. y,,~,\:,:,."""'~'\ "<":" '"",) The 23128 operates totally asynchronously. No clock input is required. The 23l·~'a '.> "'es';:~~~ i~ 250 ns max. <:(, ".l'/"."l';~')" ',.' The 23128 offers a power down feature which is controlled byCE. Whef,l't{l'" ~Q"gpes high the device will automatically power down and remain in a low powe( r'qd' fig as CE . , h' h '\ \ I remains Ig ' . """"""".,\ \ Designed to replace two 64K EPROMs, the 23128can elin:inate.t~,,~"'~~ectt~·':~~d,sign printed circuit boards for volume mask programmed ROMs after prototyplng 'JI{Jtf\",t!7F\OMs'"",.,,,,,·,, 1..-_ _ _. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _.....',.,. .,' "". ",,:.,.,._ _ _ _ _ _ _ _ _----J FEATURES <""""",~~""""""'.,:::~ • Output Enable Function (OE) \\ ')U~'" • Pin CO!Jl'f3at,j,QI ~~ g~ • 16384x8 Bit organization 27X ."""'f)0[." " ilies • Single +5 Volt Supply • 231 'If)'" co atible with 27128 • Completely TTL Compatible , (J EDE~,,,,S(~ndard) • Totally Static Operation ")328 is PtfJ,l~ompatible with 2528 (TI version) • Three State Outputs for "'~' 00 mV Noise Immunity on Inputs Wire-OR Expansion ',omatic power down (CE) PIN CONFIGURATION 23128 NC 1 28 VCC A12 2 27 CS1/CS1 A7 3 26 A13 A6 4 25 A8 A5 5 24 A9 A4 6 23 A11 A3 7 22 OE A2 8 21 A10 A1 9 20 CE 19 08 18 07 02 17 06 03 16 05 GNO 15 04 2·153 MMS , . " commodore 8508-1 ~ semiconductor group MPS 6508 BASED ~~@@ MICROMODULE BOARD MMS 6508-1 MICROMODULE BOARD Description The M MS 6508-1 is the first in a family of single board microcomputers, designed for easy system development. The heart of this micromodule is the new 6508 microprocessor. It has as enhance- ments, an on-chip eight-bit I/O port, 256 bytes of RAM, and a tri-state address bus. The micromodule board has four sockets that allow the userto have from 8 to 16K bytes of program memory. The sockets are designed to accept ROMs, as well as 2716 or 2532 EPROMS, using +5v supply. The micromodule board also features the new 6525 tri-port interface. This chip has three eight-bit I/O ports that are bit programmable as twenty-four I/O lines, or sixteen I/O lines, five priority interrupts and two handshake lines. Block Diagram Features • Use +5v/2A power supply • 1 M Hz Operation • 32 I/O lines or 24 I/O lines and 16Kx8 5 prioritized interrupts ROM/EPROM 256x8 • 16K ROM/EPROM Area RAM • 1 K External RAM • 256 bytes RAM on 6508 6508 CPU IKx8 Edge Connector RAM 2114 Pin Assignment Pin Assignment 1 A P7 2 P6 P4 } 6508 B P5 } 6508 3 P2 Port C P3 Port 4 PO 0 P1 5 01 In E IRO 6 Reset F 02 In 7 GND H GND 8 GND J GND 9 +5v K +5v 10 +5v L +5v 11 PC7 M PAO TRI-PORT 12 PC6 N PA1 13 PC5 P PA2 INTERFACE 14 PC4 R PA3 (6525) 15 PC3 S PM 16 PB4 6525 T PA5 6525 17 PC2 Port U PA6 Port 18 PB5 V PA7 19 PC1 W PBO 20 PB6 X PB1 21 PCO Y PB2 22 PB7 Z PB3 2-154 6508 (MMS/1) LOGIC DIAGRAM SEL F :~;1 UN _ _ I 1.-_ _ __SEL9 __ II: ~w z z 8w 8 w ADDRESS BUSS CI~ 01(1) o Q) ....• ~ MMS ~~@~ 6508-1 MEMORY MAP FFFF ROM F FOOO EFFF ROM E EOOO I/O Port Address Assignment DFFF ROM 0 PORTA 8000 PORT REGISTER A 0000 CFFF 8003 DATA DIRECTION ROM C COOO REGISTER A BFFF PORT B 8001 PORT REGISTER B 8004 DATA DIRECTION REGISTER B RAM 8400 PORTC 8002 PORT REGISTER C 8005 DATA DIRECTION 8007 REGISTER C/ INTERRUPT MASK I/O REGISTER 8000 8006 CONTROL REGISTER 8007 ACTIVE INTERRUPT REGISTER OOFF RAM PORT M 0001 OUTPUT REGISTER 0002 0001 0000 DATA DIRECTION I/O REGISTER 0000 BOARD LAYOUT 7404 74lS138 74lS20 ~ '~ O ~O I I C ~ ''-' F DECDUPLING CAPS COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or design, COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising ot of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others, 2-156 CMOS ©(Q)mm(Q)@(Q)[f'® ©(Q)mm(Q)@(Q)[f'® ©(Q)mm(Q)@(Q)[f'® ©(Q)mm(Q)@(Q)[f'® ©(Q)mm(Q)@(Q)[f'® ©(Q)mm(Q)@(Q)[f'® ©(Q)mm(Q)@(Q)[f'® ©(Q)mm(Q)@(Q)[f'® ©(Q)mm(Q)@(Q)[f'® ©(Q)mm(Q)@(Q)[f'® ©(Q)mm(Q)@(Q)[f'® ©(Q)mm(Q)@(Q)[f'® ©(Q)mm(Q)@(Q)[f'® ©(Q)mm(Q)@(Q)[f'® COrTlrTlodore semiconductor group 3-1 , . . commodore ~ aamiconcluct:ar group MPS ©UYAJ@@ 65COO MICROPROCESSORS 65COO MICROPROCESSORS THE 65COO MICROPROCESSOR FAMILY CONCEPT - The 65COO Series Microprocessors represent the first totally software compatible microprocessor family. This family of products includes a range of software compatible microprocessors which provide a selection of addressable memory range, Interrupt input options and on-chip clock oscillators and drivers. All of the microprocessors in the 65COO group are software compatible within the group and are bus compatible with the M6800 product offering. The family includes six microprocessors with on-board clock oscillators and drivers and four micropro- cessors driven by external clocks. The on-chip clock versions are aimed at high performance, low cost applications where single phase inputs, crystal or RC inputs provide the time base. The external clock versions are geared for the multi processor system applications where maximum timing control is mandatory. All versions of the microprocessors are available in 1 MHz maximum operating frequencies. MEMBERS OF THE 65COO MICROPROCESSOR FEATURES OF THE 6500 FAMILY (CPU) FAMILY Microprocessors with On-Chip Clock Oscillator • Single +5 volt supply Model Addressable Memory MPS65C02 65K Bytes • Eight bit parallel processing MPS65C03 4K Bytes • 56 Instructions MPS65C04 8K Bytes • Decimal and binary arithmetic MPS65C05 4K Bytes • Thirteen addressing modes MPS65C06 4K Bytes MPS65C07 8K Bytes • True indexing capability • Programmable stack pOinter Microprocessors with External Two Phase Clock Inputs • Variable length stack L • Interrupt capability MPS65C12 65K Bytes MPS65C13 4K Bytes • Non-maskable interrupt MPS65C14 8K Bytes • Use with any type or speed memory MPS65C15 4K Bytes • 8 BIT Bi-directional Data Bus • Addressable memory range of up to 65K bytes • "Ready" input (for single cycle execution) ORDER NUMBER: • Direct memory access capability MXS65CXX ~ • Bus compatible with M6800 • Choice of external or on-board clocks • 1 MHz operation • On-the-chip clock options MODEL DESIGNATOR *External single clock input xx = 02,03,04, . . . 15 *RC time base input *Crystal time base input PACKAGE DESIGNATOR • Pipeline architecture C = CERAMIC P = PLASTIC 3-2 MPS 65COO COMMENTS ON THE DATA SHEET The data sheet is constructed to review first the basic "Common Characteristics"-those features which are common to the general family of microprocessors. Subsequent to a review of the family characteristics will be sections devoted to each member of the group with specific features of each. I COMMON CHARACTERISTICS _ ItEGISTlR SECTION CONTROL SECTION ----4 r. AI AZ .....- - - - - R D y A.J A4 A' INSTRUCTION DECODE A6 A7 ADDRESS IUS ...~ AI 1 u co IJJ 0 CELL !- => 3: ARRAY Cl. O t- a:: => 0 - CSI CS3 CS 2 COLUMN DECODER I I I I 3-20 MPS 23C16 PACKAGING DIAGRAM CERAMIC PACKAGE MOLDED PACKAGE :~[DJ] ~_ _ _ _ "'! ... ". I .... r'~L'''' ::.:r::::::::::]]ti I 'zoo ,'" I .... ::\ r--.-_---t ~t-- .... - - - j ml~',~f::! -E~W .en Jt!.- .i~ 1-'. .."...'''' O~ "10 ... ~r .- T ... -~I::oo" •0* oo~ 0110 T ~0700-------.J COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve mliability, function or design. COMMODORE SEMICONDUCTOR GROUP does not assume any liability ari:sing out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 3-21 ,.", commodore MPS ~ aamicanduct:ar group 23C32 ©[K!AJ@~ STATIC READ ONLY MEMORY (4096x8) 23C32 STATIC READ ONLY MEMORY (4096x8) DESCRIPTION The 23C32 high performance read only memory is organized 4096 words by 8 bits with access times of less than 450 ns. This ROM is designed to be compatible with all microprocessor and similar applications where high performance, large bit storage and simple interfacing are important design considerations. The 23C32 operates totally asynchronously. No clock input is required. The two programmable chip select inputs allow four 32K ROMS to be OR-tied without external decoding. Designed to replace two 2716 16K EPROMS, the 23C32 can eliminate the need to redesign printed circuit boards for volume mask programmed ROMS after prototyping with EPROMS. • 400mV Noise Immunity on Inputs • Three-State Outputs for Wire-OR Expansion • 4096 x 8 Bit Organization • Two Programmable Chip Selects • Single +5 Volt Supply • Pin Compatible with 2716 & 2532 EPROM • Access Time - 450 ns • Replacement for 2716 • Totally Static Operation • 2708/2716 EPROMS Accepted as Program • TIL Compatible Data Inputs ORDERING INFORMATION: PIN CONFIGURATION MXS 23C32 A7 VCC A6 AS A5 A9 A4 C52/C52 A3 C5 1 IC5 I A2 AIO AI All '------ PACKAGE DESIGNATOR AO 08 C=CERAMIC P = PLASTIC °1 07 02 06 03 °5 04 3-22 MPS 23C32 ABSOLUTE MAXIMUM RATINGS COMMENT Ambient Temperature under Bias 'C to +70"C Stresses above those listed under "Absolute Storage Temperature -65 C to + 150' C Maximum Ratings" may cause permanent Supply Voltage to Ground Potential -O,5V to + 7.0V damage to the device. This is a stress rating Applied Output Voltage -O,5V to + 7.0V only and functional operation of the device at Applied Input Voltage -O,5V to + 7.0V these or any other conditions above those indicated in the operational sections of this specification is not implied. D. C. CHARACTERISTICS (TA = 0 C to + 70 C, VCC = 5.0V ± 5%, unless otherwise specified) t-Symbol Parameter Min. Max. Units Test Conditions ICC Power Supply Current 17 mA F = 1 MHz ICCS Stand-by Power Supply 10 fJA Chip Deselected Current 10 Output Leakage Current 10 fJA Chip Deselected II Input Load Current 10 fJA VCC = Max. Gnd ~ VIN ~ VCC VOL Output Low Voltage 0,4 Volts VCC = Min. IOL = 2.1 mA VOH Output High Voltage 2.4 Volts VCC = Min. IOH = -400fJA VIL input Low Voltage -0.5 0.8 Volts See Note 1 VIH :nput High Voltage 2.0 VCC+1 Volts A. C. CHARACTERISTICS (TA = 0 C to + 70 C. Vec = 5,OV ± 5%. unless otherwise specified) I Symbol Parameter Min. Max. Units Test Conditions tACC Address Access Time 450 ns tco Chip Select Delay 200 ns tDF Chip Deselect Delay 100 ns See Note 2 tOH Previous Data Valid 40 ns After Address Change Delay CAPACITANCE: (TA = 25"C, f = 1.0MHz, See Note 3) Symbol Parameter Min. Max. Units Test Conditions CIN Input Capacitance 8 pF All Pins except Pin under COUT Output Capacitance 10 pF Test Tied to AC Ground Note 1: Input levels that swing more negative than -0.5V will be clamped and may cause damage to the device. Note 2: Loadin9 1 TTL + 100 pF, input transition time: 20 ns Timing measurement levels: input 1.5V, output 0.8V and 2.0V. Note 3: This pal'ameter is periodically sampled and is not 100% tested. 3-23 MPS 23C32 TIMING DIAGRAMS ADDRESS INPUTS ___IN_V_A_L_I_D__>tC~ ________ V_A_L_I_D__________ ~______I_N_V_A_L_1_0__________ CHIP I SELECT DISABLED ENABLED DISABLED INPUTS --..I tOH 1 4 - - - t CO--1 DATA HIGH ;.------., HIGH OUTPUTS IMPEDANCE IMPEDANCE BLOCK DIAGRAM ~ ----, a: a: w w 16384 lL. 0 lL. 0 ::::> BIT CD u w 0 CELL ~ ::::> 3: ARRAY a.. 0 ~ a: ::::> 0 08 L- eSI eS 2 COLUMN DECODER I 1 I I 3-24 MPS 23C32 PACKAGING DIAGRAM CERAMIC PACKAGE MOLDED PACKAGE COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or design. COMMODORE SEMICONDUCTOR GROUP does not assume any liability ariE;ing out of the application or use of any product or circuit descril;>ed herein; neither does it convey any licensl~ under its patent rights nor the rights of others. 3-25 LCD ©CQ)mmCQ)©J(Q)~ ©CQ)mm(Q)©J(Q)~ ©(Q)mm(Q)©J(Q)~ ©CQ)mM(Q)©J(Q)~ ©CQ)mM(Q)©J(Q)~ ©(Q)MM(Q)©J(Q)~ ©CQ)MMCQ)©J(Q)~ ©CQ)mm(Q)©J(Q)~ ©CQ)mm(Q)©J(Q)~ ©(Q)mm(Q)©J(Q)~ ©CQ)mm(Q)©J(Q)~ ©CQ)mm(Q)©J(Q)~ ©(Q)Mm(Q)©J(Q)~ ©CQ)Mm(Q)©J(Q)~ commodore semiconductor group • 4-1 Model , . . commodore ~ semiconductor group 4002K 5% DIGIT DIRECT DRIVE [b©[Q) MELODY ALARM CLOCK DISPLAY MODEL 4002K 5112 DIGIT DIRECT DRIVE MELODY ALARM CLOCK DISPLAY ' r 8 20 (20'83l '*,3~ .020 (O,51l PADS S SPACES (o~i1)-n )- i 1,0700,78) II 6.~ 11/!!IIIIJllllllllllllllllllllllllllllllllllj r-lri------------------------- t-': --rr--~..J...I..L..I....L.L..J.L..J..&....LI.,..I",I.....I..J.L.L.'-'-I ..... ..j..J.L..J.J...l.a..J"""'..L.,.J..,j",J..L.J""" _ _ _ _ _ _ • i-r-. . 07 - ,0585 (1,49) "T4 "'B: _:_1;l-~' db UU UU ';1v'~~.!! i Q~ O~o F,o 1IDJ (7L,62l bo. ,t, i~l~1 ~LE(~~~l~45)V~~J~~G J-@JO L._:=~ 0 0 c=l ! I'-J--I--~ !____2_+J_~_Ll~JJ_~ _) 1.020(0.51) HII- -T- ,rn;:[rrrnTTrrrr . ,,-r'-j,"T'1T'1,..,.,J,,..&,"T'-riJ-_!iI 111111,11111 II r 11111'1 I L.l6!5....i 3 PLCS. (4,19) IIIIIIIIII~ --J I 40~~gS~7) 111m. I L -J -I-IIII 061 0',55) I-J I1II1I ~~?ZJ '.~ 1--1l...·015 (0,38) .044 0,12) .080 -~ 104-_ _ _ _ _ 1.090(27,69),_ _ _ _ _---I~ 2(2fL~~·I ..=______ ~_1I-- _ _ _ _ _ 1.250 (31,75) _ _ _ _ _ _ ___ MIN. VIEWING AREA 1.336(33,93) _ _ _ _ _ _ _~ NOTES: I) COMPATIBLE WITH CMOS PIN FR2568. 2) DIMENSION IN PARENTHESES ARE IN MILLIMETERS. 3) TOLERANCE UNLESS SPECIFIED:XXX .t.005(O,13). 4) TREBLE CLEF AND STAFF ARE PERMANENTLY PRINTED ON DISPLAY. Pin Schedule Half Digit 12 Seg E4 23 Seg Bs 34 Seg G 3 2 Seg E1 13 Seg J4 24 Seg As 35 Seg B2 3 Seg D1 14 Seg D4 25 Seg Fs 36 Seg A2 4 Seg C 1 15 Seg C4 ~6 Seg B4 37 Seg F2 5 Colon 16 Seg Es 27 Seg A4 38 Seg G 2 6 Seg E2 17 Seg Ds 28 Seg H4 39 Seg B1 7 Seg D2 18 Seg Ls 29 Seg F4 40 Seg A1 8 Seg C2 19 Seg Cs 30 Seg G4 41 Seg F 1 9 Seg E3 20 Seg Gs 31 Seg B3 42 Seg G 1 10 Seg D3 21 Backplane 32 Seg A3 11 Seg C3 22 Melody 33 Seg F 3 4-2 Model llAwcommodore ~ aanIcancIuct;ar group 4003K 4 DIGIT BIPLEXED ALARM [L©[Q) CLOCK DISPLAY WITH ALARM, PM, AND DATA FLAG. MODEL 4003K 4 DIGIT BIPLEXED ALARM CLOCK DISPLAY WITH ALARM, PM, AND DATE FLAGS .050(l.2~I 4 PLCS. f -i:'~7)r 1~ I 4° lr 043 (1 09) .• ~ .::-.::-31-~_-L-_"*= =~51-_-_-_~_,-= , -1-=rJ ~ !fv IT=D r+ 'O-r 0 1tt~~} ---, 11.~.45) .4 47 (II. 35 ) MI N. \O=OB~o@OU~ VIE WING AR EA ~,9 ~ C? ~~-I- 3 "\-03*(0.95) -..-l n ~~ ~,~~-;=;::;;:; -:--IT:~,;:~:T:-f, m~ -=-;-'! .1805(4.58 2 PLCS.--- .0500.27) ).. E'~DSOS~~J .975(24.77) 1.150 (29.21) LDI5(M811 2 PLCS:- I· 1.250(31.75) _ _ NOTES MIN. VIEWING AREA I) COMPATIB LE WITH CMOS PIN FR8267. I 1.336(33.93) 2) DIMENSIO NS IN PARENTHESES' ARE IN MILLIMETERS. 3) TOLERANCE UNLESS SPECIFIED: XXX· t .005(O.13). Pin Schedule BP A BP B BP A BP B 1) BP A 11) A2 COLON 2) BLANK ALARM 12) F3 E3 3) BLANK BLANK 13) G3 03 I 4) BLANK BLANK 14) B3 C3 5) BLANK BLANK 15) F4 E4 6) A,G,E,D1 BLANK 16) G4 04 7) B1 C1 17) B4 C4 8) F2 E2 18) A4 DATE 9) G2 02 19) A3 PM 10) B2 C2 20) BP B 4-3 , . . , commodore Model ~ aamicanduct:or group 4004L 4 DIGIT DIRECT DRIVE CLOCK [L©[Q) DISPLAY WITH ALARM, AM AND PM FLAGS MODEL 4004L 4 DIGIT DIRECT DRIVE CLOCK DISPLAY WITH ALARM, AM AND PM FLAGS. Outside Dimensions .709 (18,01) x 1.575 (40,01) Digit Height .248 (6,30) REV 00 lr'lC· ----l f~Ir~O~IgwOJ-, ~?r---' ----1.378(35.00)~ .089 (2.26) MIN. VIEWING AREA rr=l r (l.~i) 1.1415 (28,99) - (~.1:3) .008 (0.20) 010 (0'25) I I' 1.!...J. '1 ' L....1. , , TT : , I : : : : : : i);,ij!i I , I , I. I , ;!, I '02 8p2L5C(S2.10) __ L l L..J. L-L.. L...J. LJ. L..L L..L.... L....L. L...l L...L L...J -- --T,L,i------ ~ L....I.~_ _ _ • CJO ~'-!~F---- -~1_~9) f I r .-- II ~~ 0 ~ l.J..--.,.lJ ~-I- I --r 248 .571 .413 .175 IF;. r.\/il c:::J (10,49) (14,50) Ln'l U\"JU "---,,. ~ -1--IIDlr.\/ilIl~ (4.4 5) ~ cOO D~rI I MIN. U (6.30) VIEWING r-1-1-----riJU\"JU ~ I I .709 .097 iii e::::=:l t:::::jJ-I- ---.1. ',_ -.l _ J ~ ___ 2_ _ _ _ 3_LL~ __ ,_,_ I I I I AREA I l LI L Cl8.01) (2,46) -----r-,T"" -r--- ~ 1I""I~-.l...L~""I"",:J;l, rTTI'rTT"'"'11,TI"TlTlT"l l .069 (r5) j (~,~~).j ~ j.15~\ j .0105 (0.27) .03937(0.99) PADS a SPACES 50 (3.8~~~ 087 (2.21) 2 PLCS. Jtl 040,·004. (1.02 t O,I02) .040 •. 004 CI.02,OJ02) NOTES' ~-----1.575 (40,01) I.) DIMENSIONS IN PARENTHESES ARE IN MILLIMETERS. 2.) TOLERANCE UNLESS SPECIFIED: XXX=!.".005 (0.13) 4-4 Model , . . commodore 4005N ~ aamiconduCl:or group 4 DIGIT DIRECT DRIVE ALARM CLOCK WITH AM AN D PM [L©[Q) FLAGS. MODEL 4005N 4 DIGIT DIRECT DRIVE ALARM CLOCK WITH AM AND PM FLAGS. Outside Dimensions .866 (22,00) x 2.047 (51,99) Digit Height .3937 (10,00) --- ------~M=-,Nc-.~vIE~~g(1~fi) -'ll r PRELIMINARY REV 00 hrr 1.459(37.06) ------, .294 .008 (0.20) tp1~s. lh~ MAX. 1.(3.75) ,475 (2.51) ,099 ~ 2 PLCS. I II-- 1r ·205p9L(lJ5.0) c~ .010 (0.25) MAX. --+1~1~~:2~:~:~:~:-1~:~:~:~1:~:~1'~,i~:~:~il~:~I:n:~:~:~:~:~:n:~:~:~:~:~I:r---~I~ (375) - - - - --1~LJ---L .1...1._'--1...L L.!LJ -L1_i..l :...LLU...LL LJ ..l..L...LI~L----r- .059(1.50) 1 .'41-f~flJ- -C;0-1--'m8t0t-oDO-- -000=--1=~ 866 (22.00) ~ '.45J.IE·-i : ffi\[i¥l] e O~D OCJg Oc=J 8~8 ~37 r F' B 0 I i (lOOO)~~~~~G .669 J O .loo=-I-IQ)ri\/il ---1 (2~ -l_!:~_52n~t~-f+i2h-2=r "5~".401 E e , I AREA I ~ (16.99) ' L.~41'(1~0~) 'j 'L~'~~6d' [ - - - - - ~ TTi iTT Ti i -: Tii(i[TIf i;-n r-fIT Tin!i - - - - - ~85(2.50) it r 1 _[-~ .010J (0.25) -I I SPACES I I I .059(1.50) PADS .060 0.52) (5.99) 4 Ill' I ' I I I .040:1" .004 j 040· (1.02· P04 0J02 ) 1 PLCS. 5° (1.02~ 0,102) -- (i5;b() --~----I. 359 (34.52) ------~ Ng~~~SION IN PARENTHESES ARE MILLIMETERS. ~_ _ _ _ _ _ 2,04 7 ( 5 1 . 9 9 ) _ _ _ _ _ _ _ _ _ _ _ 2.JTOLERANCE lX>JLESS SPECIFIED: XX X =* .005(0.13) I Pin Schedule COMMON 9 Seg E3 16 Seg A4 23 Seg B2 2 Seg PM 10 Seg 03 17 Seg F4 24 Seg A2 3 Seg A,G,E,01 11 Seg C3 18 Seg G4 25 Seg F2 4 Seg C1 12 Seg E4 19 Seg B3 26 Seg G2 5 Seg E2 13 Seg 04 20 Seg A3 27 Seg B1 6 Seg 02 14 Seg C4 21 Seg F3 28 AM 7 Seg C2 15 Seg B4 22 Seg G3 29 ALARM 8 COLON 4-5 , . , commodore Model ~ aamiconduct:or group 4006L 4 DIGIT BIPLEXED CLOCK [b©[Q) DISPLAY WITH ALARM AND PM FLAGS MODEL 4006L 4 DIGIT BIPLEXED CLOCK DISPLAY WITH ALARM AND PM FLAGS r .008 (0,20) lI J,OIO (0.251 I .571 (14,50) jL.. '~t75) .069 L Jt .0105 (0,27) ~ .043 t .004 (1.09 ' 0,102 ) .043! .004 ( 1,09!0.IO~) - - (1;,!~~I4---- 1.2285 (31,20) - - - - - _ NOTES: ~------1.575(40,OI) I) COMPATIBLE WITH CMOS PIN FR8267. 2) DIMENSIONS IN PARENTHESES ARE IN MILLIMETERS. 3) TOLERANCE UNLESS SPECIFIED: .xxx ± .005 (0,131. Pin Schedule BP A BP B BP A BP B 1) BP A 11) A2 COLON 2) BLANK ALARM 12) F3 E3 3) BLANK BLANK 13) G3 03 4) BLANK BLANK 14) B3 C3 5) BLANK BLANK 15) F4 E4 6) A,G,E,Ol BLANK 16) G4 04 7) Bl Cl 17) B4 C4 8) F2 E2 18) A4 BLANK 9) G2 02 19) A3 PM 10) B2 C2 20) BP B 4-6 Model , . . , commodore ~ aerniconduct:ar group 4 DIGIT BIPLEXED ALARM 4007N [L©[Q) CLOCK DISPLAY WITH PM AND ALARM FLAGS • MODEL 4007N 4 DIGIT BIPLEXED ALARM CLOCK DISPLAY WITH PM AND ALARM FLAGS r .1410 1.850(4699) MIN (~~g,,-..J VIEWING AREA II-- -J r .059 0 ...50) l r· 3 294 (7 47) p LCS. l .008(0,20) ~~010 MAX. I1 (3,58) 2 PLCS. I I 2 PLC:>. (0,25) MAX. (~~j,_~~_fh=P__ ~~~fiIkQ_~9~_j ~,40) I ~ir J:' r--- - - - - ,,""'", iT, OTT ,--;-7' ' -;-' ' ' 'I( ' (g~~r- - Lp~'riH~~"o~ES ~sll-~~J L I r-- (i6,~~~ - - . . j - - - - - 1 . 2 2 8 5 (31,20) ITT'/'''-; '" ,'iliiiilil:li;!iiiiliii:;/:i!i/:l;ili!1o: 1 PLCS. .+,1 ~- 50 ,,-, " I J ---- - NOTES' ,043. oo 0,09" I) COMPATIBLE I~ I_~a :il ~,,;g:~=) O.I02)~ I-- WITH CMOS PIN FR8267. ~_ _ _ _ _ _ 2 . 0 4 7 ( 5 1 , 9 9 ) _ _ _ _ _ _ _ _ _ _ 2) ~11~CI~S~~~Rk~ PARENTHESES ARE IN 3) TOLERANCE UNLESS SPECIFIED: .XXX ± .005(0,13). Pin Schedule BP A BP B BP A BP B 1) BP A 11) A2 COLON 2) BLANK ALARM 12) F3 E3 I 3) BLANK BLANK 13) G3 03 4) BLANK BLANK 14) B3 C3 5) BLANK BLANK 15) F4 E4 6) A,G,E,Ol BLANK 16) G4 04 7) B1 C1 '17) B4 C4 8) F2 E2 '18) A4 BLANK 9) G2 02 '19) A3 PM 10) B2 C2 20) BP B 4-7 , . . , commodore Model ~ Benliconduct:ar group 5015F MEN'S 6 DIGIT DIRECT DRIVE ~©[Q) WATCH DISPLAY WITH ALARM FLAGS MODEL S01SF MEN'S 6 DIGIT DIRECT DRIVE WATCH DISPLAY WITH ALARM FLAG .0197 PADS a SPACES (0.50) 1 0 . - - - - - - - 7 6 7 ( 1 9 . 4 8 ) ----------t~ NOTES: 10.--------.848(12.54) - - - - - - - - - - . j MIN. VIEWING AREA I.l COMPATIBLE WITH CMOS PIN FR 2568. - - - - - .941 (23.90) - - - - - - - - - - 1 2.) DIMENSIONS IN PARENTHESES ARE IN MILLIMETERS. 3.l TOLERANCES UNLESS SPECIFIED: XXX- .005(0.13) . Pin Schedule 1 Seg E, 13 Seg C4 25 Seg B6 37 Seg B3 2 Seg OJ, A, 14 Seg E5 26 Seg A6 38 Seg F3 3 Seg C, 15 Seg J 5 27 Seg F6 39 Seg G3 4 Seg E2 16 Seg 05 28 Seg B5 40 Seg B2 5 Seg 02 17 Seg C5 29 Seg A5 41 Seg A2 6 Seg C2 18 Seg E6 30 Seg H5 42 Seg F2 7 Colon 19 Seg 0 6 31 Seg F 5 43 Seg G 2 8 Seg E3 20 Seg L6 32 Seg G 5 44 Seg B, 9 Seg A3, 03 21 Seg C6 33 Seg B4 45 Seg F, 10 Seg C3 22 Seg G 6 34 Seg A4 46 Seg G, 11 Seg E4 23 Backplane 35 Seg F 4 12 Seg 0 4 24 Alarm 36 Seg G 4 4-8 Model " " commodore 5017B ~ aamlcanductar group LADIES' 3% DIGIT DIRECT DRIVE [b©[Q) WATCH DISPLAY WITH ALARM AN D PM FLAGS. !MODEL 50178 LADIES' 3112 DIGIT DIRECT DRIVE WATCH DISPLAY WITH ALARM AND PM FLAGS _ r.019 Q46 PADS a. S~CES H---------::-_ ..475(12.06) ~ [- tll-hi.~~ ~~~ -, 1.016 (0,46) - 1.o~6(1,47) 1--------.590114,99) - - - - - - " I) COMPATIBLE WITH CM.oS PIN FR226B 2) DIMENSI.oNS IN PARENTHESES ARE IN MILLIMETERS. 3) T.oLERANCE UNLESS SPECIFIED .xxx r ..o.o5 (.0,13). Pin Schedule I Backplane 8 Seg D2 15 Seg B3 22 Seg G 2 2 Half Digit 9 Seg C2 16 Seg A3 23 Seg B, 3 Seg E, 10 Seg E3 17 Seg F3 24 Seg A, 4 Seg D, 11 Seg D3 18 Seg G 3 25 Seg F, 5 Seg C, 12 Seg C3 19 Seg B2 26 Seg G, 6 Colon 13 PM 20 Seg A2 7 Seg E2 14 Alarm 21 Seg F2 4-9 ~odel , . . commodore ~aamlcanductar group 50i8E MEN'S 3% DIGIT DIRECT DRIVE [L©[Q) WATCH DISPLAY WITH ALARM AND PM FLAGS MODEL S018E MEN'S 3112 DIGIT DIRECT DRIVE WATCH DISPLAY WITH ALARM AND PM FLAGS l~~:::~::~AX .355 (9.02) MIN. VIEWING AREA -n .420 (10.67) ,-- .119(3.02) NOTES: U COMPATIBLE WITH CMOS PIN FR 2268. '--------.,.M=ltl\J:JWi~y A:-::RE=A-:---------.-J 2.) DIM. IN PARENTHESES ARE IN MILLIMETERS. 3) TOLERANCE UNLESS SPECIFlED:XXX··OO5(0.13). .015 (3,81)_ '__------.805(20,44) MAX. Pin Schedule Backplane 8 Seg O2 15 Seg B 3 22 Seg G 2 2 Half Digit 9 Seg C2 16 Seg A3 23 Seg B, 3 Seg E 1 10 Seg E3 17 Seg F 3 24 Seg A, 4 Seg 0, 11 Seg 0 3 18 Seg G 3 25 Seg F, 5 Seg C 1 12 Seg C3 19 Seg B2 26 Seg G, 6 Colon 13 PM 20 Seg A2 7 Seg E2 14 Alarm 21 Seg F 2 4-10 , . . commodore Model ~ samiconduCl;ar group 5053BB LADIES' 3% DIGIT BIPLEXED [L©[Q) WATCH DISPLAY MODEL 5053BB LADIES' 3112 DIGIT BIPLEXED WATCH DISPLAY r ·'OOS (O,2.0)MAX . ]nliU .04756lj F · 4 3 5 0 1 . 0 5 ) '\ OIO (O.2.CI) 02.06) I .015 (0.3S) PADS a SPACES MAX. L I II 9 (0.99) f __:~-.!lLUJJll..L:JllLL':'l~:Jll~1..L~ __ .035(0.89)MIN. ' ~ / - - - - - - - - - - - - - - - - -'~ .048 I til 1 -1-6~D~~! I I (1,2.2.) I .351 .389 o (72.~ 7) ~Of~'Jt'lJ .16C1 .17C1 ~8 D~o' 8) ~ U ~ .- =!~~p~1r~ I ~Y~ U jP~'t~ (4,19) (4,48) MIN. 'VI EWING ARE A L .045 I ! (1,14) 1-1._ 1 .028C1 (0,72.) ~P~~-~f--JT~~~= .02.5 (0.83) L.02.0 (O.M MAX MIN. 01l !'002 (0.2S tO.0!I) I. ~~, (0,64) 020'·004 (0,51'0.0.) ~ ...",.," I NOTES 02.2.(0,56) I) COMPATI8LE WITH CMOS PIN FR2.2.2.4. 2.) DIME NSIONS IN PARENTHESES ARE IN MI LLIMETERS. 463U~76) 3) TOLE RANCES UNLESS SPECIFIED: MIN. VIEWING AREA .xxx ±.OOCI (0,13) . '--- _ _ _ _ .530 (13,46) Pin Schedule ~ !! ~ !! I 1 Backplane 9. Seg A2 Seg B 2 2 Half Digit Seg E, 10. -OFF- Seg E 3 3 Seg F , Seg D, 11. Seg F 3 Seg D3 4 Seg G, Seg C, 12. Seg G 3 Seg C 3 5 Seg A, Seg B, 13. Seg A3 Seg B 3 61 Colon Seg E2 14. Month-Date -OFF- 7 Seg F 2 Seg D2 15. Backplane 8 Seg G 2 Seg C2 4-11 , . . , commodore Model ~ semicanduct:or group 50561 MEN'S 5% DIGIT DIRECT DRIVE [L©[Q) WATCH DISPLAY UNIT MELODY ALARM FLAG, MODEL 5056 I MEN'S 5112 DIGIT DIRECT DRIVE WATCH DISPLAY WITH MELODY ALARM FLAG .06~5(I'54)l {rfigJ~~;:cES1- (k~;:~rO(;:~)-:I 4 P-CS. rl II '5PLCS. (~,?g7' I I_--1!:I.......L.I.J.....·..L...l.~_'.....Li :42~ i : I : : I : I ! TTi--;-rrm : ! ~ : II : : IT :TT;7ITTTT-T r- '2' Ll.Jf~,l....LJ L.l..1-L.!. '-LJ L...!.!.-1..l.....L1 LL-I . L L : ' _ .41.""r---- -r-------:--1:1t-:7~--i ~lt~;~ (~.[, i 00cJJ °OC)O [bO G~O Q~~-!= ---t1f, .471 (11,96) 1,~6) (5~lf3) L, : 0BDoD 00 0Q 0cOO: i~~506) - I -1-1- ~\jlll C2] ! K '/ t==)"/J 3, 4 II~-I- 5/!. i '-----......!.. ~'--I-----111--------TT-,Tr-- T,-/I (0,800) .090 (0,53) 5° (2,29) NOTES I) COMPATIBLE WITH CMOS PIN FR2568. ---.7575(19,241)--- 2) DIMENSIONS IN PARENTHESES ARE IN __ ._.852 (21,64) MILLIMETERS. MIN. VIEWlNG AREA 3) TOLERANCE UNLESS SPECIFIED: XXX t005(O,13) _.. ·---.941 ( 2 3 , 9 0 ) - - - - - - 4) TREBLE CLEF AND STAFF ARE PERMANENTLY PRINTED ON DISPLAY IN BLACK. Pin Schedule 1 Half Digit 12 Seg E4 23 Seg 8s 34 Seg G3 2 Seg E1 13 Seg J 4 24 Seg As 35 Seg B2 3 Seg D1 14 Seg D4 25 Seg Fs 36 Seg A2 4 Seg C1 15 Seg C4 26 Seg B4 37 Seg F2 5 Colon 16 Seg Es 27 Seg A4 38 Seg G2 6 Seg E2 17 Seg Os 28 Seg H4 39 Seg B1 7 Seg D2 18 Seg L5 29 Seg F4 40 Seg A1 8 Seg C2 19 Seg C5 30 Seg G4 41 Seg F 1 9 Seg E3 20 Seg Gs 31 Seg B3 42 Seg G1 10 Seg D3 21 Backplane 32 Seg A3 11 Seg C3 22 Melody 33 Seg F3 4-12 , . . , commodore Model ~ aemiconduct;ar group 5060B I [b©[Q) LADIES' 3% DIGIT BIPLEXED WATCH DISPLAY MODEL 5060B LADIES' 3112 DIGIT BIPLEXED WATCH DISPLAY (~1~)l _I r!16 (0,41) PADS 6 ~31IrO'9:~~ S~CESI I ~ rOIO (Q25) MAX. .··n .276 -u (7.01) l .039(0.99) ,015 (0,38) MAX, 043(1,09)-1'" J I- ' - - - - - - , 5 1 5 (13,08) - - - - - - . . . / MIN. VIEV/ING AREA NOTES: Jrr I) COMPATIBLE WITH CMOS PIN FR2224 .020.' ~004 .028 ·.004 <0,51 (0,71 c!:0.10 ) • 0.10 - . 5 9 0 <14,99) -------~ 2) DIMENSIONS IN PARENTHESES ARE IN MILLIME TERS. 3) TOLERANCE UNLESS SPECIFIED: .XXX ± .005 (0,13). Pin Schedule A B A ~ I 1 Backplane 8 Seg G2 Seg C2 2 Half Digit Seg E, 9 Seg A2 Seg B2 3 Seg F, Seg D, 10 -OFF- Seg E3 4 Seg G, Seg C, 11 Seg F3 Seg D3 5 Seg A, Seg B, 12 Seg G3 Seg C3 6 Colon Seg E2 13 Seg A3 Seg B3 7 Seg F 2 Seg D2 14 Backplane 4-13 '-'commodore Model ~ aemIconduct:or group 5061E [L©[Q) MEN'S 3% DIGIT BIPLEXED WATCH DISPLAY. MODEL 5061E MEN'S 3112 DIGIT BIPLEXED WATCH DISPLAY 420 (9,02 (10,67.' MIN. VIEWINIJ AREA NOTES: I) COMPATIBLE WITH CMOS PIN FR2224. 2) DIMENSIONS IN PARENTHESES ARE MILLIMETERS. - .716 (18,19) - - - - - - - - - 1 3) TOLERANCES UNLESS SPECIFIED: xxx :t.o 05 (O.13). MIN. VIEWING AREA I------ ----------- .805(20,45) ---------1"'" Pin Schedule ~ !! ~ !! 1 Backplane 9. Seg A2 Seg B 2 2 Half Digit Seg E, 10. -OFF- Seg E 3 3 Seg F , Seg D, 11. Seg F 3 Seg D 3 4 Seg G , Seg C, 12. Seg G3 Seg C 3 5 Seg A, Seg B, 13. Seg A3 Seg B 3 6 Colon Seg E2 14, Month-Date -OFF- 7 Seg F 2 Seg D2 15. Backplane 8 Seg G 2 Seg C2 4-14 ,..", commodore Model ~ semiconductor group 5075A [L©[Q) 3% DIGIT BIPLEXED PEN DISPLAY MODEL 5075A 31/2 DIGIT BIPLEXED PEN DISPLAY ~ f" ".",,;" ~ 1-'" 1.016 (0.41) SPACES I ""n r · 0 21 (0,53) 2 PLCS. 0) ~ __ J~JJJllLL~LU~LUJJlllllllll~ __ . 'I i ---[B--rr[B--~~-= C .175 (4 ,445) i 0 'rrfJ 0 =0 0=01 II j 135 .195 (4,95) .320 :pe~ ! (343) MIN. VI EWING (B.13) L /~/ /D ODOO: AREA : K Q 9/",-1- * '"------------------------ "-.)- .OtO(O,76) --I--I--+----H---------------:~-~-" .020_ (0,51) ~:J :::: MIN. VIEWING AREA .550 (13,97) NO 1.1 2,) 3,) COMPATIBLE WITH CMOS PIN FR2224 DIM. IN PARENTHESES ARE IN MILLIMETERS TOLERANCE UNLESS SPECIFIED: .xXX· !.005(O,13) MAX. Pin Schedule I A B A B Backplane 8 Seg G2 Seg C 2 2 Half Digit Seg E, 9 Seg A2 Seg B2 3 Seg F 1 Seg D, 10 -OFF- Seg E3 4 Seg G, Seg C, 11 Seg F3 Seg D3 5 Seg A, Seg B, 12 Seg G3 Seg C 3 6 Colon Seg E2 13 Seg A3 Seg B3 7 Seg F2 Seg D2 14 Backplane 4-15 '-'commodore MODEL ~ semiconductor group 5101C [L©[Q) LADIES' 3% LARGE DIGIT BIPLEXED WATCH DISPLAY MODEL 5101C LADIES' 3% LARGE DIGIT BIPLEXED WATCH DISPLAY .079 (2.01)1 2 PLCS. -r .016 PADS (0,41) lr .432 ( 1 0 ' 9 7 ) f l 8 SPACES 40 lr .008(o. 20) MAX. lrOIO(O.25) MAX. f-_!1.:"'U!J.u.i.!J.l..;JLlu_:1Jl..L:.!.l.~~ - I r-,:-r (-- ________1'_ - - -')- __ + -L..._ _- - - . H9(0.99) ---I __ I, 1 .0365 (0,927) , ~ CJI c=J-,- I T' (~r~' I i,~~~:~!~J 'h~~;G .354 .315 (8,00) t_(4...... ---u ~ I-l[~"OO L JtL. MAX. .015(0.38) (2,54) .025 (0,64) - 4 PLCS. .453 (11.51) MIN. VIEWING AREA 024 (0,61 ) ..... .513 (13.03) - - - - - - t I--- --;030 2 PLCS. (0,76) NOTES: I) COMPATIBLE WITH CMOS Jf PIN . FR2224. .020 ± .004 (0,51 ± 0,10) ± .028 .004 (0,71 ± 0,10) f-----~.590 (14,99) 2) DIMENSIONS IN PARENTHESES ARE IN MILLIMETERS. 3) TOLERANCE UNLESS SPECIFIED: .XXX ± .005 (0,13) Pin Schedule A ~ A B Backplane 8 Seg G2 Seg C2 2 Half Digit Seg E, 9 Seg A2 Seg B2 3 Seg F, Seg 0, 10 -OFF- Seg E3 4 Seg .G, Seg C, 11 Seg F3 Seg 0 3 5 Seg A, Seg B, 12 Seg G 3 Seg C3 6 Colon Seg E2 13 Seg A3 Seg B3 7 Seg F2 Seg 0 2 14 Backplane 4-16 , . . commodore Model ~ semiconduct;or group MEN'S BIPLEXED WATCH 5102E [L©[Q) DISPLAY WITH PM,ALARM,AND DAY FLAGS. MODEL 5102E MEN'S BIPLEXED WATCH DISPLAY WITH PM, ALARM, AND DAY FLAGS. j..--_ _ _ _ . .716(18.19) MIN'VIEWING~REA ,574(14,58), 12 .0445(1.13) PLCS. I r .06025 (J,53) 7 PLCS. .355 (9,02) MIN. VIEWING AREA NOTES: t - - - - - - - . 7 0 2 (17,83) _ _ _ _ _ _.-. I) COMPATIBLE WITH CMOS PIN FR 8268. 2) DIMENSIONS IN PARENTHESES ARE MILLIMETERS. 1--_ _ _ _ _ _ .805 (20.45) - - - - - - - - - 3) TOLERANCE UNLESS SPECIFIED: XXX ·!.005!0,13l. 4) SU PERMANENTLY PRINTED ON DISPLAY IN RED. 5) DAYS OF WEEK AND ALARM FRAME PERMANENTLY PRINTED ON DISPLAY IN BLACK. Pin Schedule BP A BP B BP A BP B I 1) BP A 11) A2 COLON 2) SU ALARM 12) F3 E3 3) MO SA 13) G3 03 4) TU FR 14) B3 C3 5) WE TH 15) F4 E4 6) A,G,E,Ol BLANK 16) G4 04 7) Bl Cl 17) B4 C4 8) F2 E2 18) A4 BLANK 9) G2 02 19) A3 PM 10) B2 C2 20) BP B 4-17 , . , commodore Model ~ aamlcanduct:or group 5103C LADIES 4 DIGIT BIPLEXED [L©[Q) WATCH DISPLAY WITH ALARM, PM, AND DAY FLAGS. MODEL 5103C LADIES' 4 DIGIT BIPLEXED WATCH DISPLAY WITH ALARM, PM, AND DAY FLAGS .0245 / - - - .. _ ~--- .... ....._-- ---590(l4.99)--~ l -- ---l g (0,622) _____ 51303.03) i "--- r--1F-. 2 PLC S. MIN. VIEWING AREA • 015 Jl 019 (0.482) -o;o~~~~i . 1I~ 3 j i =-:- I (0.38) 7 PLCS. 014 (Q3,r)'1 I I II 1/ --(1-11-----11---") 028(0{") .;.... ---.£025 2 14 If(I=~=a (6.35) (6,4~1) MIN. ~ (3.81) : F • B 0 0-:- -".,,,, ,j , .049 VIEWING AREA , l~~~+I~-~~~-r~~ 148 lJ (3.?) .033(0,838) .354 (8.9 9) - mizr ITT'TTI I TIl ,TT, "II " " " rrr'TI''''lf'"' -rn ~ I 1 """"""""", 'r'rl,.,II"111111 """"""':0: ,II,.,. """"',1 I - Jt~~6:?' J{; ;~;'d~= [~t'g~:, .042 2 PLCS. (1,066) J - .014 SPACES (0,3~~) .021 4 PLCS. (0,533) 0508) .0;9 (2,00) .506(12,85) - - - - ~- - ~2tLCS (0,558) NOTES: I.) COMPATIBLE WITH CMOS PIN FR 8222,8223, OR 8268. 2,) DIMENSIONS IN PARENTHESES ARE MILLIMETERS. 3) TOLERANCE UNLESS SPECIFIED: XXX·: .005 (0,13) Pin Schedule BP A BP B BP A BP B 1) BP A 11) A2 COLON 2) SU ALARM 12) F3 E3 3) MO SA 13) G3 03 4) TU FR 14) B3 C3 5) WE TH 15) F4 E4 6) A,G,E,01 BLANK 16) G4 04 7) B1 C1 17) B4 C4 8) F2 E2 18) A4 BLANK 9) G2 02 19) A3 PM 10) B2 C2 20) BP B 4-18 Model , . . commodore V- aernlcanduct:ar ~p 51041 MEN'S 8 DIGIT BIPLEXED [L©[Q) WATCH DISPLAY WITH AM, PM, ALARM, AND DAY FLAGS. - MODEL 5104 I MEN'S 8 DIGIT BIPLEXED WATCH DISPLAY WITH PM, AM, ALARM, AND DAY FLAGS. Outside Dimensions .599 (14,20) x .941 (23,90) Digit Height.173 (4,39) .134 (3,40) ...._ _ _ _ _ .941 (23,90) _ _ _ _ _ _ _ _ _ _ _--. REVOO ,....------.846 (21,49)---------1 MIN. VIEWING AREA ~-------.787 (19,99) _ _ _ _ __ .1634 .046 (4.lfI) 0.17> Pin Schedule A B A B 1 Seg A,G,E,Ol Seg B1 18 BACKPLANE 2 ALARM Seg C 1 19 BACKPLANE 3 SU Seg 02 20 Seg Cs Seg ES I 4 MO COLON 21 Seg BS Seg GS 5 TU Seg 03 22 Seg As Seg Fs 6 WE Seg 04 23 Seg C5 Seg E 5 7 BLANK BLANK 24 Seg B5 Seg G5 8 TH Seg 05 25 Seg A5 Seg F5 9 FR Seg Os 26 Seg C4 Seg E4 10 SA Seg As 27 Seg B4 Seg G4 11 BLANK BLANK 28 Seg A4 Seg F4 12 PM AM 29 Seg C3 Seg E3 13 Seg E7 Seg A,G,07 30 Seg B3 Seg G3 14 Seg C7 Seg B7 31 Seg A3 Seg F3 15 Seg Os Seg Es 32 Seg C2 Seg E2 16 Seg Cs Seg G a 33 Seg B2 Seg G2 17 Seg Bs Seg Fa 34 Seg A2 Seg F2 4-19 , . . , commodore Model ~ aamlconc:luCl:ar group 51078 ~©[Q) LADIES' 4 DIGIT BIPLEXED WATCH DISPLAY WITH ALARM AND PM FLAGS MODEL 51078 LADIES' 4 DIGIT 81PLEXED WATCH DISPLAY WITH ALARM AND PM FLAGS 1I ili· 1""-.008(0,20) MAX. 010 (0,25)MAX. ---·n ,276 (7,01) 3,) TOLERANCE UNLESS SPECIFIEO:.XXX·' .005(0,13) Pin Schedule BP A BP B BP A BP B 1) BP A 11) A2 COLON 2) BLANK ALARM 12) F3 E3 3) BLANK BLANK 13) G3 03 4) BLANK BLANK 14) B3 C3 5) BLANK BLANK 15) F4 E4 6) A,G,E,Ol BLANK 16) G4 04 7) B1 C1 17) B4 C4 8) F2 E2 18) A4 BLANK 9) G2 02 19) A3 PM 10) B2 C2 20) BP B 4-20 Model , . . , commodore . . . . . aarnk:onduct:or group 5108E MEN'S BIPLEXED WATCH [L©[Q) DISPLAY WITH PM AND ALARM FLAGS MODEL 5108E MEN'S BIPLEXED WATCH DISPLAY WITH PM AND ALARM FLAGS _ - - - - - . 8 0 5 (20.45)--------~ 3) TOLERANCES UNLESS SPECIFIED' .XXX ± .005 (0,13), Pin Schedule BP A BP B BP A BP B 1) BP A 11) A2 COLON I 2) BLANK ALARM 12) F3 E3 3) BLANK BLANK 13) G3 03 4) BLANK BLANK 14) B3 C3 5) BLANK BLANK 15) F4 E4 6) A,G,E,01 BLANK 16) G4 04 7) B1 C1 17) B4 C4 8) F2 E2 18) A4 BLANK 9) G2 02 19) A3 PM 10) B2 C2 20) BP B 4-21 , . . commodore Model ~ aernlconduct;ar group 5109C LADIES' 3% DIGIT BIPLEXED [L©[Q) WATCH DISPLAY WITH ALARM, PM, AN D DAY FLAGS. MODEL 5109C LADIES' 31/2 DIGIT BIPLEXED WATCH DISPLAY WITH ALARM, PM, AND DAY FLAGS .031 ·00BCO.20) MAX. Ifl (0.79) 2 PlCS. .010(0.25) MAX. r .2M (6.45) .315 (8.00) .3!\4 MIN • (8.99) VIEWING AREA 1 NOTES: ........----~06(12.B~)-----...j I) COMPATI BlE WITH CMOS PIN FR8268. t-------.590(l4.99)------~ 2) DIMENSIONS IN PARENTHESES ARE MilliMETERS. 3) TOLERANCES UNLESS SPECIFIED: .XXX ± .005(0,13). 4) DAYS OF THE WEEK AND ALARM FRAME ARE PERMANENTLY PRINTED ON DISPLAY. Pin Schedule BP A BP B BP A BP B 1) BP A 11) A2 COLON 2) SU ALARM 12) F3 E3 3) MO SA 13) G3 03 4) TU FR 14) B3 C3 5) WE TH 15) F4 E4 6) BLANK BLANK 16) G4 04 7) B1 Cl 17) B4 C4 8) F2 E2 18) A4 BLANK 9) G2 02 19) A3 PM 10) B2 C2 20) BP B 4-22 Model , . . commodore ~ aaniconducl:ar group 5111AA 3% DIGIT DIRECT DRIVE PEN [L©[Q) DISPLAY WITH ALAR M AN 0 PM FLAGS. MODEL, 5111AA 31/2 DIGIT DIRECT DRIVE PEN DISPLAY WITH ALARM AND PM FLAGS Outside Dimensions .551 (13,99) x .295 (7,49) Digit Height .117 (2,97) REV 00 Ii -~~A75 (12.06) ,'-1i,,' r------" 1'" }L-"",.,,, 012 I .445(11.30) MIN VIEWING AREA r(0~3h • T _ .1i1.L LLJ-L L'-t. J. J..L LI-L .UL LJ ...LJl.J.J...l i4L- I I _11 ___ 1 -'-':r- l , - -,- r-- - --- --- ~~ .0=!_ 295 f (7.49) : 0BUJ 0 .117 (2.97) 8 0 1 ~ ~(I,37) .157(:3. 98) L _ , ==~=tQ=-~ II 0 I , I ~Q)-) 1 MIN. VIE WING 158 ~L 0 -I---- ----L ARE A , (4.02) I E C I'T----nr----r .018 (0.457) -1-- ---' 2 -';r,TITTTr'T:1T''''JT'i'''.J.r-r,.,''~r .033(0.83) , I ~ .020(0.51) I .1 L ! I (6~l69) Ji~'016 J 40~~~OS51) 0040) 063l (1.60) :r- - .019(0.48) PADS a SPACE t--.038 (0.965) 4 PLCS 1 - - - - . 5 5 1 (13,99) NOTES, I.) DIMENSIONS IN PARENTHESES ARE MILLIMETERS 2) TOLERANCE UNLESS SPECIFIED' XXX· '.005(0.13) 2 3 4 5 Backplane Half Digit Seg E, Seg D, Seg C, 10 11 12 8 9 Seg D2 Seg C2 Seg E3 Seg D3 Seg C3 Pin Schedule 15 16 17 18 Seg B 3 Seg A3 Seg F 3 Seg G 3 22 23 24 25 Seg G 2 Seg B 1 Seg A1 Seg F, I 19 Seg B2 26 Seg G, 6 Colon 13 PM 20 Seg A2 7 Seg E2 14 Alarm 21 Seg F2 4-23 , . . , commodore Model ~ aarnIcanduct:or group 3% DIGIT BIPLEXED PEN 5112AA [L©[Q) DISPLAY WITH ALARM AND PM FLAGS. MODEL 5112AA 3112 DIGIT BIPLEXED PEN DISPLAY WITH ALARM AND PM FLAGS lGE~:~:':::' I I .236 15,99) -D15o-} C Q ROY to 1 I CLR 9'1(6502) - - CPU +5v I I I RfW ROY ~I J (to CPU) ~'----~----J I MA- I I MACHINE I ICHINE CYCLE N WAIT WAIT CYCLE N +1 FIGURE 1 FIGURE 2 6-4 , . commodore ~ _miconduct:or group [}fl~@~ Application Brief #4 MPS 6520 VERSUS MC6820/MC6821 The MPS 6520 Peripheral Adapter is a 16 line (2 port) bi-directional I/O device with four peripheral control/interrupt lines. The MPS 6520 is pin and funcitonally compatible with the MC6820 Peripheral Interface Adapter from Motorola/H itachi. The M PS 6520 is pin compatible with the MC6821 PIA, but the functional differences are outlined in the table below. MPS6520 MC6821 CHARACTERISTIC MAX MAX IlL, Input Low Current -1.6mAdc -2.4mAdc PA0-PA7, CA2 (VIL = 0.4Vdc) I LOAD 1.6mAdc 3.2mAdc (VCC = min., VOL = 0.4Vdc max.) The other functional difference between the M PS 6520 and the MC6821 is that the 6520 has a max. enable cycle time of 25JJ sec. while the MC6821 is fully static.lfthe above differences are not critical to the user, than the MPS 6520 may be substituted for the MC6821 as well as the MC6820. 6-5 v- '-'commodore semlconduct:or group ~~@~ Application Brief #5 DUAL PROCESSOR CONFIGURATION WITH THE MPS 6508 The MPS 6508 has been designed with a non-overlapping two phase clock. The potential behind this may not be apparent until one examines a control line that is available on the 6508- theAEC. What this means tothe user is the power to design a dual processor system capable of running at full speed with virtually no overhead. The AEC line can be used to tri-state the address bus. Since data is valid only during phase two high, with minimal logic, it will be possible for two 6508s to access common memory on opposite phase of the same clock. Figure 1 shows a simple block diagram connecting two processors together. The timings are illustrated in Figure 2. ¢A ~1 ¢1 ~B ADDRESS & DATA BUS 6508 6508 ¢B ¢2 Vee vee Vee ¢2 ¢A (Proc 1) (PROe2) AEe RNY RNY AEC RNY TO MEMORY FIGURE 1 Addr, Data & Rm (Proc 1) ------IDt--~D r (""'---.--.J Addr, Data & Rm (Proc 2) -<,---~t------lCJt-----4CJ~ NOTE: Open Collector NAND Gates (7401) used for RNY Signal. FIGURE 2 n-n '-'cammadare ~ aernlcanduct;or group ~~@~ Application Brief # 6 6551 VERSUS 6850 The M PS 6551 is an enhanced version of the does not have to double up for the DSR (Data Set MC6850. On chip baud rate generation repre- Ready) like the 6850. The !5SR is a signal used by sents the principal enhancement. Baud rate can many modems. be generated internally by either connecting a crystal across the XTAL 1 and XTAL2 pins or by The 6551 has four addressable locations inputting a clock signal through XTAL 1. Various against the two provided by the 6850. Thus, the baud rates can then be generated under program 6551 through these additional locations offers control. I n both cases, the device outputs a clock many more software programmable options to the signal through RxC pin at 16 times the programmed user. baud rate. This can be used to synchronize a To add to all this, the 6551 offers a hardware multiple 6551 System. master reset in addition to the software reset offered by the 6850. The 6551 also has all five Standard Modem Control Signals, unlike the 6850 which has only From all of the above, it can be seen that the three. Thus, in the 6551 the RTS (Request-to-Send) 6551 is a superior device to the 6850. 6551 VERSUS COMPETITION 6551 6850 8251 1 Baud Rate Generator 2 Yes No No (On-Board) 5 - 8 Bit3 Yes No No Characters XTAL Oscillator Yes No No (On-Board) Full Modem Controls Yes No Yes Baud Rates 50-19.2 K Baud N/A4 To 19.2K Baud (Programmable) 1 Includes synchronous operation. 2 1.8432 MHZ external crystal attaches directly to 6551 pins for 15 programmable baud rates. 3 6551 includes 9-Bit character transmission. 4 Spec. Max. BPS (Bits Per Second) through external clock input. 6-7 , . . commodore ~ aerniconcluct:or group ~UYAJ@~ Application Brief # 7 MEMORY EXPANSION WITH THE 8508 How often is it that you have wished for an STA DDR Store in Data Direction additional address line or two in your system? The Register. M PS 6508 offers the user the flexibi lity of accessing up to 16 M BYTES of address space in segments LOA # SEG SEG is a number from 0 to of 64K with almost no overhead. 255 that decides 64K segment being accessed. The 6508 has on board, an eight bit data port. This port is accessible through two registers, a STA DPR Store in Data Port Register. data direction register and a data port register. By setting up a few of the I/O lines as output, and Afterthis, anytime a new 64K segment has to be loading the port with the segment value, it will be accessed, only the last 2 lines of code have to be possible to address a unique 64K of address executed. space. Reloading the data port with a different value now enables the addressing of a different This expanded addressing capability along 64K address space. with ability for external hardware to decide the The additional software needed is fairly trivial address segment to be accessed gives the user a and is given below: powerful microprocessor. LOA #Config. ; Config. is used to set up individual lines as input or output. ,-------------1 r--- -=r I r-- I 8 Bit Data Bus S 256 x 8 RAM P P C B I 6512 * '---- I CPU ~ I 16 Bit Addr. Bus EXPANDED r- S I ADDRESS C/) ::::::l '-- B J SPACE co -l « T I AEC z cr: I LU ADDITIONAL ADDRESS LINES DATA PORT l- ~ P REGISTER** r--. I From I External () I Logic DATA DIREC. P REGISTER** I 6508 - I *Tri State Buffer **DPR IS at 0001 16 DDR is at 000016 ------' MPS 6508 - EXPANDED MEMORY CONFIGURATION 6-8 , . . commodore V' BBnlicanduCl:Or g~ ~~@~ Application Brief #8 MPS 6545-1 VERSUS COMPETITION The M PS 6545-1 CRT Controller is an enhanced access to screen memory during vertical retrace. version of the MC6845. The major improvements are There is also a light pen full bit. This bit is used to the addition of a status register and the ability to determine when a new value has been stored in the program the type of screen memory addressing light pen position register. No provision for this is desired (linear or row/column). The status register is available on the MC6845. used to monitor the status of the MPS 6545-1. There is a vertical blanking status bit which can be tested to determine when the vertical retrace is occurring. At As can be seen in the chart, the M PS 6545-1 this time, the microprocessor can access screen stacks up favorably against the MC6845 as well as memory since the MPS 6545 does not require the other CRT controllers on the market. MPS 6545-1 6845 8275 5027 DP8350 COM MODORE/ MOTOROLA INTEL NSC SMC MOS TECHNOLOGY Display Format Characters/Row 1-256 1-256 1-80 5-110 20-132 Row/Frame 1-128 1-128 1-64 1-64 1-64 Scan Lines/Row 1-32 1-32 1-16 1-16 1-16 Screen Memory Linear or Addressing Row/Column Linear Linear Linear Row/Column Light Pen Logic Yes Yes Yes No No Accessible Screen Format Screen Format Cursor Cursor Cursor Registers Timing Timing Status Top-of-Page Scroll Cursor Cursor Light Pen New Row Top-of-Page Light Pen Light Pen Top-of-Page Top-of-Page Status Interlaced Mode No* Yes No No Yes *MOS M PS 6545 has interlaced mode , . . , commodore V- aernlcancluCl;or group ~~@~ Application Brief # 9 MPS 6508 AN 'ACTIVE' CPU DURING BLOCK DMA A big problem faced with most users is that during Direct Memory access (DMA), the processor is idle. Thus, when processing speed is critical, in most systems the use of DMA block transfer mode is not recommended. However, with an M PS 6508 based system, it is possible for the processor to be executing even during DMA. The 6508 has an AEC input pin which has to be sensed low in order for the processor to float its address bus. During this time, DMA is possible. The 6508 has on board 256 bytes of RAM which reside concurrently in page zero and page one. The processor also has an 8 bit I/O port which is accessible through a Data Direction Register at address 000016 and a Data Port Restister at address 000116. Even though the external bus has been tristated, the processor still has an active internal bus through which it can function off the internal RAM and communicate with the external world through the I/O port. Thus, in any system where handling block transfers is essential and high processor thorughput is desirable, the MPS 6508 will prove to be a wise choice. , . commodore V- aamlcandUCl;Dr g.-..p ©~@~ Application Brief # 10 FR208X THE 'MELODY' CHIP The FR208X is a musical chip that comes in several FR2084 Dual Tune Chip - Alternates versions. In essence, the 208X is capable of playing between tune A and tune B musical notes for up to about a minute. The chip can be each time the alarm triggers used either in a stand alone mode or with many the 2084 common alarm chips. In order to get longer tunes (i.e., greater than a minute), it is possible to cascade the chip with no interface logic being required. The FR208X is designed in metal gate C-MOS, and draws current in the low microampere range, while The main difference between the various versions of standby current is less that one microampere. This chip this chip are given below: should, therefore, find a comfortable place in the low VERSION FEATURE cost, low power consumer application market. FR2081 Single Tune Chip A list of all the standard tunes available can be FR2082 Dual Tune Chip - User obtained by contacting the factory. selects desired tune The figures below illustrate some simple ways of FR2083 Custom Dual Tune Chip using the melody chip. PIElO ELECTF.:C TRANSDUCER OSC OUT OSC OUT ../ S, OSC IN S· ~~C AL PIElO 208X 208X ELECTRIC lOOK TRANSDUCER AL AL AL AL NPN AL OUT IN OuT IN S, NPN DRIVE DIRECT DRIVE OSC OUT --/ S, OSCIN OSCIN OSCIN EOT EOT EOT • • • 208X 208X 208)<'. AL AL AL AL OUT IN IN IN +v NPN NPN NPN PIElO lOOK lOOK lOOK ELECTRIC TRANSDUCER CASCADING FEATURE 6-11 , . . , commodore ~ aemlcanduct:ar group ~~@~ Application Brief # 11 MPS 6508 HANDLING VECTORED INTERRUPTS In many microprocessor systems, handling multiple interrupts is an adventure into the realm of complex peripheral chips -- Priority Interrupt Controllers, Parallel I/O Devices and so on. The MPS 6508 offers a simple solution for the user who is conscious about his on board real estate. The 6508 has available on the chip, an eight bit I/O port, accessible through a Data Direction Register and a Data Port Register. This port can be configured very flexibly to handle a variety of interrupt processing. In this applications brief, we will consider Vectored Interrupts and Priority Control. Most systems that use a vectored interrupt structure work off a jump table for processing the interrupt. In such a case, the peripheral requesting the interrupt needs to supply only the low byte of the interrupt vector, the interrupt vector that resides at FFFE and FFFF being the base address of the jump table. The numberof I/O lines being dedicated as inputs will be a function of the numberof peripherals capable of requesting interrupt processing. Interrupt priority handling is a useful, if not essential part of any interrupt based system. Instead of using a complex and expensive peripheral for arbitration, the I/O port of the 6508 can be set up to do the job. After sensing an interrupt, the 6508 could read the port to see which peripherals were requesting an interrupt. Based on priority arbitration software, a few I/O lines programmed as outputs could then be used to indicate to the peripherals which one is being selected. From the above, we can immediately see the potential of the M PS 6508 and its wide application in many systems where low cost and board space are a premium. 6-12 , . . , commodore ~ BBIT1iconcluctoar group ~UYAJ@~ Application Brief # 12 - MPS 6525 A TWO IN ONE DEAL The M PS 6525 in its simplest form can be looked upon as a triport I/O chip. It provides the user with 24 I/O lines that can be programmed individually, organized as three 8 bit ports. The device is accessed through eight contiguous locations in the systems address space ... 3 Data Direction Registers, 3 Data Port Registers, a Control Register, and an Active Interrupt Register. This in itself provides the user with a chip that has more I/O capability than almost anything else available. However, the MPS 6525 does not stop there. Through a bit in the control register, the device can be set up to behave as an Interrupt Controller. In this mode, two ports are still dedicated to I/O while the third port is set up to handle upto five interrupts. The interrupt controller can be set up to be either prioritized or non prioritized. In the prioritized mode, through the use of a built in interrupt stack, the 6525 makes writing software a piece of cake. Also, when used as an interrupt controller, this device provides the user with two dedicated lines for handshaking ... one on data in and one on data out. What in essence this does is enable the user to replace two chips, the MC682 I (Peripheral Interface Adaptor) and the MC6828 (Priority Interrupt Controller) in most applications, thus giving him a reduction in both cost and space. n-13 I". ~ commodore semiconductor group ~UYAJ@~ Application Brief # 13 THE 6508 RAM - TWO PLACES AT ONCE? How can a processor have both page zero and page one with only 256 bytes of RAM? One way is to combine both pages into one, and this is what the 6508 does. On the 6508, the 256 bytes are actually located at 01 0016 to 01 FF16, or the normal 6500 family stack area. Internal logic decodes the zero page instructions so that they appear to begin at01 0216(01 0016 and 01 0116are used by the I/O port registers).Thestack area starts at 01 FF16 and grows down. Care must be taken so that the stack does not become large enough to overwrite the zero page area. This, however, is not a problem with most appl ications. Addressed Accessed as as 6500 01FF 01FF 6508 01FF STACK STACK ... --r--- } BOUNDR y DETERMI NED BY USER 0100 - - -~ ZERO PAGE ZERO PAGE 0002 0102 0001 OUTPUT REG 0101 0000 0000 DATA DIR REG 0100 6508 I ntemal RAM Memory Map 6-14 , . . commodore ~ aarnlcanductor group ~U((A]@~ Application Brief # 14 MPS 6500/1 E - EPROM APPLICATIONS The MPS 6500/1 E is the 64 pin emulator version of the MPS 6500/1 single-chip microcomputer. It is electrically identical except there is no ROM on-chip. The extra pins are used to connect to the internal processor bus so that external eproms may be used for system development. This brief presents two eprom connection schemes. Example 1 is a 2K 2716 version, while example 2 is a 3K 2732 application. Both schemes are designed with a minimum part count in mind. FFF 6500/IE 2716 800 A11 UNUSED 1FF RNI SYSTEM 000 Example 1 . 2716 EPROM (2k Bytes) FFF ...__------, 3071 6500/IE 2732 BYTES 400 1 - - - - - - 1 RNI UNUSED 1 FF 1 - - - - - - - 1 SYSTEM 000 ....._ _ _ ~ Example 2. 2732 EPROM (3k Bytes) 6-15 , . " , commodore ~ aernicandUCI:Dr group ~UYAJ@~ Application Brief # 15 MPS 6500/1 -- RAM MEMORY EXPANSION The MPS 6500/1 is a single-chip microcom- The example presented here will provide 1024 putercontaining 2K bytes of ROM and 64 bytes of bytes of RAM storage using two 2114's. No other RAM. The RAM is used for both data storage and hardware is needed. stack memory. In most applications, this is an adequate amount of memory; however, in some Some observations are noteworthy: cases, it may be desired to expand the RAM memory beyond 64 bytes. This brief describes a • Port A of the MPS 6500/1 is the first 8 bits of simple way to achieve this. the address for the RAM. All pins are outputs. • Port B of the M PS 6500/1 contains bits 8 and It is possible to attach conventional static 10 of the address; bits PBO and PB 1 res~­ RAMS directly to the MPS 6500/1 I/O lines and tively. Also, bit PB 7 is used to supply the Rm perform read and write operations with simple Signal to the memory. Pins PBO, PB1 and software steps. This approach will not work for PB7 are outputs; all other pins are free. stack expansion and cannot be adapted to pro- • Port C is used for the bi-{jirectional data bus. gram memory (ROM), since these elements require • The IT for 2114 is tied to system ground, so a direct connection to the processor busses. the memory is always enabled. RAM ADDRESS BUS O_C\l("'j~Lf') «««««««««« «««««««««« 2114 CE 2114 PAO I~ PAl a: PA2 PA3 PA4 PA5 PA6 PA7 PBO 6500/1 PBl ~---- PCO 1-i7i~.....--~ PCl PC2 PC3 ~=--­ PB7~~------------------~ PC4~~~ ________________ ~~~~ __________ ~ PC5 DATA BUS PeS PC7 Figure 1 - Schematic for 1 K Byte Expansion 6-16 , . . commodore ~ _mIcondUCl;ar group ~~@~ APPLICATIONS BRIEF :# 16 - SIMPLE CLOCK GENERATION FOR THE MPS 6500 MICROPROCESSOR FAMILY Clock generation for the M PS 6500 family microprocessor can easily be accomplished with only a handful of components by using one of the following circuits. Figure 1 illustrates a single phase clock. This clock can be used to drive the 6502,6503,6504, 6505,6506 and 6507. Figure 2 is a two-phase clock, which is used for the 6508, 6510,6512, 6513,6514 and 6515. 470 n 470n ~O 50 pF 1 MHz ( I() Figure 1 Single-Phase Clock' +5 v 1.5 k 470 n 470 n Device 1.5 k CD 7404 @ 74LS33 Figure 2 Two-Phase Clock +5 v , . . , commodore ~ -nconduct:ar group ©~@~ APPLICATIONS BRIEF CMOS/LCD WATCH-CLOCK CIRCUITS APPLICATION NOTE COMMODORE LOW POWER/LOW COST TIMEKEEPING COMPONENTS As one of the world's leading suppliers of state-of-the-art timekeeping circuits and LCD displays, Commodore introduces a new family of low power, low cost multiplexed components for watch, clock, and general timekeeping applications. COMMODORE/FRONTIER CMOS/LSI multiplexed timekeeping circuits operate from 1.3-1.7 volts with currents typically in the 1.0,uA-1.5,uA range. All parts have been designed for low cost and ease of application as well. The following is a brief description of available multiplexed circuits and matching LCD displays from COMMODORE OPTOELECTRONICS: PART NUMBER CMOS LCD DESCRIPTION 2224 5060,5061,5075 3% Digits 5 Functions 8220 5107,5108 4 Digits,S Functions 8221 5107,5108 4 Digits,S Functions, Stopwatch 8222 5102,5103 4 Digits, 6 Functions, (Day Flags) 8223 5102,5103 4 Digits, 6 Functions, Stopwatch 8267 5107,5108,5112 4 Digits,S Functions, Alarm 8268 5102,5103,5109 4 Digits, 6 Functions (Day Flags), Alarm 8668 5104 8 Digits,S Functions (Day Flags) 8868 5104 8 Digits, 6 Functions, Alarm 887X I n Development 8 Digits,S Functions, Alarm, Day Flag, Programmable Animation Note: All products have 12/24 HR option excepting 2224. All Alarms have Snooze feature. R-1 A APPLICATIONS BRIEF PRODUCT DESCRIPTIONS: 1. 2224 - 3112 digits and 5 functions (Hours: Minutes, Month, Date,: Seconds). This circuit is the most basic unit available. One button controls the viewing of the three sets of information; the use of another button allows for setting. Typical current drain is less than 1.OP.A operating with a watch display. Applications utilizing larger displays will tend to draw somewhat greater current. This part has a total of 27 pins. Some available Commodore displays for this part are: 5060 B Ladies' Watch Display 5061 E Men's Watch Display 5075 A Smaller display for miniature applications such as LCD pens. 2. 8220-4 digits and 5 functions with 12/24 hour option. T~e part functions similar to the 2224; 24 hour (military) time format option is present. This part has a total of 30 active pins. Some available Commodore displays for this part are: 5107 B Ladies' Watch Display 5108 E Men's Watch Display 3. 8221 - 4 digits and 5 functions with 1 second accuracy stopwatch and 12/24 hour option. The stopwatch is accessible by use of a third switch and measures elapsed time. The part otherwise operates like a two switch 8220. This part has a total of 30 active pins. The available displays are the same as for 8820. 4. 8222 - 4 digitsand6 functions(Hours: Minutesand Day of Week Flags, Month Dateand Day of Week Flags, and: Seconds with Day Flags). The part operates like an 8220 with the addition of the Day indicators for the sixth function. The part has a total of 33 pins. Some available Commodore displays for this part are: 5102 E Men's Watch Display 5103 C Ladies' Watch Display 5. 8223 - 4 digits and 6 functions with 1 second accuracy Stopwatch and 12/24 hour option. This part operates like the 8221 with the addition of the Day indicators for the sixth function. The part has a total of 33 pins. The available displays are the same as for 8222. 6. 8268/8368 - 4 digits, 6 functions with Alarm, Day Flags, and 12/24 hour option. This part operates as a simple two button Alarm watch or clock The Alarm functions (viewing, setting and arming/disarming) are extremely simple and modeled after other popular Commodore Alarm chips. This part has a total of 34 active pins. Note: The 8368 will be identical to the 8268 except that the 3 second delay entering the set mode will be eliminated. Some available commodore displays for this part are: 5102 E Men's Watch Display 5103 C Ladies' Watch Display 5109 C Ladies' Watch Display R-1 Q APPLICATIONS BRIEF 7. 8267/8367 - 4 digits, 5 function with Alarm and 12/24 hour option. The part operates like the 8268/8368 with no Day Flags; it has 31 active pins. The available displays are: 5107 B Ladies' Watch Display 5108 E Men's Watch Display 5112 AA Miniature Pen Display 4003 K Large Digit Clock Display 4006 L Large Digit Clock Display 4007 N Large Digit Clock Display 8. 8668 - 8 digits 5 functions with 12/24 hour option. This watch displays Hours: Minutes, Seconds, Date and Day of Week Flags simultaneously. This type of timepiece has been dubbed" No Hands" because all essential functions are displayed simultaneously. The part has a total of 44 pins. Some available commodore displays for this part are: 5104 I Men's Watch Display 9. 8868 - 8 digits 6 functions with alarm, Snooze and 12/24 hour option. This part displays all information of the 8668 "No Hands" with the additional feature of an Alarm. The Alarm is operated in a manner identical t08267 and8268. The part has a total of46 pins. Theavailable display is the same as for the 8668. 10. 887 X - 8 digits, 5 functions with Alarm and 7 programmable flags for Animation. The chip will allow the design of very novel and unique products combining LCD animated motion under switch or alarm control with time. Toys, watches, clocks, promotional items etc. are among the many target markets. This part has a total of 46 pins. The implementation of any of the above circuits is illustrated in Figure 1. Note that fundamental timekeeping is accomplished with the following basic parts: A. 1 chip on PC Board B. 1 LCD Display C. 1 32 KHZ Quartz Crystal D. 3 Capacitors E. 1 Trimmer Cap F. 2 Switches G. 1-2 "Zebra" interconnecting Strips H. 1 1.5-1.6V Battery The addition of an Alarm can be accomplished with as little as a piezo electric transducer. The addition of an NPN transistor and coil allows the Alarm sound to be greatly enhanced. Musical alarms are also possible with the addition of the208X. APPLICATIONS BRIEF FIG'IRE I TYPIC41 LCD TIME SYSTEM With all of the above products, the dramatic advances in technology and high volumes inherent in the timekeeping industry allow the potential introduction of Time with multi-features into numerous new, low cost applications. A few such applications are: 1. LCD Clocks for automotive accessories having Alarm or Stopwatch for trip timing. 2. LCD Alarm Clocks as an added feature cooking aid for outdoor BBQ/Gas grills. 3. Low cost time functions for games. 4. l.ow cost time functions for telephones; stopwatch for timing long distance calls. 5. l.ow cost time functions for appliances (e.g. Radios, TV, Stereo equipment etc.). 6. Timekeeping promotional items (e.g. paper weights, penholders etc.). This field may be especially good for watches with "customized" musical alarms which play music such as company or product theme songs. Although the above circuits and displays are most commonly available and utilized in die form on hybrid circuit substrates, Commodore will gladly quote the above components in any form suitable to the customer(i.e. raw die or packaged parts} Inquiries regarding special applications for chips and/or LCD displays are always welcomed. In any form, Commodore's many years of experience and long term dedication to the field of timekeeping are assurance of continuing competitive, cost-effective products. COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or design. COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. = Representatives and Distributors ©(Q)0lfi) 0lfi)(Q)@(Q)[f® ©(Q)0lfi) 0lfi)(Q)@(Q)[f® ©(Q)0lfi) 0lfi)(Q)@(Q)[f® ©(Q) Olfi) 0lfi)(Q)@(Q)[f® ©(Q) Olfi) 0lfi)(Q)@(Q)[f® ©(Q)mm(Q)@(Q)[f® ©(Q)mm(Q)@(Q)[f® ©(Q)0lfi) 0lfi)(Q)@(Q)[f® ©(Q) Olfi) 0lfi)(Q)@(Q)[f® ©(Q) Olfi) 0lfi)(Q)@(Q)[f® ©(Q) Olfi) 0lfi)(Q)@(Q)[f® ©(Q) Olfi) 0lfi)(Q)@(Q)[f® ©(Q) Olfi) 0lfi)(Q)@(Q)[f® ©(Q)0lfi) 0lfi)(Q)@(Q)[f® commodore semiconductor group , . . commodore ~ aamicanduct:ar group ~~~~~®~~u&uDW~® Connecticut Massachusetts Sales Engineering Co. Rhode Island P.O. Box 863 Vermont 153 Main St. Maine Salem, NH 03079 New Hampshire (603) 893-5521 Minuteman Marketing, Inc. 279 Cambridge Street Upstate New York 1 Colonial Park, Suite 102 Techmark/Upstate Assoc. Burlington, MA 01803 P.O. Box 173 (617) 272-0035 Mendon, NY 14506 (716) 624-3840 Pennsylvania South New Jersey Techmark/Upstate Assoc. The Rep Force 2 Andrews Way 18 East Commerce Street, Suite A Canandaigua, NY 14425 Bridgeton, NJ 08302 (716) 396-2498 (609) 455-0891 Techmark/Upstate Assoc. P.O. Box 120 Florida Endicott, NY 13760 HAl (607) 748-7473 10212 W. Sample Road Coral Springs, FL 33065 Metro New York (305) 752-7520/7550 North New Jersey HAl J-Square Marketing, Inc. 10312 136 Street North P.O. Box 103 Largo, FL 33540 Jericho, NY 11753 (813) 595-8170 (516) 935-3200 North Carolina Delaware South Carolina Maryland East Tennessee Washington, D.C. Virginia Component Sales, Inc. West Virginia P.O. Box 18821 Raleigh, NC 27609 Component Sales, Inc. (919) 782-8433 3701 Old Court Rd. #14 Baltimore, MD 21208 Missouri (301) 484-3647 Kansas Nebraska Southern illinois Iowa R&D Sales, Inc. 13013 St. Andrews Drive Kansas City, MO 64145 (816) 941-9280 Michigan (except Berrien County) Northern California Ohio Criterion Jim Finnegan and Co. 3350 Scott Boulevard P.O. Box 8825 Building #44 Cleveland, OH 44136 Santa Clara, CA 95051 (216) 238-5905 (408) 988-6300 Jim Finnegan and Co. Colorado 1236 Clubview Blvd. High Tech Associates Worthington, OH 43085 2950 S. Jamaica Court, Suite 100 (614) 436-7227 Aurora, CO 80014 Jim Finnegan and Co. (303) 695-1900 5527 Fawn Court West Chester, OH 45069 New Mexico (513) 874-5937 SynTech 8016-A Zuni Road SE Texas Albuquerque, NM 87108 Louisiana (505) 266-7951 Arkansas Oklahoma Oregon W. Pat Fralia Company Washington 600 Avenue H. East, Suite 210 W.ldaho Arlington, TX 76011 Quest (817) 640-9101 15 S. Grady Way, Suite 203 Kenton, WA 98055 W. Pat Fralia Company (206) 223-1541 300 E. Huntland Blvd., Suite 210 Huntland Professional Building Quest Austin, TX 78752 6220 S. W. 130th, #10 (512) 451-3325 Beaverton, OR 97005 (503) 644-8077 W. Pat Fralia Company 4411 Bluebonnett Vancouver, B.C. Stafford, TX 77477 (713) 491-9336 Conti Electronics 7204 Main Street N.lll1nols Vancouver, BC Wisconsin Canada V5X 3J4 Michigan (Berrien County only) (604) 324-0505 Janus, Inc. 3166 Des Plaines Avenue Des Plaines, IL 60018 (312) 298-9330 Janus, Inc. 11430 W. Blue Mound Road Milwaukee, WI 53226 (414) 476-9104 7-::J Southern California SC3 14101 Yorba Street, Suite 104 Tustin, CA 92680 (714) 731-9206 SC3 240 Lombard Street Thousand Oaks, CA 91360 (805) 496-7307 Arizona Semi-System's 10333 N. Scottsdale Road, Suite 1 Scottsdale, AZ 85253 (602) 991-1151 Alabama Mississippi West Tennessee BJR Manufacturers Representatives 12021 S. Memorial Parkway, Suite 0 Huntsville, AL 35803 (205) 881-3569 Kentucky Indiana Wilson Technical Sales, Inc. p. O. Box 40699 Indianapolis, IN 46240 (317) 259-4032 North Dakota South Dakota Minnesota Electric Component Sales 8700 W. 36th Street Minneapolis, MN 55426 (612) 933-2594 , . . commodore ~ aerniconduct:or group [Q)O~u~O [ID(lJJu@~~ - Southern California Washington VSI Electronics, Inc. Shannon Ltd. 3137 W. Warner Ave. 7030 S. 188th St. Santa Ana, CA 92704 Kent, WA 98031 (213) 299-7760 or, (206) 763-0545 (714) 557-7131 New Jersey Mouser Electronics 11433 Woodside Ave. Falk Baker Associates Lakeside, CA 92040 382 Franklin Ave. (714) 449-2220 Nutley, NJ 07110 (201) 661-2430 NESCO 7110 Gerald Ave. New Hampshire Van N uys, CA 91406 (213) 781-0505 Astrum Electronics, Inc. Village Square Northern California Rt. #111 VSI Electronics, Inc. Hampstead, NH 03841 543 Weddell Dr. (603) 329-5656 Sunnyvale, CA 94086 (408) 734-5470 Connecticut Western Microtechnology Cobra Components, Inc. 10040 Bubb Rd. 53 Water St. Cupertino, CA 95014 Norwalk, CT 06854 (408) 725-1660 (203) 853-8228 Central California Nevada VSI Electronics 8259 Canyon Rd. Citrus Heights, CA 95610 (916) 722-8060 Arizona Western Microtechnology 7740 E. Redfield Dr. Suite 105 Scottsdale, AZ 85260 (602) 948-4240 7.r::. NATIONAL SALES OFFICE: 3330 Scott Boulevard Santa Clara, CA 95051 Attention: Howard Sharek (408) 727-1130 MOS Technology A Commodore Company