





Intel Corporation makes no warranty for the use of its products and assumes no responsibility for any errors which may appear in this document nor does it make a commitment to update the information contained herein.
Intel software products are copyrighted by and shall remain the property of Intel Corporation. Use, duplication or disclosure is subject to restrictions stated in Intel's software license, or as defined in ASPR 7·104.9 (a) (9). Intel Cor· poration assumes no responsibility for the use of any circuitry other than circuitry embodied. in an Intel product. No other circuit patent licenses are implied.
No part of this document may be copied or reproduced in any form or by any means without the prior written consent of Intel Corporation.
The following are trademarks of Intel Corporation and may only be used to identify Intel products:
BXP Intelevision MULTIBUS* CREDIT Intellec MULTIMODULE i iSBC PROMPT ICE iSBX Promware ICS Library Manager RMX im MCS UPI Insite Megachassis flScope Intel Micromap
and the combinations of ICE, iCS, iSBC, MCS or RMX and a numerical suffix.
MDS is an ordering code only and is not used as a product name or trademark. MDS® is a registered trademark of Mohawk Data Sciences Corporation.
*MULTIBUS is a patented Intel bus.
Additional copies of this manual or other Intel literature may be obtained from:
Literature Department Intel Corporation 3065 Bowers Avenue Santa Clara, CA 95051




MCS-48™ Component Specifications 8048H/8048H-1/8035HU8035HL-1 HMOS Single Component 8-Bit Microcomputer 6-1 8048L Special Low Power Comsumption Single Component 8-Bit Microcomputer 6-8 8048/8035U8748/8748-6/8035 Single Component 8-Bit Microcomputer 6-9 108048/8748/8035L Industrial Temperature Range Single Component 8-Bit Microcomputer 6-18 M8048/M8748/M8035L Single Component 8-Bit Microcomputer 6-27 New High Performance 8049/8039/8039-6 Single Component 8-Bit Microcomputer 6-36 New High Performance 18049/8039 Single Component 8-Bit Microcomputer 6-41 8021 Single Component 8-Bit Microcomputer 6-48 8022 Single Component 8-Bit Microcomputer With On-Chip NO Converter 6-51 8243 MCS-48™ Input/Output Expander 6-57 108243 MCS-48™ Input/Output Expander 6-63 8355/8355-2 16,384-Bit ROM With I/O 6-69 8755A 16,384-Bit EPROM With I/O 6-74 8155/8156/8155-2/8156-22048 Bit Static MOS RAM With I/O Ports and Time 6-82 8185/8185-21024 x 8-Bit Static RAM for MCS-85™ 6-96
MCS-S1TM Component Specification 8051/8751/8031 Microcomputer ................................. " .............................. 7-1
CHAPTERS
Compatible MCS-48™ Components 2114A 1024 x 4-Bit Static RAM 8-1 2316E 16K (2K x 8) ROM " 8-5 2708 8K (1 K x 8) UV Erasable PROM 8-8 2716 16K (2K x 8) UV Erasable PROM 8-12 2732A 32K (4K x 8) UV Erasable PROM 8-17 8205 High Speed 1 out of 8 Binary Decoder 8-18 8212 8-Bit Input/Output Port '" 8-24 8214/3214 Priority Interrupt Control Unit 8-34 8216/8266 4-Bit Parallel Bidirectional Bus Driver " 8-38 8282/8283 Octal Latch 8-43 8286/8287 Octal Bus Transeiver 8-48
Peripherals 8251A/S2657 Programmable Communication Interface 9-1 8253/8253-5 Programmable Interval Timer 9-6 8255A/8255A-5 Programmable Peripheral Interface 9-17 8259A Programmable Interrupt Controller 9-38 8272 Single/Double Density Floppy Disk Controller 9-51 8273,8273-4,8273-8 Programmable HDLC/SDLC Protocal Controller 9-67 8279/8279-5 Programmable Keyboard/Display Interface 9-70 8291 GPIB Talker/Listener 9-82 8292 GPIB Controller '" 9-106 8293 GPIB Transceiver , 9-108 8294 Data Encryption Unit '" " 9-121 8041 N8641N8741 A Universal Peripheral Interface 8-Bit Microcomputer 9-123


Support Products Model 22SIntellec Series II 10-1 Intellec Prompt 48 MCS-48™ Microcomputer Design Aid 10-6 ICE-49 MCS-48™ In-Circuit Emulator 10-12 EM1 8021 Emulation Board 10-16 EM2 8022 emulation Board 10-19 UPP-103 Universal PROM Programmer 10-22 SP-49 10-24 Insite User's Library 10-26
Packing Information .......................................................................... A1-1 Ordering Information ......................................................................... A2-1








microcomputer. A single 5V supply re- quirement for all MCS-48 components assures that "low cost" also applies to the power supply in your system.
Recent advances in NMOS technology have allowed Intel for the first time to place enough .capability on a single silicon die to create a true single-chip microcomputer containing all the functions required in a
digital processing system. A set of such microcomputers on single chips, their variations, and optional peripherals are collectively called the MCS-48 micro- computer family. These products are fully described in this manual.
The MCS-48 family of microcomputers which began with the 8048 and 8748 has now been expanded with new members which provide either more capability or lower cost than the original family mem- bers. While broadening the applications possible with a single chip microcomputer, these new microcomputers share both the
microcomputer which contains the following functions in a single 40 pin package:
instruction set and development support of the 8048.
8-Bit CPU 1 K x 8 ROM Program Memory 64 x 8 RAM Data Memory 27 I/O Lines 8-Bit Timer/Event Counter
The 8049 is a single-chip microcomputer which is completely interchangeable with the 8048, but contains twice the program memory and twice the data memory of the 8048.
A 2.5 or 5.0 microsecond cycle time and a repertoire of over 90 instructions, each consisting of either one or two cycles, makes the single chip 8048 the equal in performance of most presently available multi-chip NMOS microprocessors. The 8048 is, however, a true "low-cost"
The 8022 is an 8021-based microcomputer with additional memory, 1/0, and an AID converter.
The 8021 is a new very low cost MCS-48 family member which contains a subset of
~ ~ ~ 8·BIT CPU 1Kx8 1Kx 8 2Kx8 PROGRAM MEMORY 64x8 64x8 64x 8 DATA RAM
~ 2Kx8 128x 8
~ ~ ~ TIMER COUNTER
~ ~ ~ OSCILLATOR AND CLOCK
~ ~ ~ RESET CIRCUIT
~ ~ INTERRUPT
ON CHIP FEATURES


the 8048's instruction set and incorporates several new features critical in low cost applications. Even with low component costs, however, a project may be jeopardized by high develop- ment and rework costs resulting from an inflexible production design. Intel has solved this problem by creating two pin-compatible
For such applications as Keyboards, Dis- plays, Serial communication lin~s, etc. standard MCS-80/85 peripheral circuits may be added. Program and data memory may be expanded using standard memories or the 8355 and 8155 memories that also include programmable I/O lines and timing functions.
versions of the 8048 microcomputer: the 8048 with mask Programmable ROM pro- gram memory for low cost production and the 8748 with user programmable and erasable EPROM program memory for prototype development. The 8748 is essen- tially a single chip microcomputer "bread- board" which can be modified over and over again during development and pre-produc- tion then replaced by the low cost 8021 *, 8048, or 8049 ROM for volume production. The 8748 provides a very easy transition from development to production and also provides an easy vehicle for temporary field updates while new ROMs are being made.
For applications which require a more custom tailored interface, the 8041 or 8741 Universal Peripheral Interface (UPI-41) devices can be used. The UPI-41 devices are available in both ROM and EPROM versions and are essentially slave versions
of the 8048/8748 which are designed to interface directly with expandable MCS-48 processors and provide flexible intelligent I/O capability. The 8041/8741 share the instruction set of the MCS-48 family of processors.
respectively without internal program memory that allows the user to match his program memory requirements exactly by using a wide variety of external memories. The 8035 and 8039 allow the user to select a minimum cost system no matter what his program memory reo quirements. The 8035L is an 8035 with the powerdown mode of the 8048.
The MCS-48 processors are designed to be efficient control processors as well as arithmetic processors. They provide an instruction set which allows the user to directly set and reset individual lines within its 1/0 ports as well as test individual bits within the accumulator. A large variety of branch and table look-up instructions l11ake these processors very efficient in implementing standard logic functions. Also, special attention has been given to code efficiency. Over 70% of the instruc- tions are a single byte long and all others are only two bytes long. This means many functions requiring 1.5K to 2.0K bytes in other computers may very well be com- pressed into the 1 K words resident in the 8048 or up to 3K to 4K equivalent bytes may be compressed into the 8049.
To allow the MCS-48 to solve a wide range of problems and to provide for future expansion, all 8048 and 8049 functions have been made externally expandable using either special expanders or standard memories and peripherals. An efficient low cost means of I/O expansion is provided by either the 8243 I/O Expander or standard TTL or CMOS circuits. The 8243 provides 16 1/0 lines in a 24 pin package. For sys- tems with large 1/0 requirements, multiple 8243s can be used.
*The 8021 is code compatible but not pin compatible with the 8748. 1·2


Microcomputers 8021 ~~ :g~ :~~~~:~ ~:~~~ with AID } 10 I'sec Cycle
Compatible versions of the 8022 single chip microcomputers pro· 8048 1K ROM Program Memory f vide mask programmed, light 8035 No Program Memory 64 x 8 RAM 2.5 I'sec Cycle erasable, or no internal program 8035L 8035 with Power Down Mode memory.
::Ii 8049 2K ROM Program Memory } 1.36 I'sec Cycle I- 8039 No Program Memory 128 x 8 RAM '" ~ 8748-8 1 K EPROM Program Memory } 5.0 I'sec Cycle til 0 8035-8 No Program Memory :::Ii 8748-6 1K EPROM 0°C-55°C, 6 MHz
Memory and I/O 8355 2K x 8 ROM with 16 I/O Lines Compatible devices allow direct Expanders 8755A 2K x 8 EPROM with 16 110 Lines expansion of MCS-48 functions 8155/56 256 x 8 RAM with 22 I/O Lines and Timer with no additional external com· 8185 1Kx 8HAM ponents.
I/O Expander 8243 16 Line I/O Expander Low cost I/O expander.
Standard ROMs 2308 1Kx8 450 ns Allows low cost external expan· 2316E 2Kx8 450 ns sion of Program Memory. Each 2332 4Kx8 450 ns ROM is interchangeable with an EPROM.
Standard EPROMs 2708 1Kx8 450 ns Light Erasable User programmable and eras· 2716 2Kx8 450 ns Light Erasable able. 2732 4Kx8 450 ns Light Erasable
Standard RAMs 2111A-4 256x4 450 ns Common I/O Data memory can be easily ex·
!II 2101A-4 256x4 450 ns Separate I/O panded using standard NMOS RAMs . z w Z 0 II.. :::Ii Standard I/O 8212 8-B it I/O Port Serves as Address Latch or I/O 0 port. 0 ::Ii 8255A Programmable Peripheral Interface Three 8-bit programmable 110 I-
8251A Programmable Communication Interface Serial Communications Receiv· til er/Transmitters. 0 :::Ii 8273 Programmable HDLC/SDLC Controller w I Standard Peripherals 8205 1·of-8 Binary Decoder MCS-80 peripheral devices are III i= 8214 Priority Interrupt Controller compatible with the MCS-48, al· et 8216 Bidirectional Bus Driver lowing easy addition of such II.. :;; 8226 Bidirectional Bus Driver (Inverting) specialized interfaces as the 0 0 8253 Programmable Interval Timer 8279 Keyboard/Display Interface. 8279/78 Programmable Keyboard/Display Interface Future MCS-80/85 devices will (64 Keys/128 Keys) also be compatible. 8291 GPIB Talker/Listener 8294 Data Encryption Unit 8295 Dot Matrix Printer Controller
·Universal Peripheral 8041A ROM Program Memory User programmable to perform Interface 8741A EPROM Program Memory any custom I/O and control func· tions.


8049 8049 8155 8155 835&
8048 8048 8155 8355 8155
(24) (24) (28) (28)
PROGRAM MEMORY (ROM)
( ) NUMBER OF AVAILABLE
1/0 LINES
THE EXPANDED MCS-48™ SYSTEM
The chart above shows the expansion possibilities using the 8048 and 8049 in various combinations with the Intel® 8355/ 8755 Program Memory and I/O Expander and the 8155 Data Memory and I/O Expander. Data Memory can be expanded beyond the resident words in blocks of 256
by adding 8155's. Program Memory can be expanded beyond the resident 1 K or 2K in blocks of 2K by using the 8355/8755 in com- bination with the 8048 or 8049. If all external memory is desired, the 8035 or 8039 can be substituted for the 8048 and 8049.
8049 8049 8355 · 8048 8048 8355


1.1 The Function of a Computer This chapter introduces certain basic com- puter concepts. It provides background information and definitions which will be useful in later chapters of this manual. Those already familiar with computers may skip this material, at their option.
printer, to a peripheral storage device, such as a floppy disk· unit, or the output may constitute process control signals that direct the operations of another system, such as an automated assembly line. Like input ports, output ports are addressable. The input and output ports together permit the processor to communicate with the outside world.
The CPU unifies the system. It controls the functions performed by the other compon- ents. The CPU must be able to fetch instructions from memory, decode their binary contents and execute them. It must also be able to reference memory and I/O ports as necessary in the execution of instructions. In addition, the CPU should be able to recognize and respond to certain external control signals, such as INTER-
A central processor unit (CPU) Program Memory Data Memory Input/output (I/O) ports
The processor memory serves as a place to store Instructions, the coded pieces of information that direct the activities of the CPU, while Memory stores the Data, the coded pieces of information that are processed by the CPU. A group of logically related instructions stored in memory is referred to as a Program. The CPU "reads" each instruction from memory in a logically determined sequence, and uses it to initiate processing actions. If the program sequence is coherent and logical, processing the program will produce intelligible and useful results. The program must be organized such that the CPU does not read a non-instruction word when it expects to see an instruction.
RUPT requests. The functional units within a CPU that enabl~ it to perform these functions are described below.
A typical central processor unit (CPU) consists of the following interconnected functional units:
Registers are temporary storage units within the CPU. Some registers, such as the program counter and instruction register, have dedicated uses. Other registers, such as the accumulator, are for more general purpose use.
The CPU can rapidly access any data stored in memory; but often the memory is not large enough to store the entire data bank required for a particular application. The problem can be resolved by providing the computer with one or more Input Ports. The CPU can address these ports and input the data contained there. The addition of input ports enables the computer to receive information from external equipment (such as a paper tape reader or floppy disk) at high rates of speed and in large volumes.
The accumulator usually stores one of the operands to be manipulated by the ALU. A typical instruction might direct the ALU to add the contents of some other reg ister to the contents of the accumulator and store the result in. the accumulator itself. In general, the accumulator is both a source (operand) and a destination (result) register. Often a CPU will include a number of additional general purpose registers that can be used to store operands or intermediate data. The availability of general purpose registers
A computer also requires one or more Output Ports that permit the CPU to communicate the result of its processing to the outside world. The output may go to a display, for use by a human operator, to a peripheral device that produces "hard-copy", such as a line-
1·5


eliminates the need to "shuffle" intermediate results back and forth between memory and the accumulator, thus improving processing speed and efficiency.
this kind of jump, the pJOcessor is required to "remember" the contents of the program counter at the time that the jump occurs. This enables the processor to resume execution of the main program when it is finished with the last instruction of the subroutine.
A Subroutine is a program within a program. Usually it is a general-purpose set of instructions that must be executed repeat- edly in the course of a main program. Routines which calculate the square, the sine, or the logarithm of a program variable are good examples of functions often written as subroutines. Other examples might be programs designed for inputting data to a particular peripheral device.
The instructions that make up a program are stored in the system's memory. The central processor references the contents of mem- ory in order to determine what action is appropriate. This means that the processor must know which location contains the next instruction.
Each of the locations in memory is numbered, to distinguish it from all other locations in memory. The number which identifies a memory location is called its Address. The processor maintains a counter which contains the address of the next program instruction. This register is called the Program Counter. The processor up- dates the program counter by adding "1" to the counter each time it fetches an instruction, so that the program counter is always current (pointing to the next instruc- tion).
The processor has a special way of handling subroutines, in order to insure an orderly return to the main program. When the processor receives a Call instruction, it increments the Program Counter and stores the counter's contents in a reserved memory area known as the Stack. The Stack thus saves the address of the instruction to be executed after the subroutine is completed. Then the processor loads the address specified in the Call into its Program Counter. The next instruction fetched will therefore be the first step of the subroutine.
The programmer therefore stores his instruc- tions in numerically adjacent addresses, so that the lower addresses contain the first instructions to be executed and the higher addresses contain later instructions. The only time the progrl:immer may violate this sequential rule is when an instruction in one section of memory is a Jump instruction to another section of memory.
Return. Such an instruction need specify no address. When the processor fetches a Return instruction, it simply replaces the current contents of the Program Counter with the address on the top of the stack. This causes the processor to resume execution of the calling program at the point immediately following the original Call instruction.
A jump instruction contains the address of the instruction which is to follow it. The next instruction may be stored in any memory location, as long as the programmed jump specifies the correct address. During the execution of a jump instruction, the proces- sor replaces the contents of its program counter with the address embodied in the Jump. Thus, the logical continuity of the program is maintained.
Subroutines are often Nested; that is, one subroutine will sometimes call a second subroutine. The second may call a third, and so on. This is perfectly acceptable, as long as the processor has enough capacity to store the necessary return addresses, and the
logical provision for doing so. In other words, the maximum depth of nesting is determined
A special kind of program jump occurs when the stored program "Calls" a subroutine. In
by the depth of the stack itself. If the stack has space for storing three return addresses, then
1·6


three levels of subroutines may be ac- commodated.
signals that can then be used to initiate specific actions. This translation of code into action is performed by the Instruction Decoder and by the associated control circuitry.
Every computer has a Word Length that is characteristic of that machine. A computer's word length is usually determined by the size of its internal storage elements and intercon- necting paths (referred to as Buses); for example, a computer whose registers and buses can store and transfer 8-bits of information has a characteristic word length of 8-bits and is referreq to as an 8-bit parallel processor. An 8-bit parallel processor gener- ally finds it most efficient to deal with 8-bit binary fields, and the memory associated with such a processor is therefore organized to store 8-bits in each addressable memory location. Data and instructions are stored in memory as 8-bit binary numbers, or as numbers that are integral multiples of 8-bits: 16-bits, 24-bits, and so on. This characteristic 8-bit field is often referred to as a Byte. If however, efficient handling of 4 or even 1-bit data is necessary special processor instruc- tions can provide this capability.
An 8-bit instruction code is often sufficient to specify a particular processing action. There are times, however, when execution of the instruction requires more information than 8- bits can convey.
One example of this is when the instruction references a memory location. The basic instruction code identifies the operation to be performed, but cannot specify the object address as well. In a case like this, a two byte instruction must be used. Successive instruc- tion bytes are stored in sequentially adjacent memory locations, and the processor per- forms two fetches in succession to obtain the full instruction. The first byte retrieved from
memory is placed in the prbcessor's instruc- tion register, and subseq!Jent byte is placed in temporary storage; t~e processor then proceeds with the executiol1 phase.
Each operation that the processor can perform is identified by a unique byte of data known as an Instruction Code or Operation Code. An 8-bit word used as an instruction code can distinguish between 256 alternative actions, more than' adequate for most processors.
A CPU may use a register to hold the address of a memory location that is to be accessed for data. If the address register is Program- mable, (Le., if there are instructions that allow the programmer to alter the contents of the register) the program can "build" an address in the address register prior to executing a Memory Reference instruction (Le., an instruction that reads data from memory, writes data to memory or operates on data stored in memory).
The processor fetches an instruction in two distinct operations. First, the processor transmits the address in its Program Counter to the program memory. Then the program
memory returns the addressed byte to the processor. The CPU stores this instruction byte in a register known as the Instruction Register, and uses it to direct activities during the remainder of the instruction execution.
All processors contain an arithmetic/logic unit, which is often referred to simply as the ALU. The ALU, as its name implies, is that portion of the CPU hardware which performs the arithmetic and logical operations on the
The 8-bits stored in the instruction register can be decoded and used to selectively activate one of a number of output lines. Each line represents a set of activities associated with execution of a particular instruction code. The enabled line can be combined with selected timing pulses, to develop 'el'ectrical
binary data.
The ALU must contain an Adder which is capable of combining the contents of two registers in accordance with the logic of binary arithmetic. This provision permits the
1·7


processor to perform arithmetic manipu- lations on the data it obtains from memory and from its other inputs.
fetches the next instruction, and so on. This orderly sequence of events requires precise timing, and the CPU therefore requires a free
running oscillator clock which furnishes the reference for all processor actions. The combined fetch and execution of a single instruction is referred to as an Instruction Cycle. The portion of a cycle identified with a clearly defined activity is called a State. And the interval between pulses of the timing oscillator is referred to as a Clock Period. As a general rule, one or more clock periods are necessary for the completion of a state, and there are several states in a cycle.
Using only the basic adder a capable programmer can write routines which will subtract, multiply and divide, giving. the machine complete arithmetic capabilities. In practice, however, most ALUs provide other built-in functions, including boolean logic operations, and shift capabilities.
The ALU contains Flag Bits which specify certain conditions that arise in the course of arithmetic and logical manipulations. It is possible to program jumps which are conditionally dependent on the status of one or more flags. Thus, for example, the program may be designed to jump to a special routine if the carry bit is set following an addition instruction.
The first state(s) of any instruction cycle will be dedicated to fetching the next instruction. The CPU issues a read signal and the contents of the program counter are sent to program memory, which responds by returning the next instruction word. The first byte of the instruction is placed in the instruction register. If the instruction con- sists of more than one byte, additional states are required to fetch the second byte of the instruction. When the entire instruction is present in the CPU, the program counter is incremented (in preparation for the next instruction fetch) and the instruction is decoded. The operation specified in the instruction will be executed ih the remaining states of the instruction cycle. The instruc- tion may call for a data memory read or write, an input or output and/or an internal CPU operation, such as a register-to-register transfer or an add operation.
The control circuitry is the primary functional unit within a CPU. Using clock inputs, the control circuitry maintains the proper se- quence of events required for any processing task. After an instruction is fetched and decoded, the control circuitry issues the appropriate signals (to units both internal and external to the CPU) for initiating the proper processing action. Often the control circuitry will be capable of responding to external signals, such as an interrupt. An
Interrupt request will cause the control circuitry to temporarily interrupt main pro- gram execution, jump to a special routine to service the interrupting device, then auto- matically return to the main program.
An instruction fetch is merely a special program memory read operation that brings the instruction to the CPU's instruction register. The instruction fetched may then call for data to be read from data memory into the CPU. The CPU again issues a read signal and sends the proper memory address; memory responds by returning the requested word. The data received is placed in the accumulator or one of the other geheral purpose registers (not the instruc- tion register).
There are certain operations that are basic to almost any computer. A sound understand- ing of these basic operations is a necessary prerequisite to examining the specific operations of a particular computer.
The activities of the central processor are cyclical. The processor fetches an instruc- tion, performs the operations required,


Memory Write A memory write operation is similar to a read except for the direction of data flow. The CPU issues a write signal, sends the proper memory address, then sends the data word to be written into the addressed data memory location.
the processor's efficiency. Consider the case of a computer that is processing a large volume of data, portions of which are to be output to a printer. The CPU can output a byte of data within asingle machine cycle but it may take the printer the equivalent of many machine cycles to actually print the char- acter specified by the data byte. The CPU could then remain idle waiting until the printer can accept the next data byte. If an interrupt capability is implemented on the computer, the CPU can output a data byte then return to data processing. When the printer is ready to accept the next data byte, it can request an interrupt. When the CPU acknowledges the interrupt, it suspends main program execution and automatically branches to a routine that will output the next data byte. After the byte is output, the CPU continues with main program execution. Note that this is, in principle, quitesimilarto a subroutine call, except that the jump is initiated externally rather than by the program.
Input/Output Input and Output operations are similar to memory read and write operations with the exception that an I/O port is addressed
instead of a memory location. The CPU issues the appropriate input or output control signal, sends the proper address and either receives the data being input or sends the data to be output.
Data can be input/output in either parallel or serial form. All data within a digital computer is represented in binary coded form. A binary data word consists of a group of bits; each bit is either a one or Ii zero. Parallel I/O consists of transferring all bits in the word at the same time, one bit per line. Serial I/O consists of transferring one bit at a time on a single line.
More complex interrupt structures are possible, in which several interrupting devices share the same processor but have different priority levels. Interruptive proces- sing is an important feature that enables maximum utilization of a processor's capa- city for high system throughput.
Naturally serial I/O is much slower, but it requires considerable less hardware than does parallel I/O.
Interrupts Interrupt provisions are included on many central processors, asa means of improving
1·9


counts the number of words to be stored. When finished the processor continues on to the next instructions.
1.2.1 Machine Language Programming
A microprocessor is instructed what to do by programming it with a series of instructions stored in Program Memory. The processor fetches these instructions one at a time and performs the operation indicated. These instructions must be stored in a form that the processor can understand. This format is referred to as Machine Language. For most microprocessors this instruction is a group of a binary bits (1's and O's) called a word (also called a byte if the word is a-bits). Some instructions require more than one location in Program Memory. To execute a multi-byte instruction, the processor must execute multiple fetches of program memory before performing the instruction. Because mUlti- byte instructions take more Program Mem- ory and take longer to execute than single
Machine
Code 1011 1000 00100000 1011 1010 00000101 00001001
Explanation Load decimal 32 in register RO Load decimal 5 in register R2 Load Port 1 to accu- mulator Transfer contents of accumulator to reg- ister addressed by register 0 0001 1000 Increment RO by 1 11101010 Decrement register 2 0000 0100 by 1, if result is zero continue to step 9, if not go to step 4
byte instructions their use is usually kept to a minimum.
A processor may be programmed by writing a sequence of instructions in the binary code (ones and zeros) which the machine can interpret directly. This is machine language programming and it is very useful where the program to be written
As you can see, writing machine instruc- tions in ones and zeros can be very laborious and subject to error. It is almost always more efficient to represent each a-bits of machine language code in a shorthand format called Hexadecimal. The term hexadecimal results from the character set used in hexadecimal notation. Hexadecimal is merely an extension of the normal decimal numbers by the addition of the first six letters of the alphabet. This gives a total of 16 different characters. Each hexadecimal "digit" can represent 16 values or the equivalent of four binary bits; therefore, each a-bit machine language word can be represented by 2 hexadecimal
is small and the application requires that the designer have an intimate knowledge of the microprocessor. Machine language pro-
gramming allows the user, because of his detailed knowledge, to use many program- ming "tricks" to produce the most compact and efficient code possible.
language program: This program reads 5 sequential 8-bit words in from an I/O port and stores them sequentially in data memory. The program starts by initializing two registers, one which determines where the data is to be stored and another which
(hex for short) digits. The correspondence among the decimal, binary, and hex number systems is given below:


step 8 would have to be changed to refer to the new address of step 4.
0 0 0000 1 1 0001 2 2 0010 3 3 0011 4 4 0100 5 5 0101 6 6 0110 7 7 0111 8 8 1000 9 9 1001 10 A 1010 11 B 1011 12 C 1100 13 0 1101 14 E 1110 15 F 1111
1.2.2 Assembly Language Programming Assembly language overcomes the dis- advantages of machine language by allowing the use of alphanumeric symbols to repre- sent machine operation codes, branch addresses, and other operands. For example, the instruction to increment the contents of
register 0 becomes INC RO instead of the hex 18, giving the user at a glance the meaning of the instruction. Our example program can be written in assembly language as follows:
Step No. Hex Code
o 88 1 20 2 8A 3 05 4 09 INP: 5 AO 6 18 7 EA 8 04
Our machine language program then becomes:
MOV R2, #05
Step Hex Code o B8 1 20 2 BA 3 05 4 09 5 FO 6 18 7 EA 8 04
IN A, P1 MOV @RO, A INC RO DJNZ R2, INP
The first statement can be verbalized as follows: Move to Register 0 the decimal number 32. Move instructions are always structured such that the destination is first and the source is second. The pound sign "#" indicates that the source is "immediate" data (data contained in the following byte of program memory). In this case data was specified as a decimal 32, however, this could have been written as a hex 20H or a binary 0010 00008 since the assembler will accept either form. Notice also that in this instance two lines of hex code are represented by one line of assemlJly code. The input instruction IN A, P1 has the same form as a MOV instruction indicating that the contents of Port 1 are to be transferred to the accumulator. In front of the input instruction is an address label which is delineated by a colon. This label allows the program to be written in a form independent of its final location in program memory since the branch instruction at the end of the program can refer to this label rather than a specific address. This is a very important advantage of assembly language programs since it
This coding is now quite efficient to write and read and coding errors are much easier to detect. Hex coding is usually very efficient for small programs (a few hundred lines of code). However, it does have two major limitations in larger programs:
Decimal Hex Binary · Assembly Code · 1·11


allows instructions to be added or deleted throughout the program during debugging without requiring that any jump addresses be changed.
(source) program for conversion to machine (object) code at assembly time. This allows for instance, the inclusion of various "debug" routines to be included in the program during development. Using conditional assembly, they can then be left out when the final assembly is done.
The next instruction MOV @RO, A can be verbalized as, Move to the data memory location addressed by RO, the contents of the accumulator. The @ sign indicates an indirect operation whereby the contents of either register 0 or register 1 acts as a pointer to the data memory location to be operated on. The last instruction is a Decrement and Jump if Not Zero instruction which acts in combination with the specified register as a loop counter. In this case register 2 is loaded with 5 initially and then decremented by one each time the loop is executed. If the result of the decrement is not zero, the program jumps to INP and executes another input operation. The fifth time thru the loop the result is zero and execution falls through to whatever routine follows the DJNZ instruction.
Conditional assembly also allows several versions of one basic program to be generated by selecting various portions of a larger program at assembly time.
In addition to the normal features provided by assemblel'3, more advanced assemblers such as that for the MCS-48 offer such things as evaluation of expressions at assembly time, conditional assembly, and macro capability.
performs a subtract operation. The 8048 does not have a subtract instruction as such but the operation can be performed easily with three instructions:
CPLA ADD A, REG CPLA This routine subtracts a register from the accumulator and leaves the result in the accumulator. This sequence can be defined as a macro with the name SUB and an operand which can be RO to R7. To subtract R7 from the accumulator then, the program- mer merely has to write:
ALFA and BETA are two previously defined symbols. At assembly time the expression ALFA*BETA/2 will be evaluated and the resulting number (which is the average of ALFA and BETA) will be treated as immediate data and . designated as the second byte of the ADD immediate instruc- tion. This expression has allowed the immediate data of this instruction to be defined in a single statement and eliminated the need for a third symbol . equal to
SUB R7 and the assembler will automatically insert the three instructions above with R7 substi- tuted for REG.
Once the assembly language source code is written it can be converted to machine executable object code by passing it through an assembler program. The MCS-48 assem- bler is a program which runs on the 8080- based Intellec MDS system explained in the next section.
ALFA*BETA/2.


1.3 Developing An MCS-48™ Based Product Although the development of a microcom- puter based product may differ in detail from the development cycle of a product based on TTL logic or relays, the basic procedures are
microprocessor is achieved, the functions to be implemented can be defined using a flowchart method to describe each basic system function and the sequence in which the processor executes these functions. Once the system is flowcharted, critical time- related functions can be identified and sample programs written to verify that performance requirements can be met.
the same - only the tools are different.
The first step of course is to become familiar with what the microcomputer is and what it can do. The first step in this education is this document, the MCS-48™ User's Manual. The user's manual gives a detailed description of the MCS-48 family of components and how they may be used in various system configu-
The next step involves the definition of the microcomputer hardware required to imple- ment the function. Input/Output capability must be defined in terms of number of inputs, number of outputs, bi-directional lines, latching or non-latching I/O, output drive capability, and input impedance. The num- ber of words of RAM storage required for intermediate results and data storage must then be determined. The type of system will dictate whether battery backup is needed to maintain data RAM during power failure.
rations. Also included is a description of the 8048 instruction set and examples of how the instructions may be used. For a more complete discussion of the instruction set and programming techniques the MCS-48 Assembly Language Manual is also available.
If time is critical in getting started in microcomputers, individuals can attend one of many Intel sponsored 5-day training courses which give basic instruction in the MCS-48 as well as hands-on experience with MCS-48 development systems. These courses are a convenient means of getting started with the MCS-48, particularly for those not familiar with microprocessors.
Probably the most difficult parameter to define initially is the amount of program memory needed to store the applications program. Although previously written exer- cise programs will make this estimate more accurate, a generous amount of "breathing room" should be allowed in program memory until coding is complete and the exact requirements are known. Many special functions such as serial communications
After general familiarization is complete, either through self-instruction or a training course, the next step is to gain a better "feel" for what a microprocessor can do in your own applications by writing several exercise programs which perform basic functions. You may require such things as I/O routines, delays, counting functions, look-up tables, arithmetic functions, and logical operations which can serve as a set of building blocks for future applications programs. Several basic programming examples are included in the MCS-48 Assembly Language Manual while the Intel User's Library is a source of more specific applications routines.
(TTY) or keyboard/display interfaces may be implemented in software (programs); how- ever, in cases where these functions place a severe load on the processor in terms of time or program memory, special peripheral interface circuits such as the 8251, Universal Synchronous or Asychronous Receiver/ Transmitter (USART) or 8279 Keyboard/
Display interface may be used.
The writing of the final program code for the application can begin once the system function and hardware have been defined and can be generated in parallel with the detailed hardware design (PC card layout, power supply, etc.)
After a thorough understanding of the


At this point, there are two paths available to the designer/programmer and two types of design development aids provided by Intel to simplify the procedures. One system, called PROMPT 48, is a low cost development system which supports machine language programming and the second is the Intellec Microcomputer Development System which supports both machine and assembly langu- ages. For those of you unfamiliar with the advantages and disadvantages of machine and assembly languages see Section 1.2.
which a programmed .8748 executes its program while under control of the monitor routine.
PROMPT 48 is a low cost design aid consisting of: an 8748 processor to execute programs, control circuitry to provide debug functions such as single step and break points, a monitor program stored in ROM, an EPROM programmer, and ahexa- decimal keyboard and display, There are two processor sockets on the front ofF>ROMPT 48, one for programming the 8748 and one in
The monitor routine allows the user to single step this processor, examine or modify all internal registers and data memory; or to run at full speed and stop the processor at predetermined breakpoints. PROMPT 48
49 lEt H 50 I/O PORTS CONNECTOR 2
prompt 48
20 21 20 21
,__---'- COMMAND/FUNCTION GROUp· ...
FUNC1'ION I AODf!ESS I DATA
© POWER ON HEX DATA/FUNCTIONS COMMANDS
EXAMINE/ DO DISPLAYI MODIFY MODIFY REGISTER 'MEMORY
GO DO S~~~~E
G~R~~: DO PREVIOUS/
POINTS ClEAR.ENTRY
in~----------~-------------- ________________________ -4


also provides 1 K of writeable program memory which may be used to debug user programs. A multiple single step feature is also provided in which the processor steps through its program dumping all internal contents to external RAM where it may be later displayed or typed out on an external terminal. Paper tape input and output in
macro-assembler and text editor programs provided allow the designer to write and edit his programs in assembly language and then generate the machine language output necessary to program the 8748 EPROM. The availability of a high speed CRT and a diskette operating system eliminates the laborious input and output of paper tape files normally required during the assembly process. Finally, ICE 48 allows the user to extend the resources of his entire Intellec system into the 8048 socket of his own system and use all its emulation, debug, and display facilities directly.
Intel's hexadecimal format is also available through the TTY.
The Intellec Microcomputer Development System is a modular development system which can be expanded as necessary to meet the requirements of your design cycle. The system consists of the processor unit which is based on Intel's 8080A microprocessor, and several optional units such as the UPP Universal PROM Programmer, the PTR High Speed Paper tape reader, the DOS Disk Operating System, and the Intellec CRT terminal.
Once a working program has been achieved, a preproduction phase usually follows where several prototype systems are evaluated in simulated situations or in actual operation in the field. During this period the use of the 8748 EPROM allows quick alteration of the application program when problems or suggested changes arise. Depending on the magnitude and number of future changes anticipated, the first production units may also be shipped with EPROM processor. However, to achieve the maximum cost reduction potential in high volume appli- cations, a conversion to the 8048 ROM is usually necessary. This is an easy transition since the 8048 and 8748 are pin and machine code compatible equivalents. The user merely develops a hexadecimal tape of his 8748 program memory contents using his Intellec System or PROMPT 48 development aid and sends it to Intel along with his 8048 order. As the 8048 ROM's arrive they can immediately replace the 8748 EPROMs.
To support the development of MCS-48 systems a macro-assembler ASM 48 is available for the Intellec System as well as a personality module for the UPP which will program the EPROM of the 8748. Also available is in-circuit emulation capability with ICE·49 which will allow emulation and debug of user's 8048 application programs on the 8080A-based Intellec Development System.
The Intellec system is a flexible high performance development system which can support Intel's various microcomputer fami- lies with various optional modules. The








2.0 Summary
Sections 2.1 through 2.4 describe in detail the functional characteristics of the 8748 EPROM, 8048/8049 ROM and 8035/8039 single component microcomputers. Unless otherwise noted, details within these sec- tions apply to all .versions. Sections 2.5 through 2.11 describe the operation of the 8021, while Sections 2.12 through 2.21 de- scribe the 8022. This chapter is limited to those functions useful in single-chip imple- mentations of the MCS-48. Chapter 3 dis- cusses functions which allow expansion of program memory, data memory, and input- output capability.
The ALU accepts 8-bit data words from one or two sources and generates an 8-bit result under control of the Instruction Decoder. The ALU can perform the following functions:
Add With or Without Carry AND, OR, Exclusive OR I ncrementiDecrement Bit Complement Rotate Left, Right Swap Nibbles BCD Decimal Adjust
2.1 Architecture The following sections break the 8048 into functional blocks and describe each in detail.
If the operation performed by the ALU results in a value represented by more than 8 bits (overflow of most significant bit) a Carry Flag is set in the Program Status Word.
The arithmetic section of the processor con- tains the basic data manipulation functions of the 8048 and can be divided into the following blocks: Arithmetic Logic Unit (ALU) Accumulator Carry Flag Instruction Decoder
The accumulator is the single most impor- tant data register in the processor, being one of the sources of input to the ALU and often the destination of the result of opera- tions performed in the ALU. Data to and from 1/0 ports and memory also normally passes through the accumulator.
In a typical operation data stored in the accumulator is combined in the ALU with data from another source on the internal bus (such as a register or I/O port) and the result is stored in the accumulator or another register. The following is a more detailed description of the function of each block:
Resident program memory consists of 1024 or 2048 words eight bits wide which are addressed by the program counter. In the 8748 this memory is user programmable and erasable EPROM; in the 8048/8049 the memory is ROM which is mask program- mable at the factory. The 8035/8039 has no internal program memory and is used with external devices. Program code is com- pletely interchangeable among the various versions. See Section 2.3 for EPROM pro- gramming techniques.
The operation code (op code) portion of each program instruction is stored in the Instruction Decoder and converted to outputs which control the function of each of the blocks of the Arithmetic Section. These lines control the source of data and the destination register as well as the function performed in the ALU.


Q) o ~ Q) Q) o ~ CO OJ r-o o " c ); C) :D » s::
1K x8 (2K x 8''''
~ Z C) r-m o o s:: "0 o Z m Z -I tn -< tn -I m s::
PORTl V '\/ V ~BUS r--- (B) BUFFER A A 7, A AND
I\) '"
REGISTER
REGISTER
REGISTER
REGISTER
TEST 0
REGISTER
REGISTER
TEST 1
REGISTER
INT
REGISTER
8 lEVEL STACK (VARIABLE LENGTH)
Vee - PROGRAM SUPPLY
OPTIONAL SECOND
REGISTER BANK
POWER Voo SUPPLY --:--- +5V {LOW POWER STANDBYI
CARRY
~GND
DATA STORE
ACC
ACCSIT TEST
RESIDENT RAM ARRAY
64x 8 (128 x 8)-
XTAL
ADDRESS
LATCH STROBE
PROGRAM
MEMORY
SINGLE READ WRITE
STEP STROBES
ENABLE
CYCLE CLOCK


There are three locations in Program Memory of special importance:
LOCATION 0
Activating the Reset line of the processor causes the first instruction to be fetched from location O.
Activating the Interrupt input line of the processor (if interrupt is enabled) causes a jump to subroutine at location 3. LOCATION 7
A timer/counter interrupt resulting from timer/counter overflow (if enabled) causes a jump to subroutine at location 7.
Therefore, the first instruction to be executed after initialization is stored in location 0, the first word of an external interrupt service subroutine is stored in location 3, and the first word of a timer/counter service routine is stored in location 7. Program memory can be used to store constants as well as program instructions. Instructions such as MOVP and MOVP3 allow easy access to data "lookup" tables.
RESET VECTORS PROGRAM HERE
ADDRESS
MCS-48™ PROGRAM MEMORY MAP
Data Memory Resident data memory is organized as 64 or 128 words 8-bits wide. All locations are indirectly addressable through either of two RAM Pointer Registers which reside at address 0 and 1 of the register array. In addition, the first 8 locations (0-7) of the array are designated as working registers and are directly addressable by several instructions. Since these registers are more easily addressed, they are usually used to store frequently accessed intermediate results. The DJNZ instruction makes very efficient use of the working registers as pro- gram loop counters by allowing the programmer to decrement and test the register in a single instruction.
(96.8)
WHEN BANK 1
-RT' -ROo -
ADDRESSED INDIRECTLY
OR USER RAM
THROUGH
Rl OR RO (RO' OR Rl')
By executing a Register Bank Switch instruc- tion (SEL RB) RAM locations 24-31 are designated as the working registers in place of locations 0-7 and are then directly address- able. This second bank of working registers may be used as an extension of the first bank or reserved for use during interrupt service
IS SELECTED
IN ADDITION RO OR Rl (RO' OR Rl') MAY BE USED TO ADDRESS 268 WORDS OF EXTERNAL RAM.


subroutines allowing the registers of Bank 0 used in the main program to be instantly "saved" by a Bank Switch. Note that if this second bank is not used. locations 24-31 are still addressable as general purpose RAM. Since the two RAM pOinter Registers RO and R1 are a part of the working register array. bank switching effectively creates two more pointer registers (RO' and R1') which can be used with RO and R1 to easily access up to four separate working areas in Ram at one time. RAM locations (8-23) also serve a dual role in that they contain the program counter stack as explained in Sec. 2.1.6. These loca- tions are addressed by the Stack Pointer during subroutine calls as well as by RAM Pointer Registers RO and R1. If the level of subroutine nesting is less than 8, all stack registers are not required and can be used as general purpose RAM locations. Each level of subroutine nesting not used provides the user with two additional RAM locations.
ports and 3 "test" inputs which can. alter program sequences when tested by conditional jump instructions.
Ports 1 and 2 are each 8 bits wide and have identical characteristics. Data written to these ports is statically latched and remains un- changed until rewritten. As input ports these lines are non latching, i.e., inputs must be present until read by an input instruction. Inputs are fully TTL compatible and outputs will drive one standard TTL load.
The lines of ports 1 and 2 are called quasi- bidirectional because of a special output circuit structure which allows each line to serve as an input, an output, or both even though outputs are statically latched. The figure shows the circuit configuration in detail.
Each line is continuously pulled up to +5v through a resistive device of relatively high impedance (-50KO). This pullup is sufficient to provide the source current for a TTL high level yet can be pulled low by a standard TTL gate thus allowing the same pin to be used for both input and output. To provide fast switching times in a "0" to "1" transition a relatively low
The 8048 has 27 lines which can be used for input or output functions. These lines are grouped as 3 ports of 8 lines each which serve as either inputs, outputs or bidirectional
+5V
+5V
INTERNAL 01---41-1
BUS -+---1D
"'5DK
D FLIP FLOP
I/O PIN PORT 1
AND2
eLK a
WRITE_t__ ..... __ ----' PULSE
IN
"QUASI BI DIRECTIONAL" PORT STRUCTURE
2·4


impedance device (- 5KO) is switched in momentarily (- 500ns) whenever a "1" is written to the line. When a "0" is written to the line a low impedance (-3000) device over- comes the light pullup and provides TTL current sinking capability. Since the pulldown transistor is a low impedance device a "1" must first be written to any line which is to be used as an input. Reset initializes all lines to the high impedance "1" state. This structure allows input and output on the same pin and also allows a mix of input lines and output lines on the same port. The quasi-bidirectional port in combination with the ANL and ORL logical instructions provide an efficient means for handling single line inputs and outputs within an 8-bit processor. See also Section 3.7.
to cause program branches without the neces- sity to load an input port into the accumulator. The TO, T1, and INTpins have other possible functions as well. See the pin description in Sec. 2.2.
The Program Counter is an independent counter while the Program Counter Stack is implemented using pairs of registers in the Data Memory Array. Only 10 (or 11) bits of the Program Counter are used to address the 1024 (2048) words of on-board program memory while the most significant bits are used for external Program Memory fetches. The Program Counter is initialized to zero
by activating the Reset line.
An interrupt or CALL to a subroutine causes the contents of the program counter to be stored in one of the 8 register pairs of the Program Counter Stack. The pair to be used is determined by a 3-bit Stack Pointer which is part of the Program Status Word (PSW). Data RAM locations 8 thru 23 are available as stack registers and are used to store the Program Counter and 4 bits of PSW as shown in the figure. The Stack Pointer when initialized to 000 points to RAM locations 8 and 9. The first subroutine jump or interrupt results in the program counter contents being transferred to locations 8 and 9 of the RAM array. The stack pointer is then incremented by one to pOint to locations 10 and 11 in anticipation of another CALL. Nesting of sub- routines within subroutines can continue up to 8 times without overflowing the stack. If overflow does occur the deepest address stored (location 8 and 9) will be overwritten and lost since the stack pointer overflows from 111 to 000. It also underflows from 000 to 111.
Bus ,. Bus is also an 8-bit port ~hich is a true bi- directional port with associated input and output strobes. If the bidirectional feature is not needed, Bus can serve as either a statically latched output port or non-latching input port. Input and output lines on this port cannot be mixed however.
As a static port, data is written and latched using the OUTL instruction and inputted using the INS instruction. The INS and OUTL instruc- tions generate pulses on the corresponding
RD and WR output strobe lines; however, in the static port mode they are generally not used. As a bidirectional port the MOVX instruc- tions are used to read and write the port. A write to the port generates a pulse on the WR output line and output data is valid at the trailing edge of WR. A read of the port generates a pulse on the RD output line and input data must be valid at the trailing edge of RD. When not being written or read, the BUS lines are in a high impedance state. See also Sections 3.6 and 3.7.
The end of a subroutine, which is Signalled by a return instruction (RET or RETR). causes the Stack Pointer to be decremented and the contents of the resulting register pair to be transferred to the Program Counter.
Three pins serve as inputs and are testable with the conditional jump instruction. These are TO, T1, and INT. These pins allow inputs


2.1.7 Program Status Word
I A" I A,O I Ag I As I A7 I A61 A51 A41 Aal A21 A, I AO I
An 8-bit status word which can be loaded to and from the accumulator exists called the
Program Status Word (PSW). The accom- panying figure shows the information available in the word. The Program Status Word is actually a collection of flip-flops throughout the machine which can be read or written as a whole. The ability to write to PSW allows for easy restoration of machine status after a power down sequence.
The upper four bits of PSW are stored in the Program Counter Stack with every call to subroutine or interrupt vector and are optionally restored upon return with the RETR instruction. The RET return instruction does not update PSw.
STACK POINTER
I I CY I AC I FO I BS I 1
MSB
LSB
CY CARRY
The PSW bit definitions are as follows:
AC AUXILLARY CARRY FO FLAG 0 BS REGISTER BANK SELECT
mented or cleared, and tested with the conditional jump in- struction JFa.
Bit 6: Auxiliary Carry (AC) carry bit generated by an ADD instruc- tion and used by the decimal adjust instruction DA A. Bit 7: Carry (CY) carry flag which indicates that the previous operation has resulted in over- flow of the accumulator.
The conditional branch logic within the pro- cessor enables several conditions internal and external to the processor to be tested by the users program. By using the conditional jump instruction the following conditions can effect a change in the sequence of the program execution.
PSW pcs_"
MSB LSB
PROGRAM COUNTER STACK
, i ! · Conventional Program Counter · PC4-7 PCo;J


2.1.9 Interrupt An interrupt sequence is initiated by applying a low "0" level input to the INT pin. Interrupt is level triggered and active low to allow "WIRE DRing" of several interrupt sources at the input pin. The Interrupt line is sampled every machine cycle during ALE and when detected causes a "jump to subroutine" at location 3 in program memory as soon as all cycles of the current instruction are complete. INT must be held low for at least T Cy to ensure proper
Device Testable
(Jump On)
not all
Accumulator Accumulator Bit Carry Flag
All zeros
zeros
1 1 1 1 1
° ° °
User Flags (FO, F1) Timer Overflow Flag Test Inputs (TO, T1) .Interrupt Input (INT)
TIMER
FLAG
INTERRUPT
JTF EX ECUTEO--.:r--.
RESET >--+--1 R
CLR r-------I D Q
EXTERNAL INTERRUPT RECOGNIZED
S
Q
TIMER OVERFLOW
TIMER INTERRUPT RECOGNIZED
FF
Q
TIMER INT ___ .... -. RECOGNIZED EXECUTED
R
S
INTERRUPT
IN PROGRESS
FF
Q
R
TIMER
INT ENABLE
R
Q
mT~ ______ ~ PIN
INT
RESET
FF
RETR EXECUTED
Q
CLK
ALE---I-'"
LAST CYCLE }- ____ ....l
OF INST.
EN I EXECUTED
S
Q
DISI
EXECUTED
R
RESET---:&..._
FLAG WILL BE SET, HOWEVER.


interrupt operations. As in any CALL to sub- routine, the Program Counter and Program Status word are saved in the stack. For a description of this operation see the previous section, Program Counter and Stack. Pro- gram Memory location 3 usually contains an unconditional jump to an interrupt service subroutine elsewhere in program memory. The end of an interrupt service subroutine is signalled by the execution of a Return and Restore Status instruction RETR. The inter- rupt system is single level in that once an inter- rupt is detected all further interrupt requests are ignored until execution of an RETR re- enables the interrupt input logic. This occurs at the beginning of the second cycle of the RETR instruction. This sequence holds true also for an internal interrupt generated by timer overflow. If an internal timer/counter generated interrupt and an external interrupt are detected at the same time, the external source will be nicognized. See the following Timer/Counter section for a description of timer interrupt. If heeded, a second external interrupt can b,e cr~ated by enabling the timer/counter i'1terrupt, loading FFH in the Counter (one less than terminal count), and enabling the event counter mode. A "1" to "0" transition on the T1 input will then cause an
also be tested using the conditional jump instruction JNI. This instruction may be used to detect the presence of a pending interrupt before interrupts are enabled. If interrupt is left disabled, iNT may be used as another test input like TO and T1.
The 8048 contains a counter to aid the user In counting external events and generating ac- curate time delays without placing a burden on the processor for these functions. In both modes the counter operation is the same, the only difference being the source of the input to the counter.
The 8-bit up binary counter is presettable and readable with two MOV instructions which transfer the contents of the accumulator to the cou nter and vice versa. The cou nter content is not affected by Reset and is initialized solely by the MOV T,A instruction. The counter is stopped by a Reset or STOP TCNT instruction and rer;nains stopped until started as a timer by a START T instruction or as an event counter' by a START CNT instruction. Once started the counter will increment to its maxi- mum count (FF) and overflow to zero contin- uing its count until stopped by a STOP TCNT instruction or Reset.
interrupt vector to location 7.
The increment from maximum count to zero
The interrupt input may be enabled or disabled under Program Control using the EN I and DIS I instructions. Interrupts are disabled by Reset and remain so until enabled by the users program. An.interrupt request must be removed before the RETR instruction is ex- ecuted upon return from the service routine otherwise the processor will re-enter the ser- vice routine immediately. Many peripheral devices prevent this situation by resetting their interrupt request line whenever the pro- cessor accesses (Reads or Writes) the periph- erals data buffer register. If the interrupting device does not require access by the pro- cessor, one output line of the 8048 may be designated as an "interrupt acknowledge" which is activated by the service subroutine to reset the interrupt request. The INT pin may
(overflow) results in the setting of an overflow flag flip-flop and in the .generation of an interrupt request. The state of the overflow flag is testable with the conditional jump instruction JTF. The flag is reset by executing a JTF or by Reset. The interrupt request is stored in a latch and then ORed with the external interrupt input iNT. The timer interrupt may be enabled or di$at:>ledindependently of external interrupt by the EN TCNTI and DIS TCNTI instructions. If enabled, the counter overflow will cause a subroutine call to location 7 where the timer or counter service routine may be stored. If timer and external interrupts occur simultaneously, the external source will be recognized and the Call will be to location 3. Since the timer interrupt is latched it will remain pending until the external device. is
2·8


LOAD OR READ
CLEARED ON START TIMER
JUMP ON TIMER FLAG
..... ----..., START
COUNTER
EDGE DETECTOR
8 BIT TIMER/ EVENT COUNTER
o STOP T
NOT CLEARED ON RESET
INT
TIMER/EVENT COUNTER
serviced and immediately be recognized upon return from the service routine. The pending timer interrupt is reset by the Call to location 7 or may be removed by executing a DIS TCNTI instruction.
msec may be achieved by accumulating mUl- tiple overflows in a register under software control. For time resolution less than 80 /-tsec an external clock can be applied to the T1 input and the counter operated in the event counter mode. ALE divided by 3 or more can serve as this external clock. Very small delays or "fine tuning" of larger delays can be easily accomplished by software delay loops.
Execution of a START CNT instruction con- nects the T1 input pin to the counter input and enables the counter. Subsequent high to low transitions on T1 will cause the counter to increment. The maximum rate at which the counter may be incremented is once per three instruction cycles (every 7.5/-tsec when using a 6MHz crystal)-there is no minimum frequency. T1 input must remain high for at least 500ns (at 6MHz) after each transition.
liming generation for the 8048 is completely self-contained with the exception of a fre- quency reference which can be XTAL, inductor, or external clock source. The Clock and Timing circuitry can be divided into the following functional blocks:
Oscillator
Execution of a START T instruction connects an internal clock to the counter input and enables the counter. The internal clock is derived by passing the basic 400 KHz machine cycle clock ALE through a -7- 32 prescaler. The prescaler is reset during the START T instruction. The resulting 12.5 KHz clock increments the counter every 80 /-tsec (assuming 6 MHz XTAL). Various delays between 80 /-tsec and 20 msec (256 counts) can be obtained by presetting the counter and detecting overflow. limes longer than 20
resonant circuit with a frequency range of 1 to 6MHz. The X1 external pin is the input to the amplifier stage while X2 is the output. A crystal or inductor connected between X1 and X2 provides the feedback and phase shift required for oscillation. A 5.9904 MHz crystal provides for easy derivation of all standard communications frequencies. If an accurate frequency reference and maximum processor speed are not required, an induc-
XTAL-c 15 · ENABLE a_~


tor may be used in place of the crystal. With an inductor the oscillator frequency can be approximately 3 to 5 MHz. For higher speed operation a crystal should be used. An externally generated clock may also be applied to X1-X2 as the frequency source. See the data sheet for more information.
ClK is then divided by 5 in the Cycle Counter to provide a clock which defines a machine cycle conSisting of 5 machine states. This clock is called Address latch Enable (ALE) because of its function in MCS-48 systems with external memory. It is provided continu- ously on the ALE output pin.
The output of the oscillator is divided by 3 in the State Counter to create a clock which defines the state times of the machine (ClK). ClK can be made available on the external pin TO by executing an ENTO ClK instruction. The output of ClK on TO is disabled by Reset of the processor.
The reset input provides a means for initializa- tion for the processor. This Schmitt-trigger input has an internal pullup resistor which in combination with an external 1 ~fd capacitor provides an internal reset pulse of sufficient length to guarantee all circuitry is reset. If the
INSTRUCTION CYCLE . 2.5 .usee CYCLE . 1 S5 SI S2 53 1 54 1 S5 SI I
INPUT DECODE EXECUTION INPUT INST.
CLOCK OUT ON TO
ALE
--"f---+--+-'
~ ~~ ., ~
sa 54 55 · 53 54 55 · ~~f--~--+--~--~-,


CYCLE 2
INSTRUCTION S1 52 S3 54
FETCH · INCREMENT -- INCREMENT INA,P INSTRUCTION PROGRAM COUNTER TIMER
S5 --
S1 S2 53 54 55 · -- READ PORT -- -- -- · --
FETCH · INCREMENT OUTPUT -- -- IMMEDIATE DATA PROGRAM COUNTER TO PORT · FETCH -- INCREMENT OIffi'UT -- IMMEDIATE DATA PROGRAM COUNTER TO PORT · -- READ PORT -- -- -- · -- · FETCH -- IHCREMENT OUTPUT -- IMMEDIATE DATA PROGRAM COUNTER TO PORT
FETCH INCREMENT INCREMENT QRL P, ::DATA -- INSTRUCTION PROGRAM COUNTER TIMER
READ PORT
!! z Ci) r-m n o 3: '111 o Z m Z -t en -< en -t m 3:
FETCH INCREMENT INCREMENT OUTLBUS.A INSTRUCTION PROGRAM COUNTER -- TIMER
FETCH · INCREMENT INCREMENT ANL BUS, :rDATA INSTRUCTION PROGRAM COUNTER -- TIMER
READ PORT
FETCH · INCREMENT INCREMENT ORL BUS, 4JATA INSTRUCTION PROGRAM COUNTER -- TIMER
FETCH -- · INCREMENT OllTl'UT -- IMMEDIATE DATA PROGRAM COUNTER TO PORT · -- · -- READ DATA -- -- -- · -- READ -- -- -- P2 LOWER · -- · -- · -- · FETCH UPDATE -- -- -- IMMEDIATE DATA PROGRAM COUNTER
FETCH INCREMENT OUl'PUTRAM INCREMENT [email protected] INSTRUCTION PROGRAM COUNTER ADDRESS TIMER - FETCH INCREMENT OUTPUT RAM INCREMENT MOVXA,OR INSTRUCTION PROGRAM COUNTER ADDRESS TIMER
FETCH INCREMENT OUTPUT INCREMENT MOVDA,Pi INSTRUCTION PROGRAM COUNTER OPCODE/ADDRESS TIMER
FETCH INCREMENT OUTPUT INCREMENT MOVDPj,A INSTRUCTION PROGRAM COUNTER OPCODE/ADDRESS TIMER
TOP2LOWER
FETCH INCREMENT OUTPUT INCREMENT ANLDP,A INSTRUCTION PROGRAM COUNTER QPCODE/ADDRESS TIMER
DATA
FETCH INCREMENT OUTPUT INCREMENT ORLD P,A INSTRUCTION PROGRAM COUNTER OPCODE/ADDRESS TIMER
DATA --
FETCH INCREMENT SAMPLE INCREMENT J ICONDITIONAL) INSTRUCTION PROGRAM COUNTER CONDITION TIMER
STOP TCNT FETCH · INCREMENT -- -- INSTRUCTION PROGRAM COUNTER
STOP COUNTER
EN. FETCH · INCREMENT -- ENABLE INSTRUCTION PROGRAM COUNTER INTERRUPT
-- -- --
DIS I FETCH INCREMENT -- DISABLE INSTRUCTION PROGRAM COUNTER INTERRUPT
ENTOCLK FETCH · INCREMENT -- ENABLE INSTRUCTION PROGRAM COUNTER CLOCK - -----------
·VALID INSTRUCTION ADDRESSES ARE OUTPUT AT THIS TIME IF EXTERNAL PROGRAM MEMORY IS BEING ACCESSED.
'l'


reset pulse is generated externally the RESET pin must be held at ground LSV) for at least 10 milliseconds after the power supply is within tolerance. Only S machine cycles (12.SJls @ 6 MHz) are required if power is already on and the oscillator has stabilized.
The 8048 operates in a single-step mode as follows:
+5V
+5V
--D..- 'K f
K!J
", lOVI
S. To stop the processor at the next instruc- tion SS must be brought low again as soon as ALE goes low. If SS is left high the pro- cessor remains in a "Run" mode.
(except when EA = SV) 6. Sets Ports 1 and 2 to input mode. 7. Disables interrupts (timer and external) 8. Stops timer. 9. Clears timer flag. 10. Clears FO and F1. 11. Disables clock output from TO.
A diagram for implementing the single step function of the 8748 is shown. A D-type flip- flop with preset and clear is used to generate
SS. In the run mode SS is held high by keeping the flip-flop preset (preset has prec- edence over the clear input). To enter single step, preset is removed allowing ALE to bring SS low via the clear input. ALE should be buffered since the clear input of an SN7474 is the equivalent of 3 TTL loads. The processor
This feature provides the user with a debug capability in that the processor can be stepped through the program one instruction at a time. While stopped, the address of the next instruc- tion to be fetched is available concurrently on BUS and the lower half of Port 2. The user can therefore follow the program through each of the instruction steps. A timing diagram, showing the interaction between output ALE and input SS is shown. The BUS buffer contents are lost during single step; how- ever, a latch may be added to re-establish the lost I/O capability if needed. (See 2.4.1).
is now in the stopped state. The next instruc- tion is initiated by clocking a "1" into the flip- flop. This "1" will not appear on SS unless ALE is high removing clear from the flip-flop.
In response to SS going high the processor begins an instruction fetch which brings ALE low resetting SS through the clear input and causing the processor to again enter the stopped state.


+6V
+BV
SINGLE 10K STEP
MOMENTARY PUSHBUTTON
10K
r,UN
'---:P=RE~SE=T --,
+BV
,------1> CLOCK
10K
DEBOUNCE LATCH
'----<1ALE
SINGLE STEP TIMING
, I S3 84 I S5 S1
I S2 S3 S4 S5 I I
ALE -.J
ss
) X 1/0
BUS <
PCO·7
P20·23 1/0 X PC8·11
RUN I STOP
RUN STOP
2.1.14 Power Down Mode (8048, 8049, 8039,8035L)
Vee serves as the 5V supply pin for the bulk of 8048 circuitry while the Voo pin supplies only the RAM array. Ih normal operation both pins are at 5V while in standby Vee is at ground and only Vob is maintained at 5V.
Extra circuitry has been added to the 8048 ROM version. to allow Rower to be removed from aU but the 64/128 x 8 data RAM array for low power standby operation. In the power down mode the contents of data RAM can be maintained while drawing typically 10% to 15% of normal operating power requirements.
Applying Reset to the processor through the RESET pin inhibits any access to the
RAM by the processor and guarantees that RAM cannot be inadvertently altered as power is removed from Vee.
+6V D o · 1/27400 · 2·13


effectively disable internal program mem- ory by forcing all program memory fetches to reference external memory. The follow- ing chapter explains how access to external program memory is accomplished.
PROCESSOR 1 ~I-- INTERRUPTED I. I
POWER SUPPlY---{ 1 1 NORMAL FAil SIGNAL ~ __ I POWERON 1 I 1 SEQUENCE I I FOllOWS
The External Access mode is very useful in system test and debug because it allows the user to disable his internal applications pro- gram and substitute an external program of his choice-a diagnostic routine for instance. In addition, the section on Test and Debug explains how internal program memory can be read externally, independent of the processor.
I ACCESS TO DATA RAM INHIBITED
POWER DOWN SEQUENCE
A "1" level on EA initiates the external access mode. For proper operation, Reset should be applied while the EA input is changed.
The MCS-48 processors (except 8021) are packaged in 40 pin Dual In-Line Packages (DIP's). The following is a summary of the functions of each pin. Where it exists, the second paragraph describes each pin's function in an expanded MCS-48 system. Unless otherwise specified, each input is TTL compatible and each output will drive one standard TTL load.
RAM array. Routine may also initiate trans- fer of backup supply to the Voo pin and indicate to external circuitry that power fail routine is complete.
XTAL{ PORT 8 #1.
Recovery from the Power Down mode can occur as any other power-on sequence with an external capacitor on the Reset input providing the necessary delay. See the previ- ous section on Reset.
MEM.
TEST {
WRITE
INTERRUPT PROGRAM STORE ENABLE ADDRESS BUS 8 LATCH eNABLE
Normally the first 1 K (8048) or 2K (8049) words of program memory are automati- cally fetched from internal ROM or EPROM. The EA input pin however allows the userto


Pin* Designation Number Function
20 Circuit GND potential
26 Programming power supply; + 25V during program,
+ 5V during operation for both ROM and PROM. low power standby pin in 8048 ROM version
40 Main power supply; + 5V during operation and 8748 programming.
25 Program pulse (+23V) input pin during 8748 programming. Output strobe for 8243 I/O expander.
27-34 8-bit quasi-bidirectional port. (Internal Pullup "" 50KOJ
P20-P27 (Port 2)
21-24 8-bit quasi-bidirectional port. (Internal Pullup "" 50KOJ 35-38 P20-P23 contain the four high order program counter bits during an external program memory fetch and serve as a 4-bit I/O expander bus for 8243.
12-19 True bidirectional port which can be written or read syn- chronously using the RO, WR strobes. The port can also be statically latched.
Contains the 8 low order program counter bits during an external program memory fetch, and receives the ad- dressed instruction under the control of PSEN. Also con" tains the address and data during an external RAM data store instruction, under control of ALE, RD, and WR.
Input pin testable using the conditional transfer instruc- tions JTO and JNTO. TO can be designated as a clock output using ENTO ClK instruction. TO is also used dur- ing programming.
Input pin testable using the JT1, and JNT1 instructions. Can be designated the event counter input using the STRT CNT instruction.
Interrupt input. Initiates an interrupt if interrupt is enabled. Interrupt is disabled after a reset. (Active low)
Output strobe activated during a BUS read. Can be used to enable data onto the BUS from an external device. (Active low) Used as a Read Strobe to External Data Memory.


Pin Designation Number Function
RESET 4 Input which is used to initialize the processor. Also used during PROM programming and verification. (Active low) (Internal pullup "'" 200KO)
WR 10 Output strobe during a BUS write. (Active low) Used as write strobe to external data memory.
ALE 11 Address Latch Enable. This signal occurs once during each cycle and is useful as a clock output.
The negative edge of ALE strobes address into external data and program memory.
Program Store Enable. This output occurs only during a fetch to external program memory. (Active Low)
Single step input can be used in conjunction with ALE to "single step" the processor through each instruction. (Active Low) (Internal pullup '" 300KOl
External Access input which forces all program memory fetches to reference external memory. Useful for emula- tion and debug, and essential for testing and program verification. (Active High) (Internal pullup '" 10MO on 8048/8049, 8035L, 8039 only)
One side of crystal input for internal oscillator. Also input for external source.
Other side of crystal/external source input.
Unless otherwise stated inputs do not have internal pullup resistors.
2.3 Programming, Verifying and Pin Function Erasing EPROM XTAL 1 Clock Input (1 to 6MHz) The internal Program Memory of the 8748 Reset Initialization and Address may be erased and reprogrammed by the user Latching as explained in the following sections. See also the 8748 data sheet. Test 0 Selection of Program (OV) or
In brief, the programmin'g process consists EA Activation of Program/Verify
of: activating the program mode, applying an Modes
address, latching the address, applying data, BUS Address and Data Input and applying a programming pulse. Each Data Output During Verify word is programmed completely before moving
P2D-1 Address Input on to the next and is followed .by a verifica- tion step. The following is a list of the pins Voo Programming Power Supply used for programming and a description of their functions: PROG Program Pulse Input


RESET
O------------~--~
--- BUS AND PROG CAN BE DRIVEN ONLY DURING THIS TIME-I 1--------
+5V---...., TEST 0
+23V EA
+5V ____ ---I
BUS ( ADDRESS AO-A7 X
DATA > < DATA OUT
PREVIOUS X
ADDRESS A8-A9 ADDRESS P20·21
+25V
VDD +5V-----------------------------------------I
+23V I FLOAT PROG +OV - - -- ,'-- ---1 FLOAT '--__ --i' - - --
SEE 8048/8748 DATA SHEET (CHAPTER 6) FOR DETAIL TIMING SPECIFICATIONS.
is the appearance of the ALE clock output. The lack of this clock may be used to disable the programmer.
8748 Erasure Characteristics
The erasure characteristics of the 8748 are such that erasure begins to occur when exposed to light with wavelengths sh
When erased, bits of the 8748 Program Memory are in the logic "0" state.
The recommended erasure procedure for the 8748 is exposure to shortwave ultra- violet light which has a wavelength of 2537 Angstroms tAl. The integrated dose (i.e., UV intensity X exposure time) for erasure should be a minimum of 15W-sec/cm2. The erasure time with this dosage is approxi- mately 15 to 20 minutes using an ultraviolet lamp with a 12000jlW/cm2 power rating. The 8748 should be placed within one inch from the lamp tubes during erasure. Some lamps have a filter on their tubes and this filter should be removed before erasure.
which should be placed over the 8748 win- dow to prevent unintentional erasure.
o


The ProgramlVerify sequence is:
P20
DB7
2. Insert 8748 in programming socket
DB6
3. Test 0 = Ov (Select Program Mode)
DB5
4. EA = 23V (Activate Program Mode)
DB4
DB3
DB2
5. Address applied to BUS and P20-1
6. Reset = 5v (Latch Address)
DBO
7. Data applied to BUS
8. Voo = 25v (Programming Power)
ADDRESS OUTPUT DURING SINGLE STEP
9. PROG = Ov followed by one 50ms pulse to 23V
This allows the user to step through his program and note the sequence of instruc- tions being executed.
11. TEST 0 = 5v (Verify Mode)
While the processor is stopped, the I/O information on BUS and the 4-bits of port 2 is, of course, not available. I/O information is, however, valid at the leading edge of ALE and can be latched externally using this signal if necessary.
13. TEST 0 = Ov
14. Reset = Ov and repeat from Step 5
Applying +5V to the EA (external access) pin of the MCS-48 microcomputers allows the user to effectively disable internal program memory by forcing all instruction fetches to occur from an external memory. This external memory can be connected as explained in the section on program memory expansion and can contain a diagnostic routine to exercise the processor, the internal RAM, the timer, and the I/O lines. EA should be switched only when the processor is in RESET.
Several MCS-48 features described in the previous sections are discussed here to emphasize their use in testing MCS-48 components and in debugging MCS-48 based systems.
Single step circuitry within the micro- computer in combination with the external circuitry described in Section 2.1.13 allows the user to execute one instruction at a time whether the instruction is one or two cycles in length. After completion of the instruction the processor halts with the address of the next instruction to be fetched available on the eight lines of BUS and the lower 4-bits of port
Just as the processor may be isolated from internal program memory using EA, program memory can be read independent of the processor using the verification mode des- cribed in the previous section, Programming/ Verification.
P2l · DBl


The processor is placed in the READ mode by applying a high voltage (+23V for the 8748, +12V for the 8048/8049) to the EA pin and +5V to the TO (8748 only) input pin. RESET must. be at OV when voltage is ap- plied to EA. The address of the location to be read is then applied to the same lines (TTL levels) of BUS and Port 2 which output
the address during single step (see below). The address is latched by a "0" to "1" transition on RESET and a high level on
RESET causes the contents of the program memory location addressed to appear on the eight lines of BUS. RESET must be
brought back to OV before leaving the READ mode.
A,
P21
P20
I. I---- A7
DB7
liD. I'i-- Aa
1/0, 10 I---- A4 6218 D.rD, -
DB8
DBS
110, 0, 1 00 0,1 0•
1100 00 rD,
i5iE'N a-
DB3
f ~ rDATA OUT
DB2
OBI
O,rD•
DBO
1/0. O'rDo 0,1---- 0 ,
1/0, 001---- 00 - 8218 I.i-- A•
RESET
1/0, I,t--- A, I'I A,
1/00 lot---Ao i5iEN Ci
ALE TO l-
-[+23V 8748 I CK +12V 8048 J
RESET'
{+5V 8748 NC 8048
TO 8748 ONLY
5V RESET
I i I I ><
+12V (+23V) EA
5V <
BUS ADDRESS
DATA
P2[J.21 <
ADDRESS
READING INTERNAL PROGRAM MEMORY
A1D (8049) only) · Aa · I, i--As


8021 Functional. Specifications
The following is a functional description of the major elements of the 8021.
return address generated. The SP to this pushdown stack is incremented by one after a return address is stored, and decre- mented by one before an address is fetched during a RET. The unincremented program counter address is stored in the address stack. The stack contents is incremented before being loaded into the program coun- ter during a return from subroutine. A total of 8 levels of nesting is possible. The SP is initialized to location 8 upon RESET. Since each address is 10-bits long, two bytes must be used to store a single address. The SP is incremented and decremented by one, but each increment or decrement moves the address pointed to by two. Therefore, only even numbered addresses are pointed to.
The 8021 contains 1 K x 8 of mask programmable ROM. No external ROM expansion capability is provided. 2.6 Data Memory
A 64 x 8 dynamic RAM is located on chip for data storage. All locations are indirectly addressable and eight designated locations are directly addressable. Also, included in the memory is the address stack, addressed
by a 3-bit stack pointer.
Memory is organized as shown in Figure 1. The least significant 8 addresses, 0-7, are directly addressable by any of the 11 direct register instructions. The locations are readily accessible for a variety of opera- tions with the least number of instruction
If a particular application does not require 8 levels of nesting, the unused portion of the stack may be used as any other indirectly addressable scratch pad location. For ex- ample, if only 3 levels of subroutine nesting are used, then only locations 8-13 need be reserved for the address stack, and loca- tions 14-63 can be used for data storage.
bytes required for their manipulation. Registers 0 and 1 have another function, in that they can be used to indirectly address all locations in memory, using the indirect register instructions. These indirect RAM address registers, IRAR's, are especially useful for repetitive-type operations on adjacent memory locations. The indirect register instruction specifies which IRAR to use, and the contents of the I RAR is used to address a location in RAM. The contents of the addressed location is used during the execution of the instruction and may be modified. A value larger than 63should not be preset in the IRAR when selected by an indirect register instruction. IRAR's may point to address 0-7, if desired.
INDIRECTLY ADDRESSABLE
FOR ADDRESS STACK I
CAN BE USED
BY IRARO OR 1
LOC 8-23
7 6 5 4 3 2 IRAR 1 IRAR 0
Locations 8-23 may be used as the address stack. The address stack enables the pro- cessor to keep track ofthe return addresses generated from CALL instructions. A 3-bit stack pointer (SP) supplies the address of the locations to be loaded with the next
FIGURE 1. INTERNAL RAM ORGANIZATION
}


2.7 Oscillator and Clock
The 8021 utilizes dynamic RAM and certain other dynamic logic. Due to the clocking required with dynamic circuits, the oscil- lator frequency must be equal to or greater than 600K Hz, or improper operation may occur.
The 8021 contains its own onboard oscilla- tor and clock circuit, requiring only an external timing control element. This con- trol element can be a crystal, inductor, or clock in. The capacitor normally required in inductor timing control operation is inte- grated onto the 8021. All internal time slots are derived from the external element, and all outputs are a function of the oscillator frequency. Pins XT AL 1 and XTAL2 are used to input the particular control element. An instruction cycle consists of 10 states, and each state is a time slot of 3 oscillator periods. (See Figure 2) Therefore, to obtain a 10 Msec instruction cycle, a 3M Hz crystal should be used. An oscillator frequency of approximately 3MHz may also be obtained by connecting a 470 MH inductor between XTAL 1 and XTAL2. Note that the required inductance may vary and should be adjust- ed as necessary.
2.8 Timer/Event Counter The 8021 has internal timer/event counter circuits that can monitor elapsed time or count external events that occur during program execution. The circuit has an 8-bit binary up-counter that is presettable and readable with two MOV instructions. These instructions transfer the contents of the accumulator to the counter and vice-versa. The counter content is not affected by Reset, and is initialized solely by the MOV r,A instruction. The counter is stopped by a RESET or STOP TCNT instruction and remains stopped until started as a timer by a STRT T instruction or as an event counter by a STRT CNT instruction. Once started,
TIMES I 1 I 2 I 3 I 4 I 5 I 6 I 7 I 8 I 9 I 10 I 1 5 I 6 I 7 I 8 I 9 I 10 I
IN >C
PO,P1,P2 _______ --J X '- ___ DA_T_AO_U_T _____________ _
All PORTS FOR IN AND OUTl INSTRUCTIONS
2·21


the .. counter increments to its maximum count (FF), and overflows to zero. The count continues until stopped by a STOP TCNT instruction or RESET. The increment from maxini"um . count to zero (overflow) sets an overflow flag. The state of the overflow flag is testable with the conditional jump in- struction JTF. The flag is reset byJTF but not by executing a RESET, unlike the 8748. Bya MOV T,A instruction, the contents of the accumulator are loaded to the timer. At the STRT T command an internal prescaler is zeroed and thereafter increments once each 30 input clocks (once each single cycle instruction, twice each double cycle instruction>. The prescaler is a divide by 32. At the (11111) to (00000> transition the timer is incremented. The timer is 8-bits and an overflow (FFH) to (OOH) timer flag is set. A conditional branch instruction (JTF) is available for testing this flag, the flag being reset each test. Total count capacity forthe timer is 28 x 25 = 8192 or 81.9 msec at a 10 Msec cycle time. Contents of the. timer are moved to the accumulator by the MOV A,T instruction without disturbing the counting process. The timer stops upon the STOP TCNT instruction.
matic of the quasi-bidirectional inter- face is shown in Figure 3. This con- figuration allows buffered output~, and also allows external input. Data written to these ports is statically latched and remains
unchanged until rewritten. As input ports these lines are non-latching, i.e., inputs must be present until read by an input instruction. When writing a "0" or low value to these ports, the large pulldown device sinks an external TTL load. When writing a "1", a large current is supplied through the large pullup device to allow a fast data transfer. After a short time (less than one instruction cycle), the large device is shut off and the small pullup maintains the "1" level indefinitely. However, in this situation, an input device capable of overriding the small amount of sustaining current sup- plied by the pullup device can be read, (Alternatively, the data written ca"n be read>' So, by writing a "1" to any particular pin, that pin can serve either as a true high:-Ievel
latched output pin, or as just a pullup resistor on an input. This allows maximum user flexibility in selecting his input or latched output pins, with a minimum of external components.
Port 00-07 is also quasi-bidirectional, except there is no large pullup device. As outputs, this port is essentially open drain. By mask option the small pullup devices on POO-P07 may be deleted on any pin providing a true open drain output. This is useful in driving analog circuits and certain loads, such as keyboards.
The STRT CNT instruction connects the T1 input pin to the event counter input and enables the counter. Subsequent high-to- low transitions on T1 increment the counter. The maximum rate at which the counter can increment is once per three instruction cycles (30MS for a 3 MHz oscillator>. There is no minimum frequency. T1 input must remain high for at least 500ns after each transition. The event counter is stopped by a STOP TCNT instruction.
2.9 Input/Output Capabilities The 8021 I/O configurations are highly flexible. A number of different configur- ations are possible, tailoring an 8021 to a given task. Other than the power supply and dedicated pins, all other pins (20) can be used for input, output, or both, depending on the configuration.
All ports are quasi-bidirectional to facilitate stand-alone use. A simplified sche-
FIGURE 3. QUASI-BIDIRECTIONAL PORT STRUCTURE


2.9.1 T1 Input
minimizing external parts required to do high power control. P10 and P11 have been designated high drive outputs capable of sinking 7mA at Vss + 2.5 volts. (For clarity, this is 7mA to Vss with a 2.5 volt drop across the buffer.) These pins may, of course, be
paralleled for 14mA drive if the output logic states are always the same.
The operation of T1 as an input to the Event Counter is described in the Timer/Event Counter section. When used as a test input, the JT1 and JNT1 instructions test for 1 and o levels, respectively. The T1 pin can also be used to detect the zero crossing of slowly moving AC signals (60 Hz)' The self-biasing circuit shown in Figure 4 permits the Test 1 input to detect when the input voltage crosses zero within ±5%; the voltage is then coupled through a 1.01-lf capacitor. Maximum input voltage is 3V peak-to-peak. The zero cross detection is especially useful in SCR control of 60 Hz power and in developing time-of~day and other timing routines. As a ROM mask option there is a pullup resistor that is useful for switch contact input or standard TTL. 2.9.2 High Current Outputs
The 8021 can be used with the 8243 I/O expander chip, which provides additional I/O capability with a limited number of overhead pins. This chip has 4 directly addressable 4-bit ports. It connects to the PROG pin, which provides a clock, and pins P20-P23, which provide address and data. These ports can be written with a MOVD
P,A; ANLD P,A; and ORlD P,A forPorts4-7. A high to low transition on PROG signifies that address and control are available on P20-P23. The previous data on P20-P23 before an output expander instruction is lost. Therefore, when using an output expander P20-P23 are not useful for general input/output. Reading is via the MOVD A,P. This circuit configuration is shown in Figure 5. The timing diagram is shown in Figure 6.
The 8021 can also use standard low cost TTL to expand the number of I/O lines. An example is shown in the Applications section.
EXTERNAL
Ibl OPTIONAL PULLUP RESISTOR
SWITCH ~
FIGURE 4. TEST 1 PIN
FIGURE 5. I/O EXPANDER INTERFACE


(4 BITS) V ADDRESSJ FLOAT ~ ------ 14 BITS)
)Cf)C
DATA IN
DATA OUT ~ DATA (P20·P23) ~ OUT -----.... (4 BITS) '---~(4~BIT=S)~---------------
BITS 0,1
BITS 2,3
01 PORT
10 OR OO} 10 ADDRESS 11
OO}READ 01 WRITE
11 AND PORT 2 FOR EXPANDED 1/0 WITH 8243
2.10 CPU The 8021 CPU has arithmetic and logical capability. A wide variety of arithmetic and logic instructions may be exercised, which affect the contents of the accumulator, and/or direct or indirect scratch pad loca- tions. Provisions have been made for simplified BCD arithmetic capability using the DAA, SWAP A, and XCHD instructions.
conditional jump instructions with the tests listed below to effect a change in the program execution sequence.
Accumulator Carry Flag Timer Overflow Flag Test Input-T1
,JC JTF JNT1, JT1
1 o 1
In addition, MOVP A,@A allows table lookup for display formating and constants. The conditional branch logic within the processor enables several conditions inter- nal and external to the processor to be tested by the users program. Use the
A positive-going signal to the RESET input resets the necessary miscellaneous flip- flops and sets "the program counter and stack pOinter to zero.
Jump Condition · Jump Instructions · Test


8022 Functional Specifications The 8022's architecture is based upon the 8021, and many functions of the two parts are identical.
2.13 Data Memory On-chip data memory is organized as 64 words eight bits wide. All locations are indirectly addres- sable and eight designated locations are directly addressable. Also included in the data memory is the program counter stack, addressed by a 3-bit stack pointer.
The 8022 program memory consists of 2048 words 8 bits wide which are addressed by the program counter. The memory is ROM which is mask programmable at the factory. No external ROM expansion capability is provided. There are three locations in program memory of special im- portance.
The first eight locations (0-7) of the array are designated as working registers and are directly addressable by any of the 11 direct register instructions. These locations are readily accessi- ble for a variety of operations with a minimum num- ber of instruction bytes required for their manipulation. Thus, they are usually used to store frequently accessed intermediate results. The DJNZ instruction makes very efficient use of the working registers as program loop counters by al- lowing the programmer to decrement and test the register in a single instruction.
cessor causes the first instruction to be fetched from location O.
(TO) of the processor (if interrupt is enabled) causes a jump to subrou- tine.
Registers a and 1 have yet another function in that they can be used to indirectly address all loca- tions in the data memory using the indirect register instructions. These two RAM pointer registers are especially useful for repetitive type operations on adjacent memory locations. The indirect register instruction specifies which register is used to ad- dress a location in RAM. The contents of the ad- dressed location are used during the execution of the instruction and may be modified. The pointer registers may also point to registers 0-7, if de- sired.
sulting from a timer / counter over- flow causes a jump to subroutine (if timer / counter interrupt is enabled).
Therefore, the first instruction to be executed after initialization is stored in location 0, the first word of an external interrupt service routine is stored in location 3, and the first word of a timer-
/ event counter interrupt service routine is stored in location 7.
Locations 8-23 serve a dual role in that they con- tain the 8-level program counter stack, two RAM locations per level. The program counter stack en- ables the processor to keep track of the return addresses generated by interrupts or CALL instructions by storing the contents of the program counter prior to servicing the subroutine. A 3-bit stack pointer determines which of the program counter stack's eight register pairs will be loaded with the next return address generated. The stack pointer, when initialized to 000 by RESET, points to RAM locations 8 and 9. The first subroutine CALL or interrupt results in the program counter contents being transferred to locations 8 and 9. The stack pointer is then incremented by one and pOints to locations 10 and 11 in anticipation of an- other CALL The end of a subroutine, which is sig- naled by a return instruction (RET or RETI), causes the stack pointer to be decremented and the contents of the resulting register pair to be transferred to the program counter.
8 7 6 5
VECTORS PROGRAM HERE
LOCATION 3-EXTERNAL INTERRUPT
VECTORS PROGRAM HERE
RESEr VECTORS PROGRAM HERE
Program memory can be used to store constants as well as program instructions. The MOVP in- struction allows easy table lookup for constants and display formatting.
76543210


'2.15 Timer/Event Counter
Unlike the 8048, in the 8022 the unincremented program counter address is stored in the address stack. The stack contents are then incremented before being loaded Into the program counter dur- ing a return (RET) from subroutine. However, dur- ing a return (RETI) from interrupt, the stack contents are loaded directly into the program counter. This difference makes it imperative to use only RETI's to return from interrupts, and RET's to return from subroutines. Since the program counter's addresses are 11 bits long, two bytes or registers must be used to store a single address. Thus, the 16-byte program counter stack permits up to a total of 8 levels of subroutine nesting without overflowing the stack. If overflow does occur, the deepest address stored (locations 8 and 9) will be overwritten and lost since the stack pointer overflows from 111 to 000. It also underflows from 000 to 111. If a par- ticular application does not require 8 levels of nesting, the unused portion of the progam counter stack may be used as any other indirectly addres- sable RAM location. For example, if only 3 levels of subroutine nesting are used, then only locations 8-13 need be reserved for the program counter stack, and locations 14-23 can be used for data storage.
Like the other MCS-48 microcomputers, the 8022 has an internal timer I event counter. This circuit can monitor elapsed time or count external events that occur during program execution.
See the 8021 description, Section 2.8, for a com- plete explanation.
The 8022 has 26 lines which can be used for digi- tal input or output functions. These lines are orga- nized as 3 ports of 8 lines, each of which serve as either inputs, outputs, or bidirectional ports, and 2 test inputs which can alter program sequences when tested by conditional jump instructions.
Ports 1 and 2 have identical operating character- istics and are both quasi-bidirectional. That is, each line may serve as an input, an output, or both. Data written to these ports is statically latched and remains unchanged until rewritten. As inputs, these lines are non-latching; i.e., inputs must be present until read by an input instruction. Inputs are fully TTL compatible and all outputs will drive at least one standard TTL load. See Section 2.1.4 for a more complete description of the qua- si-bidirectional structure.
2.16.1 Port 0 Comparator Inputs Port 0 has been modified from the standard quasi- bidirectional structure to allow an optional open drain configuration with comparator inputs. The low impedance pullup device has been eliminated and the high impedance pullup is optional. Thus, the user can choose via a mask programmable selection each line of port a to be either quasi-bi- directional with a high impedance or true open- drain. The open drain configuration allows the line to sink current through the low impedance pull- down device or to float in the high output state. More importantly, the open drain configuration makes port 0 very easy to drive when it is used as inputs. The input circuitry for each line of port 0 includes a voltage comparator which amplifies the voltage difference between the input port line and the port 0 threshold reference pin (VTH). The volt- age gain of the comparator is sufficient to sense a
EIIED
24 23 8 LEVEL aTACK OR USER RAM
Rl~l\r:.
2. 14 Oscillator and Clock The 8022 contains its own on-board oscillator and clock circuit, requiring only an external timing con- trol element. This control element can be a cry- stal, inductor, or clock. All Internal time slots are derived from the external element, and all outputs are a function of the oscillator frequency.· An in- struction cycle consists of 10 states, and each state is a time slot of 3 oscillator periods. There- fore, to obtain a 10 fJ,s instruction cycle, a 3 MHz crystal should be used. The minimum instruction cycle time of 8.4 fJ,sec corresponds to a 3.58 mHz crystal.
100 mV input differential within the range VSS to VCC /2. · .
If VTH is allowed to float, it will bias itself to the digital switch point of the other ports, and port a behaves as a set of normal digital inputs. Howev- er, by biasing VTH, the switch point can be both tightly controlled and adjusted. Common uses for
DIRECTlv ADDR~8LE · 2·26


this would include high noise margin inputs (Vee 1 2), unusual logic level inputs as from a diode isolated keyboard, analog channel expansion, and direct capacitive touchpanel interface. The com- parator action is automatic and the port is read just as any other port.
to the TO pin when external interrupt is enabled. Interrupt is level triggered and active low to allow "WIRE ORING" of several interrupt sources at the input pin. When an interrupt is detected, it causes a "jump to subroutine" at location 3 in program memory as soon as all other cycles of the current instruction are complete. At this time, the program counter contents are saved in the program counter stack, but the remaining status of the pro- cessor is not. Unlike the 8048, the 8022 does not contain a program status word. Thus, when ap- propriate, the carry and auxiliary carry flags are saved in software, as is the accumulator. The rou- tine shown below saves the accumulator and the carry flags in only four bytes.
2.16.2 High Current Outputs Very high current drive is desirable for minimizing external parts required to do high power control. P 1 a and P 11 have been designated high drive out- puts capable of sinking 7mA at VSS + 2.5 volts. (For clarity, this is 7mA to VSS with a 2.5 volt drop across the buffer.) These pins may, of course, be paralleled for 14mA drive if the output logic states are always the same.
MeV R6.A 1 ;aave accumulator CLR A DAA MeV R7.A
In addition to the 26 digital I I 0 lines contained on- board the 8022, a user can obtain additional 1/0 lines by utilizing the Intel(!) 8243 I 10 expander chip or standard TTL. The 8243 interfaces to 4 port lines of the 8022 (lower half of port 2) and is strobed by the PROG line of the 8022.
;clear accumulator ;convert carry flags into sixes ;save status of carry flags
The end of an interrupt service subroutine is marked by the execution of a Return from Interrupt instruction (RETI). Prior to returning from the inter- rupt subroutine, however, the status of the accu- mulator and the carry flags are restored in software. The following routine restores the sta- tus of the accumulator and the carry flags, which was previously saved, in five bytes.
The interface procedure is exactly the same as with the 8021-see Section 2.9.3.
In addition to the 24 general purpose I I 0 lines which comprise ports 0, 1, and 2, the 8022 has two inputs which are testable via conditional jump instructions, TO and T 1. These pins allow inputs to cause program branches without the necessity to load an input port into the accumulator. TO and T1 have other functions as well.
MeV A,R7 1 ;restore carry flaga status to Add A,#OAAH 2 ;accumulator and set/clear carry flags MeV A,RS ;reatore accumulator RETI ;return
The Test a pin serves as an external interrupt in- put as well as a testable input. An interrupt se- quence is initiated by applying a low "0" level input
The interrupt system is single level in that once an interrupt is detected, all further interrupt requests are ignored until execution of a RETI re-enables
r--- ....... ---i XTAL 1 1K
J<>-- __ --~XTAL 1 D 1 MEGQ
1_
.6-3.6 MHz NC XTAL2
CRYSTAL EXTERNAL
FREQUENCY REFERENCE OPTIONS


Q
_KQ.--------,
I/O PIN PORTO
VYH
PORT 0 I/O STRUCTURE
the interrupt input logic. This sequence holds true also for an internal interrupt generated by timer overflow. If an external interrupt and an internal ti- mer / counter generated interrupt are detected at the same time, the external source will be recog- nized. If needed, a second external interrupt can be created by enabling the timer / counter inter- rupt, loading FFH inthe counter (one less than ter- minal count) and enabling the event counter mode. A low-to-high transition on the T 1 input will then cause an interrupt vector to location 7.
tions on T1 will cause the counter to increment. Note that this operation differs from the rest of the MCS-48 devices, which increment the counter on high-to-Iow transitions. This change was made on the 8022 to take advantage of the accuracy of the rising edge detection on the zero cross circuitry. The maximum rate at which the counter may be incremented is once per three instruction cycles (every 30 f./,S when using a 3 MHz crystaJ)-there is no minimum frequency.
In addition to serving as a testable input and as the counter input, the T1 pin has special circuitry to detect when an AC signal crosses its average DC level. When driven directly, this pin responds as a normal digital input. To utilize the zero cross de- tection mode, an AC signal of approximately 1-3 VAC pop magnitude and a maximum frequency of
1 kHz is coupled through an external capacitor (1 f./,F) to the T1 pin. .
The internal digital state is sensed as a zero until the rising edge crosses the DC average level, when it becomes a one. This is accomplished by the self-biasing high gain amplifier which is includ- ed in the T 1 input. This circuit biases the T 1 input exactly at its switching point, such that a small change will cause a digital transition to occur. This digital transition takes place within 5 degrees of the zero point. The digital value of T1 remains a one until the falling edge of the AC input drops ap- proximately 100 mV below the switching point of the rising edge (100 mV below the zero pOint, if the digital transition occurred exactly at the zero point). The 100 mV offset is created by hysteresis and eliminates chattering of the internal Signal caused by the external noise.
The Test 1 pin, in addition to being a testable in- put, serves two other important functions. It can be used as an input pin to the external event counter, as previously mentioned, and it can be used to detect the zero crossing pOint of slow moving AC signals. Execution of the STRT CNT instruction puts the T1 pin in the counter input mode by connecting T1 to the counter and en- abling the counter. Subsequent low-to-high transi-
D FLIp· FLOP · ClK


The zero cross detection capability allows the user to make the 60 Hz power signal the basis for this system timing. All timing routines, including time-of-day, can be implemented using the zero cross detection capability of T 1 and its conditional jump instructions. In addition, the zero cross de- tection feature can be used in conjunction with the timer interrupt to interrupt processing at the zero voltage point. This enables the user to control volt- age phase sensitive devices such as triacs and SCRs, and to use the 8022 in applications such as shaft speed and angle measurement.
Thus, the user is given a minimum voltage range from ground to V CC 12 and a maximum range from ground to Vee over which 8-bit resolution is in- sured.
The voltage tap on the series resistor string is se- lected by the resistor ladder decoder. This decod- er is driven by the 8-bit successive approximation register (SAR). Each bit of the SAR is set in suc- ceSSion, MSB to LSB, and a voltage comparison between the selected resistor ladder voltage and the analog input voltage is performed after the set- ting of each bit. The result of each comparison de- termines whether the particular bit will remain set or be reset. All comparisons are performed auto- matically by the on-Chip AID hardware. At the end of 8 comparisons the SAR contains a valid digital result which is then latched into the conversion re- sult register (CRR). The RAD instruction (read AID) loads the conversion result from the CRR to the accumulator of the 8022.
2.18 Analog to Digital Converter The 8022 contains on-chip a complete hardware implementation of an 8-bit analog to digital (AID) converter with two multiplexed analog inputs. The A I D converter utilizes a successive approxima- tion technique to provide an updated conversion once every four instruction cycles with a minimum of required software.
The AID converter consists of four main parts, the input circuitry, a series string of resistors, a voltage comparator, and the successive approxi- mation logic. The two analog inputs are mUlti- plexed on-Chip and selected via software by the SEL ANO and SEL AN 1 instructions. Besides se- lecting one of the analog inputs, these instructions restart the conversion sequence which operates continuously. Restarting a conversion sequence deletes the conversion in progress but does not affect the result of the previous conversion which is stored in the conversion result register. The continuous operation of the A I D converter saves program space and time by allowing the user ob- tain multiple readings from a given input with only one select instruction. To obtain a valid conversion reading, the user must provide the analog input signal no later than the beginning of the select in- struction cycle. The analog input is then sampled by the A I D converter and maintained internally. This voltage becomes one input to the voltage comparator which amplifies the difference be- tween the analog input and the voltage tap on the series resistor string. '
r---~ I I I
RESISTIVE
LADDER - -"--~-----,
RI2 I , I I
R I Ill' I ' '''' .. I : ;!~ I! I" I 8-W RI2 I I L __ L.J 8- INTERNAL BUS
The series resistor string is connected between the A I D reference pin (V ARE F) and ground (AVSS). It is comprised of 256 identical resistors which divide the voltage between these two pins into 256 identical voltage steps. This configuration gives the converter its iflherent monotonicity. The range of V AREF in which full 8-bit resolution can be provided is between Vee/2 and Vee.
As mentioned previously, the software and time required to perform an A I D conversion is opti- mized by the 8022's on-chip AID converter con- figuration. Typical software for reading two sequential A I D conversions and storing them in data memory is shown below:


First SEL ANO ;Starts conversion of ANO input Conversion MOVRO.#24 ;Set up ~emory pointer 50/Ls RAD ;First conversi.on value to 4 bytes accumulator
user's program. Use the conditional jump instruc- tions with the tests listed below to effect a change in the program execution sequence.
Second [email protected] ;Store first conversion value Conversion INCRO ;Increment memory location 40/Ls RAD :Second conv8.rsion value to 3 bytes accumulator
Jump Jump Test Condition Instructions
Accumulator A=O k'l'O JZ JNZ Carry Flag 0 1 JNC. JC Timer Overflow Flag -1 JTF Test Input·Tl 0 1 JNT1. JTl Test Input· TO 0 1 JNTO. JTO
2.20 8022 Testing and Debug To facilitate testing and debug, certain test modes may be activated in the 8022 by raiSing combina- tions of RESET, TEST 1 and PROG to 15 volts. Internal ROM is dumped out sequentially for verifi- cation. External memory operation is used for CPU checkout.
To insure maximum accuracy from the AID con- verter, separate power supply pins (AVCC and AVSS) and a substrate pin (SUBST) have been provided. Supplying the power supply pins with a well filtered and regulated voltage supply mini- mizes the effect of power supply variance and system noise. The substrate pin should be by- passed to ground through a 500 pF to 0.001 f,LF capacitor.
Reset Prog Te.t 1 Calie Function
5V X X Power On Clear
OV X X Normal Operation 15V 15V 15V Mode la On each cycle internal ROM is dumped to Port O-sequentially after ALE leading edge .. ' 15V 15V JL.. Mode lb. On every TEST· 1 failing edge
2.19 CPU The 8022 CPU has arithmetic and logical capabili- ty. There is a wide variety of arithmetic and logic instructions which affect the contents of the accu- mulator, and lor direct or indirect scratchpad lo- cations. Provisions have been made for simplified BCD arithmetic capability using the DAA, SWAP A, and XCHD instructions. In addition, MOVP A, @A allows table lookup for display formating and constants. The conditional branch logic within the processor enables several conditions internal and external to the processor to be tested by the
the program counter incre· ments. dumps internal ROM to Port 0
OV 15V X Mode 2 Chip will operate from external memory (one page) via Port O. ALE strobes Address out. memo ory in. 15V X X Mode 3 Chip accepts op codes into Port 1. Allows Port 0 and 8243 testing.


" MC~48TMS~stem




3.1 Expansion of Program Memory
If the capabilities resident on the singlechip 8048/8049,8748, or 8035/8039 are not
Program Memory is expanded beyond the resident 1 K or 2K words by using the 8085 BUS feature of the MCS-48. All program memory fetches from addresses less than 1024 (2048) occur internally with no external signals being generated (except ALE which is always present). At address 1024 the 8048 automatically initiates exter- nal program memory fetches.
sufficient for your system requirements, special on-board circuitry allows the addition of a wide variety external memory,
I/O, or special peripherals you may require. The processors can be directly and simply expanded in the following areas:
For all instruction fetches from addresses of 1024 (2048) or greater the following will occur:
By using bank switching techniques maxi- mum capability is essentially unlimited. Bank switching is discussed later in the chapter. Expansion is accomplished in two ways:
rifice of only the lower half (4 bits) of port 2 for inter-device communication. Multiple 8243's may be added to this 4-bit bus by generating the required "chip select" lines.
ress and serves to enable the external memory device.
All instruction fetches including internal addresses can be forced to be external by activating the EA pin of the 8048/8049. The 8035/8039 processors without program memory always operate in the external program memory mode (EA=5Vl.
MCS-48 systems can be configured using either or both of these expansion features to optimize system capabilities to the application. Both expander devices and standard mem- ories and peripherals can be added in virtually any number and combination required.
For programs of 2K words or less, the 8048/8049 addresses program memory in
3·1


ALE J
BUS ~ FLOATING 0: FLOATING
JMP or CALL Instructions trans'er oontenta 0' Internal IIIpfiop to A11
INSTRUCTION FETCH FROM EXTERNAL PROGRAM MEMORY
During Interrupt I.rvlce routln. A11 Is 'orced to "0" All 12 bits are lav.d In atack
the conventional manner. Addresses be- yond 2047 can be reached by executing a program memory bank switch instruction (SEL MBO, SEL MB1) followed by a branch instruction (JMP or CALL). The bank switch feature extends the range of branch instructions beyond their normal 2K range and at the same time prevents the user from inadvertently crossing the 2K boundary.
entirely in the lower 2K words of program memory. The execution of a SEL MBO or SEL MB1 instruction within an interrupt routine is not recommended since it will not alter PC11 while in the routine, but will change the internal flip flop.
Program Memory Bank Switch
Although the lower half of Port 2 is used to output the four most significant bits of address during an external program memory fetch, the I/O information is still outputed during certain portions of each machine cycle. I/O information is always present on Port 2 lower at the rising edge of ALE and can be sampled or latched at this time.
The switching of 2K program memory banks is accomplished by directly setting or resetting the most significant bit of the program counter (bit 11). Bit 11 is not altered by normal incre- menting of the program counter but is loaded with the contents of a special flip-flop each time a JMP or CALL instruction is executed. This special flip-flop is set by executing an SEL MB1 instruction and reset by SEL MBO.
Therefore, the SEL MB instruction may be executed at any time prior to the actual bank switch which occurs during the next branch instruction encountered. Since all twelve bits of the program counter including bit (11) are stored in the stack when a Call is executed, the user may jump to subroutines across the 2K boundary and the proper bank will be restored upon return. However, the bank switch flipflop will not be altered on return.
The accompanying figure shows the addition of three 27081K X 8 EPROMs or three 2308 pin-compatible ROM replacements for a total of 4K words of program memory. The BUS port of the 8048 is connected directly to the data output lines of the memories. The lower 8 bits of address are latched in an 8212 8-bit latch using ALE as the strobe. The lower half of Port 2 provides the upper 4 bits of address and since these address bits are stable for the duration of the program memory fetch, they do not have to be latched. Two of the upper address bits are connected directly to the address inputs of the memories while the two most significant bits are decoded to provide the three chip selects needed. The PSEN output of the 8048/8748 is used to enable the chip select lines and therefore the memories.
Interrupts always vector the program counter to location 3 or 7 in the first 2K bank and bit 11 of the program counter is held at "0" during the interrupt service routine. The end of the service routine is signalled by the execution of an RETR instruction. Interrupt service routines should therefore be contained
Conventional Program Counter · 3·2


PROGRAM MEMORY
J:=4=======::;-;:=~DECODER 0, r---..., PORT 20·3 1 OF 4 27081 i ICS 2308 1K·2K
2308 2K·3K
PSEN~----------------------~
cs 27081 3K ·4K 2308 USING lK x 8 PROM/ROM
OUT
EXPANDING MCS-48 ™ PROGRAM MEMORY USING STANDARD MEMORY PRODUCTS
Also shown is the addition of 2K words of
The next figure shows how the new 8755/8355
program memory using an 2316A 2K x 8 ROM to give a total of 3K words of program memory. In this case no chip select decoding is required and PSEN enables the memory directly through the chip select input. If the system requires only 2K of program the same configuration can be used with an 8035 substituted for the 8048. The 8049 would provide 4K with the same configuration.
EPROM/ROM with I/O interfaces directly to the 8048 without the need for an address latch. The 8755/8355 contains an internal 8-bit address latch eliminating the need for an 8212 latch. In addition to a 2K X 8 program memory the 8755/8355 also contains 16 I/O lines addressable as two 8-bit ports. These ports are addressed as external RAM; there-
"'
7 '" 11) ADDRESS 2316 ROM
8048 ALE 8212 I?>
LATCH
A BUS B
DATA
OUT CS
PSEN
USING 2K x 8 ROM
cs 27081 · 3·3


fore, the RD and WR outputs of the 8048 are required. See the following section on data memory expansion for more detail. The sub- sequent section on I/O expansion explains the operation of the 16 I/O lines.
Data Memory is expanded beyond the resi dent 64 words by using the 8085 type bus feature of the MCS-48.
All address and data is transferred over the 8
lines of BUS. A read or write cycle occurs as follows:
ALE ALE 2K X8 Pmii iUS
As-A10·CS
READ FROM EXTERNAL DATA MEMORY
ALE J L
BUS FLOATINcXADDRESSX 7' >8<~ __ F_LO_A_T_IN_G __
FLOATING
WRITE TO EXTERNAL DATA MEMORY
ALE J L
BUS FLOATING
TEsT I/O INPUTS · 3·4


3.2.2 Addressing ~Xt~rnal Data Memory
tional 4-bit data bus of the memories. The WR output of the processor controls the Read/ Write input of the memories while the data bus output drivers of the memories are con- trolled by RD. The chip select lines of the
External Data Memor~ Is ~~cessed with its own two-cycle move instructions MOVX A @R and MOVX @R, A which transfer 8 bits of data between the accumulator and the ex- ternal memory location addressed by the contents of one of the RAM Pointer Registers RO or R1. This allows 256 locations to be addressed in addition to the resident locations. Additional pages may be added by "bank switching" with extra output lines of the 8048.
memories are continuously enabled unless additional pages of RAM are required. Also shown is the expansion of data memory using the 8155 memory and I/O expanding device. Since the 8155 has an internal 8-bit address latch it can interface directly to the 8048 with- out the use of an external 8212 latch. The 8155 provides an additional 256 words of sta- tic data memory and also includes 22 I/O lines and a 14 bit timer. See the following sec- tion on I/O expansion and the 8155 data sheet for more details on these additional features.
The accompanying figure shows how the 8048 can be expanded using standard 256 X 4 static RAMs such as the 2101-2 or its low power CMOS equivalent, the 5101. An 8212 serves as an address latch while each 4-bit half of BUS is connected directly to a bidirec-
3.3 Expansion of Input/Output There are four possible modes of I/O expansion with the 8048: one using a special low cost expander, the 8243;
I/O 1-4 CS1
ALE 0S2 1m 8212 gg~ 8048
A .~2111/2101 eI2
MO
00 R/W
00 R/W
ROt--------------------4----~------------~ ~ ____ ~m~----------------------~----------------~
sus K 8 " ALE
ALE 8155
22 "
WR RAM
8048 WR
TIMER IN TIMER OUT
RD PORT
101M
3 TEST
~ INPUTS
8048 INTERFACE TO 256 X 8 STANDARD MEMORIES


another using standar.d MCS-80/85 I/O devices; and a third "using the combination memory/I/O expander devices the 8155, 8355, and 8755. It is also possible to expand using standard TTL devices as shown in Chapter 5.
bits to zero. All communication between the 8048 and the 8243 occurs over Port 2 lower (P20-P23) withtimiilg provided by an output pulse on the PROG. pin of the processor~ Each transfer consists of two 4-bit nibbles:
The first containing the "op code" and port address and the second containing the actual 4 bits of data.
The most efficient means of I/O expansion for small systems is the 8243 I/O Expander De- vice which requires only 4 port lines (lower half of Port 2) for communication with the 8048. The 8243 contains four 4-bit I/O ports which serve as extension of· the on chip I/O and are addressed as ports #4-7. The follow- ing operations may be performed on these ports:
Nibble 1 Nibble 2 3 2 1 0 3 2 1 0 II I A I A I Id I Instruction Port data Code Address
II AA 00 Read OO-Port #4 01 Write 01-Port #5 10 OR 10-Port #6 11 AND 11-Port #7
A 4-bit transfer from a port to the lower half of the Accumulator sets the most significant four
fl CHIP SELECT CONNECTIO -=- THAN ONE EXPANDER IS
N IF MORE
USED
A- ~ CS (' 20 > I/O .. " ... P4 4 I/O PROG PROG " v
INPUTS 8243 v
I/O ..
OUTPUT EXPANDER TIMING \ ___ -----..11
BITSD.l
~ ___ ~X _____ ~)~·~-
DO} READ 01 WRITE 10 OR 11 AND
DO} 01 PORT 10 ADDRESS 11
P20·P23
ADDRESS (4-BITS) DATA (4-BITS) ANDOPCODE
3·6


A high to low transition of the PROG line indi- cates that address is present while a low to high transition indicates the presence of data. Additional 8243's may be added to the four bit bus and chip selected using additional output lines from the 8048/8748.
As mentioned in the sections on program and data memory expansion the 8355/8755 and 8155 expanders also contain I/O capability.
8355/8755: These two parts are ROM and EPROM equivalents and therefore contain the same I/O structure. I/O consists of two 8-bit ports which normally reside in the exter- nal data memory address space and are ac- cessed with MOVX instructions. Associated with each port is an 8-bit Data Direction Reg- ister which defines each bit in the port as either an input or an output. The data direction registers are directly addressable thereby al- lowing the user to define under software con- trol each individual bit of the ports as either input or output. All outputs are statically latched and double buffered. Inputs are not latched.
Each of the four 4-bit ports of the 8243 can serve as either input or output and can pro- vide high drive capability in both the high and low state.
Standard MCS-80/85 type I/O devices may be added to the MCS-48 using the same bus and timing used for Data Memory expan- sion. I/O devices reside on the Data Memory bus and in the data memory address space and are accessed with the same MOVX instructions. See the previous section on data memory expansion for a description of timing. The following are a few of the Standard MCS-80 devices which are very useful in MCS-48 systems.
8155/8156: I/O on the 8155/8156 isconfig- ured as two 8-bit programmable I/O ports and one 6-bit programmable port. These three registers and a Control/Status regis- ter are accessible as external data memory with the MOVX instructions. The contents of the control register determines the mode of the three ports. The ports can be programmed as input or output with or without associated handshake communi- cation lines. In the handshake mode, lines of the six,..bit port become input and out- put strobes for the two 8-bit ports. See the
8214 Priority Interrupt Encoder 8251 Serial Communications Interface 8255 General Purpose Programmable I/O 8279 Keyboard/Display Interface 8253 Intervallimer
See Chapter 7 for detailed data sheets on these and other components.
INT
P20
8279 SCAN KEYBOARD OUTPUTS RD DISPLAY WR (A) DISPLAY
WR
OUTPUT
BUS
(B)DISPLAY
OUTPUT CS
KEYBOARD/DISPLAY INTERFACE
CfD


data sheet in Chapter 6 for details. Also included in the 8155 is a 14-bit program- mable timer. The clock input to the timer and the timer overflow output are available on external pins. The timer can be pro- grammed to stop on terminal count or to continuously reload itself. A square wave or pulse output on terminal count can also be specified.
(chip select) input used to enable the Read/ Write control logic and the address inputs used to select various internal registers.
PORT
A, 8255 PROGRAMMABLE
A
PERIPHERAL
8048 ALE
INTERFACE
PORT
B
1/0 Expansion Examples (See Also Chapter 5)
PORT
The accompanying figure shows the expansion of 1/0 using multiple 8243's. The only difference from a single 8243 system is the addition of chip selects provided by additional 8048 OLitput lines. Two output lines and a decoder could also be used to address the four chips. Large numbers of 8243's would require achip select decoder chip such as the 8205 to save 1/0 pins.
P20
P21
A,
8255 PROGRAMMABLE
PORT
A
PERIPHERAL
INTERFACE AD FA
PORT
B
Also shown is the 8048 interface to a stan- dard MCS-80 peripheral; in this case, the 8255 Programmable Peripheral Interface, a 40 pin part which provides three 8-bit pro- grammable I/O ports. The 8255 bus interface is typical of programmable MCS-80 peripher- als with an 8-bit bidirectional data bus, a RD and WR input for Read/Write control, a CS
BUS
-=- OPTION #2
INTERFACE TO MCS-SO PERIPHERALS
PORT 1 8048
PROGI------~-----__+------~--- ___ ___'
LOW COST 1/0 EXPANSION


Interconnection to the_8048 lL very straightforward with BUS, RD, and WR con- necting directly to the corresponding pins on the 8255. The only design consideration is the way in which the internal registers of the 8255 are to be addressed. If the registers are to be addressed as external data memory using the MOVX instructions, the appropriate number of address bits (in this case, 2) must be latched on BUS using ALE as described in the section on external data memories. If only a single device is connected to BUS, the 8255 may be continuously selected by grounding CS. If multiple 8255's are used, additional address bits can be latched and used as chip selects.
The accompanying figure shows the addition of two memory expanders to the 8048, one 8355/8755 ROM and one 8156 RAM. The main consideration in designing such a sys- tem is the addressing of the various memories and I/O ports. Note that in this configuration address lines A,o and A" have been ORed to chip select the 8355. This ensures that the chip is active for all external program memory fetches in the 1 K to 3K range and is disabled for all other addresses. This gating has been added to allow the I/O port of the 8355 to be used. If the chip was left selected all the time there would be conflict between these ports and the RAM and I/O of the 8156. The NOR gate could be eliminated and~" connected directly to the CE (instead of CE) input of the 8355; however, this would create a 1K word "hole" in the program memory by causing the 8355 to be active in the 2K to 4K range in- stead of the normal 1 K to 3K range.
A second addressing method eliminates ex- ternal latches and chip select decoders by using output port lines as address and chip select lines directly. This method, of course, requires the setting of an output port with ad- dress information prior to executing a MOVX instruction.
A
PORT
B
PORT
---TIMER
OUT
THE THREE COMPONENT MCS-48 SYSTEM
8156/8355


SPACE
BFFH
MB1
8355 (2K)
EXTERNAL DATA MEMORY SPACE
MBO 400H F=====ll 8~~5
RESIDENT 1-::====11 8155 ,... I 10 ------- 200H (1K) -------- 100H I
-------- 300H
RESIDENT DATA
MEMORY
(64) '------" OOOH
SECTION ADDRESS
DESIGNATION
PROG. MEM OOO-BFF DATA MEM 100-IFF 8155 PORTS 300 301 302 303 304 305 8355 PORTS 400 401 402 403
CMD/STATUS PORTA PORT B PORTC TIMER LOW TIMER HI PORT A PORTB DORA DOR B
locations directly addressable by the pointer registers RO and R1. These systems can be achieved using "bank switching" techniques. Bank switching is merely the selection of various blocks or "banks" of memory using dedicated output port lines from the processor.
Data RAM-Addresses 0 to 255 when Port 2 Bit 0 has been previously set = 1 and Bit 1 set = 0
RAM I/O-Addresses 0 to 3 when Port 2 Bit 0 = 1 and Bit 1 = 1
In the case of the 8048 program memory is selected in blocks of 4K words at a time while data memory and I/O are enabled 256 words at a time.
ROM I/O-Addresses 0 to 3 when Port 2 Bit 2 or Bit 3 = 1
See the above memory map.
menting two or more banks is the software required to cross the bank boundaries. Each crossing of the boundary requires that the processor first write a control bit to an output port before accessing memory or 1/0 in the new bank. If program memory is being switched, programs should be organized to
Certain systems may require more than the 4K words of program memory which are directly addressable by the program counter or more than the 256 data memory and I/O
1 1 · 3·10


keep boundary crossings to a minimum. Jumping to subroutines across the boundary should be avoided when possible since the programmer must keep track of which bank to return to after completion of the subrou- tine. If these subroutines are to be nested and accessed from either bank, a software "stack" should be implemented to save the bank switch bit just as if it were another bit of the
used. The BUS port lines are either active high, active low, or high impedance (float- ing).
The latched mode (INS, OUTU is intended for use in the single chip configuration where BUS is not being used as an expan- der port. OUTL and MOVX instructions can be mixed if necessary. However, a previous- ly latched output will be destroyed by exe- cuting a MOVX instruction and BUS will be left in the high impedance state. INS does not put the BUS in a high impedance state. Therefore, the use of MOVX after OUTL to put the BUS in a high impedance state is necessary before an INS instruction in- tended to read an external word (as op- posed to the previously latched value).
program counter.
From a hardware standpoint bank switching is very straight-forward and involves only the connection of an I/O liile or lines as bank enable signals. These enables are ANDed with normal memory and I/O chip select signals to activate the proper bank.
OUTL should never be used in a system with external program memory, since latch- ing BUS can cause the next instruction, if external, to be fetched improperly.
structions which activate the various control outputs of the MCS-48 processors.
The lower half of Port 2 can be used in three different ways: as a quasi, bi-directional static port, as an 8243 expander port, and to address external program memory. In all cases outputs are driven low by an active device and driven high momentarily by an active device and held high by a 50Kfl resistor to +5V.
RD DURING MOVX A,@R OR INS BUS
WR DURING MOVX @R,A OR OUTL BUS
ALE EVERY MACHINE CYCLE
PSEN DURING FETCH OF EXTERNAL PROGRAM MEMORY(INSTRUCTION OR IMMEDIATE DATA)
The port may contain latched 1/0 data prior to its use in another mode without affecting operation of either. If lower Port 2 (P20-3) is used to output address for an external program memory fetch the 1/0 information previously latched will be automatically removed temporarily while address is present then restored when the fetch is complete. However, if lower Port 2 is used to communicate with an 8243, previously latched 1/0 information will be removed and not restored. After an input from the 8243 P20-3 will be left in the input mode (floating). After an output to the 8243 P20-3 will contain the value written, ANDed, or ORed to the 8243 port.
MOVD P,A ORLD P,A
During all other instructions these outputs are driven to the inactive state.
BUS Port Operations
The BUS port can operate in three different
modes: as a latched 1/0 port, as a bi- directional bus port, or as a program memo- ry address output when external memory is
3·11


I/O
I/O
8355/8755 ROM I/O
STANDARD
RAM
2K)( 8
8049 8048 8748 8035 8039
8251 USART
8279 KEYBOARD/DISPLAY
I/O
SERIAL SERIAL OUTPUT INPUT
I/O
I/O
CJ CJ






The MCS-48 microcomputers have been designed to efficiently handle arithmetic operations in both binary and BCD as well as to efficiently handle the single bit operations required in control applications. Special instructions have also been in- cluded to simplify loop counters, table
The. MCS-48 instruction set is extensive for a machine of its size and has been tailored to be straightforward and very efficient in
its use of program memory. All instructions are either one or two bytes in length and over 70% are only one byte long. Also, all instructions execute in either one or two cycles (2.5J.Lsec or 5.0J.Lsec when using a 6 MHz XTAL) and over 50% of all instructions execute in a single cycle. Double cycle instructions include all immediate instruc- tions, and all I/O instructions.
lookup routines, and N-way branch rou- tines.
As can be seen in the accompanying diagram, the 8-bit accumulator is the central i l
ADD I MOV MOVP I MOVP3 I
EXTERNAL MEMORY AND PERIPHERALS
ANL ORL
8748 I 8035* *NO PROGRAM 8039* I MEMORY ~ ________ ---.J
DATA TRANSFER INSTRUCTIONS
8048 8049


point for all data transfers within the 8048. Data can be transferred between the 8 registers of each working register bank and the accumulator directly, i.e. the source or destination register is specified by the instruction. The remaining locations of the internal RAM array are referred to as Data Memory and are addressed indirectly via an address stored in either RO or R1 ofthe active working register bank. RO and R1 are also used to indirectly address external data memory when it is present. Transfers to and from internal RAM require one cycle while transfers to external RAM require two. Constants stored in Program Memory can be loaded directly to the accumulator and to the 8 working registers. Data can also be transfered directly between the accumulator and the on-board timer/counter or the accumulator and the Program Status word (PSW). Writing to the PSW alters machine status accordingly and provides a means of
Finally, the accumulator can be: incre- mented. decremented, cleared, or comple- mented and can be rotated left or right 1-bit at a time with or without carry.
Although there is no subtract instruction in the 8048, this operation can be easily
implemented with three single-byte single- cycle instructions.
A value may be subtracted from the accumulator with the result in the accumu- lator by:
Complementing the accumulator Adding the value to the accumulator Complementing the accumulator.
The working registers can be accessed via the accumulator as explained above, or can be loaded immediate with constants from program memory. In addition, they can be incremented or decremented or used as loop counters using the decrement and jump, if not zero instruction, as explained
restoring status after an interrupt or of altering the stack pointer if necessary.
under branch instructions.
All Data Memory including working registers can be accessed with indirect instructions via RO and R1 and can be incremented.
Immediate data, data memory, or the working registers can be added with or without carry to the accumulator. These sources can also be ANDed, ORed, or
Exclusive ORed to the accumulator. Data may be moved to or from the accumulator and working registers or data memory. The two values can also be exchanged in a single operation.
There are four user accessible flags in the 8048: Carry, Auxiliary Carry, FO, and F1. Carry indicates overflow of the accumulator, and Auxiliary Carry is used to indicate overflow between BCD digits and is used during decimal adjust operation. Both Carry and Auxiliary Carry are accessible as part of the program status word and are stored on the stack during subroutines. FO and F1 are undedicated general purpose flags to be used as the programmer desires. Both flags can be cleared or complemented and tested by conditional jump instructions. FO is also accessible via the Program Status word and is stored on the stack with the carry flags.
In addition, the lower 4 bits of the accumulator can be exchanged with the lower 4-bits of any of the internal RAM locations. This instruction, along with an instruction which swaps the upper and lower 4-bit halves of the accumulator, provides for easy handling of 4-bit quantities, including BCD numbers. To facilitate BCD arithmetic, a Decimal Adjust instruction is included. This instruction is used to correct the result of the binary addition of two tWO-digit BCD numbers. Performing a decimal adjust on the result in the accumulator produces the required BCD result.
The unconditional jump instruction is two bytes and allows jumps anywhere in the first


2K words of program memory. Jumps to the second 2K of memory (4K words are directly addressible) are made by first executing a select memory bank instruction then execu- ting the jump instruction. The 2K boundary can only be crossed via a jump or subroutine call instruction i.e. the bank switch does not occur until a jump is executed. Once a memory bank has been selected all subse- quent jumps will be to the selected bank until another select memory bank instruction is executed. A subroutine in the opposite bank can be accessed by a select memory bank instruction followed by a call instruction. Upon completion of the subroutine execu- tion will automatically return to the original bank; however, unless the original bank is reselected, the next jump instruction en- countered will again transfer execution to the opposite bank.
several different locations based on the contents of the accumulator. The contents of the accumulator points to a location in
program memory which contains the jump address. The 8-bit jump address refers to the current page of execution. This instruction could be used, for instance, to vector to any one of several routines based on an ASCII character which has been loaded in the accumulator. In this way ASCII key inputs can be used to initiate various routines.
Subroutines are entered by executing a call instruction. Calls can be made like uncondi- tional jumps to any address in a 2K word bank and jumps across the 2K boundary are executed in the same manner. Two separate return instructions determine whether or not status (upper 4-bits of PSW) is restored upon return from the subroutine.
The return and restore status instruction also signals the end of an interrupt service routine if one has been in progress.
TO Input pin T1 Input pin INT Input pin Accumulator Zero Any bit of Accumulator Carry Flag FO Flag F1 Flag
The 8-bit on board timer/counter can be loaded or read via the accumulator while the counter is stopped or while counting. The counter can be started as a timer with an internal clock source or as an event counter or timer with an external clock applied to the T1 input pin. The instruction executed determines which clock source is used. A single instruction stops the counter whether it is operating with an internal or an external clock source. In addition, two instructions allow the timer interrupt to be enabled or disabled.
Conditional jumps allow a branch to any address within the current page (256 words) of execution. The conditions tested are the instantaneous values at the time the condi- tional jump is executed. For instance, the jump on accumulator zero instruction tests the accumulator itself not an intermediate zero flag.
The decrement register and jump if not zero instruction combines a decrement and a branch instruction to create an instruction very useful in implementing a loop counter. This instruction can designate anyone of the 8 working registers as a counter and can effect a branch to any address within the current page of execution.
Two instructions allow the external interrupt source to be enabled or disabled. Interrupts are initially disabled and are automatically disabled while an interrupt service routine is
in progress and re-enabled afterward.
There are four memory bank select instruc- tions, two to designate the active working register bank and two to control program
A single byte indirect jump instruction allows the program to be vectored to anyone of


memory banks. The operation of the program memory bank switch is explained in section 3.1.2. The working register bank switch instructions allow the programmer to imme- diately substitute a second 8 register working register bank for the one in use. This effectively provides 16 working registers or it can be used as a means of quickly saving the contents of the registers in response to an interrupt. The user has the option to switch or not to switch banks on interrupt. However, if the banks are switched, the original bank will
responding READ or WRITE pulse is generated and data is valid only at that time. When data is not being transferred BUS is in a high impedance state.
The basic three on board I/O ports can be expanded via a 4-bit expander bus using half of port 2. I/O expander devices on this bus consist of four 4-bit ports which are addressed as ports 4 through 7. These ports have their own AND and OR instructions like the on board ports as well as move instructions to transfer data in or out. The expander AND and OR instructions, how- ever, combine the contents of accumu- lator with the selected port rather than immediate data as is done with the on board ports.
be automatically restored upon execution of a return and restore status instruction at the end of the. interrupt service routine.
A special instruction enables an internal clock, which is the XTAL frequency divided by three, to be output on pin TO. This clock can be used as a general purpose clock in the users system. This instruction should be used only to initialize the system since the clock output can be disabled only by application of system reset.
I/O devices can also be added externally using the BUS port as the expansion bus. In this case the I/O ports become "memory
mapped", i.e. they are addressed in the same way as external data memory and exist in the external data memory address space ad- dressed by pointer register RO or R1.
4.1 Instruction Set Description
Ports 1 and 2 are 8-bit static I/O ports which can be loaded to and from the accumulator. Outputs are statically latched but inputs are not latched and must be read while inputs are present. In addition, immediate data from program memory can be ANDed or ORed directly to Port 1 and Port 2 with the result remaining on the port. This allows "masks" stored in program memory to selectively set or reset individual bits of the I/O ports. Ports 1 and 2 are configured to allow input on a given pin by first writing a "1" out to the pin.
The following pages describe the MCS-48 instruction set in detail. The instruction set is first summarized with instructions grouped functionally. This summary page is followed
by a detailed description listed alphabetically by mnemonic opcode. The alphabetical listing includes the follow- ing information:
An 8-bit port called BUS can also be accessed via the accumulator and can have statically latched outputs as well. It too can have immediate data ANDed or ORed directly to its outputs, however, unlike ports 1 and 2, all eight lines of BUS must be treated as either input or output at anyone time. In addition to being a static port, BUS can be used as a true synchronous bi-directional port using the Move External instructions used to access external data memory. When these instructions are executed a cor-
The machine code is represented with the most significant bit (7) to the left and two byte instructions are represented with the first byte on the left. The assembly language examples are formulated as follows:
Arbitrary Label: Mnemonic, Operand; Descriptive Comment See section 1.2.2 for a description and example of an assembly language program.
4·4


Description Bytes Cycle Mnemonic Description
ADD A, R ADD A,@R ADD A, #data ADDC A, R ADDC A,@R ADDC A, #data ANL A, R ANL A, @R ANL A, "data O
Jump to subroutine c CALL addr Add reg ister to A '§ Return Add data memory to A 1 e RET
Return and restore status Add immediate to A 2 ..c RETR Add register with carry
Add data memory with carry 1 Add immediate with carry 2 2 CLR C Clear Carry
Complement Carry CPLC And register to A 1 ~ Clear Flag 0 '" CLR FO And data memory to A 1 .!! Complement Flag 0 u. CPL FO And immediate to A 2 2 Or register to A CLR F1 Clear Flag 1
Or data memory to A 1 CPL F1 Complement Flag 1
Or immediate to A 2 2 Exclusive Or register to A 1 MOV A, R Move register to A Exclusive or data memory to A 1 MOV A,@R Move data memory to A Exclusive or immediate to A 2 2 MOV A, #data Move immediate to A Increment A 1 MOV R, A Move A to register Decrement A MOV@R,A Move A to data memory Clear A MOV R, #data Move immediate to register Complement A i;'! MOV@R,#data Move immed late to data memory > Decimal Adjust A 0 MOV A, PSW Move PSW to A :;: Swap nibbles of A
INCA DECA CLR A CPLA DAA SWAP A RLA RLCA RR A RRCA
MOV PSW, A Move A to PSW Rotate A left
C XCH A, R Exchange A and register Rotate A left through carry XCHA,@R Exchange A and data memory
Rotate A right XCHD A,@R Exchange nibble of A and register Rotate A right through carry MOVX A,@R Move external data memory to A MOVX@R,A Move A to external data memory
2
IN A, P OUTL P, A ANL P, #data ;; ORL P, #data Q. ;; INS A, BUS
Input port to A 2 MOVPA,@A Move to A from cu rrent page
Output A to port 2 MOVP3 A,@A Move to A from Page 3
And immediate to port 2 2 Or immediate to port 2 2 MOV A, T Read Timer/Counter I nput BUS to A 2 ~ MOV T, A Load Timer/Counter Output A to BUS 1 2 STRTT Start Timer ~ And immediate to BUS 2 2 0 STRT CNT Start Counter ~ Or immediate to BUS 2 2 Ii STOP TCNT Stop Timer/Counter Input Expander port to A 2 E EN TCNTI Enable Timer/Counter Interrupt Output A to Expander port 2 i= DISTCNTI Disable Timer/Counter Interrupt And A to Expander port 2 Or A to Expander port 2
MOVD A, P MOVD P, A ANLD P, A ORLD P, A
EN I Enable external interrupt DIS I Disable external interrupt Increment register e Select register bank 0 SEL RBO I ncrement data memory 1: SEL RBl Select register bank 1 Decrement register 0 SEL MBO Select memory bank 0 u
~ INCR Ii 1;; INC@R '~ DEC R a:
SEL MBl Select memory bank 1
Jump unconditional 2 2 ENTO CLK Enable Clock output on TO
JMP addr JMPP@A DJNZ R, addr JC addr JNC addr J Z addr JNZ addr
Jump indi~ect 2 Decrement register and jump 2 2 NOP No Operation Jump 0" Carry = 1 2 2 Jump on Carry = 0 2 2 Jump on A Zero 2 2 Jump on A not Zero 2 2 Jump on TO ~ 1 2 2 Jump on TO ~ 0 2 2 Jump on T1 ~ 1 2 2 Jump on Tl ~ 0 2 2 Jump on FO ~ 1 2 2 Jump on Fl ~ 1 2 2 Jump on timer flag =1 2 2 Jump on INT ~ 0 2 2 Jump on Accumulator Bit 2 2
~ JTO addr u c JNTO addr = ell JT1 addr JNT1 addr JFO addr JF 1 addr JTF addr JNI addr JBb addr
Mnemonics copyright Intel Corporation 1976,


Description Bytes Cycle Mnemonic Description Bytes
Add register to A 1 JMP addr Jump unconditional 2 Add data memory to A 1 JMPP @A Jump indirect 1 Add immediate to A 2 DJNZ R,addr Decrement register and Jump 2
ADD A,R ADD A,@R ADD A.#data ADDC A,R ADDC A,@R ADDC A,#data ANL A,R ANL A,@R ANL A, #data ORL A,R
Add with carry 1 on R not zero
2
u JNC addr Jump on Carry"" a 2 2 2 c And register to A 1 1 E JZ addr Jump on A Zero 2 '" And data memory to A 1 JNZ addr Jump on A not Zero 2
And immediate to A 2 JT1 addr Jump on Tl '" 1 2 Or register to A 1 JNT1 addr Jump on Tl =- 0 2 Or data memory to A 1 1 ~ JTF addr Jump on timer flag 2 Or immediate to A 2 .g
ORL A,@R ORL A,#data :; XRL A,R E ~ XRL A,@R u u XRL A,#dat8 « INC A DEC A CLR A CPL A DA A SWAP A RL A RLC A RR A RRC A
Exclusive Or register to A
~ CALL addr Jump to subroutine 2 e Exclusive or data memory to A .c RET Return 1 ~ Exclusive or immediate to A en
Increment A CLR C Clear Carry
Decrement A ri' CPL C Complement Carry ii: Clear A Complement A MOV A,R Move register to A
Decimal Adjust A MOV A,@R Move data memory to A
Swap nibbles of A MOV A,#data Move immediate to A
Rotate A left ~ MOV R,A Move A to register > MOV @R,A Move A to data memory Rotate A left through carry 0
Rotate A right :; MOV R,#data Move immediate to register
Rotate A right through carry !! MOV @R,#data Move immediate to data memory 0 XCH A,R Exchange A and register XCH A,@R Exchange A and data memory I nput port to A XCHD A,@R Exchange nibble of A and register 1 Output A to port MOVP A,@A Move to A from cu rrent page Input Expander port to A 2 Output A to Expander port 2 ~ MOV A,T c Read Timer/Counter And A to Expander port 2 ~ MOV T,A Load Timer/Counter 0 Or A to Expander port 2 ~ STRT T Start Timer
Co ANLD P,A !; ORLD P,A
~ STRT CNT Start Counter Increment register E STOP TCNT Stop Timer/Counter Increment data memory ;:
~ INC R INC @R ~ a:
Instruction Set - The following instructions, which are found in the 8748, have been deleted from the 8021 instruction set.
Registers Branch Timer Control Input/Output
MOV A,PSW MOV PSW,A MOVX A,@R MOVX @R,A MOVP3 A,@A
DEC R JTO addr EN TCNTI EN I ANL P,#data I--- JNTO addr DIS TCNTI DIS I ORL P,#data Flags JFO addr SEL RBO INS A,BUS * ~ JFl addr Subroutine SEL RBl OUTl BUS,A *
CPl FO JNI addr RETR SEL MBa ANL BUS,#data
CLR Fl JBb addr SEL MBl ORL BUS,#data
CPL Fl ENTO ClK
"These Instructions have been replaced in the 8021 by
IN A,PO and OUTL PO,A respectively.


Hexadecimal Mnemonic Description Bytes Cycle Opcode Mnemonic Description
Hexadecimal Bytes Cycle Ope ode
ADD A,R r Add register to A 68,6F JTO Jump on TO=l ADD A,@R Add data memory to A 60-61 JNTO Jump on TO=O ADD A,#dala Add immediate 10 A 03 JTl addr Jump on Tl=l AD DC A,Rr Add register with carry 78-7F JNTl addr Jump on T1 =0 ADDC A,@R Add data 'memory with 70-71 JTF addr Jump on timer flag carry ADDC A,#data Add immediate with 13 ~ c CALL addr Jump to subroutine carry :; ANL A,R r And register to A 58-SF ~ .g RET Return ANL A,@R And data memory to A 50-51 III ANL A,#data And immediate to A 53 ORL A,Rr Or register to A 4B-4F 0 CLR C Clear carry 01 ORL A,@R Or data memory to A 40-41 .!! CPL C Complement carry "- ORL A,#data Or immediate to A 43
36 26 56 46 16
~ XRL A,Rr Exclusive Or register DB-OF MOV A,Rr Move register to A
F8-FF FO-Fl 23 A8-AF AQ-Al BS-SF
~ to A MOV A,@R Move data memory to A E ~ XRL A,@R Exclusive Or data 00-01 MOV A,#data Move immediate to A u u memory to A MOV Rr,A Move A to register '" XRL A,#data Exclusive Or immediate 03 MOV@R,A Move A to data memory to A MOV Rr. # data Move immediate to INC A Increment A 17 0 register ~ DEC A Decrement A 07 ~ MOV@R,#data Move immediate to CLR A Clear A 27 :I data memory ~ CPL A Complement A 37 'iii XCH A, Rr Exchange A and Q DA A Decimal adjust A 57 register SWAP A Swap nibbles of A 47 XCH A,@R Exchange A and data RL A Rotate A left E7 memory RLC A Rotate A left through F7 XCHD a,@R Exchange nibble of A carry and register RR A Rotate A right 77 MOVPA,@A Move to A from current RRC A Rotate A right through 67 page carry
A3
S MOV A,T Read timer I counter IN A, Pp Input port to A 08,09,OA c MOV T,A Load timer I counter ~ 0 OUTL PpA Output A to port 90,39,3A !:: STRT T Start timer ;; MOVD A,Pp Input expander port OC-OF ~ STRT CNT Start counter ~ to A ~ STOP TCNT Stop timer / counter ~ MOVD Pp.A Output A to expander 3C-3F ;; .. port ~ RAD Move conversion result = ANLD Pp.A And A to expander port 9C-9F 1: register to A ~ ORLD Pp,A Or A to expander port BC-SF > SEL ANO Select analog input c 0 U zero
42 62 55 45 65
Q SEL ANl Select analog input one INC Rr Increment register lB-1F ;,
';;, INC@R Increment data memory 10-11
~ EN I Enable external a: interrupt
JMP addr Jump unconditional 04,24,44,64, DIS I Disable external
EN TCNTI Enable timer / counter .c DJNZ R,addr Decrement register and ES-EF interrupt u = DIS TCNTI Disable timer / counter c jump on R not zero ~ interrupt JC addr Jump on carry= 1 F6 RET I Return from interrupt JNC addr Jump on carry=O E6 JZ addr Jump on A zero C6 NOP No operation JNZ addr Jump on A not zero 96
Mnemonics copyright Intel Corporation, 1978_
Instruction Set - The following instructions, which are found in the 8748, have been deleted from the 8022 instruction set.
Data Moves Ragisters Branch Control Input/Output
MOV A,PSW DEC R ANL P,#data MOV PSW,A r-- ORL P,#data MOVX A,@A Flags JFO addr SEL ABO INS A,BUS * MOVX @R,A ~ JF1 addr Subroutine SEL RBl OUTL BUS,A * MOVP3 A,@A CPl FO JNI addr RETR SEL MBO ANL BUS,#data
CLR F1 JBb addr SEL MBl ORL BUS,#data
CPL F1 ENTO ClK
-These Instructions have been replaced in the 8022 by IN A,PO and OUTL PO,A respectively,


A AC addr
Accumulator Auxiliary Carry 12-Bit Program Memory Address
Bb
Bit Designator (b=0-7)
BS
Bank Switch
BUS
BUS Port Carry
C ClK CNT
Clock
Event Counter
CRR D
Conversion Result Register Mnemonic for 4-Bit Digit (Nibble)
data
8-Bit Number or Expression
DBF
Memory Bank Flip-Flop
Flag 0, Flag 1 Interrupt
I P
Mnemonic for "in-page" Operation
PC Pp
Program Counter
Port Designator (p=1, 2 or 4-7)
PSW
Program Status Word
Rr
Register Designator (r=O, 1 or 0-7)
SP
Stack Pointer
T
Timer
TF
Timer Flag
TO, T1 X
Test 0, Test 1
Mnemonic for External RAM
# @ $
Immediate Data Prefix
Indirect Address Prefix
Current Value of Program Counter
(X)
Contents of X
((X))
Contents of location Addressed by X
Is Replaced by
Mnemonics copyright Intel Corporation 1976.


ADD A,Rr Add Register Contents to Accumulator
1011011rrri
The contents of register 'r' are added to the accumulator. Carry is affected.
r=0-7
Example: ADDREG: ADD A,R6
;ADD REG 6 CONTENTS ;TO ACC
ADD A,@R r Add Data Memory Contents to Accumulator
101101000ri
The contents of the resident data memory location addressed by register 'r' bits 0-5*are added to the accumulator. Carry is affected.
Example: ADDM: MOV RO, #01 FH ;MOVE '1 F' HEX TO REG 0 ADD A, @RO ;ADD VALUE OF LOCATION ;31 TO ACC
1 00 0 0 1 0 0 1 11 I d7 d6 ds d4 I d3 d2 d1 do I
This is a 2-cycle instruction. The specified data is added to the accumulator. Carry is affected
Example: ADDID: ADD A,#ADDER: ;ADD VALUE OF SYMBOL
;'ADDER' TO ACC
ADDC A,R r Add Carry and Register Contents to Accumulator
1011111rrri
The content of the carry bit is added to accumulator location 0 and the carry bit cleared. The contents of register 'r' are then added to the accumulator. Carry is affected.
Mnemonics copyright Intel Corporation 1976. '0-6 for 8039/8049


ADDC A,@Rr Add Carry and Data Memory Contents to Accumulator
101111 0 0 0r i
The content of the carry bit is added to accumulator location 0 and the carry bit c;:leared. Then the contents of the resident data memory location aqdressed by register Or' bits 0-5*are added to the accumulator. Carry is affected.
r=0-1
Example: ADDMC: MOV R1,#40
;MOVE '40' DEC TO REG 1
AD DC A,@R1 ;ADD CARRY AND LOCATION 40 ;CONTENTS TO ACC
AD DC A,#data Add Carry and Immediate Data to Accumulator
I 0 0 0 1 I 0 0 1 1 I I d7 de d5 d4 I d3 d2 d1 do I
This is a 2-cycle instruction. The content of the carry bit is added to accumulator location 0 and the carry bit cleared. Then the specified data is addec;l to the accumulator. Carry is affected.
Example: ADDC A,#225 ;ADD CARRY AND '225' DEC ;TO ACC
ANL A,Rr Logical AND Accumulator With Register Mask
1010111rrri
Data in the accumulator is logically ANDed with the mask contained in working register or'.
ANL A,@Rr Logical AND Accumulator With Memory Mask
101011 000r i
Data in the accumulator is logically ANDed with the mask contained in the data memory location referenced by register or', bits 0-5~
Example: ANDDM: MOV RO,#03FH ;MOVE '3F' HEX TO REG 0
ANL A, @RO ;'AND' ACC CONTENTS WITH ;MASK IN LOCATION 63
Mnemonics copyright Intel Corporation 1976. . '0-6 for 8039/8049


ANL A,#data Logical AND Accumulator With Immediate Mask
I 0 1 0 1 I 0 0 1 1 I 1 d7 d6 ds d4 1 d3 d2 d1 do 1
is logically ANDed with an immediately-specified mask.
Examples: ANDID: ANL A,#OAFH ;'AND' ACC CONTENTS ;WITH MASK 10101111 ANL A,#3+X/Y ;'AND' ACC CONTENTS ;WITH VALUE OF EXP ;'3+X/Y'
11 0 0 1 11 0 0 0 1 1 d7 d6 ds d4 1 d3 d2 d1 do I
This is a 2-cycle instruction. Data on' the BUS port is logically ANDed with an immediately-specified mask. This instruction assumes prior specification of an 'OUTL BUS, A' instruction.
;WITH MASK EQUAL VALUE ;OF SYMBOL 'MASK'
ANL Pp,#data Logical AND Port 1-2 With Immediate Mask (Not in 8021,8022)
11 00 1 11 0 P P I I d7 d6 ds d4 I d3 d2 d1 do I
This is a 2-cycle instruction. Data on port 'p' is logically ANDed with an immediately-specified mask.
11001111ppl
This is a 2-cycle instruction. Data on port 'p' is logically ANDed with the digit mask contained in accumulator bits 0-3.
Mnemonics copyright Intel Corporation 1976.


1 0 Port o 0 4 015 1 0 6 1 1 7
CALL address Subroutine Call
la10a9as1101001 la7asa5a41a3a2a1aol
This is a 2-cycle instruction. The program counter and PSW bits 4-7 are saved in the stack. The stack pOinter (pSW bits 0-2) is updated. Program control is then passed to the location specified by 'address'. PC bit 11 is determined by the most recent SEL MB instruction.
A CALL cannot begin in locations 2046-2047 or 4094-4095. Execution continues at the instruction following the CALL upon return from the subroutine.
((SP)) (PC), (PSW 4-7) (SP) (SP)+1 (PCS-10) (addrS-10) (PCO-7) addrO-7 (PC 11) DBF
locations 50, 51 and total in location 52.
MOV RO,#50 ;MOVE '50' DEC TO ADDRESS ;REG 0 BEGADD: MOV A,R1 ;MOVE CONTENTS OF REG 1 ;TO ACC ADD A,R2 ;ADD REG 2 TO ACC CALL SUBTOT;CALL SUBROUTINE 'SUBTOT' ADD A R3 ;ADD REG 3 TO ACC ADD A,R4 ;ADD REG 4 TO ACC CALL SUBTOT ;CALL SUBROUTINE 'SUBTOT' ADD A,R5 ;ADD REG 5 TO ACC ADD A,R6 ;ADD REG 6 TO ACC CALL SUBTOT ;CALL SUBROUTINE 'SUBTOT'
SUBTOT: MOV @RO,A ;MOVE CONTENTS OF ACC TO ;LOCATION ADDRESSED BY ;REG 0 INC RO ;INCREMENT REG 0 RET ;RETURN TO MAIN PROGRAM
Mnemonics copyright Intel Corporation 1976.


CLR A Clear Accumulator
10010101111
The contents of the accumulator are cleared to zero.
CLR C Clear Carry Bit
11001101111
During normal program execution, the carry bit can be set to one by the ADD, ADDC, RLC, CPL C, RRC, and DAA instructions. This instruction resets the carry bit to zero. C.-O
1 1010 101011
Flag 1 is cleared to zero.
CLR FO Clear Flag 0 (Not in 8021, 8022)
11 00 0 101011
Flag 0 is cleared to zero.
CPL A Complement Accumulator
10011101111
The contents of the accumulator are complemented. This is strictly a one's complement. Each one is changed to zero and vice-versa.
Example: Assume accumulator contains 01101010.
The setting of the carry bit is complemented; one is changed to zero, and zero is changed to one.
Example: Set C to one; current setting is unknown.
CT01: CLR C ;C IS CLEARED TO ZERO CPL C ;C IS SET TO ONE Mnemonics copyright Intel Corporation 1976. 4-13


CPL FO Complement Flag 0 (Not in 8021,8022)
11001101011
The setting of flag 0 is complemented; one is changed to zero, and zero is changed to one.
CPL F1 Complement Flag 1 (Not in 8021,8022)
11011101011
The setting of flag 1 is complemented; one is changed to zero, and zero is changed to one.
DA A Decimal Adjust Accumulator
1 0101 101111
The 8-bit accumulator value is adjusted to form two 4-bit Binary Coded Decimal (BCD) digits following the binary addition of BCD numbers. The carry bit C is affected. If the contents of bits 0-3 are greater than nine, or if AC is one, the accumulator is incremented by six.
The four high-order bits are then checked. If bits 4-7 exceed nine, or if C is one, these bits are increased by six. If an overflow occurs, C is set to one. I
Example: Assume accumulator contains 10011011.
DA A ;ACC ADJUSTED TO 00000001 ;WITH C SET C AC 7 4 3 0 o 010011011
o 1 1 0 ADD SIX TO BITS 0-7 o 010100001 o 1 1 0 ADD SIX TO BITS 4-7 1 0 1 OVERFLOW TO C
10000101111
The contents of the accumulator are decremented by one.
Mnemonics copyright Intel Corporation 1976.
4·14


Example:
Decrement contents of external data memory location 63.
MOV RO,#3FH ;MOVE '3F' HEX TO REG 0 MOVX A,@RO ;MOVE CONTENTS OF LOCATION 63
;TO ACC ;DECREMENT ACC ;MOVE CONTENTS OF ACC TO ;LOCATION 63 IN EXPANDED ;MEMORY
DEC Rr Decrement Register
(Not in 8021, 8022)
1110011rrri
The contents of working register 'r' are decremented by one.
Example: DECR1: DEC R1 ;DECREMENT CONTENTS OF REG 1
DIS I Disable External Interrupt (Not in 8021)
10001101011
External interrupts are disabled. A low signal on the interrupt input pin has no effect.
10011101011
Timer/counter interrupts are disabled. Any pending timer interrupt request is cleared. The interrupt sequence is not initiated by an overflow, but the timer flag is set and time accumulation continues.
11 1 1 0 11 r r r 1 1 a7 a6 a5 a4 1 a3 a2 a1 ao 1
This is a 2-cycle instruction. Register 'r' is decremented and tested for zero. If the register contains all zeros, program control falls through to the next instruction. If the register contents are not zero, control jumps to the specified 'address'.
The address in this case must evaluate to 8-bits, that is, the jump must be to a location within the current 256-location page.
Mnemonics copyright Intel Corporation 1976.
4·15


Example: Increment values in data memory locations 50-54.
MOV RO,#50 ;MOVE '50' DEC TO ADDRESS ;REG 0 MOV R3,#5 ;MOVE '5' DEC TO COUNTER ;REG 3 INCRT: INC @RO ;INCREMENT CONTENTS OF ;lOCATION ADDRESSED BY ;REG 0 INC RO ;INCREMENT ADDRESS IN REG 0 DJNZ R3, INCRT ;DECREMENT REG 3 - JUMP TO ;'INCRT' IF REG 3 NONZERO NEXT - ;'NEXT' ROUTINE EXECUTED ;IF R3 IS ZERO
10000101011
External interrupts are enabled. A low signal on the interrupt input pin initiates the interrupt sequence.
10010101011
Timer/counter interrupts are enabled. An overflow of the timer/counter initiates the interrupt sequence.
The test 0 pin is enabled to act as the clock output. This function is disabled by a system reset.
IN A,Pp Input Port or Data to Accumulator
10000110ppi
This is a 2-cycle instruction. Data present on port 'p'
is transferred (read) to the accumulator. In the 8021 IN A,P2 inputs P20-P23 to AO-A3 while A4-A7 is set to zero.
Mnemonics copyright Intel Corporation 1976.


;INPUT PORT 1 CONTENTS ;TO ACC ;MOVE ACC CONTENTS TO ;REG 6 ;INPUT PORT 2 CONTENTS ;TO ACC MOV R7,A ;MOVE ACC CONTENTS TO REG 7
INC A Increment Accumulator
10001101111
The contents of the accumulator are incremented by one.
Example: Increment contents of location 100 in external data memory.
INCA: MOV RO,#100 ;MOVE '100' DEC TO ADDRESS ;REG 0 MOVX A,@RO ;MOVE CONTENTS OF LOCATION ;100 TO ACC INC A ;INCREMENT A MOVX @RO,A ;MOVE ACC CONTENTS TO ;LOCATION 100
1000111rrri
The contents of working register Or' are incremented by one.
Example: INCRO: INC RO ;INCREMENT ADDRESS REG 0
INC @Rr Increment Data Memory Location
100011000ri
The contents of the resident data memory location addressed by register Or' bits 0-5*are incremented by one.
Mnemonics copyright Intel Corporation 1976.
'0-6 .Ior 8039/8049


IN A,PO I"puto' Port 0 Data to Accumulator (8021, 8022 Only)
Same as INS A,BUS except no RD pulse generated. INS A,BUS Strobed I"put of BUS Data to Accumulator
This is a 2-cycle instruction. Data present on the BUS port is transferred (read) to the accumulator when the RD pulse is dropped. (Refer to section on programming memory expansion for details).
Example: INPBUS: INS A,BUS ;INPUT BUS CONTENTS ;TO ACC
JBb address Jump If Accumulator Bit is Set (Not in 8021, 8022) I b2 b1 bo 1 I 0 0 1 0 I 1 a7 a6 as a4 I a3 a2 a1 aO I
This is a 2-cycle instruction. Control passes to the specified address if accumulator bit 'b' is set to one. b=0-7
If Bb=1 If Bb=O
Example: JB4IS1: JB4 NEXT
;JUMP TO 'NEXT' ROUTINE ;IF ACC BIT 4=1
JC address Jump If Carry Is Set
11 0 1 1 0 1 I a7 a6 as a4 I a3 a2 a1 aO I
This is a 2-cycle instruction. Control passes to the specified address if the carry bit is set to one.
If C=1 If C=O
Example: JC1: JC OVFLOW
;JUMP TO 'OVFLOW' ROUTINE ;IF C=1
JFO address Jump If Flag Ols Set (Not in 8021, 8022)
11 0 1 1 1 0 1 1 0 1 ~ a6 as a4 I a3 a2 a1 ao I
This is a 2-cycle instruction. Control passes to the specified address if flag 0 is set to one.
Example: JFOIS1: JFO TOTAL
;JUMP TO 'TOTAL' ROUTINE ;IF FO=1
Mnemonics copyright Intel Corporation 1976.
4·18


JF1 address Jump If Flag 1 Is Set (Not in 8021, 8022)
1 0 1 0 1 1 0 1 1 a7 a6 as a4 1 a3 a2 a1 ao 1
This is a 2-cycle instruction. Control passes to the specified address if flag 1 is set to one.
Example: JF1IS1: JF1 FILBUF
;JUMP TO 'FILBUF' ;ROUTINE IF F1=1
JMP address Direct Jump Within 2K Block
I a10 ag as 0 I 0 1 0 0 1 I a7 a6 as a4 1 a3 a2 a1 ao 1
This is a 2-cycle instruction. Bits 0-10 of the program counter are replaced with the directly-specified address. The setting of PC bit 11 is determined by the most recent SELECT MB instruction.
JMP SUBTOT JMP $-6
;JUMP TO SUBROUTINE 'SUBTOT ;JUMP TO INSTRUCTION SIX LOCATIONS ;BEFORE CURRENT LOCATION ;JUMP TO ADDRESS '2F' HEX
JMPP @A Indirect Jump Within Page
11011100111
This is a 2-cycle instruction. The contents of the program memory location pointed to by the accumulator are substituted for the 'page' portion of the program counter (PC bits 0-7).
Example: Assume accumulator contains OFH.
11 1 1 0 1 0 1 1 0 1 I a7 a6 as a4 1 a3 a2 a1 ao I·
This is a 2-cycle instruction. Control passes to the specified address if the carry bit is not set, that is, equals zero.
Mnemonics copyright Intel Corporation 1976.


(PCO-7)~ addr (PC) = (PC)+2
If C=O IF C=1
Example: JCO: JNC NOVFLO ;JUMP TO 'NOVFLO' ROUTINE ;If C=O
JNI address Jump If Interrupt Input is Low (Not in 8021, 8022)
11 0 0 0 1 0 1 1 0 I 1 a7 a6 as a4 I a3 a2 a1 ao I
This is a 2-cycle instruction. Control passes to the specified address if the interrupt input signal is low (=0), that is, an external interrupt has been signaled. (This signal initiates an interrupt service sequence if the external interrupt is enabled.)
Example: LOC 3: JNI EXTINT ;JUMP TO 'EXTINT' ROUTINE ;If 1=0
JNTO address Jump If Test 0 Is Low (Not in 8021)
1 0 0 1 0 1 0 1 1 0 1 1 a7 a6 as a4 1 a3 a2 a1 ao I
This is a 2-cycle instruction. Control passes to the specified address, if the test 0 signal is low
If TO=O If TO=1
Example: JTOLOW: JNTO 60
;JUMP TO LOCATION 60 DEC ;IF TO=O
JNT1 address Jump If Test 1 Is Low
This is a 2-cycle instruction. Control passes to the specified address, if the test 1 signal is low.
JNZ address Jump If Accumulator Is Not Zero
11 0 0 1 1 0 1 1 0 1 1 a7 a6 as a4 1 a3 a2 a1 ao I
This is a 2-cycle instruction. Control pases to the specified address if the accumulator contents are nonzero at the time this instruction is executed.
If A"tO If A=O
Example: JACCNO: JNZ OABH
;JUMP TO LOCATION 'AB' HEX ;IF ACC VALUE IS NONZERO
Mnemonics copyright Intel Corporation 1976.


JTF address Jump If Timer Flag Is Set I 0 0 0 1 I 0 1 1 0 I I a7 a6 as a4 I a3 a2 a1 ao I
This is a 2-cycle instruction. Control passes to the specified address if the timer flag is set to one, that is, the timer/counter register has overflowed. Testing the timer flag resets it to zero. (This overflow initiates an interrupt service sequence if the timer-overflow interrupt is enabled.)
Example: JTF1: JTF TIMER
;JUMP TO 'TIMER' ROUTINE ;IFTF=1
JTO address Jump If Test 0 Is High (Not in 8021) I 0 0 1 1 I 0 1 1 0 I I a7 a6 as a4 I a3 a2 a1 ao I
This is a 2-cycle instruction. Control passes to the specified address if the test 0 signal is high (=1).
If TO=1 If TO=O
Example: JTOHI: JTO 53 ;JUMP TO LOCATION 53 DEC ;IF TO=1
JT1 address Jump If Test 1 Is High I 0 1 0 1 I 0 1 1 0 I I a7 a6 as a4 I a3 a2 a1 ao I
This is a 2-cycle instruction. Control passes to the specified address if the test 1 signal is high (=1).
Example: JT1HI: JT1 COUNT ;JUMP TO 'COUNT' ROUTINE ;IF T1=1
JZ address Jump If Accumulator Is Zero
This is a 2-cycle instruction. Control passes to the specified address if the accumulator contains all zeros at the time this instruction is executed.
Example: JACCO: JZ OA3H
;JUMP TO LOCATION 'A3' HEX ;IF ACC VALUE IS ZERO
Mnemonics copyright Intel Corporation 1976.
4·21


Mev A, #data Move Immediate Data to Accumulator
1 001 0 1 0 0 1 d7 d6 ds d4 J d3 d2 d1 do 1
This is a 2-cycle instruction. The 8-bit value specified by 'data' is loaded in the accumulator.
Example: MOV A,#OA3H ;MOVE 'A3' HEX TO ACC
MaV A,PSW Move PSW Contents to Accumulator (Not in 8021, 8022)
11100101111
The contents of the program status word are moved to the accumulator.
Example: Jump to 'RB1SET' routine if PSW bank switch, bit 4, is set. BSCHK: MOV A,PSW ;MOVE PSW CONTENTS TO ACC JB4 RB1SET ;JUMP TO 'RB1SET' IF ACC ;BIT 4=1
11111J1rrri
8-bits of data are moved from working register 'r' into the accumulator.
r=0-7
Example: MAR: MOV A,R3
;MOVE CONTENTS OF REG 3 ;TO ACC
MaV A,@R r Move Data Memory Contents to Accumulator
111111000rl
The contents ot the resident data memory location addressed by bits 0-5*ot register 'r' are moved to the accumulator. Register 'r' contents are unaffected.
Example: Assume R1 contains 00110110. MADM: MOV A,@R1 ;MOVE CONTENTS OF DATA MEM ;LOCATION 54 TO ACC
Mnemonics copyright Intel Corporation 1976. '0-6 for 8039/8049 4-22


Mev A,T Move Timer/Counter Contents to Accumulator
10100100101
The contents of the timer/event-counter register are moved to the accumulator.
Example: Jump to "EXIT" routine when timer reaches '64',
that is, when bit 6 set - assuming initialization 64, TIMCHK: MOV A,T ;MOVE TIMER CONTENTS TO ;ACC JB6 EXIT ;JUMP TO 'EXIT' IF ACC BIT ;6=1
The contents of the accumulator are moved into the program status word. All condition bits and the stack pointer are affected by this move.
Example: Move up stack pointer by two memory locations,
that is, increment the pointer by one.
INCPTR: MOV A,PSW ;MOVE PSW CONTENTS TO ACC INC A ;INCREMENT ACC BY ONE MOV PSW,A ;MOVE ACC CONTENTS TO PSW
1101011rrri
The contents of the accumulator are moved to
register 'r'.
Example: MRA: MOV RO,A
;MOVE CONTENTS OF ACC TO ;REG 0
MOV Rr,#data Move Immediate Data to Register
This is a 2-cycle instruction. The 8-bit value specified by 'data' is moved to register 'r'.
Mnemonics copyright Intel Corporation 1976.


Examples: MIR4: MOV R4,#HEXTEN ;THE VALUE OF THE SYMBOL
;'HEXTEN' IS MOVED INTO ;REG 4 MIR 5: MOV R5,#PI*(R*R) ;THE VALUE OF THE
;EXPRESSION 'PI*(R*R) ;IS MOVED INTO REG 5 MIR 6: MOV R6, #OADH ;'AD' HEX IS MOVED INTO ;REG .6 MaV @Rr,A Move Accumulator Contents to Data Memory
This is a 2-cycle instruction. The contents of the accumulator are moved to the resident data memory location whose address is specified by bits 0-5* of register 'r'. Register 'r' contents are unaffected.
Example: Assume RO contains 00000111. MDMA: MOV @RO,A ;MOVE CONTENTS OF ACC TO ;LOCATION 7 (REG 7)
11 0 1 1 1 0 0 0 r 1 1 d7 d6 ds d4 1 d3 d2 d1 do 1
This is a 2-cycle instruction. The 8-bit value specified by 'data' is moved to the resident data memory location addressed by register 'r', bits 0-5~
Examples: Move the hexadecimal value AC3F to locations 62-63.
MIDM: MOV RO,#62 ;MOVE '62' DEC TO ADDR REG 0 MOV @RO,#OACH ;MOVE 'AC' HEX TO LOCATION 62 INC RO ;INCREMENT REGO TO '63' MOV @RO,#3FH ;MOVE '3F' HEX TO LOCATION 63
The contents of the accumulator are moved to the timer/event-counter register.
Example: Initialize and start event counter. INITEC: CLR A ;CLEAR ACC TO ZEROS MOV T,A ;MOVE ZEROS TO EVENT COUNTER STRT CNT ;ST ART COUNTER
Mnemonics copyright Intel Corporation 1976, 4-24 '0-6 for 8039/8049


MOVO A,Pp Move Port 4-7 Data to Accumulator
10000111ppi
This is a 2-cycle instruction. Data on 8243 port 'p' is moved (read) to accumulator bits 0-3. Accumulator bits 4-7 are zeroed.
Example: INPPT5: MOVD A,P5 ;MOVE PORT 5 DATA TO ACC ;BITS 0-3, ZERO ACe BITS 4-7
10011111ppl
bits 0-3 is moved (written) to 8243 port 'p'. Accumulator bits 4-7 are unaffected. (See NOTE above regarding port mapping.)
Example: Move data in accumulator to ports 4 and 5.
OUTP45: MOVD P4,A ;MOVE ACC BITS 0-3 TO PORT 4 SWAP A ;EXCHANGE ACC BITS 0-3 AND 4-7 MOVD P5,A ;MOVE ACC BITS 0-3 TO PORT 5
The contents of the program memory location addressed by the accumulator are moved to the accumulator. Only bits 0-7 of the program counter are' affected, limiting the program memory reference to the current page. The program counter is restored following this operation
Mnemonics copyright Intel Corporation 1976.
4·25


Example: MOV128: MOV A,#128
;MOVE '128' DEC TO ACC ;CONTENTS OF 129th LOCATION ;IN CURRENT PAGE ARE MOVED TO ;ACC
MOVP3 A,@A Move Page 3 Data to Accumulator (Not in 8021,8022)
11110100111
This is a 2-cycle instruction. The contents of the program memory location (within page 3) addressed by the accumulator are moved to the accumulator. The program counter is restored following this operation.
contained at the beginning of page 3. Note that ASCII characters are designated by a 7-bit code; the eighth bit is always reset. TABSCH: MOV A,#OB8H ;MOVE 'B8' HEX TO ACC (10111000)
ANL A,#7FH ;LOGICAL AND ACC TO MASK BIT ;7 (00111000) MOVP3 A,@A ;MOVE CONTENTS OF LOCATION
;'38' HEX IN PAGE 3 TO ACC ;(ASCII '8') Access contents of location in page 3 labelled TAB1. Assume current program location is not in page 3. TABSCH: MOV A,#LOW TAB1 ;ISOLATE BITS 0-7 OF LABEL
;ADDRESS VALUE MOVP3 A,@A ;MOVE CONTENTS OF PAGE 3 ;LOCATION LABELED 'TAB1' ;TO ACC
11 000 I 000 r I (Not in 8021, 8022)
This is a 2-cycle instruction. The contents of the external data memory location addressed by register 'r' are moved to the accumulator. Register 'r' contents are unaffected.
Example: Assume R1 contains 01110110.
Mnemonics copyright Intel Corporation 1976.
(PCo-7)+(A) (PCS_11)+0011 (A)+«PC))


MOVX @Rr,A Move Accumulator Contents to External Data Memory
11 00 1 1 00 0 r 1 (Not in 8021, 8022)
This is a 2-cycle instruction. The contents of the accumulator are moved to the external data memory location addressed by register 'r'. Register 'r' contents are unaffected.
Example: Assume RO contains 11000111.
MXDMA: MOVX @RO,A ;MOVE CONTENTS OF ACC TO ;LOCATION 199 IN EXPANDED ;DATA MEMORY NOP The NOP Instruction
No operation is performed. Execution continues with the following instruction.
101001 1rrr i
Data in the accumulator is logically ORed with the mask contained in working register 'r'.
Example: ORREG: ORL A,R4 ;'OR' ACC CONTENTS WITH ;MASK IN REG 4
ORL A,@Rr Logical OR Accumulator With Memory Mask
10 100 1000rl
Data in the accumulator is logically ORed with the mask contained in the resident data memory location referenced by register 'r', bits 0-5*
Example: ORDM: MOV RO,#3FH
;MOVE '3F' HEX TO REG 0 ;'OR' ACC CONTENTS WITH MASK ;IN LOCATION 63
ORL A,#data Logical OFJ Accumulator With Immediate Mask
1 0 1 0 0 1 0 0 1 1 1 I d7 dB ds d4 I d3 d2 d1 do I
This is a 2-cycle instruction. Data in the accumulator is logically ORed with an immediately-specified mask.
Example: ORID: ORL A,#'X'
;'OR' ACC CONTENTS WITH MASK ;01011000 (ASCII VALUE OF 'X')
Mnemonics copyright Intel Corporation 1976.
'0-6 for 8039/8049


ORl BUS,#data logical OR BUS With Immediate Mask (Not in 8021,8022)
11 0 0 0 11 0 0 0 1 1 d7 d6 ds d4 1 d3 d2 d1 do 1
This is a 2-cycle instruction. Data on the BUS port is logically ORed with an immediately-specified mask. This instruction assumes prior specification of an 'OUTL BUS,A' instruction. (BUS)-- (BUS) OR data
;MASK EQUAL VALUE OF SYMBOL ;'HEXMSK' ORl Pp, #data logical OR Port 1 or 2 With Immediate Mask (Not in
11 00 0 11 0 P p 1 1 d7 d6 ds d4 1 d3 d2 d1 dO 1 8021, 8022)
This is a 2-cycle instruction. Data on port 'p' is logically ORed with an immediately-specified mask. (Pp)-- (Pp) OR data p=1-2 Example: ORP1: ORL P1, #OFFH ;'OR' PORT 1 CONTENTS WITH ;MASK 'FF' HEX ( SET PORT 1 ;TO ALL ONES) ORlD Pp,A logical OR Port 4-7 With Accumulator Mask
logically ORed with the digit mask contained in accumu lator bits 0-3.
;'OR' PORT 7 CONTENTS ;WITH ACC BITS 0-3 OUTl PO, A Output Accumulator Data to Port 0 (8021, 8022 Only)
11001100001 OUTl BUS,A Output Accumulator Data to BUS (Not in 8021,8022)
100001·00101
This is a 2-cycle instruction. Data residing in the accumulator is transferred (written) to the BUS port and latched. The latched data remains valid until altered by anotherOUTL instruction. Any other instruction requiring use of the BUS port (except INS) destroys the contents of the BUS latch. This includes expanded memory operations (such as the MOVX instruction). Logical operations on BUS data (AND, OR) assume the OUTL BUS,A instruction has been issued previously .
. (BUS) -- (A)
Example: OUTLB!?: OUTL BUS,A ;OUTPUT ACC CONTENTS TO BUS Mnemonics copyright Intel Corporation 1976.


OUTL Pp,A Output Accumulator Data to Port 1 or 2
10011110ppl
This is a 2-cycle instruction. Data residing in the accumulator is transferred (written) to port 'p' and latched.
Example: OUTLP: MOV A,R7
;MOVE REG 7 CONTENTS TO ACC ;OUTPUT ACC CONTENTS TO PORT 2 ;MOVE REG 6 CONTENTS TO ACC ;OUTPUT ACC CONTENTS TO PORT 1
RAD Move Conversion Result Register to Accumlator (8022 Only)
11000100001
This is a two cycle instruction. The contents of the AID conversion
result register are moved to the accumulator.
RET Return Without PSW Restore
11000100111
This is a 2-cycle instruction. The stack pointer
(PSW bits 0-2) is decremented. The program counter is then restored from the stack. PSW bits 4-7 are not restored.
RETI Return From Interrupt (8022 Only)
11001100111
This is a two cycle instruction. The stack pointer is decremented and the program counter is restored from the stack. Interrupt input logic is re-enabled.
·Mnemonics copyright Intel Corporation 1976.


RETR Return With PSW Restore (Not in 8021, 8022)
11001100111
This is a 2-cycle instruction. The stack pointer is decremented. The program counter and bits 4-7 of the PSW are then restored from the stack. Note that RETR should be used to return from an interrupt, but should not be used within the interrupt service
routine as it signals the end of an interrupt routine by resetting the Interrupt in Progress flipflop.
RL A Rotate Left Without Carry
11 110101111
The contents of the accumulator are rotated left one bit. Bit 7 is rotated into the bit 0 position.
Example: Assume accumulator contains 10110001 ..
RLNC: RL A ;NEW ACC CONTENTS ARE 01100011.
11111101111
The contents of the accumulator are rotated left one bit. Bit 7 replaces the carry bit; the carry bit is rotated into the bit 0 position.
(AO)-- (C) (C)-- (A7)
Example: . Assume accumulator conta,ins a 'signed' number;
isolate sign without changing value. RL TC: CLR C ;CLEAR CARRY TO ZERO RLC A ;ROTATE ACC LEFT, SIGN ;BIT (7) IS PLACED IN CARRY RR A ;ROTATE ACC RIGHT - VALUE (BITS 0-6) IS RESTORED, ;CARRY UNCHANGED, BIT 7 ;IS ZERO
Mnemonics copyright Intel Corporation 1976.
4·30


RR A Rotate Right Without Carry
10111\011 1 1
The contents of the accumulator are rotated right one bit. Bit 0 is rotated into .the bit 7 position
n=0-6
Example: Assume accumulator contains 10110001.
RRC A Rotate Right Through Carry
10110\01111
The contents of the accumulator are rotated right one bit. Bit 0 replaces the carry bit; the carry bit is rotated into the bit 7 position.
n=0-6
Example: Assume carry is not set and accumulator contains
10110001. RRTC: RRC A ;CARRY IS SET AND ACC ;CONTAINS 01011000
SEL ANO Select Analog Input Zero (8022 Only)
11001101011
SEL AN1 Select Analog Input One (8022 Only)
11000101011
One of the two analog inputs to the AID converter is selected. The conversion process is started. Restarting a sequence deletes the sequence in progress.


SEL MBO Select Memory Bank 0 (Not in 8021, 8022)
11110101011
PC bit 11 is set to zero on next JMP or CALL instruction. All references to program memory addresses fall within the range 0-2047.
Example: Assume program counter contains 834 Hex.
;SELECT MEMORY BANK 0 ;JUMP TO LOCATION ;48 HEX
SEL MB1 Select Memory Bank 1
(Not in 8021, 8022)
11111101011
PC bit 11 is set to one on next JMP or CALL instruction. All references to program memory addresses fall within the range 2048-4095.
SEL RBO Select Register Bank 0 (Not in 8021, 8022)
11100101011
PSW bit 4 is set to zero. References to working registers 0-7 address data memory locations 0-7. This is the recommended setting for normal program execution.
SEL RB1 Select Register Bank 1 (Not in 8021, 8022)
11101101011
PSW bit 4 is set to one. References to working registers 0-7 address data memory locations 24-31. This is the recommended setting for interrupt service routines, since locations 0-7 are left intact. The setting of
PSW bit 4 in effect at the time of an interrupt is restored by the RETR instruction when the interrupt service routine is completed.
Example: Assume an external interrupt has occurred, control
has passed to program memory location 3, and PSW bit 4 was zero before the interrupt. LOC3: JNI INIT ;JUMP TO ROUTINE 'INIT' IF ;INTERRUPT INPUT IS ZERO
Mnemonics copyright Intel Corporation 1976.
4·32


INIT: MOV R7,A
;MOVE ACC CONTENTS TO ;LOCATION 7 ;SELECT REG BANK 1 ;MOVE 'FA' HEX TO LOCATION 31
SEL RBO MOV A,R7 RETR
;SELECT REG BANK 0 ;RESTORE ACC FROM LOCATION 7 ;RETURN - RESTORE PC AND PSW
10110101011
This instruction is used to stop both time accumulation and event counting.
Example: Disable interrupt, but jump to interrupt routine after eight overflows and stop timer. Count overflows in register 7.
;DISABLE TIMER INTERRUPT ;CLEAR ACC TO ZEROS ;MOVE ZEROS TO TIMER ;MOVE ZEROS TO REG 7 ;START TIMER ;JUMP TO ROUTINE 'COUNT' ;IF TF=1 AND CLEAR TIMER FLAG ;CLOSE LOOP ;INCREMENT REG 7 ;MOVE REG 7 CONTENTS TO ACC ;JUMP TO ROUTINE 'INT' IF ACe ;BIT 3 IS SET (REG 7=8) ;OTHERWISE RETURN TO ROUTINE ;MAIN
JMP MAIN COUNT: INC R7
MOV A,R7 JB31NT
JMP MAIN
INT:
STOP TCNT
;STOP TIMER ;JUMP TO LOCATION 7 (TIMER) ;INTERRUPT ROUTINE
JMP 7H
Mnemonics copyright Intel Corporation 1976.


STRT CNT Start Event Counter
10100101011
The test 1 (T1) pin is enabled as the event-counter input and the counter is started. The event-counter register is incremented with each high-to-Iow transition on the T1 pin.
Example: Initialize and start event counter. Assume overflow is desired with first T1 input. STARTC: EN TCNTI ;ENABLE COUNTER INTERRUPT MOV A,#OFFH ;MOVE 'FF' HEX (ONES) TO
;ACC MOV T,A ;MOVE ONES TO COUNTER STRT CNT ;ENABLE T1 AS COUNTER ;INPUT AND START
10101101011
Timer accumulation is initiated in the timer register. The register is incremented every 32 instruction cycles. The prescaler which counts the 32 cycles is cleared but the timer register is not.
Initialize and start timer. STARTT: CLR A
;CLEAR ACC TO ZEROS ;MOVE ZEROS TO TIMER ;ENABLE TIMER INTERRUPT ;START TIMER
SWAP A Swap Nibbles Within Accumulator
10 100101111
Bits 0-3 of the accumulator are swapped with bits 4-7 of the accumulator.
Example: Pack bits 0-3 of locations 50-51 into location 50. PCKDIG: MOV RO, #50 ;MOVE '50' DEC TO REG 0 MOV R1, #51 ;MOVE '51' DEC TO REG 1 XCHD A,@RO ;EXCHANGE BITS 0-3 OF ACC ;AND LOCATION 50 SWAP A ;SWAP BITS 0-3 AND 4-7 OF ACC XCHD A,@R1 ;EXCHANGE BITS 0-3 OF ACC AND ;LOCATION 51 MOV @RO,A ;MOVE CONTENTS OF ACC TO ;LOCATION 50
Mnemonics copyright Intel Corporation 1976.


XCH A,Rr Exchange Accumulator-Register Contents
1001011rrri
The contents of the accumulator and the contents of working register 'r' are exchanged.
Example: Move PSW contents to Reg 7 without losing accumulator contents. XCHAR7: XCH A,R7 ;EXCHANGE CONTENTS OF REG 7 ;AND ACC MOV A, PSW XCH A,R7
;MOVE PSW CONTENTS TO ACC ;EXCHANGE CONTENTS OF REG 7 ;AND ACC AGAIN
100101000ri
The contents of the accumulator and the contents of the resident data memory location addressed by bits 0-5*of register 'r' are exchanged. Register 'r' contents are unaffected.
Example: Decrement contents of location 52. DEC52: MOV RO,#52 ;MOVE '52' DEC TO ADDRESS ;REG 0 XCH A,@RO ;EXCHANGE CONTENTS OF ACC ;AND LOCATION 52 DEC A ;DECREMENT ACC CONTENTS XCH A,@RO ;EXCHANGE CONTENTS OF ACC ;AND LOCATION 52 AGAIN
100111 000r l
This instruction exchanges bits 0-3 of the accumulator with bits 0-3 of the data memory location addressed by bits 0-5*of register 'r'. Bits 4-7 of the accumulator, bits 4-7 of the data memory location, and the contents of register 'r' -are unaffected.
Mnemonics copyright Intel Corporation 1976.
'0-6 for 8039/8049


Example: Assume program counter contents have been stacked in
locations 22-23. XCHNIB: MOV RO,#23 ;MOVE '23' DEC TO REG 0 CLR A ;CLEAR ACC TO ZEROS XCHD A,@RO ;EXCHANGE BITS 0-3 OF ACC ;AND LOCATION 23 (BITS 8-11 ;OF PC ARE ZEROED, ADDRESS ;REFERS TO PAGE 0)
1110111rrri
Data in the accumulator in EXCLUSIVE ORed with the mask contained in working register 'r'.
r=0-7
Example: XORREG: XRL A,R5
;'XOR' ACC CONTENTS WITH ;MASK IN REG 5
XRL A,@R r Logical XOR Accumulator With Memory Mask
111011000rl
Data in the accumulator is EXCLUSIVE ORed with the mask contained in the data memory location addressed by register 'r', bits 0-5~
Example: XORDM: MOV R1, #20H ;MOVE '20' HEX TO REG 1
XRL A,@R1 ;'XOR' ACC CONTENTS WITH MASK ;IN LOCATION 32
XRL A,#data Logical XOR Accumulator With Immediate Mask
11 1 0 1 1 0 0 1 d7 de ds d4 I d3 d2 d1 do I
This is a 2-cycle instruction. Data in the accumulator is EXCLUSIVE ORed with an immediately'-specified mask.
Example: XORID: XOR A,#HEXTEN ;XOR CONTENTS OF ACC WITH
;MASK EQUAL VALUE OF SYMBOL ;'HEXTEN'
Mnemonics copyright Intel Corporation 1976. ·0-6 for 8039/8049






The following chapter is organized in two sections, Hardware and Software. The hardware section gives examples of some typical configurations of MCS-48 compon- ents while software section gives assembly language listings of some common appli- cations routines.
DRIVING FROM EXTERNAL SOURCE
CRYSTAL OSCILLATOR MODE
r I I I ..L ..
< 15 pF (INCLUDES XTAL,
+5V
I I I L ____ _
15-25pF (INCLUDES SOCKET, I
L---'--~XTAL2
STRAY) ":'
CRYSTAL SERIES RESISTANCE SHOULD BE
BOTH XTAll AND XTAl2 SHOULD BE DRIVEN. RESISTORS TO Vee ARE NEEDED TO ENSURE V,H = 3.8V IF TTL CIRCUITRY IS USED.
A STANDARD SERIES RESONANT XTAL SUCH AS CTS KNIGHTS MP060 OR CRYSTEK CY6B WILL PROVIDE BETTER THAN .1% FRE· QUENCY ACCURACY.
45 .H 20 pF 5.2 MHz
12O.H 20pF 3.2 MHZ..--_..-_-42 XTAll
EACH C SHOULD BE APPROXIMATELY 20pF, INCLUDING STRAY CAPACITANCE. FOR MORE INFORMATION ON XTALS SEE INTEl- APPLICATION NOTE AP.35.
L---_~_~3 XTAl2 Cpp " 5 - 10 pF PlN·TO·PIN CAPACITANCE
EACH C SHOULD BE APPROXIMATELY 20 pF. INCLUDING STRAY CAPACITANCE.
FREQUENCY REFERENCES.


b~L
Vee VDD Vss 27 2 P10
28 ~ XTAL 1 P11 P12 29 ~ P13 30 [ INPUT 1 3 31 AND XTAL 2 P14 OUTPUT P15 32 15-25pf P16 33 f ! RESET P17 34
}~'"
EA P21 22 8049 P22 23 8048 P23 24 [ INPUT] -=- 5 AND 8748 35 NC 55 P24 36 OUTPUT P25 37 P26 P27 38
DB3 15 } ['''~] 16 BUS PORT AND INT DB4 OUTPUT DB5 17
INPUT --: T1 DB2 14
DB6 18
DB7 19
NC NC
crs Knights MP060 Crystek CY6B or equivalent or standard 3.58 MHz TV Color Burst XT AL
1 to 6 MHz or
Parallel Resonant for higher accuracy
1ufd 21 P20


+5V GND L L Vee Vss 15
} ~~'J PORTO AND
~ ~ 1~
XTAL 1
P04 8 9 P05 10 P06 P07 11
XTAL2
OUTPUT
+5V
l~fd .J...
18 Pl0 19 Pll P12 20
22 P14 23 P15 P16 24
OUTPUT
P17 25
13 INPUT-- T1
} ~NPUT J . PORT2 AND
P20 26
P21 27
P22 1 2 P23
OUTPUT
+5V
XTAL 1
TTL GATE
XTAL2
NC'
LC CRYSTAL
EXTERNAL
ALTERNATE FREOUENCY REFERENCE OPTIONS (COMPONENT VALUES TO BE DETERMINED)
5·3


}.~,
4 VAAEF
P12 27
P13 28
P14 29
[ INPUT] AND OUTPUT
30 PIS P16 31
P17 32
P20 33
P21 34
}~,
1,HF 8022
P22 35
P23 36
SUBST
P24 38
[ INPUT] AND OUTPUT
P25 39
ANO
P26 P27 VTH
A D INPUTS (
ANI
POO 10 11 POI P02 12
}.~ .
1M
P03 13
[ INPUT] AND OUTPUT
22 XTAL2
P04 14
P05 15 16 P06 P07 17
rvv-i
19 T1
NC
+5V
2 XTAL 1
r--- ..... --~Xl
r--- ..... --.-, XI
c= 20-50pF
TTL GATE
1 MEG
'---- .... --~ X2
XTAL2 NC
.6-3.6mHZ
EXTERNAL
ALTERNATE FREQUENCY REFERENCE OPTIONS (COMPONENT VALUES TO BE DETERMINED)


INVERTERS
OEVICE -". +5V 1
10K
6 iNT 8049 8048 DEVICE ..... 8748 2 8035 8039 Z1
P10 26 ANY Pll UNDEDICATED 29 PORT LINES DEVICE P12 CAN BE USED 30 3 P13


12 13 14 15 10
1 2 3 4 23
Bo Bl B2 SGS ECS
8049 8048 8748 8035 8039 Pl0 Pll P12
I~ Rii 1-* iii 17 ii2 I~ R3 AO 8 27 I~ ii4 8214 Al 9 28 20 fi5 AZ 10 29 !-f,- '7 ii6
INPUTS
INT 5 ~ --=0. ii7 S Q
INT
El TG INTE ElR ClK L-.(: R Or-- ,-tf ~r
9 RS FLIP FLOP +5V _
ALE
J
5·6


b26 L
+5V +5V GNO
+12V -5V GNO
124 124 112 Vee Voo Vss ~
Vee GNO Vee rll
P12 ~ LATCH ~ A8 HI ::r
3 P13 ~ 3 4 1 • XTAL 2 P14 #- 01, DO, tt-2 A7 P15 #-- 5 7 01, DO, ~ A6 f l r--!
P16 #- 013 003 ~ A5 RESET P17 dL. 9 16 01, DO, ~ A4
01, DO, '17&" A3 7 P20 ~I- 01. DO. ~ A2 EA 8049 P21 ~~ ~ 01, DO, ~ Al
-: 8048 P22 24 -# 01. DO. f"'---"- AO 14 5 8748 P23 ~ CLR NC- ss 8035* P24 36 OS, MO OS, P25 ~ 8039* P26 ~ 13 12-:!; P27 =- 1 OBO 12
9 01 ---
TO 39 OBl 13 10 02 ---
+5V
6 OB3 15 13 04 --- INT OB4 16 14 05
T1 OB2 14 11 03
OB5 17 15 06
OB6 18 16 07 OB7 19 17 08 ALE !'SEN PROG WR Ali
*EA = 5V FOR 8035/8039 11 19 125 110 18
119 121 112 · 2 Pl0


I:l~ L
2 Pl0 .-eXTALI Pll fllL P12 ~ ~ P13 30 rll =r
~)
3 ~ I/O • XTAL 2 P14 PIS &- :~
P16 ~ RESET P17 ~
21 +5V GND 7 P20 EA 8049 P21 22
40 15 20 11 -== 5 8748 P23
~} NC- SS 8035' P24 ~ Vee Voo vss EE 8039' P25 ~ I/O ~ A8 PAO ~ P26 rR- 22 A9 PAl ~ P27 r1lL 23 A10 PA2 ~ PA3 27 1 2B {-
TO DBO 12 12 ADO PA4 DBI 13 13 ADI 29 39 PAS 30- INPUT ~ T1 DB2 14 14 AD2 PA6 DB3 15 15 AD3 'jf- PA7 =- INT DB4 16 16 AD4
DB5 17 17 ADS 8355 &-- PBO DB6 18 18 AD6 8755A PBl ~ DB7 19 19 AD7 2K x 8 PB2 ~ ALE PSEN PROG WR iffi ROM PB3 ~
125 110 1 8 8 lOR ~ 11 9 PB4
10 PBS &- lOW PB6 ~
9 PB7 ~
RD
11 ALE
*EA = 5V FOR 8035/8039 2 +5V_ CE
, CAN BE SUPPLIED BY SYSTEM ---! RESET RESET OR PORT LINE OF 8048
Inverting A10 will correct this if necessary. This inversion is not necessary if the 8049 is used.
Vee Voo Vss


Cl" I" Vee VDD Vss 27 2 P10
28 ~ XTAL 1 P11 P12 29 ~ P13 30 3 1 • XTAL 2 P14 31
P16 33 f----! RESET P17 34 I/O
P20 21
EA P21 22 8049 23 8048 P22 24 -= 5 8748 P23 35 NC- ss 8035' P24 36 8039' P25 3L- P26 P27 38
21 22 23 24 25 26 27 28
1 12 {-
INPUTS ::=! T1 DB2 14
12 ADO 13 AD1 14 AD2 15 AD3 16 AD4 17 AD5 8155 18 AD6 19 AD7 256 x 8 RAM
TO DBO DB1 13 39
DB3 15
INT DB4 16
DB5 17
PCO PC1 PC2 PC3
37 38 39 1 I/O 2 5
DB6 18
DB7 19
ALE PSEN PROG WR RD
11 8 10/M PC4
PC5
9 RD
10 PBO . WR PB1
29 30 31 32 33 34 35 36
PB4 PB5 PB6 PBl
CAN BE SUPPLIED BY SYSTEM - 4 RESET TIMER TIMER RESET OR PORT LINE OF 8048 OUT IN


140 15 bo 11
Vee VOD Vss CE
g... PAO PAl ~ PA2 ~ PA3 ~ PA4 ~ PA5 ~ PA6 ~ PA7 F-'-
21 A8 22 A9 23 Al0
12 ADO 13 AD1 14 AD2 15 AD3 16 AD4 17 AD5 18 AD6 19 AD7
8355 8755A 2Kx 8 ROM
PBO ~ PBl ~ PB2 ~ PB3 ~ PB4 ~ PB5 ~ PB6 ~ PB7 F-
9 OPTIONAL GATE RD TO PREVENT ,--2l. "HOLE" IN ~
ALE +5V GND PROGRAM MEMORY -1..)
tl26 L
l·
JX J:
Vee VOD Vss ~ 2 Pl0
XTAL 1 P11 ~ P12 ~
3 P13 ~ XTAL2 P14 rllP15 f#- 4 P16 rERESET P17 ~
7 P20 ~ EA P21 ~ P22 23 8049 24 5 8048 P23 - Sri P24 ~
} 110 8748 P25 ~ P26 ~ P27 f1L 1 DBO 12 12 ADO --
PAO #- PAl ~ PA2 ~ PA3 ~ PA4 ~ PA5 ~ PA6 ~ PA7 ~
6 DB3 15 15 AD3 --
T1 DB214 14 AD2
INT DB4 16 16 AD4
DB5 17 17 AD5 DB6 18 18 AD6 DB7 19 19 AD7 ALE PSEN PROG WR AD
PCO ~ PCl ~ PC2 ~ PC3 ~ ~ PC4 PC5 ~
RAM
1 25 10 18 7 101M 11 9
9 AD
PBO ~ PBl S- PB2 ~ PB3 ~ PB4 IJ4 PB5 tJt- PB6 ~ PB7 F-
~ RESET
TIMER
TIMER
OUT
IN
t 3
CAN BE SUPPLI ED BY SYSTEM RESET OR PORT LINE OF 8048


1/0 Expansion Techniques The following are several examples of how the basic 1/0 capability of the MCS-48™ microcomputers can be easily expanded externally using either the 8243 1/0
expander device or standard logic circuits. These techniques can be used whenever the combination memoryllO expanders illustrated on the preceeding pages are not required.
+5V GND
b~ 20
P40 2 P41 3 P42 4 P43 5
Vee VDD Vss 2 ---.r::-- XTAL 1 ~ 3 1 • XTAL 2
Pl0 Pll P12 P13 P14 P15 P16 P17
28 29 30 31 32 33 34
) ,m
f----! RESET
8243 I/O EXPANDER
P60 20 E --:'1'::1 1 P20 P61 19 E --'l~O P21 P62 18 21 22 23 j.!;:: ,9 P22 P63 17 ~ =t8 P23 13
EA 8049 8048 -= 5 8748 Ness 8035 8039
24 35 36 37 38
7 P70 14 r---I PROG P71 - P72 15 ~~C_S P_7_3 16
12 13 1/0 14 15 16 17 18 19
DBO DBl DB2 DB3 DB4 DBS DB6 DB7
ALE PSEN PROG WR 1m


j~ J,.
P03 7
XTAL2 P04 8
P05 9
+5V P07 11 +5V GND
l~fd...L 1/0 18 IOV 17 PIa 19 RESET Pll P12 20
21 DIODE 8021 P13 22 OPTIONAL 8022' P14 23 P15 -= P16 24
P50 1
P51 23
22 8243 P52 21 I/O P53
13 INPUT_ T1
EXPANDER 20 1/0 P60 11 P20 P61 19
P20 26
P21 27
10 P21 P62 18
P22 1
9 P22 P63 17
P23 2
8 P23 13 P70 14 7 PROG P71 P72 15 6 CS P73 16
ADDING AN I/O EXPANDER TO THE 8021,8022
POe 10


+5V GND bl 40 26 20
Vee GND ~ P40
P41 eLP42 eL P43 ~
Vee VOD Vss 2 P10
XTAL1 P11 P12 ~ P13 30 ~ liD XTAL2 P14 P15 ~ P16 ~ RESET P17 ~.
I/O P53 ~
EXPANDER P60 ~ P20 P61 ~ P21 P62 ~ P22 P63 ~
11 10 9 8
EA 8049 P21 22 8048 P22 23 8748 P23 24
NC---
55 8035 P24 35 8039 P25 36 8021· P26 37
r---l
PROG P71 ~- P72 ~ CS ~ P73
DBS ~ DB6 r!!!- DB7 flL· { --- 39
1 TO DBO
~J
DB1 T1 DB2 ~ DB3 elL INT DB4 flL 1/0
INPUT ~
Vee GND L P40 P41 1-
ALE PSEN PROG WR AD I" 1 9 25 110 18
P42 ~ P43 L
P50 ~ P51 F8243 P52 ~
I/O PS3 ~
1/0 EXPANDER P60 ~
.... ~ 10 9 8
P20 P61 ~
P21 P62 ~ P22 P63 ~
P23
P70 ~ PROG P71 ~- P72 ~ CS P73 ~
'PIN NUM BERS ARE DIFFERENT FOR 8021, 8022
I I I I I I
ADDING MULTIPLE 1/0 EXPANDERS


The bus is normally used as an output port. To use it as an input port the bus is put in the high impedance state using the MOVX instruction and then read using the INS instruction. The resistor value chosen is a function of the output loading and the characteristics of the input signals.
+5V GND
Individual bits of the 74LS259 eight-bit addressable latch can be set or reset using the OUTL instruction. During the OUTL operation bit zero of the accumulator is written into the bit of the latch specified by bits 1 through 3 of the accumulator. In this configuration DSo- DS7 will be momentarily disturbed while the external latch is loaded.
Vee VOD Vss Pl0 27 2 - XTAL 1 Pl1 28 P12 29
4 P16 33 -
RESET P17 34
7 P20 21 -
EA P21 22
8049 P22 23 P23 24 -ss 8048 P24 35 8748 P25 36 P26 37 P27 38
08 07 06 05 04 03 02 01
74LS259 0 1161 A
39 081 13 _Tl D82 14
DB5 17 DB6 18 DB? 19
ADDING 8 OUTPUT LINES
5·14


b26 L
Normal 1/0 port is used to select an address for the 16-to-1 multiplexer. The output of the multiplexer is brought into a test input. Eight inputs could be added with a 74LS151 8-to-1 multiplexer using the same structure.
PlO 27 Pl1 28 P12 29 PT3 30 .14 31 P15 32 PT6 33 .17 34
El E2 E3 E4 E5 E6 E7 E8 E9 El0 Ell E12 E13 E14 E15
8049 7 - EA 8048 8748 8021" -ss 8035 8039 8022· 1 _TO
P20 21 P21 22 P22 23 P23 24 P24 35 P25 36 P26 37 P27 38
17:--+---1 C
DBO 12 DBT 13 DB2'4 DB3 15 DB4 16 DBS 11 DBB 18
DB7 19 'PIN NUMBERS ARE DIFFERENT FOR 8021. 8022
b26 L Vee VOD Vss 2 - XTAlT
The latch can be loaded with the OUTL instruction. After the latch is loaded the BUS output state can be modified with the ANL BUS, # DATA and the ORL BUS, # DATA. The OUTL generates a WR strobe; ANL and ORL do not. In this configuration DBo-DB7 will be momentarily disturbed while the external latch is loaded.
PTO 27 Pl1 28 P12 29 PT3 30 P14 31 P15 32 P16 33 P17 34
4 - RESET
7 - EA 8049 8048 ss 8748
PlO 21 P21 22 P22 23 .23 24 P24 35 P25 36 P26 37 P27 38
DBD 12 14 60
6a sa 4a 3a 2a la
DBT 13 13 60 oB2 14 11 40 0B3 15 6 3D oB4 16 20 DBS 17 10 DBB 18
DB7 19
ADDING 6 OUTPUT LINES


This is most useful when the outputs of the 74LS164 eight-bit shift register will be used to scan a display and/or keyboard. In this case an
Vee VSS 15 - XTAll
P10 18 Pl1 19 P12 20 Pt3 21 P14 22 P15 23 P16 24 P17 25
ANLD P7, A with A = OFFH can be used to load the initial "1" and an ANLD P6, Awith A =OFEH can be used to move it down the shift register.
ARRAY
17 __ - RESET
8049 8049 8748 8021" 8035 8039 8022*
POQ 12
POt 13 P02 14 POl 15 P04 16 P05 17
POG 18 P07 19 'PIN NUMBERS ARE DIFFERENT FOR 8021, 8022


J ALE PSEN EA '" '" r-- '" '" '" r-- '" '" '" r- '" '" '" r- '" iNT r- iNT
00 a, 02' 03 00 0, 02 03 03 r"}
AZ A, v~ rr +5V {- ~
Vee vee~ Vee VCC~ NC-~
"lS'5 ::JfL ::: '4lS75 ~ E N.C.
OE AIO AS AS A7 As As A4 A3
Do 0, D2 03 Dro_D,..,-rD,'-TD, , . '039 VS$~VSS
J:
L....-+-+-~----t-l-I_l_----------+-+++-----., DS2 PISt--- P,s L---+-++ ..... ---t,..-I-+-+-----------+-+-+-+------i DB] P'4 r----- P14
'" PROG 1:r:r1::1l--- 5K I AD., X,RST r T- -- I~ 00 D, ::L::7:' D, CK I~ 00 D, ::L::':' D. CK ,..I-~-_-'f I"" F-,""" RSr
L ---++_+_+--t--t_++---~ ~-t_+_i _1DB,
L +++_+--l_t-+_+_---_+~ +-t_+_+ _1DB,
L +-+-+--t--+-+-++ tl-I-, +-+~~r_ ~DB.
L +-t_+--t~~~e-t_+_++---__t-I_t--, --+_+-i_i~ _lDB, Vee WA
.1/lF DECOUPLING CAPACITORS 00 0 a a 0 n. 00 0, 0, 03 n. n.~ ~~ ~ DISTRIBUTED EVENl V ON BOARO 1 2' 3 4 ~ ~ {r _ XTAll W ~ NC 22.' -::- N.C. L- XTAl2
DOo DO, DO, 00, DIDDI, DI,DI3 ~·U DOD 00, DO, 00, 01001, D"DI~Jt-
DBO DB, DBl DBl DBo DB, DSzDB3 t ~IF~R:::,B~B~D:::N-=-CA~B::-lE:-I Ro L- +++-t-I +-~·l .. ~(.}
Vee · 5·17


8049 EMULATOR CIRCUIT DESCRIPTION-6 MHZ
The following is an explanation of a circuit which emulates the operation of an IntelC!> 8049 using a stan- dard EPROM for program storage. With the 8049, software may be developed by running external program memory, but dOing so requires the use of the bus and P23-P20 to access this memory. The circuit shown may be used to restore the normal functioning of these twelve 1/0 pins. The circuit con- sists of an 8039 CPU, 2716 EPROM, two 8216 bi- directional bus drivers, and eight other 7400 Series Low- Power Schottky TTL packages. The whole assembly can be built on a 2-3/4" x 4" board. A cable coming off the board can be terminated by a forty-pin plug which may be inserted directly into the CPU socket intended for the 8049 In a system undergo- ing design or testing. Alternatively, a pattern of forty pins extending below the board can be used to plug the board directly into the system undergoing testing, "piggy-back" fashion. The emulator board may be con-
be changed from what is shown in the Figure, so that DBrDBo act as high impedance inputs and the 8216s are enabled only when the read operation Is performed. If the bus is to be used only for latched output, the 8216s can be omitted entirely .. Bi-directional data transfers which require the transfer of address information as well as data, such as to and from external data memory, require removal of the 8216s and replacement with 16-pin jumper blocks on which the DBx pins are connected with the respective DOxpins.
The lower four bits of Port 2 are also used in fetching in- structions from the 2716, in addition to their use as in- put or output pins in the user's system. In configuring the emulator for a particular application, the user must dedicate each of these as either an input or output pin and connect jumper set J1 accordingly. Any mix of input and output pins is allowed. At the beginning of each in- struction fetch, the last data written to P2 will be pre- sent on P23-P20 at the rising edge of ALE and will be latched by a 74LS174. The latched data may be con- nected through the jumpers to those pins whictl will be used as outputs on the 8049. Emulator pins used as in- puts should be pulled above 2.0V for a logic "one". If this is not the case, i.e., if switches to Ground are to be read, 50K pull up resistors should be added to the circuit· on each input. They were omitted from the diagram to minimize input loading.
figu~ed in various ways so that the 40 pin plug is the logical equivalent of an. 8049 in every legal operating mode. (In the following explanation of the operation of the circuit, an asterisk appearing before a signal or pin number - as in *PSEN - refers to that pin on the "vir- tual 8049" represented by the forty-pin plug). Since the CPU is Identical with the 8049 in all respects other than its lack of program memory, most of the pins of the 8039 are simply connected directly to the cor- responding pins of the forty-pin plug. These include all of Port 1, the high order bits of Port 2, the test pins, etc. Signals which are emulated with additional !.Qgi£...!!!.· clude the rest of Port 2, DBrDBo, *PSEN, etc. RD, WR, ALE, and PSEN are obtained from the 8039, but are also used by the emulation circuitry. The EA input of the 8039 Is hard-wired high so all in- struction fetches are made from the 2716. Two 74LS75 four-bit latches gated by the buffered ALE signal are used to hold the lower eight bits of address from the time-multiplexed data bus. Since the Bus is being used for fetching Instructions, data latched to the Bus will be lost on the next instruction fetch. Two 74LS174 latches are used to retain the output data when a bus write is executed. These latches are triggered by the trailing edge of the WR pulse, so their outputs are glitch free. Since logical operations to the bus do not generate a WR strobe, the "ANL BUS,#" and "ORL BUS,#" instruc- tions may not be used, though they do function properly with the other ports. The two 8216 bi-directional bus drivers normally buffer the latched bus contents to the DB pins of the virtual 8049. When an "INS A,BUS" Instruction is executed, they buffer the input signals on to the emulator data bus. Thus, the circuit is designed to use the B1Js for both .Iatched output and strobed Input. If DB79DBo of the
Pins which will be used as inputs may be connected to the input of an OR gate formed of inverters and open- collector NAND gates. The input signals will be relayed directly to the 8039 and will be read by an "IN A,P2" In- struction.But when PSEN is low, the NAND outputs are forced off, allowing the 8039 pins to be used for high- order program adressing. Open-collector 0stputs are needed to prevent line contention when P EN is not low.
If 8243s will be be used in the final system, the low order pins of Port 2 must be connected directly to the plug. This may be done by replacing the Port 2 latch with four jumpers connecting the inputs to the outputs. The NANOs should be removed or disabled by grounding the common NAND inputs.
The cluster of three OR gates Is used to enable the on- board 2716 and generate the *PSEN Signal, each of which is a function of PSEN, *EA, and the high order bit of the program counter. Thus *PSEN is generated, forc- ing an off-board read, only when a jump has been made to Memory Bank 1 or when *EA is brought high. If this feature is to be used to address off-board memory, DBr DBo may not be used for normal 1/0. The 8216s and 74LS174 must be replaced with jumper blocks and the open collector NAND gates disabled, as explained above. The same changes are required to operate the board in single step mode.
8049 are to be used solely for input data, J2 and J3 may


PRINTER POS.
RIB SHIFT
SOLENOIDS
BUS
8 DATA IN OR 8080 INTERNAL BUS
RDY/BSY
'SEIKO =101
8048 INTERFACE TO DRUM PRINTER
1000 PULSE/GAL
CS
CS
8251 USART
CS/CD
TO CENTRAL
TERMINAL
3 SCANNED
NON SCANNED
FUEL VALVES
PRICE
SCAN LINES
MOTOR
MCS-48™ GAS PUMP
5·19


[J=~" 8748/8048 PROM/ROM
TOTALS AUDIO INDICATOR
RAM I/O TIMER
\ TO OPTIONAL
8279 KEYBOARD DISPLAY
DATA & STROBE STEPPER MOTOR CONTROL PAPER ADVANCE STATUS
-II'
,
FRONT AND REAR DUAL , DISPLAY 818181 E"" 18~ SEGM~NT I
,
CASH REGISTER KEYBOARD
MATRIX PRINTER'
ADVANCE
INDICATOR LAMP MATRIX FOR
ILLUMINATED KEY TOPS
'DRUM PRINTER MAY BE USED.
DRUM PRINTER REOUIRES MORE OUTPUTS WHICH CAN BE OBTAINED FROM AN EXPANDER DEVICE.
~ },


OXYGEN -t>-- XTAL1 SENSOR (lOROI
DRIVERS
IGNITION PULSE
OPEN LOOP MODES
WIDE OPEN COLD ENGINE
DECELERATE ENGINE CRANKING
POWER TRAIN TYPE IDENTIFICATION
VEHICLE TYPE IDENTIFICATION
SIMPLE FEEDBACK CARBURETOR CONTROLLER
FRONT PANEL
STATUS INDICATORS
120V.60Hz ,----------->-1 Vee
'-11-"'-"-' ~---,/I (J (J, DC'
DISPLAY
MICROWAVE OVEN CONTROLLER


The following routines are written as subroutines. RO and R1 are used as data pointers, R2 is used as an extension of the accumulator and R3 is used as a loop counter.
DADO: DEC RXO ;GET LOW BYTE AND ADD TO A ADD A,@RXO INC RXO ;GET HI BYTE AND ADD TO AEX XCH A,AEX ADDC A,@RXO XCH A,AEX RET ;RETURN
DMIN: DEC RXO ;GET LOW BYTE AND SUB FROM A CPL A ADD A,@RXO CPL A INC RXO ;GET HI BYTEANDSUB FROM AEX XCH A,AEX CPL A AD DC A,@RXO CPL A XCH A,AEX RET ;RETURN
OLD: DEC RXO ;GET LOW BYTE AND PLACE IN A MOV A,@RXO INC RXO ;GET HI BYTE AND PLACE IN AEX XCH A,AEX MOV A,@RXO XCH A,AEX RET ;RETURN
DST: DEC RXO ;MOVE A INTO LOW BYTE MOV @RXO,A INC RXO ;MOVE AEX INTO HIGH BYTE XCH A,AEX MOV @RXO,A XCH A,AEX RET ;RETURN


DOUBLE EXCHANGE
DEX: DEC XCH INC XCH XCH XCH RET
RXO ;EXCHANGE A AND LOW BYTE A,@RXO RXO ;EXCHANGE AEX AND HIGH BYTE A,AEX A,@RXO A,AEX
DOUBLE LEFT LOGICAL SHIFT
RLSH: XCH A,AEX ;SHIFT AEX A A,AEX RRC XCH RRC RET
A ;SHIFT A ;RETURN
DOUBLE RIGHT ARITHMETIC SHIFT
RASH: CLR C ;SET CARRY CPL C
XCH A,AEX ;IF AEX[7]1 THEN JB7 $+3 CLR C ;CLEAR CARRY RRC A ;SHIFT C INTO AEX XCH A,AEX RRC A ;SHIFT A RET ;RETURN
This routine assumes a one-byte multiplier and a one-byte multiplicand. The product, therefore, is two-bytes long.
*The result will be found in the Accumulator (MS Byte) and R1 (LS Byte).


BINARY MUL TIPL Y
BMPY: MOV R3,#08H ;SET COUNTER TO 8 CLR A ;CLEAR A CLR C ;CLEAR CARRY BIT
BMPI: RRC A ;DOUBLE SHIFT RIGHT ACC & R1 XCH A,R1 ;INTO CARRY RRC A XCH A,R1 JNC BMP3 ;IF CARRY=1 ADD, OTHERWISE DON'T ADD A,R2 ;ADD MULTIPLICAND TO ACCUMULATOR
BMP3: DJNZ R3,BMPI ;DECREMENT COUNTER AND LOOP IF 0 RRC A ;DO A FINAL RIGHT SHIFT AT THE XCH A,R1 ;END OF THE ROUTINE RRC A XCH A,R1
This interrupt routine assumes single level interrupt. The purpose is to store the status of the machine at the time the interrupt occurs
by storing contents of all registers, accumu- lator, and the status word. At the end of the interrupt the state of the machine is restored and interrupts are enabled again.
RB1 @RO,A
;SAVE WORKING REGISTERS ;RO IN ALTERNATE REGISTER ;BANK CONTAINS SACC ;POINTER FOR SAVING ;ACCUMULATOR
flNTERRUPT SERVICE lROUTINE
MOV RO,SACC ;RESTORE SACC MOV A,@RO ;RESTORE ACCUMULATOR RETR ;RESTORE WORKING REGISTERS ;RESTORE PSW AND ;RE-ENABLE INTERRUPTS


2 BYTE PROCESSING SYSTEM
A suggested model of a processing routine takes two single byte inputs from different ports, compares them, and performs the following, depending on the result of the comparison:
(If Equal) Sets Flag and Exits (If Not Equal) and Outputs the Larger to a
NOT EQUAL
PROCESS: CLR
FO A,P1
;CLEAR FO BIT (INITIALIZE) ;READ FIRST INPUT, STORE IN RO
IN MOV IN MOV CPL INC ADD JZ JNC MOV OUTL JMP
RO,A A,P2 R1,A A A A,RO
;READ SECOND INPUT, STORE IN R1
;SUBTRACT SECOND FROM FIRST ;(2's COMPLEMENT AND ADD)
EQUL ;BRANCH IF THEY ARE EQUAL SECOND ;IF NEGATIVE, SECOND WAS LARGER A,RO ;ELSE, OUTPUT FIRST BUS,A DONE
SECOND: MOV
A,R1 BUS,A DONE
;OUTPUT SECOND
OUTL JMP EQUL: CPL
;EXIT ;SET FO ;EXIT
FO DONE
JMP
5·25


8 x 8 MULTIPLY-ASSEMBLED BY MCS-48 MACRO ASSEMBLER SEE AP-49
LOC 08J LI NE . III I' 112 2' 113 2- 114 2' 115 2- 116 2' 117 2- 118 2· I" 2' 128 2· 121 2' 122 2- 123 2- 124 2- 125 2- 126 2- 127 2- 128 2- 12' 2- 131 2' 131 2- 132 2- 133 2- 134 2- 135 2- 136 2- 137 2- 138 2- 139 2- 141 2- 141 2- 142 2- 143 2- 144 2- 145 1- 146 1- 147 1- 148
j*============================================================================* I. I. THIS UTiliTY PROVIDES AN S 8Y e UNSIGNED "UlTIPLY I. AT ENTRY' I. A • LOWER EIGHT SITS OF DESTINATION OPERAND " KA- ~ON'T CARE )' RI' POINTER TO SOURCE OPERAHO
" " " I.
II "PY8Ke: 1I "ULTIPLICAHO[15-SI:=8 II COUNT:-9 II REPEAT 12 IF "ULTIPlICAHO[8l-. THEH BEGIH 13 "UlTIPlICANO""ULTIPLICAHD/2 12 ELSE 13 "UlTIPLlCAHO[ 15-9l:'"UlTIPLlCAHO[ 15-9l+"ULTIPLlER 13 "UlTIPLICAHO'="ULTIPlICAHO/2 12 ENDIF 12 COUHT:-COUNT-I 11 UHTI l COUHT-. I I EHO "PYaK9
" · fEJECT


8 x 8 MULTIPLY-ASSEMBLED BY MCS-48 MACRO ASSEMBLER SEE AP-49
LOC OBJ LI NE SOURCE STATE"ENT
I' In ;·1 "PY8X8: 1- lSI "PY8X8: 1- 151 ;1 "ULTIPLICAHOI15-8]:'8 1835 BAl8 I- 152 "oy XA,188 1= 153 ;1 COUNT: -8 8137 BBIB I' 154 "oy COUNT. 18 1= 155 ;1 REPEAT I- 15i "PYBLP: I- 157 ; 2 IF "UlTIPLICANOII]-B THEN BEGIN 8139 1243 1= 158 J8B "PY8A I- 15, : 3 "UlTIPlICANO:'"UlTIPlICAHO/2 813B 2A I- Iii XCH A, XA 813C '7 I- Iii ClR C 8130 i7 I- li2 RRC A Bl3E 2A I- li3 XCN A, XA Bl3F i7 I- li4 RRC A Bl48 EBl' I' 165 OJ HZ COUNT. "PULP Bl42 83 I- Ih RET 1= 167 : 2 ELSE I' 168 "PY8A: I- I" :3 nUL T I PLI CANOl 15-8] : -nUL T IPLI CANDI 15- 81+"ULT I PLIER 8843 2A I' 178 XCH A, XA 8844 01 I' t 71 AOO A, IRI 8845 i7 I- 172 RRC A 884' 2A I- 173 XCN A, XA 8847 67 1= 174 RRC A 884B EBl' I- 175 OJ NZ COUNT, "PULP 884A 83 I' 176 RE T I- 177 : 3 nUlTIPllCAHO:="ULTIPLICAHD/2 I- 178 ;2 ENOIF I- 17' : 2 COUNT: 'COUNT-l I- 188 :1 UNTIL COUNT=8 1= 181 :1 END npY8X8 I' 182 $EJECT


16 x 8 DIVIDE-{ASSEMBLED BY MCS-48 MACRO ASS.E.MBLERSEE AP-49)
LO C 08 J
LI NE SOURCE STATE"ENT
l * • 1- 186 It 1= 187 ,. 1= 188 1= 18' He 1 = 1 ~B ,. 1= 191 ,. 1= 192 'ill 1 = 193 ;. 1- 194 ,. 1- 195 ;., 1 = 19' ;. 1 = 197 ,. 1= 19B ,. 1 = 199 ; * 1= 2BB , .
THIS UTILITY PROVIDES AN 16 BY 8 UNSIGNED ~IVIDE AT ENTRY'
A = LOWER EIGHT BITS OF DESTINATION OPERAND XA= UPPER EIGHT BITS OF DIVIDEND RI- POINTER TO DIVISOR IN IHTERNAL "EHORY
A = LOWER EIGHT BITS OF RESULT XA= RE"A INDER C = SET IF OYERFLOW ELSE CLEARED
BB 48 2A
) ROUTINE WORKS "OSTLY WITH 81TS 15-8
BB4C 88B8
'1 DIYIDENDI IS-BI'=DIVIDENDI 15-BI-DIVISOR
BB4E 37 B04F 61 8050 37
CPL A ADD A, IIRI CPL A '1 IF BORROW=B THEN /. IT FITS.I
USI F65.
JC DIVIA 1= 214 ,2 1= 215 SET OYERFL~W FLAG CPL C· 1- 216 I- 217 1= 218 1= 219 1 = 22 B 1 = 221 1= 222 1 = 223 1= 224 1= 225 1= 226 I- 227 1= 22B 1= 229 1- 23B 1= 231 1= 232 1= 233 1- 234 1= 235 1= 236 1= 237
J"P DIYIB ) 1 ELSE OIYIA' '2 RESTORE DIVIDEND
A, @R I ADO '2 REPEAT OIYILP' ) 4 ) 4
DIV!DEND'=DIYIDENO.2 QUOTIEHT,-gUOTIEHT*2
B057 ~7 USB 2A Be" F7 USA 2A USB F7 BOSC EH3 USE 37 885F 61 BUB 37 DB.l BHB
C A,XA A A, XA A DIYIE A A, fRl A DIVIC o IV IDEND[ 15-8]' -01 VI DEND[ IS-81-01V1S0R
U.3 37 U64 61
CPL ADD


16 x 8 DIVIDE-{ASSEMBLED BY MCS-48 MACRO ASSEMBLER SEE AP-49)
lSlS-1 I "CS-48/UPI-41 "ACRO ASSEULER. Y3. I
1865 37 I- 238 CPL A 1= 2H IF BORROW-I THEN 1166 E668 I- 24. JNC DIYIC I' 241 RESTORE DIYIDEND IU8 61 I- 242 ADD A.IRI II" IHC I- 243 J"P DIYID 1= 244 ELSE 1= 245 DIYIC, 1= 246 QUOTlENTlll"1 1868 IA I- 247 INC XA I- 248 ENDIF I- 249 COUNT' -COUNT-I 1= 251 UNTIL COUNT=I 886C EB57 1= 251 DIVID, DJNZ COUNT.DIYILP 1= 252 CLEAR OVERFLOW FLAG 886£ 97 1= 253 CLR C 1= 254 ENDIF 1= 255 ENDDIVIDE Bl6F 2A I- 256 DIVIB, XCH A.XA 1178 83 I- 257 RET








The IntelG!! S04SH/S04SH-1/S035HL/S035HL-1 are totally self-sufficient, 8-bit parallel computers fabricated on single silicon chips using Intel's advanced N-channel silicon gate HMOS process.
The S04SH contains a 1 K X S program memory, a 64 X S RAM data memory, 27 I/O lines, and an S-bit timer/counter in addition to on-board oscillator and clock circuits. For systems that require extra capability the S04SH can be expanded using standard memories and MCS-SO™/MCS-85''' peripherals. The S035HL is the equivalent of the S04SH without program memory and can be used with external ROM AND RAM.
To reduce development problems to a minimum and provide maximum flexibility, a logically and functionally pin compatible version of the S04SH with UV-erasable user-programmable EPROM program memory is avail- able. The S74S will emulate the S04SH up to 6 MHz clock frequency with minor differences.
The S04SH is fully compatible with the S04S when operated at 6 MHz.
These microcomputers are designed to be efficient controllers as well as arithmetic processors. They have extensive bit handling capability as well as facilities for both binary and BCD arithmetic. Efficient use of progra'm memory results from an instruction set consisting mostly of single bit instructions and no in- structions over 2 bytes in length. .
XTALI PORT = 1 XTALI
IIH!T 4 PH III & PI5 PORT
PI4 = I
EA P17 iii! P1S Pm! P15 8048H Wi! P14 8035HL
DB3 VDD
DB4 PROG
DBS P23
DBa P22 BUS DB7 P21 Vss P20
Intel Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in an Intel product. No other circuit patent licenses are implied.
Olntel Corporation 1980 AFN-OI491A-Ol 6-1
DBI Pl1 · DB2 Pl0


Designation Pin = Function Designation Pin = Function
VSS 20 Circuit GND potential testable. with conditional
VDD 26 low power standby pin jump instruction.
VCC 40 Main power supply; +5V
during operation. RD 8 Output strobe activated during a BUS read. Can be PROG 25 Output strobe for 8243 I/O used to enable data onto the expander. bus from an external device. P10-P17 27-34 . 8-bit quasi-bidirectional Used as a read strobe to Port 1 port. external data memory. P20-27 21-24 8-bit quasi~bidirectional (Active low) Port 2 port. RESET 4 Input which is used to 35-38 P20-P23 contain the four high order program counter initialize the processor.
bits during an external pro- (Active low)
gram memory fetch and (Non TTL VI H)
serve as a 4-bit I/O expander WR 10 Output strobe during a bus bus for 8243. write. (Active low)
DBO-DB7 12-19 True bidirectional port Used as write strobe to BUS which can be written or read external data memory. synchronously using the ALE 11 Address latch enable. This RD, WR strobes. The port signal occurs once during can also be statically each cycle and is useful as a latched. clock output. Contains the 8 low order The negative edge of ALE program counter bits during strobes address into ex- an external program ternal data and program memory fetch, and receives memory. the addressed instruction PSEN 9 Program store enable. This under the control of PSEN. Also contains the address output occurs only during a
and data during an external fetch to external program
RAM data store instruction, memory. (Active low)
under control of ALE, RD, SS 5 Single step input can be and WR. used in conjunction with
TO Input pin testable using the ALE to "single step" the
conditional transfer in- processor through each
structions JTO and JNTO. TO instruction. (Active low)
can be designated as a clock EA 7 External access input which output using ENTO ClK forces all program memory instruction. fetches to reference external
T1 39 Input pin testable using the memory. Useful for emula-
JT1, and JNT1 instructions. tion and debug, and
Can be designated the essential for testi ng arid
timer/counter input using program verification.
the STRT CNT instruction. (Active high)
INT 6 Interrupt input. Initiates an XTAl1 2 One side of crystal input for
interrupt if interrupt is internal oscillator. Also
enabled. Interrupt is dis- input for external source.
abled after a reset. Also (Non TTL VI H)
XTAl2 3 Other side of crystal input.
(Active low)


INSTRUCTION SET
Mnemonic Description ADD A, R Add register to A ADD A,@R Add data memory to A ADD A, # data Add immediate to A ADDCA, R Add register with carry ADDCA,@R Add data memory with carry ADDC A, # data Add immediate with carry ANL A, R And register to A ANL A,@R And data memory to A ANL A, # data And immediate to A ORL A, R Or register to A ORL A@R Or data memory to A ORL A, # data Or immediate to A XRL A, R Exclusive or register to A XRLA,@R Exclusive or data memory to A XRL, A, # data Exclusive or immediate to A INC A Increment A DEC A Decrement A CLR A Clear A CPL A Complement A DA A Decimal adjust A SWAP A Swap nibbles of A RL A Rotate A left RLC A Rotate A left through carry RR A Rotate A right RRCA Rotate A right through carry
Mnemonic CALL addr RETR RETR
Description Jump to subroutine Return Return and restore status
I 2 2 I 2 2 I 2 2 I 2 2 I 2 2 I
Mnemonic CLR C CPL C CLR FO CPL Fa CLR FI CPL FI
Description Clear carry Complement carry CLear flag 0 Complement flag 0 Clear flag I Complement flag 1
I
Mnemonic MOVA, R MOVA,@R MOV A, # data MOV R. A [email protected] MOV R. # data MOV @R, #data MOVA, PSW MOV PSW, A XCH A, R XCH A,@R XCHDA,@R
Description Move register to A Move data memory to A Move immediate to A Move A to register Move A to data memory Move immediate to register Move immediate to data memory Move PSW to A Move A to PSW Exchange A and register Exchange A and data memory Exchange nibble of A and register Move external data memory to A Move A to external data memory Move to A from current page Move to A from page 3
I 1 I I 2 2 I 2 I
Mnemonic Description IN A, P Input port to A OUTL P, A Output A to port ANL p, # data And immediate to port ORL P, # data Or immediate to port INS A, BUS Input BUS to A OUTL BUS, A Output A to BUS ANL BUS, # data And immediate to BUS ORL BUS, # data Or immediate to BUS MOVD A,P Input expander port to A MOVD p, A Output A to expander port ANLD P, A And A to expander port ORLO p, A Or A to expander port
I 2 I 2 I 2 I 2 I 2 I 2 I 2 I 2
I 2 I 2 I 2 I 2
Mnemonic MOVA, T MOVT, A STRT T STRT CNT STOP TCNT EN TCNTI DIS TCNTI
Description Read timer/counter Load timer/counter Start timer Start counter Stop timer/counter Enable timer/counter interrupt Disable timer/counter interrupt
I 1
Mnemonic Description INC R Increment register INC@R Increment data memory DEC R Decrement register
Mnemonic EN I DIS I SEL RBO SEL RBI SEL MBO SEL MBI ENT a CLK
Description Enable external interrupt Disable external interrupt Select register bank a Select register bank 1 Select memory bank a Select memory bank 1 Enable clock output on TO
I
Mnemonic Description JMP addr Jump unconditional JMPP@A Jump indirect DJNZ R, addr Decrement register and skip JC addr Jump on carry = 1 JNC addr Jump on carry = 0 JZ addr Jump on A zero JNZ addr Jump on A not zero JTO addr Jump on TO = I JNTO addr Jump on TO = a JTI addr Jump on T1 = 1 JNTI addr Jump on TI = a JFO addr Jump on FO = 1 JFI addr Jump on FI = I JTF addr Jump on timer flag JNI addr Jump on INT = 0 JBb addr Jump on accumulator bit
2 2 I 2
AFN-01491A-03


ABSOLUTE MAXIMUM RATINGS· Ambient Temperature Under Bias o·e to 70·e Storage Temperature -65· e to + 125· e Voltage On Any Pin With Respect
to Ground -O.5V to +7V Power Dissipation 1.5 Watt
D.C. AND OPERATING CHARACTERISTICS TA =0·Cto70°C, VCC =VDD = 5V± 10%, VSS =OV
Symbol Parameter Unit Test Conditions Min. Typ. Max.
VIL Input Low Voltage (All Except RESET, X1, X2)
-.5 .a V
VIL1 Input Low Voltage -.5 .6 V (RESET, X1, X2)
VIH Input High Voltage 2.0 VCC V (All Except XTAL 1, XTAL2, RESET)
VIH1 Input High Voltage (X1, X2, RESET) 3.8 VCC V
VOL Output Low Voltage (BUS) .45 V VOL = 2.0 mA
VOL1 OutP~ow Voltage (RD, WR, PSEN, ALE)
.45 V IOL = 1.a mA
VOL2 Output Low Voltage (PROG) .45 V IOL = 1.0 mA
VOL3 Output Low Voltage (All Other Outputs)
.45 V IOL = 1.6 mA
VOH Output High Voltage (BUS) 2.4 V IOH = -400 f.1A VOH1 Outp~igh Voltage (RD, WR, PSEN, ALE)
2.4 V IOH = -100 f.1A
VOH2 Output High Voltage (All Other Outputs)
2.4 V IOH=-40f.1 A
1L1 Input Leakage Current (T1, INT) ±10 f.1A VSS < VIN < VCC
IU1 Input Leakage Current -500 f.1A VSS + .45~VIN~VCC (P10-P17, P20-P27, EA, SS)
ILO Output Leakage Current (BUS, TO) ± 10 f.1A VSS + .45~VIN~VCC (High Impedance State)
100 VOO Supply Current 4 a mA
100+ Total Supply Current 40 ao mA ICC
w10D JiA 10mA ~
VOH VOL
6-4 AFN-01491A-04


A.C. CHARACTERISTICS (PORT 2 TIMING) TA = O°C to 70°C, VCC = 5V± 10%, VSS = OV
Symbol Parameter 6 MHz
8 MHz 11 MHz Unit
Min. Max. tcp Port control Setup Before Falling 110 Edge of PAOG.
Min. Max. Min. Max.
tpc Port Control Hold After Falling 100 Edge of PAOG.
tpA PAOG to Time P2 Input Must Be Valid 810
tpF Input Data Hold Time 0 150 top Output Data Setup Time 250
0 150 0 150 ns
tpo Output Data Hold Time 65 tpp PAOG Pulse Width 1200
tpL Port 2 1/0 Data Setup 350
tLP Port 2 1/0 Data Hold 150
ALE J \'-------~
\'---------r~1
-+CA~
I OUTPUT DATA
OUTPUT
PCH
PORT CONTROL
EXPANDER PORT
INPUT
PCH
r
PROG
BUS TIMING AS A FUNCTION OF TCY *
SYMBOL
FUNCTION OF TCY 7/30 TCY MIN 1/10 TCY MIN 1/15 TCY MIN 1/2 TCY MIN 2/5 TCY MIN 2/15 TCY MIN 1/15 TCY MIN 0 MIN
FUNCTION OF TCY 11/30 TCY MAX 3/10 TCY MAX 3/10 TCY MIN 1/2 TCY MAX 1/3 TCY MAX 1/30 TCY MIN 1/15 TCY MIN
TLL TAL TLA TCC (1) TCC (2) TOW TWO ToA
TAD (1) TAD (2) TAW TAD (1) TAD (2) TAFC TCA


WAVEFORMS
ALE J !-I _____ ---! I
L ALE J I
~tcc--I tCA 1-
Rii -------1\ I
tAFCj f- -I ttDR I FLOATING ____ _
BUS ~ FLOATING ~tAD~1
Read From External Data Memory
2.4V ---....... r----
O.45V ___ --'x::: ~ TEST POINTS ~~::X'-- __ _
Write to External Data Memory Input and Output for A.C.Tests.
A.C. CHARACTERISTICS TA = O°C to 70°C VCC = VDD = 5V ± 10%. VSS = OV
8048H 8048H-1 8035HL 8035HL-1 6 MHz 8 MHz 11 MHz Conditions Min. Max. Min. Max. Min. Max. Unit (Note 1)
tLL ALE Pulse Width
400 270 150 ns
tAL Address Setup to ALE
75 75 70 ns
tLA Address Hold from ALE
65 65 50 ns
700 490 300 ns
tow Data Setup before WR
370 370 280 ns
two Data Hold after WR
2.5 1.875 1.36 /ls 0 200 0 150 0 100 ns
500 340 200 ns
tAW Address Setup to WR
230 210 200 ns
tAD Address Setup to Data In
950 650 400 ns
tAFC Address Float to RD, PSEN
0 0 -1 ns
teA Control Pulse to ALE
10 10 0 ns
CL=80pF CL,; 150 pF


CRYSTAL OSCILLATOR MODE
C1 = 5pF ± 1/2pF + STRAY < 5pF C2 = CRYSTAL + STRAY < 8pF C3 = 20pF ± 1pF + STRAY < 5pF
CRYSTAL SERIES RESISTANCE SHOULD BE LESS THAN 75D AT 6 MHz LESS THAN 180D AT 3.6MHz
L C NOMINAL 1 1 45pH ZOpF 5.2 MHz F ~ '"2iiiJLc' 120pH ZllpF 3.2 MHz 2 XTAL1 d
Z
_ '"[C
3 XTALZ Cpp ~ 1>010 pF PIN TO PIN CAPACITANCE
EACH C SHOULD BE APPROXIAMTELY 2OpF.INCLUDING STRAY CAPACITANCE
470D .... +- ___ ....;2'"1 XTALI
+5V
470D
XTAL 1 MUST BE HIGH 35-65% OF THE PERIOD AND XTAL 2 MUST BE HIGH 35-65'10 OF THE PERIOD. RISE AND FALL TIMES MUST NOT EXCEED 20nl.
Cf-1_-"r--_~"'-_~Z XTAL 1 · L--+--=-tXTAL2


The Intel® 8048L is a totally self-sufficient 8-bit parallel computer fabricated on a single silicon chip using Intel's advanced N-channel silicon gate HMOS process, using special techniques to reduce operating and standby power consumption. The 8048L contains a 1 K X 8 program memory, a 64 X 8 RAM data memory, 271/0 lines, and an 8-bit timer/counter in addition to on-board oscillator and clock circuits. For systems that require extra capability the 8048L can be expanded using standard memories and MCS-80™/MCS-8S'" peripherals. The 8048L can be used with external ROM AND RAM.
To reduce development problems to a minimum and provide maximum flexibility, a logically and functionally pin compatible version of the 8048L with UV-erasable user-programmable EPROM program memory is available. The 8748 will emulate the 8048L with greater power and other minor differences.
This microcontroller is designed to be an efficient controller as well as an arithmetic processor. The 8048L has extensive bit handling capability as well as facilities for both binary and BCD arithmetic. Efficient use of program memory results from an instruction set consisting mostly of single byte instructions and no instructions over two bytes in length.
01 XTAL 2 P27
XTAL 1 T1 PORT
RESET P2S ss P25 PORT
EA P17 Rll P1S
WR P1' ALE P13 8048L
DB, P11
DB2 P10
DB3 VDD
DB. PROG
DB5 P23
DBS P22 BUS DB7 P21
VSS P20
Intel Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in an Intel product. No other circuit patent licenses are implied
©Intel Corporation 1980 AFN-01591A-01
TO Vee · e 2 · DBo P12


The Intel 8048/8748/8743-6/8748-B/8035/B035-8 are totally self-sufficient, 8-blt parallel computers fabricated on single silicon chips using Intel's N-channel silicon gate MOS process.
The B048 contains a 1 K x B program memory, a 64 x B RAM data memory, 27 I/O lines, and an 8-blt timer/counter in addi- tion to on-board oscillator and clock circuits. For systems that require extra capability, the 8048 can be expanded using standard memories and MeS-BO /MeS-B5 peripherals. The 8035 Is the equivalent of an 8048 without program memory and can be used with external ROM and RAM. The B035L has the RAM power-down mode of the 804B while the 8035 does not. The 8748-6 is a 6 MHz B74B up to 55e. To reduce development problems to a minimum and provide maximum flexi- bility, three interchangeable pin-compatible versions of this single component microcomputer exist: the 8748 with user- programmable and erasable EPROM program memory for prototype and preproduction systems, the B04B with factory- programmed mask ROM program memory for low cost, high VOlume production, and the B035 without program memory for use with external program memories.
These microcomputers are designed to be efficient controllers as weil as arithmetic processors. They have extensive bit
handling capability as weli as facilities for both binary and BeD arithmetic. Efficient use of program memory results from an instruction set consisting mostly of single bit instructions and no instructions over 2 bytes in length.
BLOCK DIAGRAM
8048 8035L 8748 8748·6 8035
ADDRESS L.ATCH ENABLE
PORT EXPANDER STROBE
INTEL CORPORATION ASSUMES NO RESPONSIBILITY FOR THE USE OF ANY CIRCUITRY OTHER THAN CIRCUITRY EMBOOIEO IN AN INTEL PROOUCT. NO OTHER CIRCUIT PATENT LICENSES ARE IMPLIEO.
6-9 AFN.Q1354A.Ql


PIN DESCRIPTION
Designation Pin # Function Designation Pin # Function
Vss 20 Circuit GND potential RD 8 Output strobe activated during a
Voo 26 Programming power supply; +25V BUS read. Can be used to enable
during program, +5V during oper- data onto the bus from an external
ation for both ROM and PROM. device. low power standby pin in 8048 Used as a read strobe to external and 8035l. data memory. (Active low) Vee 40 Main power supply; +5V during RESET 4 Input which is used to initialize the operation and programming. processor. Also used during PROM PROG 25 Program pulse (+23V) input pin programming verification, and during 8748 programming. power down. (Active low)
Output strobe for 8243 1/0 (Non TTL VIH )
expander. WR 10 Output strobe during abus write.
P10-P17 27-34 8-bit quasi-bidirectional port. (Active low) Port 1 Used as write strobe to external P20-P27 21-24 8-bit quasi-bidirectional port. data memory. Port 2 35-38 P20-P23 contain the four high ALE 11 Address latch enable. This signal order program counter bits during occurs once during each cycle and an external program memory fetch is useful as a clock output. and serve as a 4-bit I/O expander The negative edge of ALE strobes bus for 8243.
address into external data and pro- gram memory. BUS be written or read synchronously
DBa-DB7 12-19 True bidirectional port which can
PSEN 9 Program store enable. This output using the RD, WR strobes. The port can also be statically latched. occurs only during a fetch to exter-
nal program memory. (Active low)
Contains the 8 low order program
counter bits during an external SS 5 Single step input can be used in con-
program memory fetch, and receives junction with ALE to "single step"
the addressed instruction under the the processor through each in-
control of PSEN. Also contains the struction. (Active low)
address and data during an external EA 7 External access input which forces RAM data store instruction, under all program memory fetches to re- control of ALE, RD, and WR. ference external memory. Useful
TO Input pin testable using the con- for emulation and debug, and
ditional tranSfer instructions JTO essential for testing and program
and JNTO. TO ca n be designated as verification. (Active high)
a clock output using ENTO ClK XTAL1 2 One side of crystal input for inter- instruction. TO is also used during nal oscillator. Also input for exter- programming. nal source. (Non TTL VIH)
Tl 39 Input pin testable using the JTl, XTAl2 3 Other side of crystal input. and JNTl instructions. Can be des- ignated the timer/counter input using the STRT CNT instruction.
INT 6 Interrupt input. Initiates an inter- rupt if interrupt is enabled. Inter- rupt is disabled after a reset. Also testable with conditional jump instruction. (Active low)




ABSOLUTE MAXIMUM RATINGS·
'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those Indicated in the operational sections of this specification Is not Implied.
" Ambient Temperature Under Bias ooe to 700 e Storage Temperature -65°e to +125°e Voltage On Any Pin With Respect
to Ground -o.5V to·+7V Power Dissipation 1.5 Watt
D.C.AND OPERATING CHARACTERISTICS TA = O'Ct070'C,Vcc = Voo = +5V % 10%,Vss = OV
Symbol Parameter Unit Test Conditions Min. Typ. Max.
VIL Input Low Voltage -.5 .8 V (All Except RESET, X1, X2)
VIL1 Input Low Voltage -.5 .6 V (RESET, X1, X2)
VIH Input High Voltage (All Except XTAL1, XTAL2, RESET)
V IH1 Input High Voltage (X1, X2, RESEi') 3.8 VCC V
VOL Output Low Voltage (BUS) .45 V VOL = 2.0 mA
VOL1 Output Low Voltage .45 V 10L = 1.8 mA (RO, WR, PSEN, ALE)
VOL2 Output Low Voltage (PROG) .45 V 10L = 1.0 mA
VOL3 Output Low Voltage .45 V 10L = 1.6 mA (All Other Outputs)
VOH Output High Voltage (BUS) 2.4 V 10H = -400 /1 A
VOH1 Output High Voltage 2.4 V 10H = -100 /1A (RO, WR, PSEN, ALE)
VOH2 Output High Voltage (All Other Outputs)
IL1 Input Leakage Current (T1, INT) ± 10 /1A VSS < VIN < VCC
IU1 Input Leakage Current -500 /1A VSS + .45~VIN~VCC (P10-P17, P20-P27. EA, SS)
ILO Output Leakage Current (BUS. TO) (High Impedance State)
± 10 /1A VSS + .45~VIN~.vCC
100 VOO Supply Current 5 15 rnA
BUS Pt, P2 BUS,Pt, P2 -500 /JA SOmA
VOH VOH VOL
·100/JA 10mA


Instruction Fetch From External Program Memory Read From External Data MemorY I===i--- h ·1
ALE J IL--___ ~I ---'L ALE J L 1-- 'ee --I 'eA I---
'm ~I I~FLOATlNG~1 i,'OR
BUS ~ --FL-O-AT-'N-G-- 1 1.'Ro-1 - t AD --
Write to External Data Memory Input and Output Waveforms for A.C. Tests
WR 2.4 "'"\ )(2.2- ,2.2V J O,S--TEST POINTS O.sA 0.45 '
A.C. CHARACTERISTICS T A = O·C to WC', Vee = VDD = + 5V ;: 10% ,Vss = OV
8048 18748-8** 8748-6 Symbol Parameter 874818035/8035L 8035·8 Unit I Conditions (Note 1) Min. Max. Min. Max.
tLL ALE Pulse Width 400 600 ns
tAL Address Setup to ALE 120 150 ns
tLA Address Hold from ALE 80 80 ns
tcc Control Pulse Width (PSEN, RO, WR) 700 1500 ns
tow Data Setup before WR 500 640 ns
tCY Cycle Time 2.5 15,0 4.17 15.0 IJS 6 MHz XTAL=2.5 (3.6 MHz XTAL for - 8
tOR Data Hold U 200 0 200 ns
tRO PSEN, RO to Data In 500 750 ns
tAW Address Setup to WR 230 260 ns
tAO Address Setup to Data In 950 1450 ns
tAFC Address Float to RD, PSEN 0 0 ns
tCA Control Pulse to ALE 10 20 ns
BUS Outputs: CL= tSO pF =4.17 ~s lor-8 parts uVCCand VOO for 8748-8 and 8035-6 are ±5'1.


TA = O°C to 70°C, VCC= SV~ 10%, \(ss= OV (TA = O°C to 55°C for 8748-6)
TA= -40'Cto +8S'C, VCC=5V ::1:10%, VSS=OV
Min. Max.
Port Control Setup Before Failing Edge of PROG
Port Control Hold After Falling Edge of PROG
PROG to Time P2 Input Must Be Valid
Input Data Hole! Time
Output Data Setup Time
Output Data Hold Time
Port 2 110 Data Setup
Port 2110 Data Hold
ALE
EXPANDER PORT
OUTPUT
PC"
EXPANDER PORT
INPUT
PC"
PROG
AFN-OI354MJ8


CRYSTAL OSCILLATOR MODE
LC OSCILLATOR MODE
C1 ~
.l. .£. ~ . 45"H 20 pF 5.2 MHz
f--""T--...,.---=-t2 XTAL 1
120"H 20pF 3.2 MHZ - -"'l2 XTAL1
C _-1 ---.
2 -i-... '---I I I r--~--~--~ XTAL2
C3 C2. 5pF + 1f2pF + STRAY 6pF C2 • CRYSTAL + STRAY 8pF C3. 20pF + 1pF + STRAY 6pF
CRYSTALSERIES RESISTANCE SHOULO BE LESS THAN 7& AT 8MHz: LESS THAN 180 AT S.BMHz.
EACH C SHOULD BE APPROXIMATELY 20 pF, INCLUDING STRAY CAPACITANCE.
10-+- ____ 2 =-1 XTAL1
+5V
470Q
L-_ ..... _....: 3 "'XTAL2
FOR XTAL 1 ANDXTAL2DEFINE"HIGH" ASVOLTAGESABOVE 1.8VAND "LOW" AS VOLTAGES BELOW 1.8V. THE DUTY CYCLE REQUIREMENTS FOR EXTER- NALLY DRIVING XTAL 1 AND XTAL 2 USING THE CIRCUIT SHOWN ABOVE ARE AS FOLLOWS:
MUST BE HIGH 36-85'110 OF THE PERIOD.
. FOR THE 8748. XTAL MUST BE HIGH 48-t10'II0 OFTHE PERIOD AND XTAL 2 MUST BE HIGH 50-65'110 OF THE PERIOD.
FOR THE 8046, XTAL 1 MUST BE HIGH 35-85'110 OF THE PERIOD AND XTAL 2
An attempt to program a mis-socketed 8748 wlil result In severe damage to the part. An indication of a properly socketed part is the appearance of the ALE clock out- put. The lack of this clock may be used to disable the programmer. The ProgramlVerify Sequence Is:
In brief, the programming process consists of: activat· ing the program mode, applying an address, latching the address, applying data, and applying a programming pulse. Each word is programmed compietely before moving on to the next and is followed by a verification step. The following is a list of the pins used for program- ming and a description of their functions:
S. Address applied to BUS and P20-1.
XTAL1 Clock Input (1 to 6 MHz)
AESET Initialization and Address Latching
TEST 0 Selection of Program or Verify Mode
EA Activation of ProgramlVerify Modes
BUS Address and Data Input Data Output during Verify
Voo Programming Power Supply
PAOG Program Puise Input
1S. Programmer should be at conditions of step 1 when 8748 is removed from socket.
AFN..Q1364A..Q7
P20-1 Address Input


AC TIMING SPECIFICATION FOR PROGRAMMING
TA = 2SOC ± SoC, Vee = SV ± S%, Voo = 2SV ± 1V
Min. Mix. Unit
Telt Condition.
tAW Address Setup Time to RESET t
tWA Address Hold Time After RESET I
tow Data in Setup Time to PROG I
two Data in Hold Time After PROG !
tPH RESET Hold Time to Verify
tVOOH Voo Hold Time After PROG !
tpw Program Pulse Width
tTW Test 0 Setup Time for Program Mode
tWT Test 0 Hold Time After Program Mode
too Test 0 to Data Out Delay
tww RESET Pulse Width to Latch Address
tr. tf Voo and PROG Rise and Fall Times --- tcv CPU Operation Cycle Time
0.5 2.0 ",s
5.0 ",s 4tcy
tRE RESET Setup Time Before EA 1,
TA = 25°C ± 5°C. Vee = 5V ± 5%, VDD = 25V ± 1V
Min. Max. Unit
VOOH Voo Program Voltage High Level
VOOL Voo Voltage Low Level
VPH PROG Program Voltage High Level
VPL PROG Voltage Low Level
VEAH EA Program or Verify Voltage High Level
VEAH1 EA1 Verify Voltage High Level
VEAL EA Voltage Low Level
100 Voo High Voltage Supply Current
30.0 mA
IPROG PROG High Voltage Supply Current
16.0 mA
lEA EA High Voltage Supply Current
1.0 mA


WAVEFORMS FOR PROGRAMMING
5V _----II
23V EA
. i--- VERIFY __ .I'"'.~--- PROGRAM ,.
DATA TO BE PROGRAMMED VAllO - - -< NEXT ADDR x== VALID
DBa-DB, J--
'AW +-----<+--f-'WA
~:: '~~-mt_~W_T ______________________ _
LAST ADDRESS
NEXT ADDRESS
+23 ==rr--TI
0W 'wo PROG +5 ,
VERIFY MODE (ROM/EPROM)
TO,mrr \I.. _______ --J/
\'-----
\_--~/
DBa-DB, ==>- __ ADDRESS 10-71 VALID
NEXT ADDRESS
P,,-P, XI.. _____ A_D_DR_E_S_S_IB_-9_I_V_A_L_'D ____ --'X ... ______ N_EX_T_A_D_D_R_E_SS_V_A_L_'D _______ _
The 8748 EPROM can be programmed by either of two
Intel products:
1, PROMPT-48 Microcomputer Design Aid, or


The Intel® 8048/8648/8748/8035 is a totally self·sufficient 8·bit parallel computer fabricated on a single silicon chip using Intel's N·channel silicon gate MOS process.
The 8048 contains a 1 K x 8 program memory, a 64 x 8 RAM data memory, 271/0 lines, and an 8·bit timerlcounter in addi· tion to on·board oscillator and clock circuits. For systems that require extra capability, the 8048 can be expanded using standard memories and MCS·80™IMCS·85TM peripherals. The 8035 is the equivalent of an 8048 without program memory. The 8035L has the RAM power·down mode of the 8048 while the 8035 does not. The 8648 is a one·time pro· grammable (at the factory) 8748 which can be ordered as the first 25 pieces of a new 8048 ROM order. The substitution of 8648's for 8048's allows for very fast turnaround for initial code verification and evaluation units.
To reduce development problems to a minimum and provide maximum flexibility, three interchangeable pin·compati· ble versions of this single component microcomputer exist: the 8748 with user·programmable and erasable EPROM program memory for prototype and preproduction systems, the 8048 with factory·programmed mask ROM program memory for low cost, high volume production, and the 8035 without program memory for use with external program memories.
This microprocessor is designed to be an efficient controller as well as an arithmetic processor. The 8048 has exten· sive bit handling capability as well as facilities for both binary and BCD arithmetic. Efficient use of program memory results from an instruction set consisting mostly of single byte instructions and no instructions over 2 bytes in length.
BLOCK DIAGRAM
ADDRESS LATCH ENABLE
PORT EXPANDER STROBE
INTEL CORPORATION ASSUMES NO RESPONSIBILITY FOR THE USE OF ANY CIRCUITRY OTHER THAN CIRCUITRY EMBODIED IN AN INTEL PROOUCT. NO OTHER CIRCUIT PATENT LlCENS(S ARE IMPlU © INTEL CORPORATION. 1979 6-18 AFN-OOBBOA-01
PlO


PIN DESCRIPTION
Designation Pin # Function Designation Pin # Function
VSS 20 Circuit GND potential RD 8 Output strobe activated during a
Voo 26 Programming power supply; +25V B US read. Can be used to enable
during program, +5V during oper· data onto the bus from an external ation for both ROM and PROM. device. low power standby pin in 8048 Used as a read strobe to external and 8035l. data memory. (Active low) Vee 40 Main power supply; +5V during RESET 4 Input which is used to initialize the operation and programming. processor. Also used during PROM PROG 25 Program pulse (+23V) input pin programming verification, and during 8748 programming. power down. (Active low)
Output strobe for 8243 I/O (Non TTL VIH )
expander. WR 10 Output strobe during a bus write.
P10·P17 27·34 8-bit quasi-bidirectional port. (Active low) Port 1 Used as write ·strobe to external P20-P27 21-24 8-bit quasi-bidirectional port. data memory. Port 2 35-38 P20-P23 contain the four high ALE 11 Address latch enable. This signal order program counter bits during occurs once during each cycle and an external program memory fetch is useful as a clock output. and serve as a 4-bit I/O expander
bus for 8243. The negative edge of ALE strobes
address into external data and pro- gram memory. BUS be written or read synchronously
DBo-DB7 12-19 True bidirectional port which can
PSEN 9 Program store enable. This output using the RD, WR strobes. The port can also be statically latched. occurs only during a fetch to exter-
Contains the 8 low order program nal program memory. (Active low)
counter bits during an external 55 5 Single step input can be used in con-
program memory fetch, and receives junction with ALE to "single step"
the addressed instruction under the the processor through each in-
control of P5EN. Also contains the struction. (Active low)
address and data during an external EA 7 External access input which forces RAM data store instruction, under all program memory fetches to re- control of ALE, RD, and WR. ference external memory, Useful
TO Input pin testable using the con- for emulation and debug, and
ditional transfer instructions JTO essential for testing and program
and JNTO. TO can be designated as verification. (Active high)
a clock output using ENTO ClK XTAL1 2 One side of crystal input for inter- instruction. TO is also used during nal oscillator. Also input for exter- programming. nal source. (Non TTL VIH)
T1 39 Input pin testable using the JT1, XTAl2 3 Other side of crystal input. and JNT1 instructions. Can be des- ignated the timer/counter input using the STRT CNT instruction.
INT 6 Interrupt input. Initiates an inter- rupt if interrupt is enabled. Inter- rupt is disabled after a reset. Also testable with conditional jump
instruction. (Active low)


INSTRUCTION SET
Mnemonic Description Bytes Cycle Mnemonic Description Bytes Cycles
! CALL addr Jump to subroutine 2 2 ADD A, R' Add register to A 'i Return 2 ADD A,@R Add data memory to A 1 e RET
Return and restore status 2 ADD A, #data Add immediate to A 2 2 -g RETR ADDCA, R Add register with carry (I)
ADDCA,@R Add data memory with carry 1 CLR C Clear carry ADDC A,
CPL Fl Complement flag 1 S ORL A,@R Or data memory to A 1 .II ORLA, #data Or immediate to A 2 2 ~ E XRLA, R Exclusive or register to A 1 MOV A, R Move register to A ~ u XRL A,@R Exclusive or data memory to A 1 1 MOVA,@R Move data memory to A 1 1 u C( XRL A,
~ MOV @R,#data Move immediate to data memory 2 2 DAA Decimal adjust A
~ MOV A, PSW Move PSW to A SWAP A Swap nibbles of A
" MOV PSW, A Move A to PSW RLA Rotate A left 1; XCH A, R Exchange A and register 0 RLCA Rotate A left through carry XCHA,@R Exchange A and data memory RR A ROfate A right XCHD A,@R Exchange nibble of A and register RRCA Rotate A right through carry MOVX A,@R Move external data memory to A 2 MOVX@R,A Move A to external data memory 2 INA, P I nput port to A 2 MOVPA,@A Move to A from current page 2 OUTL P,A Output A to port 2 MOVP3 A,@A Move to A from page 3 2 ANL P, #data And immediate to port 2 2 '$ ORL P, #data Or immediate to port 2 2 MOVA, T Read timer/counter I, S- INS A, BUS Input BUS to A 2 ~ MOVT,A Load timer/counter " ~
STRT CNT Start caU nter .. .E ORL BUS,#data Or immediate to BUS 2 2 STOP TCNT Stop timer/counter MOVD A, P I nput expander port to A 1 2 E EN TCNTI Enable timer/counter interrupt MOVDP,A Output A to expander port 2 i= DIS TCNT! Disable timer/counter interrupt ANLD P, A And A to expander port 2 ORLD P, A Or A to expander port 2
OUTL BUS,A Output A to BUS 1 2 c STRTT Start timer " ANL BUS,#data And immediate to BUS 2 2 ~
EN I Enable external interrupt DISI Disable external interrupt ; INCR Increment register i
INC@R I ncrement data memory
SEL RBI Select register bank 1 II: DECR Decrement register 8 SEL MBa Select memory bank a SEL MBI Select memory bank 1
J~mp unconditional 2 2 ENTO CLK Enable clock ouiput on TO JMP addr JMPP@A Ju mp ind irect 1 2 DJNZ R, addr Decrement register and skip 2 2 NOP No operation JC addr Jump on carry = 1 2 2 JNC addr Jump on carry = 0 2 2 J Z addr Jump on A zero 2 2 JNZaddr Jl.4mp on ~ not zero 2 2 ~ JTOaddr Jump on TO= 1 2 2 u c: JNTOaddr Jump on TO= a 2 2 It II! JTI addr Jump on Tl = 1 2 2 JNTI addr Jump on TI = 0 2 2 JFOaddr Jump on FO= 1 2 2 JFl addr Jump on Fl = 1 2 2 JTF addr Jump on timer flag 2 2 JNI addr Jump on iiiii' = a 2 2 JBb addr Jump on accumulator bit 2 2
Mnemonics copyright Intel Corporation 1976
6-20 AFN-ootI8OA-03


ABSOLUTE MAXIMUM RATINGS·
Ambient Temperature Under Bias - 40°C to + 85°C Storage Temperature - 65°C to + 125°C Voltage On Any Pin With Respect
·COMMENT: Stresses abOve those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This Is a stress rating only and functional operation of the device at these or any other conditions above those Indicated in the operational sections of this specification is not Implied.
to Ground - 0.5V to + 7V Power Dissipation 1.5 Watt
TA= -40·Cto + 85·C, Vee=Voo= +5V :t:l0%, VSS=OV
Unit Test Conditions Max.
Min. Typ.
Input Low Voltage (All Except RESET, XTAL1, XTAL2)
Input Low Voltage (RESET, Xl, X2)
Input High Voltage (All Except XTAL1, XTAL 2, RESET)
Input High Voltage (XTAL 1, XTAL2, RESET)
VOL
Output Low Voltage (BUS, RD, WR, PSEN, ALE)
0.45 V IOL= 1.6 mA
Output Low Voltage (Pl0-P17, P20-P27)
0.45 V IOL= 1.2 mA
VOl2 VOH
Output Low Voltage (All Other Outputs)
0.45 V IOL=O.B mA
Output High Voltage (BUS)
Output High Voltage (RD, WR, ALE, PSEN)
V OH2
Output High Voltage (All Other Outputs)
Input Leakage Current (Tl, INT)
:t: 10 ~ VSS",VIN'" Vee -600 I'A Vss+ .45",VIN",Vee
Input Leakage Current (P10-P17, P20-P27, EA, ~)
Output Leakage Current (BUS, TO) (High Impedance State)
:t:l0 I'A VSS + 0.45..:VIN",Vee
P1, P2
BUS, P1, P2
§~~ (f
.. ~f?-
:r 9
VOH
VOH
AFN-ootI6OA..()4


WAVEFORMS
Instruction Fetch From External Program Memory Read From External Data Memory
ALE JI !- ___ ~r---I --"L ALE J L
teA r1- tcc-I teA I-- -----1 I
tAFc-1 I--;~OATING-I tt oR
BUS ~ --FL-O-AT-'N-G--
I l.tRo-1 -- t AO -------
Write to External Data Memory Input and Output Waveforms for A.C. Tests
0:: ======~~-:.lX~:~>TEST POINTS:::::~:~X\" ____ _
A.C. CHARACTERISTICS
TA= -40·Cto +85·C, Vcc=Voo= +5V ±10%, Vss=OV
Symbol Parameter 8048/8035L 8748/8035 Unit Conditions (Note 1) Min. Max. Min. Max.
tLL ALE Pulse Width 200 300 ns
tAL Address Setup to ALE 120 120 ns
tLA Address Hold from ALE 80 80 ns
tcc Control Pulse Width (PSEN, RD, WR) 400 600 ns
tow Data Setup Before WR 420 600 ns
two Data Hold After WR 80 120 ns CL=20 pF
tCY Cycle Time 2.5 15.0 4.17 15.0 fJs (3.6 MHzXTAL8748/8035)
tOR Data Hold 0 200 0 200 ns
tRO PSEN, RD to Data In 400 600 ns
tAW Address Setup to WR 230 260 ns
tAD Address Setup to Data In 600 900 ns
tAFC Address Float to RD, PSEN -40 - 60 ns
tCA Control Pulse to ALE 10 10 ns
6-22 AFr>HlO860A·05


A.C. CHARACTERISTICS
TA= -40·Cto +85·C, Vcc=5V ±10%, Vss=OV
Min.
top Port Control Setup Before Failing Edge of PROG
tpc Port Control Hold After Failing Edge of PROG
tPA PROG to Time P2 Input Must Be Valid
tpF Input Data Hold Time
top Output Data Setup Time
tpo Output Data Hold Time
tpp PROG Pulse Width
tpL Port 2 I/O Data Setup
tLP Port 2 I/O Data Hold
ALE
EXPANDER PORT
OUTPUT
PCH
EXPANDER PORT
INPUT
PCH
PROG


CRYSTAL OSCILLATOR MODE
DRIVING FROM EXTERNAL SOURCE
+5V
,---r----'-1 XTALl
0-15 pF (INCLUDES XTAL SOCKET, STRAy)
15-25 pF (INCLUDES SOCKET, I
STRAY) -=-
CRYSTAL SERIES RESISTANCE SHOULD BE
BOTH Xl AND X2 SHOULD BE DRIVEN. RESISTORS TO Vee ARE NEEDED TO ENSURE V,H = 3.BV IF TTL CIRCUITRY IS USED. THE MINIMUM HIGH AND THE MINIMUM LOW TIMES ARE 45%.
-"- ~ NOMINALf 45 flH 20 pF 5.2 MHz 120 J.lH 20 pF 3.2 MHz ...--..--"'1XTALl C,=C+3Cpp
Cpp::::: 5-10 pF PIN·TO·PIN CAPACITANCE
EACH C SHOULD BE APPROXIMATELY 20 pF,lNCLUDING STRAY CAPACITANCE.
An attempt to program a mis-socketed 8748 will result in severe damage to the part. An indication of a properly socketed part is the appearance of the ALE clock out- put. The lack of this clock may be used to disable the programmer.
The ProgramlVerify Sequence is:
In brief, the programming process consists of: activat- ing the program mode, applying an address, latching the address, applying data, and applying a programming pulse. Each word is programmed completely before moving on to the next and is followed by a verification step. The following is a list of the pins used for program- ming and a description of their functions:
PROG floating:
XTAL1 Clock Input (1 to 6 MHz)
RESET Initialization and Address Latching
TEST 0 Selection of Program or Verify Mode
EA Activation of ProgramlVerify Modes
BUS Address and Data Input Data Output during Verify
Voo Programming Power Supply
PROG Program Pulse Input


AC TIMING SPECIFICATION FOR PROGRAMMING TA = 25°C ± 5°C, Vee = 5V ± 5%, Vee = 25V ± 1V
Sy,mbol Paramet.r
Min.
Max. Unit T .. t Condition.
tWA Address Hold Time After RESETt
tow pata In Setup Time to PROG'
two Data In Hold Time After PROG L
tVOOH VooHold Time After PROGl
tpw Program Pulse Width
tr,w Test 0 Setup Time for Program Mode
tWT Test 0 Hold Time After Program Mode
too Test 0 to Data Out Delay
t" tf Vooand PROG Rise and Fall Times
2.0 ,us
tCY CPU Operation Cycle Time
tRE RE§ET'Setup Time Before EA 1
DC SPECIFICATION FOR PROGRAMMING TA = 25°C ± 5°C, Vee = 5V ± 5%, Vee = 25V ± 1V
Min.
Voo'! VooProgram Voltage High Level
VOOL Voo Voltage Low Level
VEAH EA Program or Verify Voltage High Level
VEAH1 EA1 Verify Voltage High Level
VEAL EA Voltage Low Level
100 VooHlgh Voltage Supply Current
30.0 mA
I PROG PROG High Voltage Supply Current
16.0 mA
lEA EA High Voltage Supply Current
1.0 mA


WAVEFORMS FOR PROGRAMMING
5V _--J/
EA
1---------- PROGRAM ----------t--- VERIFY--'~I.'---- PROGRAM -----
,.----'"'""
TO
DBoDB 7 ==>- --
__ -{ N. EXT ADDR L
DATA TO BE PROGRAMMED VAL 10
VALID
LAST ADDRESS
NEXT ADDRESS
voo+: tTI--U: ~-::-T +23 PROG +5 ,.- ,'- +0 f _
TO,RESET \\,. ______________ __1 1 \\.-- __ --JI \\.----
DBo-DB7 J--
'~\, A_DD_R_E_S_S_(8_-9_I_V_A_LI_D I~\, NE_X_T_A_D_D_R_E_SS_V_A_L_ID
The 8748 EPROM can be programmed by either of two Intel products:


M8048/M8748/M8035L
SINGLE COMPONENT &81T MICROCOMPUTER
* 8048 Mask Programmable ROM * 8748 User Programmable/Erasable EPROM * 8035L Requires External ROM or EPROM
The Intel M80481M8748JM8035L are totally self-sufficient 8-bit parallel computers fabricated on single silicon chips using Intel's N-Channel silicon gate MOS process_
The M8048 contains an 8-bit CPU, a 1 K x 8 program memory, a 64 x 8 RAM data memory, 27 1/0 lines, and an 8-bit timerl counter in addition to on-board oscillator and clock clrcuits_ F.ro systems that require extra capability, the M8048 can be expanded using standard memories and MCS-80™IMCS-85TM peripherals_ The M8035L is the equivalent of an M8048 without program memory, and has the RAM power. down mode of the M8048_ To reduce development problems to a min- Imum and provide maximum flexibility, three Interchangeable pin-compatible' versions of this single component micro- computer exist: the M8748 with user-programmable and erasable EPROM program memory for prototype and prepro- duction systems, the M8048 with factory-programmed mask ROM program memory for low cost, high volume production, and the M8035L without program memory for use with external program memories_
This microprocessor is designed to be an efficient controller as well as an arithmetic processor. The M8048 has extensive bit handling capability as well as facilities for both binary and BCD arithmetic. Efficient use of program memory results from an instruction set consisting mostly of single byte instructions and no Instructions over 2 bytes in length.
'Vee is used to program the M8748 and used for low power standby on the M8048I8035L.
BLOCK DIAGRAM
PORT
PORT "
M8048
INTEl CORPORATION ASSUMES NO RESPONSIBILITY FOR THE USE OF ANY CIRCUITRY OTHER THAN CIRCUITRY EMBOmED IN AN INTEl PRODUCT. NO OTHER CIRCUIT PATENT LICENSES ARE IMPLIED.
©INTEL CORP .. 1980 6-27 AFN-G0780A-ol
"


CRYSTAL OSCILLATOR MODE
LCOSCILLATOR MODE
Cl ~
1-_~ ___ ""' ___ 2'-i XTAL 1
..h. .£. ~ 45 "H 20 pF 5.2 MHz 120 "H 20 pF 3.2 MHz ,---r---j XTAU
c'= C + 3Cpp
C3 Cl ; SpF ± 12pF + STRAY < SpF C2 ; CRYSTAL + STRAY < 8pF C3 = 20pF ± 1pF + STRAY < SpF
Cpp ::::: 5 - 10 pF PIN·TO·PIN CAPAC IT ANCE
CRYSTAL SERIES RESISTANCE SHOULD BE LESS THAN 1SQ AT 8MHz; LESS THAN 180Q AT 3.8MHz.
EACH C SHOULD BE APPROXIMATEl Y 20 pF, INCLUDING STRAY CAPACITANCE.
470Q
»---+-----'-1 XTAL1
+ SV
470Q
FOR XTAL 1 AND XTAL 2 DEFINE "HIGH" AS VOLTAGES ABOVE 1.8V AND "LOW" AS VOLTAGES BELOW 1.6V. THE DUTY CYCLE REQUIREMENTS FOR EXTERNALLY DRIVING XTAL 1 AND XTAL 2 USING THE CIRCUIT SHOWN ABOVE ARE AS FOLLOWS:
BE HIGH 3S-65% OF THE PERIOD.
FOR THE 8748. XTAL MUST BE HIGH 45·50% OF THE PERIOD AND XTAL 2 MUST BE HIGH SO·SS% OF THE PERIOD.
RISE AND FALL TIMES MUST NOT EXCEED 20 ns.
FOR THE 8048. XTAL 1 MUST BE HIGH 35-6S% OF THE PERIOD AND XTAL 2 MUST
WARNING:
An attempt to program a missocketed 8748 will reSUlt in severe damage to the part. An indication of a properly socketed part is the appearance of the ALE clock output. The lack of this clock may be used to disable the prQgrammer.
The ProgramNerify sequence is:
In brief, the programming process consists of: activating the program mode, applying an address, latching the address, applying data, and appiying a programming pulse.
Each word is programmed completely before moving on to the next and is followed by a verification step. The follow- ing is a list of the pins used for programming and a descrip- tion of their functions:
Insert 8748 in programming socket
TEST 0 = Ov (select program mode)
EA = 23V (activate program mode)
Clock Input (1 to 6MHz)
Initialization and Address Latching Selection of Program or Verify Mode Activation of ProgramNerify Modes
Address and Data Input Data Output During Verify
Address. Input


TA = 25°C ± 5°C, Vee = 5V ± 5%, Voo = 25V ± 1V
Min.
tAW Address Setup Time to RESET ,
tWA Address Hold Time After RESET'
tow Data in Setup Time to PROG ,
Iwo Dala in Hold Time After PROG j
IPH RESET Hold Time to Verify
tVOOH Voo Hold Time After PROG j
Ipw Program Pulse Width
trw Test 0 Setup Time for Program Mode twr Test 0 Hold Time After Program Mode
too Test 0 to Data Out Delay
tww RESET Pulse Width to Latch Address
Ir. It Voo and PROG Rise and Fall Times
2.0 liS
tCY CPU Operation Cycle Time
tRE RESET Setup TIme Before EA t.
Nole: If Test 0 is high too can be triggered by RESEi' t.
TA = 2SOC ± SoC, Vee = SV ± 5%, Voo = 2SV ± 1V
Min.
Max. Unit Test Conditions
VOOH Voo Program Voltage High Level
VOOL Voo Voltage Low Level
VPH PROG Program Voltage High Level
VPL PROG Voltage Low Level
VEAH EA Program or Verify Voltage High Level
VEAH1 EA1 Verify Voltage High Level
VEAL EA Voltage Low Level
100 Voo High Voltage Supply Current
30.0 mA
IPROG PROG High Voltage Supply Current
16.0 mA
lEA EA High Voltage Supply Current
1.0 mA


WAVEFORMS FOR PROGRAMMING
EA 23' / 5' 1 1+ PROGRAM t--- VERIFV---I.I~' PROGRAM tTw_
,. ,.
tww-
-- -< NEXT ADDR C . VALID
DBo-DB, J--
DATA TO BE PROGRAMMED VALID
LAST ADDRESS
NEXT ADDRESS
Voo +: J-TI~·~n.-':w-.'----------------------
PROG +5------------ ~----------'"'\ +0 ___ J .... _______ _
VERIFY MODE (ROM/EPROM)
TO. RESET \ ..... _______ ..J/ \'-- __ -.J/ \'"----
DBO-OS7 =>---
ADDRESS 10-71 VALID ---< A_~_~_~_:S_S __ X ~_~_;_TV_~_~_i~...J>-
The 8748 EPROM can be programmed by either of two Intel products:
+23 ~


INSTRUCTION SET
Mnemonic Description Bytes Cycle Mnemonic Description Bytes Cycles .. ADD A, R Add register to A ADD A,@R Add data memory to A
c CALLaddr Jump to subroutine :; e RET Return 2 ADD A, #data Add immediate to A '" RETR Return and restore status 2 ::J ADDC A, R Add register with carry
ADDC A,@R Add data memory with carry CLR C Clear carry ADDC A, #data Add immediate with carry CPL C Complement carry ANL A, R And register to A ANLA,@R And data memory to A
.. CLR FO Clear flag 0 co Il CPL FO Complement flag 0 ANL A, #data And immediate to A CLR F1 Clear flag 1
ORL A, R Or register to A ORL A, @R Or data memory to A
CPL F1 Complement flag 1
::J ORL A, 'data Or immediate to A E XRL A, R Exclusive or register to A ::J
MOV A, R Move register to A MOV A,@R Move data memory to a MOV A, #data Move immediate to A XRL A, #data Exclusive or immediate to A MOV R, A Move A to register INC A Increment A MOV@R,A Move A to data memory DECA Decrement A .. MOV R, #data Move immediate to register CLR A Clear A CPL A Complement A ~
~ XRL A, @R Exclusive or data memory to A
MOV @R, #data Move immediate to data memory
::E MOV A, PSW Move PSW to A DAA Decimal adjust A SWAP A Swap nibbles of A
l! MOV PSW, A Move A to PSW co C XCH A, R Exchange A and register RL A Rotate A left XCHA,@R Exchange A and data memory RLC A Rotate A left through carry XCHD A,@R Exchange nibble of A and register RR A Rotate A right MOVXA,@R Move external data memory to A RRC A Rotate A right through carry MOVX@R,A Move A to external data memory MOVPA,@A Move to A from current page IN A, P Input port to A MOVP3 A,@A Move to A from page 3 OUTL P, A Output A to port
ANL P, #data And immediate to port MOV A, T Read timer/counter
ORL P, #data Or imm~diate to port 'S INS A, BUS Input BUS to A % OUTL BUS, A Output A to BUS 0 ., ANL BUS, #data And immediate to BUS ::J ORL BUS, #data Or immediate to BUS "- .5 MOVD A, P Input expander port to A
MOVT, A Load timer/counter
::J STRT T Start timer 0 STRT CNT Start counter 0 -;: STOP TCNT Stop timer/counter .. E EN TCNTI Enable timer/counter interrupt i=
DIS TCNTI Disable timer/counter interrupt
MOVD P, A Output A to expander port ANLD P, A And A to expander port EN I Enable external interrupt
ORLD p, A Or A to expander port DIS I Disable external interrupt i
:g SEL RBO Select register bank 0 c SEL RB1 Select register bank 1 8 SEL MBO Select memory bank 0 .. DEC R Decrement register '"
INC R Increment register INC@R Increment data memory
SEL MB1 Select memory ban k 1 ENTO CLK Enable clock output on TO
JMP addr Jump unconditional JMPP@A Jump indirect NOP No operation
DJNZ R, addr Decrement register and skip JC addr Jump on carry = 1 JNC addr Jump on carry = 0 JZ addr Jump on A zero
J: JNZ addr Jump on A not zero " JTO addr Jump on TO ~ 1 c e! JNTO addr Jump on TO ~ 0 CD
JT1 addr Jump on T1 ~ 1 JNT1 addr Jump on T1 ~ 0 JFO addr Jump on FO ~ 1 JF1 addr Jump on F1 = 1 JTF addr Jump on timer flag JNI addr Jump on INT ~ 0 JBb addr Jump on accumulator bit Mnemonics copyright Intel Corporation 1978
~ · ~


PIN DESCRIPTION
20 Circuit GND potential
6 Interrupt input. Initiates an inter- rupt if interrupt is enabled. Inter- rupt is disabled after a reset. Also testable with conditional jump instruction. (Active low)
26 Programming power supply; +25V during program, +5V during oper- ation for both ROM and PROM. low power standby pin in 8048 and 8035L.
8 Output strobe activated during a BUS read. Can be used to enable data onto the bus from an external device.
40 Main power supply; +5V during operation and programming.
25 Program pulse (+23V) input pin during 8748 programming.
Used as a read strobe to external data memory. (Active low)
Output strobe for 8243 I/O ex- pander.
4 Input which is used to initialize the processor. Also used during PROM programming verification, and power down. (Active low) (Non TTL VIH)
P10-P17 Port 1 P20-P27 Port 2
27-34 8-bit quasi-bidirectional port.
21-24 8-bit quasi-bidirectional port. 35-38 P20-P23 contain the four high order program counter bits during an external program memory fetch and serve as a 4-bit I/O expander bus for 8243.
10 Output strobe during a bus write. (Active low)
Used as write strobe to external data memory.
12-19 True bidirectional port which can be written ~re~synchronously using the RD, WR strobes. The port can also be statically latched.
11 Address latch enable. This signal occurs once during each cycle and is useful as a clock output.
The negative edge of ALE strobes address into external data and pro- gram memory.
Contains the 8 low order program counter bits during an external program memory fetch, and re- ceives the addressed instruction under the control of PSEN. Also contains the address and data during an external RAM data store instruction, under control of ALE RD, and WR. '
9 Program store enable. This output occurs only during a fetch to exter- nal program memory. (Active low)
5 Single step input can be used in junction with ALE to "single step" the processor through each in- struction. (Active low)
Input pin testable using the con- ditional transfer instructions JTO and JNTO. TO can be designated as a clock output using ENTO ClK instruction. TO is also used during programming.
7 External access input which forces all program memory fetches to re- ference external memory. Useful for emulation and debug, and essential for testing and program verification. (Active high)
39 Input pin testable using the JT1, and JNT1 instructions. Can be deSignated the timer/counter in- put using the STRT CNT in- struction.
2 One side of crystal input for inter- nal oscillator. Also input for exter- nal source. (Non TTL VIH)
3 Other side of crystal input.


A.C. CHARACTERISTICS (PORT 2 TIMING)
TA = 55·C to (100·C M8748/125·C M8048/M8035L), Vcc= +5V ± 10%, Vss =OV
Min. Max.
Port Control Setup Before Falling Edgeof~
Port Control Hold After Falling Edge of PROG
PROG to Time P2 Input Muat Be Valid
Input Data Hold Time
Output Data Setup Time
Output Data Hold Time
Port 2 1/0 Data Setup
Port 2 1/0 Data Hold
ALE
EXPANDER PORT
OUTPUT
PCH
EXPANDER PORT
INPUT
PCH
PROG
AFN-00780A-07


WAVEFORMS
Instruction Fetch From External Program Memory Read From External Data Memory
ALE JI ~ ___ ----'r-I ---'L ALE J L
- t AFC 1- 'cc ~I tCA r-- --------r-+_~ ~--~------
Write to External Data Memory Input and Output Waveforms for A.C. Tests
ALE J L
2.0 2.0 > TEST POINTS <
0.8 0.8 0.45
TA = -55·C to (100·C M8748/125·C M8048/M8035L), Vcc = Voo = +5V ± 10%, Vss =OV
M8048 M8748 Symbol Parameter M8035L Unit Conditions (Note 1) Min. Max. Min. Max.
tLL ALE Pulse Width 200 300 ns
tAL Address Setup to ALE 120 120 ns
tLA Address Hold from ALE 80 80 ns
tcc Control Pulse Width (PSEN, RD, WR) 400 600 ns
tow Data Setup before WR 420 600 ns
tCY Cycle Time 2.5 15.0 4.17 15.0 !lS (3.6 MHz XTAL 8748)
tOR Data Hold 0 200 0 200 ns
tRo PSEN, RD to Data In 400 600 ns
tAW Address Setup to WR 230 260 ns
tAD Address Setup to Data In 600 900 ns
tAFC Address Float to RD, PSEN -40 -60 ns
tCA Control Pulse to ALE 10 10 ns


ABSOLUTE MAXIMUM RATINGS·
Ambient Temperature Under Bias
'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device, This is a stress fating only and functional operation of the device at these or jiny other conditions above those indicated in the operational sections of this specification is not implied.
8748 -SsoC to +100°C 8048/803SL -SsoC to +12SoC Storage Temperature -6SoC to +12SoC Voltage On Any Pin With Respect
to Ground -O.S to +7V Power Dissipation 1.S Watt
TA = -55·C to (100·C MB74B/125·C MB04B/MB035L), Vee = VDD = +5V ± 10%, Vss =OV
Symbol Parameter Limits Unit Test Conditions Min. Typ. Max.
V1L Input Low Voltage -.5 .7 V (All Except RESET, X1, X2)
V1L1 Input Low Voltage -.5 .S V (RESET, X1, X2)
V1H Input High Voltage 2.3 Vee V (All Except XTAL 1, XTAL 2, RESET)
V1H1 Input High Voltage (RESET, X1, X2) 3.B Vee V
VOL Output Low Voltage .45 V IOL = 1.2mA (BUS, RD, WR, PSEN, ALE)
VOLI Output Low Voltage .45 V iOL = O.BmA (All Other Outputs)
VOH Output High Voltage (BUS) 2.4 V IOH= -24OI'A
VOH1 Output High Voltage 2.4 V IOH = -SOI'A (RD, WR, PSEN, ALE)
VOH2 Output High Voltage 2.4 V IOH = -3OI'A (All Other Outputs)
III Input Leakage Current (T1, INT) ±10 i-
ILl1 I nput Leakage Current -700 f.1A Vss+.45 ::;VIN ::;Vee (P10-P17, P20-P27, EA, SS)
lLO Output Leakage Current (BUS, TO) ± 10 f.1A Vss + .45",V1N",Vee (High Impedance State)
IDD VDD Supply Current 10 25 mA
IDD+ lee Total Supply Current BO 155 mA
SOmA G
-300j.iA. '" r 9 9 0 30mA
VOH VOH
VOL
6-35 AFN-007BOA-09
-5001-lA lOmA · lOrnA


NEW HIGH PERF·ORMANCE
. 8049/8039/8039·6 SINGLE COMPONENT 8·BIT MICROCOMPUTER
*8049 Mask Programmable ROM *8039 External ROM or EPROM *New 11 MHz Operation
The Intel~ 8049/8039/8039-6 Is a totally self-sufficient 8-bit parallel computer fabricated on a single silicon chip using Intel's N-channel silicon gate MOS process.
The 8049 contains a 2K x 8 program memory, a 128 x 8 RAM data memory, 27 I/O lines, and an 8·blt timer/counter in addition to on board oscillator and clock circuits. For systems that require extra C;llpabillty, the 8049 can be expanded using standard memories and MCS-80™/MCS·85TM peripherals. The 8039 is the equivalent toan 8049 without program
memory. The 8039·6 is a lower speed (6 MHz) version of the 8039. .
To reduce development problems to a minimum and provide maximum flexibility, two Interchangeable pin-compatible versions of this single component microcomputer exist: the B049 with factory-programmed mask ROM program memory for low-cost high volume production, and the 8039 without program memory for use with external program memories in prototype and preproduction systems.
This microprocessor is designed to be an efficient contl'oller as well as an arithmetic processor. The 8049 has exten- sive bit handling capability as well as facilities for both binary and BCD arithmetic. Efficient use of program memory results from an instruction set consisting mostly of single byte instructions and· no instructions over two bytes In length.
INTEL CORPORATION ASSUMES NO RESPONSIBILITY FOR THE USE OF ANY CIRCUITRY OTHER THAN CIRCUITRY EMBODIED IN AN INTEL PROOUCl NO OTHER CIRCUIT PATENT LICENSES ARE IMPLIED.
6-36 AFNoOO181MJl


80411803118031 ..
Designation Pin # Function Designation Pin # Function
Vss 20 Circuit GNO potential RO 8 Output strobe activated during a
Voo 26 +5V during operation. low power BUS read. Can be used to enable
standby pin. data onto the BUS from an extemal
Vee 40 Main power supply; +5V during device.
operation. Used as a Read Strobe to External
Data Memory. (Active low)
PROG 25 Output strobe for 8243 1/0
expander. RESET 4 Input which is used to initialize the
P10-P17 27-34 B-bit quasi-bidirectional port. processor_Also used during verifi-
Port 1 cation, and power down. (Active
P2O-P27 21-24 B-bit quasi-bidirectional port_ low) (Non TTL VIH) Port 2 35-38 P2O-P23 contain the four high WR 10 Output strobe during a BUS write.
order program counter bits during (Active low)
an external program memory fetch Used as write strobe to External and serve as a 4-bit 1/0 expander Data Memory. bus for 8243 ALE 11 Address Latch Enable. This signal 00-07 12-19 True bidirectional port which can occurs once during each cycle and BUS be written or read synchronously is useful as a clock output. using the RO, WR strobes. The The negative edge of ALE strobes port can also be statically latched. address into external data and pro- Contains the 8 low order program gram memory. counter bits during an external PSEN 9 Program Store Enable. This output program memory fetch, and receives the addressed instruction under the occurs only during a fetch to exter-
control of PSEN. Also contains the nal program memory. (Active low)
address and data during an external 55 5 Single step input can be used in con- RAM data store instruction, under junction with ALE to "single step" control of ALE, RO, and WR. the processor through each in·
TO Input pin testable using the con- struc;tion. (Active low)
ditional transfer instructions JTO EA 7 External Access input which forces and JNTO. TO can be designated as all program memory fetches to re- a clock output using ENTO ClK ference external memory. Useful instruction. for emulation and debug, and
essential for testing and program
T1 39 Input pin testable using the JT1,
and JNT1 instructions. Can be des-
ignated the timer lcounter input using XTAL1 2 One side of crystal input for inter-
the STRT CNT instruction. nal oscillator. Also input for exter-
ilalsource. (Not TTL Compatible)
INT 6 Interrupt input. Initiates an inter-
rupt if interrupt is enabled. Inter- XTAL2 3 Other side of crystal input_
rupt is disabled after a reset. Also testable with conditional jump
instruction. (Active low)
verification_ (Active high)


INSTRUCTION SET
Mnemonic Description Bytes Cycle Mnemonic Description Bytes Cycle ..
2 2 c CALL Jump to subroutine ADD A, R Adrl register to A
~ 2 ADD A,@R Add data memory to A 1 1 f RET Return ADD A, #data Add immediate to A 2 2 .., RETR Retu rn and restore status 2 = ADDC A, R Add register with carry '" ADDC A,@R Add data memory with carry 1 1 ADDC A, #data Add immediate with carry 2 2 CLR C Clear Carry Complement Carry CPL C ANL A, R And register to A :g, CLR Fa Clear Flag a ANLA,@R And data memory to A 1 1 .l! Complement Flag a u. CPL Fa ANL A, #data And immediate to A 2 2 Clear Flag 1 CLR Fl ORLA, R Or register to A
CPL Fl Complement Flag 1 S ORLA,@R Or data memory to A 1 .IJI ORLA, #data Or immediate to A 2 2 = E XRLA, R Exclusive Or register to A 1 MOV A, R Move register to A = ~
XRLA,@R Exclusive or data memory to A 1 1 MOVA,@R Move ~ata memory to A XRLA, #data Exclusive or immediate to A 2 2 MOV A,. #data Move immediate to A 2 2 INCA Increment A 1 MOV R,A Move A to register 1 DECA Decrement A MOV@R,A Move A to data memory 1 CLR A Clear A MOV R, #data Move immediate to register 2 2 CPL A Complement A ~ MOV @R, #data Move immediate to data memory 2 2 > DAA Decimal Adjust A 0 Move A, PSW Move PSW to A ::; SWAP A Swap nibbles of A m MOV PSW, A Move A to PSW RLA Rotate A left m XCH A, R Exchange A and register C RLCA Rotate A left through carry XCHA,@R Exchange A and data memory RR A Rotate A right XCHD A,@R Exchange nibble of A and register RRCA Rotate A right through carry MOVX A,@R Move external data memory to A 2 MOVX@R,A Move A to external data memory 2 INA, P I nput port to A 2 MOVPA,@A Move to A from current page 2 OUTL P, A Output A to port 2 MOVP3 A,@A Move to A from Page 3 2 ANL P, #cIate And immediate to port 2 2 I
ORL P, #data Or immediate to port 2 2 MOVA, T Read Timer/Counter INS A, BUS I nput BUS to A 2 .!! MOVT, A Load Timer/Counter ~
OUTL BUS, A Output A to BUS 1 2 c STRTT Start Timer = ANL BUS, #data And immediate to BUS 2 2 § STRT CNT Start Counter '" .5 ORL BUS,#data Or immediate to BUS 2 2 ~ STOP TCNT Stop Timer/Counter MOVD A, P Input Expander port to A 2 ,§ EN TCNTI Enable Timer/Counter Interrupt MOVD P, A Output A to Expander port 2 t- DIS TCNTI Disable Timer/Counter Interrupt ANLD P, A And A to Expander port 2 ORLO P, A Or A to Expander port 2
EN I Enable external interrupt
INCR Increment registel' i
SEL RBO Select register bank a INC@R I ncrement data- memory
SEL RB1 Select register bank 1 i' DECR Decrement reg ister 8 SEL MBa Select memory ba n k a 1:1:
SEL MB1 Select memory bank 1
JMP addr Jump unconditional 2 2 ENTO ClK Enable Clock output on TO
JMPP@A Jump indirect 1 2 DJNZ R, addr Decrement register and skip 2 2 NOP No Operatior. JC addr Jump on Carry = 1 2 2 JNC addr Jump on Carry = a 2 2 J Z addr Jump on A Zero 2 2 JNZ addr Jump on A not Zero 2 2
~ JTO addr Jump on TO = 1 2 2
~ JNTO addr Jump on TO = a 2 2 d5 JTl addr Jump on Tl = 1 2 2 JNT1 addr Jump on T1 = a 2 2 JFO addr Jump on FO = 1 2 2 JF 1 addr Jump on Fl = 1 2 2 JTF addr Jump on timer flag 2 2 JNI addr Jump on INT = a 2 2 JBb addr Jump on Accumulator Bit 2 2
Mnemonics copyright Intel Corporation 1976, 1977, 1978


ABSOLUTE MAXIMUM RATINGS·
'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification Is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
AmbientTemperatureUnderBias 0°Cto70°C Storage Temperature -65° C to +150° C Voltage on Any Pin With
Respectto Ground -0.5V to +7V Power Dissipation 1.5 Watt
D.C. AND OPERATING CHARACTERISTICS TA = o°c to 70"C, Vee = Voo = +5V ±10%, Vss = ov
Symbol Parameter Min. Typ. Max. Unit Test Conditions
Vil Input Low Voltage -0.5 0.8 V
VIH Input High Voltage (All Except XTAL1, XTAL2, RESET) 2.0 Vee V
VIH1 Input High Voltage (RESET, Xl, X2) 3.8 Vee V
VOL Output Low Vo Itage
(BUS, RD, WR, PSEN, ALE) 0.45 V IOl = 2.0mA
VOLl Output Low Voltage
(All Other Outputs Except PROG) 0.45 V IOl = 1.6mA
VOL2 Output low Voltage (PROG) 0.45 V IOl = 1.0mA
VOH Output High Voltage
(BUS, RD, WR, PSEN, ALE) 2.4 V IOH = -100/.LA
VOH1 Output High Voltage (All Other Outputs) 2.4 V IOH = -50/.LA
IlL I n put Lea kage Current (Tl, INT) ±10 /.LA VSS';;VIN';;Vee
IOl Output Leakage Current (Bus, TO)
100 Power Down Supply Current 25 50 mA TA = 25°C
loo+lee Tota I Su pply Current 100 170 mA TA = 25°C
A.C. CHARACTERISTICS TA = o°c to 70°C, Vee = Voo = +5V ±10%, Vss = ov
Symbol Parameter Min. Max. Unit Conditions (Note 2) tll ALE Pulse Width 200 ns
tAL Address Setup to ALE 120 ns
tLA Address Hold from ALE 80 ns
tcc Control Pulse Width (PSEN, RD, WR) 400 ns
tow Data Set·Up Before WR 420 ns
two Data Hold After WR 80 ns CL=20pF
tey Cycle Time 2.5 15.0 I's llMHz XTAL
tOR Data Hold 0 200 ns
tRO PSEN, RD to Data In 400 ns
tAW Address Setup to WR 2~0 ns
tAO Address Setup to Data In 600 ns
tAFC Address Float to RD, PSEN -40 ns
Noles: 1. 8039·6 specifications are also valid for 8049/8039 operating at 6MHz.
Limits


INSTRUCTION FETCH FROM EXTERNAL PROGRAM MEMORY
11---~-tLL----1 -tcv-----·I
ALE JI L-- _ _ ------..1:.--1 ----'L
- tAFCI---Icc 1 ~-+~ .~
INSTRUCTION
READ FROM EXTERNAL DATA MEMORY
ALE J L
RD
BUS
WRITE TO EXTERNAL DATA MEMORY
ALE J L
BUS FLOATING
6-40 AFN-00191A-05


18049/8039 SINGLE COMPONENT 8·BIT MICROCOMPUTER
*8049 Mask Programmable ROM *8039 External ROM or EPROM *6 MHz Operation
The Intel@> 18049/8039 is totally self-sufficient 8-bit parallel computer fabricated on a single silicon chip using Intel's N-channel silicon gate MOS process.
The 8049 contains a 2K x 8 program memory, a 128 x 8 RAM data memory, 27 110 lines, and an 8-blt timer/counter In addition to on-board oscillator and clock circuits. For systems that require extra capability, the 8049 can be expanded using standard memories and MeS-80 TM/MeS-85 ™ peripherals. The 8039 is the equivalent of an 8049 without program memory.
To reduce development problems to a minimum and provide maximum flexibility, two Interchangeable pin-compatible versions of this single component microcomputer exist: the 8049 with factory-programmed mask ROM program memory for low-cost high volume production, and the 8039 without program memory for use with external program memories In prototype and preproduction systems. .
This microprocessor is designed to be an efficient controller as well as an arithmetic processor. The 8049 has exten- sive bit handling capability as well as facilities for both binary and BeD arithmetic. Efficient use of program memory results from an instruction set consisting mostly of single byte instructions and no instructions over two bytes in length.
BLOCK DIAGRAM
INTeL CORPORATION ASSUMES NO RESPONSIBILITY FOR THE USE OF ANY CIRCUITRY OTHER THAN CIRCUITRY EMBODIED IN AN INTeL PRODUCT. NO OTHER CIRCUIT PATENT LICENSES ARE IMPLIED. olNTEL CORPORATION, 1979 AFN-00737-01
18039 18049


Designation Pin # Function Designation Pin # Function
Vss 20 Circuit GND pOtential RD 8 Output strobe activated during a
Vee 26 +5V during operation. low power BUS read. Can be used to enable
standby pin. data onto the BUS from an external
Vee 40 Main power supply; +5V during device.
operation. Used as a Read Strobe to External
Data Memory. (Active low)
MaG 25 Output strobe for 8243 1/0
expander. RESET 4 Input which is used to initialize the
P1Q.P17 27·34 B-bit quasi-bidirectional port. processor. Also used during verifi-
Port 1 cation, and power down. (Active
P2O-P27 21-24 B-bit quasi-bidirectional port_ low) (Non TTL VIH) Port 2 35-38 P20-P23 contain the four high WR 10 Output strobe during a B US write.
order program counter bits during (Active low)
an external program memory fetch Used as write strobe to External and serve as a 4-bit 1/0 expander Data Memory. bus for 8243 ALE 11 Address latch Enable. This signal 00-07 12-19 True bidirectional port which can occurs once dur ing each cycle and BUS be written or read synchronously is useful as a clock output. using the RD, WR strobes. The The negative edge of ALE strobes port can also be statically latched. address into external data and pro- Contains the 8 low order program gram memory. counter bits during an external PSEN 9 Program Store Enable. This output program memory fetch, and receives the addressed instruction under the occurs only during a fetch to exter-
controlof PSEN. Also contains the nal program memory. (Active low)
address and data during an external SS 5 Single step input can be used in con- RAM data store instruction, under junction with ALE to "single step" control of ALE, RD, and WR. the processor through each in-
TO Input pin testable using the con- struction. (Active low)
ditional transfer instructions JTO EA 7 External Access input which forces and JNTO. TO can be designated as all program memory fetches to re- a clock output using ENTO ClK ference external memory. Useful instruction. for emulation and debug, and
essential for testing and program
Tl 39 Input pin testable using the JT1,
verification. (Active high)
and JNT1 instructions. Can be des-
ignated the timer lcounter input using XTAL1 2 One side of crystal input for inter-
the STRT CNT instruction. nal oscillator. Also input for exter- iNr 6 Interrupt input. Initiates an inter-
nal source. (Not TTL Compatible)
rupt if interrupt is enabled. Inter- XTAl2 3 Other side of crystal input.
rupt is disabled after a reset. Also testable with conditional jump instruction. (Active low)


Mne nic Dnc:rlption Bytes Cycl. Mn nic D-.iptlon ByleS Cycle.
ADDA.R Add register to A I .~ CALL Jump to subroutine !i RET Return 2 ADD A.@IR Add data memory to A I e Return and restore status 2 ADD A. #data Add immediate to A 2 2 i RETR ADDCA.R Add register with carry 1 III ADDCA.@R Add data memory with carry I I
CLR C Clear Carry ADDC A, #data Add immediate with carry 2 2 CPL'C Complement Car'y ANL A, R And register to A j CLR FO Clear Flag 0 ANLA,@R And data memory to A 1 I
Complement Flag 0 II. CPL FO ANL A, #data And immediate to A 2 2 CLR Fl Clear Flag 1 ORL A, R Or register to A
CPL FI Complement Flag I ~ ORLA,@R Or data memory to A .. ORL A, #data Or immediate to A 2 2 " E XRLA, R Exclusive Or ragister to A MOVA,R Move register to A 1 ii XRLA,@R Exclusive or data memory to A I MOVA,@R Move Jata memory to A I 1 C XRLA, #data Exclusive or immediate to A 2 2 MOV A, #data Move immediate to A 2 2 INCA Increment A MOVR,A Move A to register DEC A Decrement A MOV@R,A Move A to data memory I 1 CLR A Clear A MOV R, #data Move immediate to register 2 2 CPLA Complement A ! MOV @R, #data Move immediate to data memory 2 2 DAA Decimal Adjust A
~ Move A,PSW Move PSW to A SWAP A Swap nibbles of A .. MOV PSW, A Move A to PSW RLA Rotate A left ';; XCH A, R Exchange A a nd register C RLCA Rotate A left through carry XCHA,@R Exchange A and data memory 1 RRA Rotate A right XCHD A,@R Exchange nibble of A and register 1 RRCA Rotate A .right through carry MOVXA,@R Move external data memory to A 2 MOVX@R,A Move A to external data memory 2 INA,P Input port to A 2 MOVPA,@A Move to A from current page 2 OUTLP,A Output A to port 2 MOVP3 A,@A Move to A from Page 3 2 ANL P, #data And immediate to port 2 2 i ORL P, #data Or immediate to port 2 2 MOVA, T Read Timer/Counter ; INSA, BUS Input BUS to A 2 I MOVT,A Load Timer/Counter !2 OUTL BUS, A Output A to BUS 1 2 STRTT Start Timer " ; ANL BUS, #data And immediate to BUS 2 2 § STRT CNT Start Counter Q. .5 ORL BUS,#data Or immediate to BUS 2 2 • STOP TCNT Stop Timer/Counter MOVDA, P Input Expander port to A 2 .~ EN TCNTI Enable Timer/Counter Interrupt MOVDP,A Output A to Expander port 2 ... DIS TCNTI Disable Timer/Counter Interrupt ,I ANLD P,A A nd A to Expander port 2 ORLD P, A Or A to Expander port 2
EN I Enable external interrupt DISI Disable external interrupt • INCR Increment register
SEL RBI Select register bank I r DECR Decrement reg ister ~ SEL MBO Select memory ban k 0 ~
SELMB1 Select memory bank I
JMP addr Jump unconditional 2 2 ENTOCLK Enable Clock output O~ iO
JMPP@A Jump indirect 1 2 DJNZ R, addr Decrement register and skip 2 2 NOP No Operatior. JCaddr Jump on Carry = I 2 2 JNC addr Jump on Carry = 0 2 2 J Z addr Jump on A Zero 2 2 JNZ addr Jump on A not Zero 2 2 .t: JTOaddr Jump on TO = 1 2 2 u " JNTO addr Jump on TO= 0 2 2 .. til JTl addr Jump on T1 = 1 2 2 JNTI addr Jump on T1 = 0 2 2 JFOaddr Jump on FO= 1 2 2 JFl addr Jump on Fl = 1 2 2 JTF addr Jump on timer flag 2 2 JNladdr Jump on INT = 0 2 2 JBbaddr Jump on Accumulator Bit 2 2
Mnemonics copyright Intel Corporation 1976, 1977, 1978
~


ABSOLUTE MAXIMUM RATINGS·
'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated iri th{} operational sections of this specification is not implied. Exposure to absolute maximum rating conGitions for extended periods may affect device reliability.
AmbientTemperatureUnderBias -40'C to +SS'C Storage Temperature -6S'C to +lS0'C Voltage on Any Pin With
Respectto Ground -O.SV to +7V Power Dissipation 1.S Watt
D.C. AND OPERATING CHARACTERISTICS TA = -40°C to +8SoC, Vee = voo = +5V ± 10%, Vss= OV
Symbol Parameter Min. Typ. Max. Uhit Test Conditions
Vil Input Low Voltage -0.5 0.6 V
VIH Input High Voltage (All Except XTALl, XTAL2, ffESEf) 2.2 Vee V
VIH1 Input High Voltage (RESET, Xl, X2) 3.S Vee V
VOL Output Low Voltage
(BUS, RD, WR, PSEN, ALE) 0.45 V IOl = 1.6 ma
VOl1 Output Low Voltage
(All Other Outputs Except PROG) 0.45 V IOl = 1.2 ma
VOL2 Output Low Voltage (PROG) 0.45 V IOl = 0.8 rna
VOH Output High Voltage
(BUS, RD, WR, PSEN, ALE) 2.4 V IOH = -80 j.la
VOH1 Output High Voltage (All Other Outputs) 2.4 V IOH = -30 j.la
III Input Leakage Current (n, INT) ±10 J.l.A VSS";;VIN";;Vee
IOl Output Leakage Current (Bus, TO)
100 Power Down Supply Current 50 mA TA = 25°C
loo+lee Total Supply Current 170 mA TA = 2SoC
A.C. CHARACTERISTICS T A = -400 C to +8So C, Vee = Voo = +SV ±10%, Vss = OV
Symbol Parameter Min.
Max. Unit Conditions (Note 2)
ILL ALE Pulse Width 200
t~L Address Setup to ALE 120
tLA Address Hold from ALE SO
tee Control Pulse Width (PSEN, RD, WR) 400
tow Data Set·Up Before WR 420
ns CL=20pF
two Data Hold After WR 80
tCY Cycle Time 2.5
15.0 ,..s (6 MHz XTAL for IDS049)
tOR Data Hold 0
tRO PSEN, RD to Data In
tAW Address Setup to WR 2:)0
tAD Address Setup to Data In
tAFe Address Float to RD, PSEN -40


WAVEFORMS
1_-· -t-ll___ -I--'cv-------~!
ALE JI I.....- _ _ _ ~Ir-------,L - tAFCI---'cc---1 ----------~-+--, ~------------
BUS
INSTRUCTION
READ FROM EXTERNAL DATA MEMORY
ALE J L r--tCC---I
RD ------------~I ~I ------------
tAFC--1 I~OATING-I t=t OR
FLOATING ~ --F-LO-A-T-I-N-G---
I l.t RO -! I. tAD~
BUS
WRITE TO EXTERNAL DATA MEMORY
ALE J L
BUS FLOATING
6-45 AFN-00737-05


T A = -400 C to +85 0 C, Vee = Voo = +5V ±10%, Vss = OV
Symbol Parameter Min. Max. Unit Conditions (Note 2)
tcp Port Control Siltup Before Failing Edge of PROG 115 ns tpc Port Control Hold After Failing Edge of PROG 65 ns
tpA PROG to Time P2 Input Must Be Valid 860 ns
top Output Data Setup Time 230 ns
tpo Output Data Hold Time 25 ns
tpF Input Data Hold Time 0 160 ns tpp PROG Pulse Width 920 ns tpL Port 2 1/0 Data Setup 300 ns
tLp Port 2 1/0 Data Hold 120 ns
ALEJ ~ \ I
EXPANDER I
PORT I
OUTPUT I PCH I EXPANDER I PORT
PROG
6-46 AFN-00737-06
fNIJUT PCH


CRYSTAL OSCILLATOR MODE LC OSCILLATOR MODE
C1 ~
J: £. ~ 45 .. H 20 pF 5,2 MHz 120 ... H 20 pF 3.2 MHz ,.-.,.---''1 XT AL1
C2 _-,-_~ c:=:::J
'-__ -.+ ,,3 XT AL2 Cpp ::: 5 - 10 pF PIN·TO·PIN CAPACITANCE
C1 = SpF ± 'hpF + STRAY < 5pF C2 = CRYSTAL + STRAY < 8pF C3 = 20pF ± 1pF + STRAY < 5pF
CRYSTAL SERIES RESISTANCE SHOULD BE LESS THAN 75\1 AT 8MHz; LESS THAN 18011 AT 3.8MHz.
EACH C SHOULD BE APPROXIMATELY 20 pF, INCLUOING STRAY CAPACITANCE
470Q
}>--i =-j x T AL 1
'----'>----"-1 XTAL2
BE HIGH 35·65% OF THE PERIOD. FOR XTAL 1 AND XTAL 2 DEFINE "HIGH" AS VOLTAGES ABOVE 1.6V AND "LOW" AS VOLTAGES BELOW 1.8V. THE DUTY CYCLE REQUIREMENTS FOR EXTERNAL LV DRIVING XTAL 1 AND XTAL 2 USING THE CIRCUIT SHOWN ABOVE ARE AS FOLLOWS:
FOR THE 8748, XTAL MUST BE HIGH 45·50% OF THE PERIOD AND XTAL 2 MUST BE HIGH 51).65% OF THE PERIOD.
RISE AND FALL TIMES MUST NOT EXCEED 20 ns. FOR THE 8048, XTAL 1 MUST BE HIGH 35·65% OF THE PERIOD AND XTAL 2 MUST
470~,


The Intel I!> 8021 is a totally self·sufficlent a-bit parallel computer fabricated on a single silicon chip using Intel's 1')1- channel silicon gate MOS process. The features of the 8021 include a subset of the 8048 optimized for low cost, high volume applications, plus additional 1/0 flexibility and power.
The 8021 contains 1 K X 8 program memory, a 64 X 8 data memory, 21 110 lines, and an 8-bit timer I event counter, in addition to on-board oscillator and clock circuits. For systems that require extra 1/0 capability, the 8021 can be expanded using the 8243 or discrete logic.
This microprocessor is designed to be an efficient controller as well as an arithmetic processor. The 8021 has bit handling capability as well as facilities for both binary and BCD arithmetic. Efficient use of program memory results from an instru.ction set consisting mostly of single byte instructions and no instructions over two bytes in length.
To minimize the development problems and maximize flexibility, an 8021 system can be easily designed using the 8021 emulation board, the EM·1. The EM-1 contains a 40-pin socket which can accommodate either the 8748 shipped with the board or an ICE-49 plug. Also, the necessary discrete logic to reproduce the 8021 's additional 1/0 features Is Included.
LOGIC SYMBOL
BLOCK DIAGRAM
P22
P23
PAOG
PORT #,
PO, P'6 P02 P'5 P03 P,4
PORT #2
P04 P'3
POe P'2 P06 P07 ALE
PORT EXPANDER STROBE
T' XTAL2 Vss XTAL 1
PORT #fl · AFN-o'587A-ol


Ambient Temperature Under Bias , .O°C to 70°C
'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sec· tions of this specification is not implied. Exposure to absolute maxi· mum rating conditions for extended periods may affect device reliability.
Respect to Ground ............... -0.5V to + 7V
Power Dissipation ........................... 1 W
D.C. AND OPERATING CHARACTERISTICS
TA = ooe to 7ooe, Vee = 5.5V ± lV, Vss = OV
Min. Typ. Max. Unit Test Conditions
VIL Input Low Voltage
VIH Input High Voltage (All except XTAL 1 & 2, T1 RESET)
3.0 Vee V
V1Hl Input High Voltage (XTAL 1 & 2, T1 RESET)
3.8 Vee V
VIH(10%) Input high voltage (all except XTAL 1 & 2, T1, RESEl)
V1H1(10%) Input high voltage (XTAL 1 & 2, T1, RESEl)
0,45 V IOL = 1.6 mA
VOL Output Low Voltage
VOLl Output Low Voltage (P 1 0, P 11)
VOH Output High Voltage (All unless Open Drain)
ILO Output Leakage Current (Open Drain Option-Port 0)
±10 J.l.A Vss+0,45.:5VIN.:5Vee
lee Vee Supply Current
T A = O°C to 70°C, Vee = 5.5V :t W, Vss = OV, CL = 80pF
Symbol Parameter Min. Max. Unit Test Conditions
Vzx Zero·Cross Detection Input (T 1) 1 3 Vpp AC Coupled, C = .2j.1F
Azx Zero· Cross Accuracy ± 135 mV 60 Hz Sine Wave
Fzx Zero· Cross Detection Input Frequency (T 1) 0.05 1 kHZ


Designation Pin # Function Designation Pin # Function
Vss 14 Circuit GND potential CNT instruction. Also allows
Vee 28 +5V power supply zero-crossover sensing of slowly moving inputs. PROG 3 Output strobe for 8243 1/0 RESET 17 Input used to initialize the proc- Expander essor by clearing status flip- POO-P07 4-11 8-bit quasi-bidirectional port flops and setting program port 0 counters to zero. P10-P17 18-25 8-bit quasi-bidirectional port ALE 12 Address Latch, Enable. Signal Port 1 occurring once every 30 input P20-P23 26-27 4-bit quasi-bidirectional port clocks, used as an output clock. Port 2 1-2 P20-P23 also serve as a 4-bit 110 expander bus for 8243 XTAL1 15 One side of crystal or inductor
T1 13 Input pin testable using the JT 1 input for internal oscillator. Also input for external source. (Not and JNT1 instructions. Can be TTL compatible.) designated the timer I event counter input using the STRT XTAL2 16 Other side of timing control element.
Hexadecimal Hexadecimal Mnemonic Description Byte. Cycle Opcode Mnemonic Description Byte. Cycl. Opcode
ADD A,Rr Add register to A 6S'6F JMP addr Jump unconditional 2 04,24.44,64, ADD A,@R Add data memory to A 1 1 60-61 ADD A,#data Add immediate to A 2 2 03 JMPP@A Jump indirect 2 B3 ADDC A,Rr Add register with carry 7S·7F ... DJNZ R,o addr Decrement register and 2 ES-EF ADDCA,@R Add data memory with 70-71 " jump oo'R nof zero c carry ~ JC addr Jump on carry= 1 F6 ADDC A,#data Add immediate with 2 2 13 JNC addr Jump o"n carry=O 2 E6 carry JZ addr Jump on A zero 2 2 C6 ANL A,Rr And register to A 5S-5F JNZ addr Jump on A not zero 2 2 96 ANL A,@R And data memory to A 50·51 JT1 addr Jump on Tl=1 2 56 ANL A,#data And immediate to A 2 53 JNTI addr Jump on Tl=O 2 2 46 ORL A,Rr Or register to A 4S·4F JTF addr Jump on timer flag 2 16 j
ORL A,@R Or data memory to A 1 40·41 • ORL A,#data Or immediate to A 2 2 43 :Ii CALL addr Jump to subroutine 14,34,54,74 " E XRL A,Rr Exclusive Or register DS·OF g " to A .g RET " Return 2 S3 " c XRL A,@R Exclusive Or data 00·01 ..
data memory RR A Rotate A right 77 XCHA,R, Exchange A and 2S·2F " RRC A Rotate A right through 67 register carry XCHA,@R Exchange A and data 20·21
IN A, Pp Input port to A OS,09.0A memory XCHOA,@R Exchange nibble of A 30-31 '5 OUTLP A Output A to port 2 90,39,3A and register f MOVO x.Pp Input expander port 2 OC-OF MOVPA,@A Move to A from current 2 A3 0 to A :s MOVO Pp,A Output A to expander 2 3C·3F page ! port t
MOVA,T Read timer I counter 42 ANLO Pp,A And A to expander port 2 9C·9F ORLO Pp,A Or A to expander port 2 SC·SF 0 MOVT,A Load timer J counter 62
~ STRTT Start timer 55 j INCRr Increment register IS-IF ~ STRT CNT Start counter 45
IINC@R Increment data memory 10·11 ~ STOP TCNT Stop timer I counter 65 !
NOP No operation 00
6'50 AFN-D1S87 A-Il3


WITH ON-CHIP AID CONVERTER
•
8 Comparator Inputs (Port 0) • Instructions-8048 Subset
• • • • •
Zero-Cross Detection Capability • Interval Timer IEvent Counter
Single SV Supply (4.SV to 6.SV) • Clock Generated with Single Inductor
High Current Drive Capability-2 Pins Crystal
Two Interrupts-External and Timer • Easily Expanded 1/0
The Intel@) 8022 is the newest member of the MCS-48™ family of single chip 8-bit microcomputers_ It is designed to satisfy the requirements of low cost, high volume applications which involve analog signals, capacitive touchpanel keyboards, and I or large ROM space. The 8022 addresses these applications by integrating many new functions on- chip, such as AID conversion, comparator inputs and zero-cross detection.
The features of the 8022 include 2K bytes of program memory (ROM), 64 bytes of data memory (RAM), 28 110 lines, an on-chip AID converter with two input channels, an 8-bit port with comparator inputs for interfacing to low voltage capacitive touchpanels or other non-TIL interfaces, external and timer interrupts, and zero-cross detection capabili- ty. In addition, it contains the 8-bit interval timer I event counter, on-board oscillator and clock circuitry, single 5V power supply requirement, and easily expandable 1/0 structure common to all members of the MCS.-48 family.
The 8022 is designed to bean efficient controller as well as an arithmetic processor. It has bit handling capability plus facilities for both binary and BCD arithmetic. Efficient use of program memory results from using the MCS-48 instruction set which consists mostly of single byte instructions and has extensive conditional jump and direct table lookup capability. Program memory usage is further reduced via the 8022's hardware implementation of the AID converter which simplifies interfacing to analog signals.
LOGIC SYMBOL
BLOCK DIAGRAM
XTAL r
PORTO THRESHOLD REFERENCE ,- ___ ----,
P26
P21
P2S
P2'
VAREF
PROG
REseT
P22
TEST 0..
P21
TO
P20
P11 Pl.
P02
P13
P03
P04
P12
POS
P11 Pl.
PO.
AND ...
P01
RESET
ALE
XTAL 2
XTAL 1
SUBST
PORT --EXPANDER
I AID AID SUBSTRATE Vee Vas
STROBE


8022 ~rru[§I!..OIMlOIM~rruw
Designation Pin # Function. Designation Pin # Function
Vss 20 Circuit GND p6tential. RESET 24 Input used to initialize the proc- essor by clearing status flip- Vee 40 + 5V circuit power supply. flops and setting the program PROG 37 Output strobe for Intel@ 8243 counter to zero. I I 0 expander.
AVSS 7 AID converter GND Potential. POO-P07 10-17 8-bit open-drain port with qoin- Also establishes the lower limit Port 0 parator inputs. The switching of the conversion range. threshold is set externally by
AVee 3 AID + 5V power supply. VTH. Optional pull-up resistors may be added via ROM mask SUeST 21 Substrate pin used with a by- selection. pass capacitor to stabilize the
9 Port 0 threshold reference pin. substrate voltage and improve VTH AID accuracy. P10-P17 25-32 8-bit quasi-bidirectional port. VAREF 4 A I D converter reference volt- Port 1 age. Establishes the upper limit P20-P27 33-36 8-bit quasi-bidirectional port. of the conversion range. Port 2 38-39 P20-23 also serve as a 4-bit ANO,AN1 6,5 Analog inputs to AID converter. 1-2 1/0 expander for Intel@ 8243. Software selectable on-chip TO 8 Interrupt input and input pin via SEL ANO and SEL AN 1 testable using the conditional instructions. transfer instructions JTO and ALE 18 Address Latch Enable. Signal JNTO. Initiates an interrupt fol- occurring once every 30 input lowing a low level input if inter- clocks (once every cycle), rupt is enabled. Interrupt is used as an output clock. disabled after a reset. XTAL 1 22 One side of crystal or inductor T1 19 Input pin testable using the JT1 input for internal oscillator. Also and JNT 1 conditional transfer input for external frequency instructions. Can be designat- source. (Not TTL compatible.) ed the timer I event counter in- XTAL 2 23 Other side of timing control ele- put using the STRT CNT ment. This pin is not connected instruction. Also serves as the when an external frequency zero-cross detection input to source is used. allow zero-crossover sensing of slowly moving AC inputs. Op- tional pull-up resistor may be added via ROM mask selection.
}-,
PI. 2.
V.,.., P12 27
AV .. 2. Vaa }-.
l00pF I,F 8 .. 2 SILVER MICA
AND P26 P27 ANI VTN
}-.
PDO I.
PO> 12 1M P03 13 [ INPUT ] ,. AND XTAL2 PDO ,. . OUTPUT PO! T1
6-52 AFN.(J()187A-QZ


Ambient Temperature Under Bias O°C to 70°C Storage Temperature -S5°C to +180°C Voltage on Any Pin with
'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" may cuase permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sec· tions of this specification is not implied. Exposure to absolute maxi· mum rating conditions for extended periods may affect device reliability.
Power Dissipation ......................... 1 Watt
TA=O°C to 70°C, Vee=5.5V ± 1V, VSS=OV
Min. Typ. Max. Unit Test Conditions
VIL Input Low Voltage
-0.5 0.8 V VTH Floating
VILI Input Low Voltage (Port 0)
-0.5 VTH-O.l V
VIH High Voltage (All except XTAL 1, RESET)
2.0 Vee V Vee = 5.0V ± 10% VTH Floating
VIHI Input High Voltage (All except XTAL 1, RESET)
3.0 Vee V Vee = 5.5V ± 1V VTH Floating
VIH2 Input High Voltage (Port 0)
VTH+O.l Vee V
VIH3 Input High Voltage (RESET, XTAL 1)
VTH Port 0 Threshold Reference Voltage
0 .4Vee V
VOL Output Low Voltage
0.45 V IOL = 1.S mA
VOlt Output Low Voltage (Pl0, Pll)
2.5 V IOL = 7 mA
VOH Output High Voltage (All unless Open Drain Option-Port 0)
III Input Current (T 1)
±200 /LA VCC~VIN~VSs+.45V
ILO Output Leakage Current (Open Drain Option-Port 0)
lee Vee Supply Current
Min. Max. Unit Test Conditions
8.38 50.0 /Ls 3 MHz XTAL= 10 /LS tey
Vzx Zero-Cross Detection Input (T 1)
1 3 VACpp AC Coupled
± 135 rnV SO Hz Sine Wave
Fzx Zero-Cross Detection Input Frequency (Tl)
0.05 1 kHz
6-53 AFN.oo187A-03


TA=O·C to 70·C, Vcc=5.5V ± 1V, vss=ov Test Conditions: Cl =80 pF tCy=8.38 j.ls
Min. Max. Unit Notes
Port Control Setup Before Falling Edge of PROG
0.5 j.lS
Port Control Hold After Falling Edge of PROG
0.8 j.ls
PROG to Time P2 Input Must Be Valid
1.0 j.ls
Output Data Setup Time
7.0 j.lS
Output Data Hold Time
8.3 j.lS
Input Data Hold Time
0 .150 j.ls
8.3 j.ls
ALE to Time P2 Input Must Be Valid
3.6 j.ls
Output Data Setup Time
0.8 j.lS
Output Data Hold Time
1.6 j.lS
Input Data Hold Time
0 j.lS
3.9 23.0 j.lS tCy=8.38 j.lS for min
ALEr\ ~ ______________________ ~n~ ______ ~ ______________ _
NORMAL OPERATION
~
PORT ===x
------------------------------~----------------------------------- OUTPUT
~
ALE/\ ~ ______________________ ~r_\~ ______________________ __
PORT INPUT ~(~ D_AT_A ~)(~
IpAL ---ooj·1 H
ALE n
~ ______________________ ~r_\~ ______________________ __
PAOG
J!Cd-------------'''------------f .. 1
___________________________________ ~~ _______________ ~)( DATA x=====
PORT OUTPUT
L,,,...L.J ,. .--r;;;-l
\~------------------~I
PORT INPUT ~ DATA F ----------------------------~ ~--------------~~
~"c-.j


TA= O'C to 70'C, Vcc= 5.5V:!:: 1V, Vss= OV, AVcc= 5.5V:!:: W, AVss= OV, AVccl2 .. V AREF" AVCC
Min. Typ. Max.
LSB
Sample Setup Before Falling Edge of ALE (tsal
Sample Hold After Failing Edge of ALE (tsH)
Input Capacitance (ANO, AN1)
ALE
ISH
ANALOG
INPUT
. NOTE:


Hexadecimal Hexadecimal Mnemonic Description Byte. Cycle Opcode Mnemonic Description Bytes Cycle Opcode
ADD A,R, Add ,egiste, to A S8-6F JTOadd, Jump on TO=1 2 2 36 ADD A,@R Add data memo,y to A 60-61 JNTOadd, Jump on TO=O 2 2 26 ADD A,#data Add immediate to A 2 03 JT1 add, Jump on Tl= 1 2 2 56 ADDC A_R, Add register with carry 78-7F JNT1 add, Jump on Tl=O 2 2 46 ADDCA,@R Add data memory with 70-71 JTF add, Jump on time' flag 2 2 16 carty ADDC A,#data Add immediate with 2 2 13 • carry ~ CALL add, Jump to subroutine 2 14,34,54,74
ANL A,R, And ,egiste, to A 58-5F !! 94,B4,D4,F4 Z> RET Return .1 2 83 ANL A,@R And data memory to A 50-51 ~ '" ANL A,#data And immediate to A 2 2 53 ORL A,R, Or register to A 1 48-4F '"
CLR C Clear carry 97 ORLA,@R Or data memory to A 1 40-41 f!. CPL C Complement carry A7 ORl A,#data Or immediate to A 2 2 43 i
XRl A,R, Exclusive Or register D8-DF MOVA,R, Move register to A F8-FF
E to A MOVA,@R Move data memory to A FO-Fl
~ XRL A,@R Exclusive Or data DO-Dl MOV A,#data Move immediate to A 2 2 23 u u memory to A MOV R"A Move A to register A8-AF c
XRL A,#data Exclusive Or immediate 2 2 D3 MOV@R,A Move A to data memory AO-Al to A MOV R,,#data Move immediate to 2 2 B8-BF INC A Increment A 17 .. register • DEC A Decrement A 07 is MOII@R,#data Move immediate to 2 2 BO-Bl CLR A Clea' A 27 :I data memory CPL A Complement A 1 37 ~ XCHA,R, Exchange A and 28-2F Q DAA Decimal adjust A 1 57 register SWAP A Swap nibbles of A 47 XCH A,@R Exchange A and data 20-21 RL A Rotate A left E7 memory RLCA Rotate A left th,ough F7 XCHDa,@R Exchange nibble of A 30-31 carry and register RR A Rotate A ,ight 77 MOVPA,@A Move to A from current 2 A3 RRCA Rotate A ,ight th,ough 67 page carry , MOVA,T Read timer I counter 42 IN A, Pp Input po,t to A 2 08,09,OA ~ MOVT,A Load timer I counter 62 0 OUTL Pp.A Output A to po,t 2 90,39,3A ~ STRTT Start timer 65 ;; MOVD A,Pp Input expander port OC-OF i STRTCNT Start counter 46 S
~ to A ~ STOP TCNT Stop timer I counter 66 ~ MOVD Pp,A Output A to expander 3C-3F ;;
JMP add, Jump unconditional 2 04,24,44,64, DIS I Disable external 15 .. interrupt 84,A4,C4,E4 a EN TCNTI Enable timer I counter 25 JMPP@A .c DJNZ R,add, u c £ JC add,
jump on R not zero DIS TCNTI Disable timer I counter 35
Jump on carry= 1 2 2 F6 interrupt
JNC add, JZ add, JNZ add,
Jump on carry=O 2 2 E6 RET I Return from interrupt 2 93
Jump on A zero 2 C6 NOP No operation Jump on A not zero 2 96 00
P Pp Rr T TO, T1
Mnemonic for "in-page" Operation Port Designator (P=O, 1,2 or 4-7) Register Designator (r=0-7) Timer Test 0, Test 1 Immediate Data Prefix Indirect Address Prefix
A addr ANO,AN1 CNT data I
11-Bit Program Memory Address Analog Input 0, Analog Input 1 Event Counter 8-Bit Number or Expression Interrupt


8243 MCS-48™ INPUT/OUTPUT EXPANDER
The Inele 8243 is an input/output expander designed specifically to provide a low cost means of 1/0 expansion for the M£S-48" family of single chip microcomputers. Fabricated in 5 volts NMOS, the 8243 combines low cost, single supply voltage and high drive current capability.
The 8243 consists of four 4-bit bidirectional static 110 ports and one 4-bit port which serves as an interface to the MCS-48 microcomputers. The 4-bit interface requires that only 4 1/0 lines of the 8048 be used for 1/0 expansion, and also allows multiple 8243's to be added to the same bus.
The 1/0 ports of the 8243 serve as a direct extension of the resident ilO facilities of the MCS-48 microcomputers and are accessed by their own MOV, ANL, and ORL instructions.
PORT4
P40 P51 HI P52
N2 P63
1'43 P60 PORT 5 ~ P51
MOG P52
PORT 2 P23 P53
P22 P73
P21 P72
P20 P71
PORT7
6-57 AFN-00214A~1
P60 vee · PORTa GND P70


A high to low transition of the PROG line indicates that address is present while a low to high transition indicates the presence of data. Additional 8243's may be added to the 4-bit bus and chip selected using additional output lines from the 8048/8748/8035.
Pin No. Function
7 Clock Input. A high to low transistion on PROG signi.fies that address and control are available on P20-P23, and a low to high transition signifies that data is available on P20-23.
Initial application of power to the device forces input/output ports 4, 5, 6, and 7 to the tri-state and port 2 to the input mode. The PROG pin may be either:high or low when power is applied. The first high to low transition of PROG causes device to exit power on mode. The power on sequence is initiated if Vee drops below 1V.
6 Chip Select Input. A high on CS inhil;lits any change of output or internal status.
11-8 Four (4) bit bi-directional port contains the address and con- trol bits on a high to' low transition of PROG. During a low to high transition contains the data for a selected output port if a write operation, or the data from a selected port before the low to high transition if a read operation.
P21 P20 Address Code P23 P22 Instruction Code
0 0 Port 4 0 0 Read 0 1 Port 5 0 Write 1 0 Port 6 1 0 ORlD 1 Port 7 ANlD
The device has three write modes. MOVD Pi, A directly writes new data into the selected port and old data is lost. ORlD Pi,A takes new data, OR's it with the old data and then writes it to the port. ANlD Pi,A takes new data AND's it with the old data and then writes it to the port. Operation
o volt supply.
P40-P43 P50-P53 P60-P63 P70-P73
2-5 1,23-21 20-17 13-16
Four (4) bit bi-directional 110 ports. May be programmed to be input (during read), low impedance latched output (after write) or a tri-state (after read). Data on pins P20-23 may be directly written, ANDed or ORed with previous data.
code and port address are latched from the input port 2 on the high to low transition of the PROG pin. On the low to high transition of PROG data on port 2 is transferred to the logic block of the specified output port.
After the logic manipulation is performed, the data is latched and outputed. The old data remains latched until new valid outputs are entered.
24 +5 volt supply.
FUNCTIONAL DESCRIPTION General Operation
The device has one read mode. The operation code and port address are latched from the input port 2 on the high to low transition of the PROG pin. As soon as the read operation and port address are decoded, the appropriate outputs are tri-stated, and the input buffers switched on. The read operation is terminated by a low to high transition of the PROG pin. The port (4, 5, 6 or 7) that was selected Is switched to the tri-stated mode while port 2 is returned to the input mode.
The 8243 contains four 4-bit 1/0 ports which serve as an extension of the on-chip 1/0 and are addressed as ports 4- 7. The following operations may be performed on these ports:
Normally, a port will be in an'output (write mode) orinput (read mode). If modes are changed during operation, the first read following a write should be ignored; all follow- ing reads are valid. This is to allow the external driver on the port to settle after the first read instruction removes the low impedance drive from the 8243 output. A read of any port will leave that port in a high impedance state.
All communication between the 8048 and the 8243 occurs over Port 2 (P20-P23) with timing provided by an output pulse on the PROG pi'n of the processor. Each transfer consists of two 4-bit nibbles:
The first containing the "op code" and port address and the second containing the actual 4-bits of data.


'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" mav cause permanent damage to the device. This is a stress rating on IV and functional opera·
Ambient Temperature Under Bias O·C to.70·C Storage Temperature -65·C to +150·C Voltage On Any Pin
tion of the device at these or anv other conditions above those indicated in the operational sections of this specifi· cation is not implied. Exposure to absolute maximum rating conditions for extended periods mav affect device reliabilitv.
With Respect to Ground -0.5 V to +7V Power Dissipation 1 Watt
TA = O·C to 70·C, Vee= 5V 10%
SYMBOL PARAMETER MIN.
VIL Input Low Voltage -0.5
VIH Input High Voltage 2.0
.--~ Vee+0.5 V
VOL1 Output Low Voltage Ports 4-7
0.45 V IOL = 4.5 mA*
- VO L2 Output Low Voltage Port 7
1 V IOL = 20 mA
VO H1 Output High Voltage Ports 4-7 2.4
11L1 Input Leakage Ports 4-7 -10
20 MA Vin = Vee to OV
IIL2 Input Leakage Port 2, CS, PROG -10
10 MA Vin = Vee to OV
VO L3 Output Low Voltage Port 2
.45 V IOL= 0.6 mA
lee Vee Supply Current
VOH2 Output Voltage Port 2 2.4
IOL Sum of all IOL from 16 Outputs
72 mA 4.5 mA Each Pin
*See following graph for additional sink current capability
TA = o·c to 70·C, Vee= 5V 10%
MIN. MAX. UNITS TEST CONDITIONS
tA Code Valid Before PROG
100 ns 80 pF Load
t8 Code Valid After PROG
60 ns 20 pF Load
te Data Valid Before PROG
200 ns 80 pF Load
to Data Valid After PROG
20 ns 20 pF Load
tH Floating After PROG
0 150 ns 20 pF Load
tK PROG Negative Pulse Width
tes CS Valid Before/After PROG
tpo Ports 4-7 Valid After PROG
tLPl Ports 4-7 Valid Before/After PROG
tAee Port 2 Valid After PROG
650 ns 80 pF Load
8 > _ _ TEST POINTS
'0'.0
10 20 mA · 700 ns · 100 ns


PROG
~-----------------IK----------------~
PORT 2 FLOAT FLOAT
"~;1
'"'~'~'"x
PORT 2 VALID
_I PO
PORTS 4·7 PREVIOUS OUTPUT VALID OUTPUT
VALID
PORTS 4-7 INPUT VALID
6-60 AFN--0O214A-04
l,P --10> l,P · les


~ 100
o
~ 75 z w a: a: a 50
GUARANTEED WORST CASE CURRENT SINKING CAPABiliTIES OF ANY I/O PORT PIN vs. TOTAL SINK CURRENT OF All PINS
o L--L __ ~~~-L __ ~~ __ -L __ ~~ __ -L __ ~~ __ ~ o 2 3 4 5 6 7 8 9 10 11 12 13
MAXIMUM 10L WORST CASE PIN (mA)
Sink Capability
mA sink capability of Port 7 affects the sink- ing capability of the other I/O lines.
The 8243 can sink 5 [email protected] each of its 16 I/O lines simultaneously. If, however, all lines are not sinking simultaneously or all lines are not fully loaded, the drive capability of any individual line increases as is shown by the accompanying curve.
An 8243 will drive the following loads simul- taneously.
For example, if only 5 of the 16 lines are to sink current at one time, the curve shows that each of those 5 lines is capable of sinking 9 [email protected] (if any lines are to sink 9 mA the total 10l must not exceed 45 mA or five 9 mA loads).
2 loads - 20 mA@ 1V (port 7 only) 8 loads - 4 [email protected] 6 loads - 3.2 mA@ .45V Is this within the specified limits?
assuming remaining pins are unloaded?
d Ol=( 2 x 20)+(8 x 4)+(6 x 3.2)=91.2 mAo From the curve: for 10l = 4 mA, dOL:: 93 mA since 91.2 mA < 93 mA the loads are within specified limits.
10l = 5 x 1.6 mA = 8 mA dOL = 60 mA from curve # pins=60 mA ... 8 mA/pin=7.5=7
In this case, 7 lines can sink 8 mA for a total of 56 mAo This leaves 4 mA sink current capa- bility which can be divided in any way among the remaining 8 I/O lines of the 8243.
Although the 20 mA@1V loads are used in calculating dOL, it is the largest current re- [email protected] determines the maximum allowable dOL'
~


P' PROG
I/O
TEST P5 8048 INPUTS 8243
I/O
P6
I/O
P20-P23 DATA IN
P2
P7
I/O
OUTPUT EXPANDER TIMING
BITS 3,2 OO} REAO 01 WRITE 10 OR 11_ AND
BITS 1,0
OO~ O1J PORT Hl ADDRESS "
P20-P23 --( ..... _--'X ..... ___ ...J)r---
ADDRESS 14-BITS) DATA (4-8IT8)
BUS
PORT 1 804B
PORT 2
PROG.-----------------~------------------+_----------------~~ ________________ ~
USING MULTIPLE 8243'5
-=- · I/O cs · 6-62 AFN-oQ214A-08


108243 MCS-48™ INPUT/OUTPUT EXPANDER
The Intel!!> 8243 is an input/output expander desigrjed specifically to provide a low cost means of I/O expansion for the MCS-48'· family of single chip microcomputers. Fabricated in 5 volts NMOS, the 8243 combines low cost, single supply voltage and high drive current capability.
The 8243 consists of four 4-bit bidirectional static I/O ports and one 4-bit port which serves as an interface to the MCS-48 microcomputers. The 4-bit interface requires that only 4 I/O lines of the 8048 be used for I/O expansion, and also allows multi pie 8243's to be added to the same bus.
The 1/0 ports of the 8243 serve as a direct extension of the resident 1/0 facilities of the MCS-48 microcomputers and are accessed by their own MOV, ANL, and ORL instructions.
PORT 4
P40 PS' 1'4' P52
1'42 P53
1'43 PSO PORT 5 cs P6,
PORT 2 P23 P63
P22 P73
P2, P72
P20 P7'
PORT 6 GNO P70
PORT 7
6-63 AFN-Q0861A-01
PSO vee


A high to low transition of the PROG line indicates that address is present while a low to high transition indicates the presence of data. Additional 8243's may be added to the 4-bit bus and chip selected using additional output lines from the 8048/8748/8035.
Pin No. Function
7 Clock Input. A high to low transistion on PROG signifies that address and control are available on P20-P23, and a low to high transition signifies that data is available on P20-23.
Initial application of power to the device forces input/output ports 4, 5, 6, and 7 to thetri-state and port 2to the input mode. The PROG pin may be either high or low when power is applied. The first high to low transition of PROG causes device to exit power on mode. The power on sequence is initiated if Vee drops below 1V.
6 Chip Select Input. A high on CS inhibits any change of output or internal status.
11-8 Four (4) bit bi-directional port contains the address and con- trol bits on a high to low transition of PROG. During a low to high transition contains the data for a selected output port if a write operation, or the data from a selected port before the low to high transition if a read operation.
P21 P20 Address Code P23 P22 Instruction Code
0 0 Port 4 0 0 Read 0 1 Port 5 0 1 Write 0 Port 6 0 ORlD Port 7 ANlD
The device has three write modes. MOVD Pi, A directly writes new data into the selected port and old data is lost. ORlD Pi,A takes new data, OR's it with the old data and then writes it to the port. ANlD PiA takes new data AND's it with the old data and then writes it to the port. Operation
o volt supply.
P40-P43 P50-P53 P60-P63 P70-P73
2-5 1,23-21 20-17 13-16
Four (4) bit bi-directional I/O ports. May be programmed to be input (during read), low impedance latched output (after write) or a tri-state (after read). Data on pins P20-23 may be directly written, ANDed or ORed with previous data.
code and port address are latched from the input port 2 on the high to low transition of the PROG pin. On the low to high transition of PROG data on port 2 is transferred to the logic block of the specified output port.
After the logic manipulation is performed, the data is latched and outputed. The old data remains latched until new valid outputs are entered.
24 +5 volt supply.
Read Mode
The device has one read mode. The operation code and port address are latched from the input port 2 on the high to low transition of the PROG pin. As soon as the read operation and port address are decoded, the appropriate outputs are tri-stated, and the input buffers switched on. The read operation is terminated by a low to high transition of the PROG pin. The port (4, 5, 6 or 7) that was selected is switched to the tri-stated mode while port 2 is returned to the input mode.
The 8243 contains four 4-bit I/O ports which serve as an extension of the on-chip I/O and are addressed as ports 4- 7. The following operations may be performed on these ports;
Normally, a port will be in an output (write mode) orinput (read mode). If modes are changed during operation, the first read following a write should be ignored; all follow- ing reads are valid. This is to allow the external driver on the port to settle after the first read instruction removes the low impedance drive from the 8243 output. A read of any port will leave that port in a high impedance state.
All communication between the 8048 and the 8243 occurs over Port 2 (P20-P23) with timing provided by an output pulse on the PROG pin of the processor. Each transfer consists of two 4-bit nibbles;
The first containing the "op code" and port address and the second containing the actual 4-bits of data.
Symbol · Vee


'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" may cause, permanent damage to the device. This is a stress rating only and functional opera·
Ambl.nt T.mp.ratur. Und.r Bias ,-40·C to +85·C Storage T.mperature -65·C to +1S0·C Voltag. On Any Pin
tion of the device at these or any other conditions above those indicated in the operational sections of this specifi· cation is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
With Respect to Ground -o.S V to +7V Pow.r Dissipation , '1 Watt
TA = -4O·C to +8S·C, Vee= SV 1Q11b
MIN.
VIL Input Low Voltage
VIH Input High Voltage
Vee+0.5 V
VO LI Output Low Voltage Ports 4-7
0.45 V IOL =4.5mA*
VOL2 Output Low Voltage Port 7
1 V IOL = 20 mA
VOHI Output High Voltage Ports 4-7
IILl Input Leakage Ports 4-7
20 IlA Vin = Vee to OV
IIL2 Input Leakage Port 2, CS. PROG
10 IlA Vin = Vee to OV
VOL3 Output Low Voltage Port 2
.45 V IOL= 0.6 mA
lee Vee Supply Current
VOH2 Output Voltage Port 2
IOL Sum of all IOL from 16 Outputs
80 mA 4.5 mAEach Pin
·See following graph for additional sink current capability
TA =-40·C to +8S·C, Vee= SV 10%
MIN. MAX. UNITS TEST CONDITIONS
tA Code Valid Before PROG
100 ns 80 pF Load
te Code Valid After PROG
60 ns 20 pF Load
te Data Valid Before PROG
200 ns 80 pF Load
to Data Valid After PROG
20 ns 20 pF Load
tH Floating After PROG
0 150 ns 20 pF Load
tK PROG Negative Pulse Width
tcs CS Valid Before/Afte(PROG
tpo Ports 4·7 Valid After PROG
700 ns 100 pF Load
tLPl Ports 4-7 Valid Before/After PROG
tAee Port 2 Valid After PROG
650 ns 80 pF Load
0.45 ----' -


PORT 2 FLOAT DATA FLOAT
'"'~ ~'"x VALID
.~~
PORT 2
_t po
PORTS 4-7 PREVIOUS OUTPUT VALID OUTPUT
VALID
tiP --
AFN-00861A-()4
~ tK ~ · tes


'"":J 100
e
IN
I75 z w a: a: a 50
GUARANTEED WORST CASE CURRENT SINKING CAPABiliTIES OF ANY 1/0 PORT PIN vs. TOTAL SINK CURRENT OF All PINS
o o 1 2
MAXIMUM IOL WORST CASE PIN (rnA)
Sink Capability
mA sink capability of Port 7 affects the sink- ing capability of the other 110 lines.
The 8243 can sink 5 [email protected] on each of its 16110 lines simultaneously. If, however, all lines are not sinking simultaneously or all lines are not fully loaded, the drive capability of any individual line increases as is shown by the accompanying curve:
An 8243 will drive the following loads simul- taneously.
For example, if only 5 of the 16 lines are to sink current at one time, the curve shows that each of those 51ines is capable of sinking 9 [email protected] (if any lines are to sink 9 mA the total IOl must not exceed 45 mA or five 9 mA loads).
2 loads - 20 mA@1V (port 7 only) 8 loads - 4 [email protected] 6 loads - 3.2 [email protected] Is this within the specified limits?
assuming remaining pins are unloaded?
d Ol=( 2 x 20)+(8 x 4)+(6 x 3.2)=91.2 mAo From the curve: for IOl = 4 mA, dOL::: 93 mA since 91.2 mA < 93 mA the loads are within specified limits.
IOl = 5 x 1.6 mA = 8 mA dOL = 60 mA from curve # pins= 60 mA-+- 8 mA/pin = 7.5= 7
In this case, 7 lines can sink 8 mA for a total of 56 mAo This leaves 4 mA sink current capa· bility which can be divided in any way among the remaining 8 110 lines of the 8243.
Although the 20 mA@ 1V loads are used in calculating dOL, it is the largest current re- [email protected] which determines the maximum allowable dOL.
6-67 AFN-00s81A-05


":"
I/O
TEST P5 8048 INPUTS 8243
I/O
P5 P20·P23 DATA IN
I/O
P2
P7
I/O
OUTPUT EXPANDER TIMING
PROG ~"" _____ ..J/
BITS 3,2 OO} READ 01 WRITE 10 OR 11_ ANO
BITS 1,0
OO} 01 PORT 10 AODRESS "
P20·P23 --<I..._--JX'- _____ ...I)>---
ADDRESS (4·8ITSI DATA (4-BITSI
BUS
PORT 1 B04B
PORT 2
PROG~----------------~------------------~-----------------4------------------~
USING MULTIPLE 8243'5
6-68 AFN-OOBB1A-OS
I/O cs


The Intel® 8355 is a ROM and I/O chip to be used in the MCS-85'· microcomputer system. The ROM portion is organized as 2048 words by 8 bits. It has a maximum access time of 400 ns to permit use with no wait states in the 8085A CPU.
The 1/0 portion consists of 2 general purpose 1/0 ports. Each 1/0 port has 8 port lines, and each 1/0 port line is indivdu o ally programmable as input or output.
The 8355-2 has a 300ns access time for compatibility with the 8085A-2 microprocessor.
RESET PB, READY N.C. (NOT CONNECTED) 5 PB,
lOW PA, eE, G
PB, ADo_7
PB, A B- 10 RD PB.
PA, CE, ROM
~
AD. PAs 101M
PB O1
lOW AD, PA, RESET AD, PA, iDA AD, PAD
INT£l CORPORATION ASSlHS NO RESPONSIBIlITY FOR THE USE OF ANY CIRCUITRY OTHER THAN CIICUITRY EMBOOIEO IN AN IIITEl PROOOCT. NO OTItER CIRCIIIT PATENT LICENSES ARE IMPLIED. "INTEL CORPORATION. 1979


When ALE (Address latch Enable is high, ADo-7, 101M, AS-1o, CE, and CE enter address latched. The signals I AD, 101M, AS-1o, CE, CE I are latched in at the trailing edge of ALE.
The ClK is used to force the READY into its high impedance state after it has been forced low by CE low, CE high and ALE high.
Ready is a 3-state output controlled by CEL CE2, ALE and ClK. READY is forced low when the Chip Enables are active during the time ALE is high, and remains low until the rising edge of the next ClK (see Figure 61.
Bidirectional AddresslData bus. The lower 8-bits of the ROM or 1/0 address are applied to the bus lines when ALE is high.
During an 1/0 cycle, Port A or Bare selected based on the latched value of ADo. It RD or lOR is low when the latched chip enables are active, the output buffers present data on the bus.
PAO-7 (I nput! Output I
These are general purpose 1/0 pins. Their input!output direction is deter- mined by the contents of Data Direction Register (DDRI. Port A is selected for write operations when the Chip Enables are active and iOW is low and a 0 was previously latched from ADo.
These are the high order bits of the ROM address. They do not affect 1/0 oper- ations.
Chip Enable Inputs: CE1 is active low and CE2 is active~. The 8355 can be accessed only when BOTH Ghip En- ables are active at the time the ALE signal latches them up. It either Chip Enab!e input is not active, the ADo-7 and READY outputs will be in a high impedance state.
Read operation is selected by either lOR low and active Chip Enables and ADo low, Q[ 101M high, RD low, active chip enables, and ADo low.
CE1 CE2 ( Inputl
This general purpose 1/0 port is identical to Port A except that it is selected by a 1 latched from ADo.
An input high on RESET causes all pins in Port A and B to assume input mode.
It the latched 10/M is high when RD is low, the output data comes from an 1/0 port. It it is low the output data comes from the ROM.
When the Chip Enables are active, a low on lOR will output the selected 1/0 port onto the AD bus. lOR low performs the same function as the combination 101M high and RD low. When lOR is not used in a system, lOR should be tied to Vee ("1").
It the latched Chip Enables are active when RD goes low, the ADo-7 output buffers are enabled and output either the selected ROM location or 1/0 port. When both RD and lOR are high, the ADo-7 output buffers are 3-state.
+5 volt supply.
Ground Reference.
lOW ( Input I
It the latched Chip Enables are active, a low on lOW causes the output port pointed to by the latched value of ADo to be written with the data on ADo-7. The state of 101M is ignored.


ABSOLUTE MAXIMUM RATINGS*
device. This is a stress rating only and functional opera·
tion of the device at these or any other conditions above those indicated in the operational sections of this specifi· cation is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
Temperature Under Bias Storage Temperature Voltage on Any Pin
O°Cto +70°C -65'Cto+1S0°C
With Respect to Ground " -o.sv to +7V Power Dissipation 1.SW
Vil Input Low Voltage -0.5 0.8 V Vee = 5.0V
VIH Input High Voltage 2.0 Vee+O· 5 V Vee = 5.0V
VOH Output High Voltage 2.4 V IOH = -400j.LA
III Input Leakage 10 j.LA V IN = Vee to OV
ILO Output Leakage Current ±10 j.LA 0.45V ';;;;VOUT ';;;;Vee
Icc Vee Supply Current 180 mA
8355 8~55-2 (Prel mlnary) Symbol Parameter Min. Max. Min. Max. Units
teye Clock Cycle Time 320 320 ns
T1 CLK Pulse Width 80 80 ns
T2 CLK Pulse Width 120 120 ns
tf,t, CLK Rise and Fall Time 30 30 ns
tAL Address to Latch Set Up Time SO 30 ns
tlA Address Hold Time after Latch 80 30 ns
tle Latch to READ/WRITE Control 100 40 ns
tAD Valid Data Out Delay from READ Control 170 140 ns
tAD Address Stable to Data Out Valid 400 330 ns
tLl Latch Enable Width 100 70 ns
tel READ/WRITE Control to Latch Enable 20 10 ns
tee READ/WRITE Control Width 250 200 ns
tow Data In to Write Set Up Time 150 150 ns
two Data In Hold Time After WRITE 10 10 ns
twp WRITE to Port Output 400 400 ns
tpA Port Input Set Up Time 50 50 ns
tRP Port Input Hold Time 50 50 ns
tRYH READY HOLD Time 0 160 0 160 ns
tARY ADDRESS (CE) to READY 160 160 ns
tRv Recovery Time Between Controls 300 200 ns
tROE READ Control to Data Bus Enable 10 10 ns


Figure 1. Clock Specification for 8355
ADDRESS
)
~
ADDRESS
DATA
·eE,=') ~
ALE
1+ 'RDF •
!--'RDE~ I---'RD-
I I+---- 'RV 'ow r-- 'WD ~
I---'cc
Figure 2. ROM Read and 110 Read and Write


I. Input Mode
tJ~
DATA' - )( BUS --- .
b. Output Mode
PORT OUTPUT
DATA'----- ~ BUS _____ ...I\ _______ JX ____ _
'DATA BUS TIMING IS SHOWN IN FIGURE 4.
Figure 3. 1/0 Port Timing
,
.... _-----
Figure 4. Wilt Stlta Timing (READY = 0)
ROOR iOR · 'wp · ClK


8755A 16,384-BIT EPROM WITH 1/0 • Directly Compatible with SOS5A CPU
The Intel@ 8755A is an erasable and electrically reprogram mabie ROM (EPROM I and liD chip to be used in the MCS-85'· microcomputer system. The EPROM portion is organized as 2048 words l:>y 8 bits. It has a maximum access time of 450 ns to permit use with no wait states in an 8085A CPU.
The 1/0 portion consists of 2 general purpose 1/0 ports. Each 1/0 port has 8 port lines, and each 1/0 port line is individu- ally programmable as input or output.
RESET READY Voo PB.
CE, 2K)( 8
ALE 101M EPROM
~
PB O7
AD, PA. RD
AD, PA, RESET
AD. iDA ADs PA,
~VCCI+5V1 AD. AlO PROG/CE, AD, A. Voo Vss (OV) Vss
INTEL CORPORATION ASstJMES NO RESPONSIBIlITY FOR THE USE OF ANY CIRCUITRY OTHER THAN CIRCUITRY EMBOOIEO IN AN INTEL PROOUCT. NO OTHER CIftCUIT PRlENT LICENSES ARE IMPLIED. © INTEl CORPORATION. 1979


8755AFUNCTIONAL PIN DEFINITION
Function
When Address latch Enable goes high, ADo-7, 10/M, AS-1o, CE2, and CE1 enter the address latches. The signals (AD, 10/M, AB-10, CEI are latched in at the trailing edge of ALE.
READY is a 3-state output controlled by CE2, CEl,AlE and ClK. READY is forced low when the Chip Enables are active during the time ALE is high, and remains low until the rising edge of the next ClK. (See Figure 6. I
Bidirectional Address/Data bus. The lower 8-bits of the PROM or I/O address are applied to the bus lines when ALE is high.
These are general purpose 110 pins. Their input/output direction is deter- mined by the contents of Data Direc- tion Register (DDR I. PortA is selected for write operations when the Chip Enables are active and lOW is low and a 0 was previously latched from ADo, AD,.
During an I/O cycle, Port A or Bare selected based on the latched value of ADo. If RD or lOR is low when the latched Chip Enables are active, the output buffers present data on the bus.
Read operation is selected by either lOR low and active Chip Enables and ADo and AD, low, or 10iM high, RD low, active Chip Enables, and ADo and AD, low.
These are the high order bits of the PROM address. They do not affect I/O operations.
Chip Enable Inputs: CE 1 is active low and CE2 is active high. The 8755A can be accessed only when BOTH Chip Enables are active at the time the ALE signal latches them up. If either Chip Enable input is not active, the ADo-7 and READY outputs will be in a high impedance state. CE, is also used asa programming pin. (See section on programming. I
This general purpose I/O port is identical to Port A except that it is selected by a 1 latched from ADo and a 0 from AD1.
In normal operation, an input high on RESET causes all pins in Ports A and B to assume input mode (clear DDR register!.
When the Chip Enables are active, a low on lOR will output the selected I/O port onto the AD bus. lOR low performs the same function as the combination of 10/M high and RD low. When lOR is not used inasystem, lOR should be tied to Vce ("1"1.
If the latched 10/M is high when RD is low, the output data comes from an I/O port. If it is low the output data comes from the PROM.
If the latched Chip Enables are active when RD goes low, the ADo-7 output buffers are enabled and output either the selected PROM location or I/O port. When both RDand lOR are high, the ADo-7 output buffers are 3-stated.
+5 volt supply.
Ground Reference.
Voo is a programming voltage, and must be tied to +5V when the 8755A is being read.
If the latched Chip Enables are active, a low on lOW causes the output port pOinted to by the latched value of ADo to be written with the data on ADo-7. The state of 10/M is ignored.
For programming, a high voltage is supplied with Voo= 25V, typical. (See section on programming.)
The ClK is used to force the READY into its high impedance state after it has been forced low by CE, low, CE2 high, and ALE high.


ERASURE CHARACTERISTICS
SYSTEM APPLICATIONS
The erasure characteristics of the 8755A are such that erasure begins to occur when exposed to light with wavelengths shorter than approximately 4000 Angstroms
System Interface with SOSSA
A system using the 8755A can use either one of the two I/O
Interface techniques:
(AI. It should be noted that sunlight and certain types of fluorescent lamps have wavelengths in the 3000-4000A range. Data show that constant exposure to room level fluorescent lighting could erase the typical 8755A in approximately 3 years while it would take approxill1ately 1 week to cause erasure when exposed to direct sunlight. If the 8755A is to be exposed to these types of lighting conditions for extended periods of time, opaque labels are available from Intel which should be placed over the 8755 window to prevent unintentional erasure.
If a standard I/O technique is used, the system can use the feature of both GE2 and CE1. By using a combination of unused address lines A11-15 and the Chip Enable inputs, the
8085A system can use up to 5 each 8755A's without requiring a CE decoder.
The recommended erasure procedure for the 8755A is exposure to shortwave ultraviolet light which has a wave- length of 2537 Angstroms (AI. The integrated dose Ii.e., UV intensity X exposure time) for erasure should be a minimum of 15W-sec/cm2. The erasure time with this dosage is approximately 15 to 20 minutes using an ultra- violet lamp with a 12000",W/cm2 power rating. The 8755A should be placed within one inch from the lamp tubes during erasure. Some lamps have a filter on their tubes and this filter should be removed before erasure.
If a memory mapped I/O approach is used the 8755A will be selected by the combination of both the Chip Enables and 10/M using the AD8-15 address lines. See Figure 1.
Initially, and after each erasure, all bits of the EPROM portions of the 8755A are in the "1" state. Information is introduced by selectively programming "0" into the desired bit locations. A programmed "0" can only be changed to a "1" by UV erasure.
The 8755A can be programmed on the Intel® Universal PROM Programmer (UPPI, and the PROMPT'" 80/85 and PROMPT-48'" design aids. The appropriate programming modules and adapters for use in programming both 8755A's and 8755's are shown in Table 1.
~ BOB5A MO o. 7
"
The program mode itself consists of programming a single address at a time, giving a Single 50 msec pulse for every address. Generally, it is desirable to have a verify cycle after a program cycle for the same address as shown in the attached timing diagram. In the verify cycle (i.e., normal memory read cycle I 'Voo' should be at +5V.
elK 102) r--
REAOY r--
101M r-- *1 Vee ;--- I rV '\.. 7
Preliminary timing diagrams and parameter values per· taining to the 8755A programming operation are con· tained in Figure 6.
AID,., A'_10 RD elK 101M iifR ALE ilii'i READY CE
B755A
REFERENCE
'NOTE: Optional connection.
USE WITH
UPP 955 UPP UP2121 PROMPT 975 PROMPT 475
UPPI41 UPP 855 PROMPT 80/85131 PROMPT 48( 11
NOTES:
1, Described on p. 11·9 of 1978 System Data Catalog. 2. Special adaptor socket. 3. Described on p. 11·3 of 1978 System Data Catalog. 4. Described on p. 10·85 of 1978 System Data Catalog.
Figure 1. 8755A in 808SA System (Memory-Mapped 1/0)


ABSOLUTE MAXIMUM RATINGS·
TemperatureUnderBias -10o e to +70o e Storage Temperature -65°eto +150 o e Voltage on Any Pin
Stresses above those listed under "Absolute Maximum Ratings" maycause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those Indicated in the operational sections of this specification is not implied.
With Respect to Ground -0.5 to +7V· Power Dissipation 1.5W
Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
·Except for programming voltage.
VIL Input Low Voltage -0.5 0.8 V
VIH Input High Voltage 2.0 Veet
VOL Output Low Voltage 0.45 V IoL=2mA
VOH Output High Voltage 2.4 V IoH = -400JjA
IlL I n put Lea kage 10 JjA VIN = Vcc to OV
ILO Output Leakage Current tl0 JjA 0.45V ';;VOUT ';;Vee
Ice Vec Supply Current 180 mA
teye Clock Cycle Time 320 ns
T, ClK Pulse Width 80 ns CLOAO = 150 pF
T2 ClK Pulse Width 120 ns (See Figure 3)
tf ,t, ClK Rise and Fall Time 30 ns
tAL Address to Latch Set Up Time 50 ns
tLA Address Hold Time after latch 80 ns
tLe latch to READ/WRITE Control 100 ns
tAD Valid Data Out Delay from READ Control 170 ns
tAO Address Stable to Data Out Valid 450 ns 150 pF load
tLL Latch Enable Width 100 ns
tAOF Data Bus Float after READ 0 100 ns
teL READIWRITE Control to latch Enable 20 ns
tee R EADIWR ITE Control Width 250 ns
tow Data In to WRITE Set Up Time 150 ns
two Data In Hold Time After WR ITE 30 ns
twp WR ITE to Port Output 400 ns
tpA Port Input Set Up Time 50 ns
tAP Port Input Hold Time 50 ns
tAYH READY HOLD TIME 0 160 ns
tAAY ADDRESS (CE) to READY 160 ns
tAv Recovery Time between Controls 300 ns
tADE Data Out Delay from READ Control 10 ns
tLO ALE to Data Out Valid 350 ns Preliminary


WAVEFORMS
Figure 2. Clock Specification for 8755A
tAD ,-
~----< >- ) ADDRESS ~--.. ) DATA ADDRESS r---
t
ALE 1/
I--tALI---tLA- \
1 (PROG)/CE
J \. \
~ t--tRDE -
tROF I--- J 1"- I---tLC~ I--- tRO tow I--- f-two
ILtce
I---tCL- Pleas e note that CE1 must remain low tor the entire eyele. tRV
Figure 3. PROM Read, 1/0 Read and Write Timing
tLL_ · tLO


A.
ROOR '+
PORT =x __________ ~x~ __ __ INPUT ~
lOR F---~! c- -r 'PR
DATA> - - - - - - - )(
BUS ------- ----------------------
lOW \ .; \. ~ -J. x
B. OUTPUT MODE
GLITCH FREE __________ ':: ~_ / OUTPUT
PORT OUTPUT _ ------------ -----
DATA> - """\/ BUS -A X
Figure 4. 110 Port Timing
ALE
, REAOY--- - .... _-----
Figure 5. Wait State Timing (READY = 0)
eLK


D.C. SPECIFICATION PROGRAMMING ITA = O°C to 70°C: Vee = 5V ± 5%; Vss = OV)
Min. Typ. Max. Unit
Voo Programming Voltage (during Write to EPROM)
24 25 26 V 15 30 mA
100 Prog Supply Current
A.C. SPECIFICATION FOR PROGRAMMING (TA = O°C to 70°C; Vee = 5V ± 5%; Vss = OV)
Min. Typ. Max. Unit 10 ns 0 ns 2 /AS 2 /AS 0.Q1 2 /AS 0.Q1 2 /AS 45 50 msec
tps Data Setup Time
tpo Data Hold Time
ts Prog Pulse Setup Time
tH Prog Pulse Hold Time
tPR Prog Pulse Rise Time
tpF Prog Pulse Fall Time
tPRG Prog Pulse Width


WAVEFORMS
ALE
DATA TO BE PROGRAMMED
'PO
AS·10
'PS
.5----------------------------(
·VERIFY CYCLE IS A REGULAR MEMORY READ CYCLE (WITH Voe = +5V FOR 8755A)
Figure 6. 8755A Program Mode Timing Diagram
Voo


8155/8156/8155-2/8156-2 2048 BIT STATIC MOS RAM WITH I/O PORTS AND TIMER
~
CPU Chip . Enable ACTIVE LOW ACTIVE HIGH
8155 8155-2 8156 8156-2
The 8155 and 8156 are RAM and I/O chips to be used in the MCS-85'· microcomputer system. The RAM portion is designed with 2048 static cells organized as 256 x 8. They have a maximum access time of 400 ns to permit use with no wait states in 8085A CPU. The 8155-2 and 13156-2 have maximum access times of 330 ns for use with the 8085A-2.
The 110 portion consists of three general purpose 110 ports. One of the three ports can be programmed to be status pins, thus allowing the other two ports to operate in handshake mode.
A 14-bit programmable counter/timer is also included on chip to provide either a square wave or terminal count pulse for the CPU system depending on timer mode.
pc. vee pc. pCz
G
RESET PCo a
ADO-7 256 X a TIMER OUT PBs STATIC 101M PBs RAM
G
CE OR CE* PB. * ifD PB. ALE WR PB z
ALE PB, AD
B
ADo PBo WA AD, PA,
ADz PAs RESET TIMEA
AD. PAs
Lvcc !+5V) AD. PA.
TIMER eLK AD. PA.
TIMER OUT Vss IOVI PAz
IllEL _1I0Il_5 NO RE1I'IJIISIIlITY FOR TI£ USE OF ANY CIlCUITRI OTi£R THAN CIIClml EMBODEO IN AN IllEL PRODUCT. NO IlTHDI CIlCUIT PATENT UCENSES ARE _10. "IIIEL _lION. 1979


8155/8156 PIN FUNCTIONS
Pulse provided by the 8085A to ini- tialize the system (connect to 8085A
Address Latch Enable: This control signal latches both the address on the ADo-7 lines and the state of the Chip Enable and 101M into the chip at the falling edge of ALE.
RESET OUT). Input high on this line resets the chip and initializes the three 1/0 ports to input mode. The width of RESETpulseshouldtypically be two 8085A clock cycle times.
Selects memory if low and I/O and commandlstatus registers if high.
3-state AddresslData lines that inter- face with the CPU lower 8-bit Ad- dresslData Bus. The 8-bit address is latched into the address latch inside the 8155156 on the falling edge of ALE. The address can be either for the memory section or the 1/0 section depending on the 10iiVi input. The 8-bit data is either written into the chip or read from the chip, depending on the WR or RD input signal.
These 8 pins are general purpose 1/0 pins. The inlout direction is selected by programming the command register.
These 8 pins are general purpose I/O pins. The inlout direction is selected by programming the command register.
These 6 pins can function as either input port, output port, or as control signals for PA and PB. Programming is done through the command reg- ister. When PCO-5 are used as control signals, they will provide the fol- lowing: PCo - A INTR (Port A Interrupt) PC1 ~ ABF (Port A Buffer Full) PC2 - A STB (Port A Strobe) PC3 - B INTR (Port B Interrupt) PC4 - B BF (Port B Buffer Full) PC5 - B STB (Port B Strobe)
CE or CE (input)
Chi'p Enable: On the 8155, this pin is CE and is ACTIVE LOW. On the 8156, this pin is CE and is ACTIVE HIGH.
Read control: Input low on this line with the Chip Enable active enables and ADo-7 buffers. If 10/iVi pin is low, the RAM content will be read out to the AD bus. Otherwise the content of the selected 1/0 port or commandl status registers will be read to the AD bus.
Input to the counter-timer.
Write control: Input low on this line with the Chip Enable active causes the data on the AddresslData bus to be written to the RAM or 1/0 ports and commandlstatus register depending on 101M.
Timer output. This output can be either a square wave or a pulse de- pending on the timer mode.
+5 volt supply.
Ground Reference.


DESCRIPTION
The 8155/8156 contains the following:
The 101M (IO/Memory Select) pin selects either the five registers (Command. Status. PAo-7. PBO-7. PCO-5) or the memory (RAM). portion. (See Figure 1.)
The 8-bit address on the AddresslData lines. Chip Enable input CE or CEo and 101M are all latched on-chip at the falling edge of ALE. (See Figure 2.)
I L J
Figure 1. 8155/8156 Internal Registers
/
\
CE 181561 I
\
/
101M \
/
\
I\. / V I\. X DATA VALID
A°0-7 X
ADDRESS
ALE
RDORWR
Figure 2. 8155/8156 On-Board Memory Read/Wrlte Cycle


PROGRAMMING OF THE COMMAND REGISTER
READING THE STATUS REGISTER
The status register consists of seven latches. one for each bit; six (0-5) for the status of the ports and one (6) for the status of the timer.
The command register consists of eight latches. Four bits (0-3) define the mode of the ports. two bits (4-5) enable or disable the interrupt from port C when it acts as control port. and the last two bits (6-7) areforthetimer.
The status of the timer and the I/O sec.tion can be polled by reading the Status Register (Address XXXXXOOO). Status word format is shown in Figure 4. Note that you may never write to the status register since the command register shares the same I/O address and the command register is selected when a write to that address is issued.
The command register contents can be altered at any time by using the 110 address XXXXXOOO during a WRITE operation with the Chip Enable active and lo/fiil = 1. The meaning of each bit of the command byte is defined in Figure 3. The contents of the command register may never be read.
DEfINESPA .. , }
OO"'AlT1 1'=ALT2 DEFINES PC0-5 { 01 = At T 3 10 = AlT 4
PORT A BUFFER FULL/EMPTY (INPUT/OUTPUT)
PORT A INTERRUPT ENABLE
, .. ENABLE o· DISABLE '--- ________ ~:::;:U~ATB
'--------_ ~::EBRL:U~RT A
PORT B INTERRUPT ReQUEST ' _ PORT B BUFFER FULL/EMPTY
00 = NOP - 00 NOT AFFECT COUNTER OPERATION
01 = STOP - NOP If TIMER HAS NOT STARTED; STOP COUNTING IF THE TIMER IS RUNNING 10 = STOP AFTER Te - STOP IMMEDIATELY AFTER PRESENT Te IS REACHED (NOP IF TIMER HAS NOT STARTED)
IS LATCHED HIGH WHEN TERMINAL COUNT IS REACHED, AND IS RESET TO LOW UPON READING OF THE CIS REGISTER AND BY HARDWARE RESET).
11 = START - LOAD MODE AND CNT LEfI!GTH AND START IMMEDIATELY AFTER LOADING (IF TIMER IS NOT PRESENTLY RUNNING). If TIMER IS RUNNING, START THE NEW MODE AND CNT LENGTH IMMEDIATELY AFTER PRESENT Te IS REACHED.
Figure 3. Command Register Bit Assignment
Figure 4. Status Register Bit Assignment
}


The I/O section of the 8155/8156 consists of five registers: (See Figure 5.)
1/0 ADDRESSt SELECTION A7 A6 AS A4 A3 A2 A1 AD
X 0 0 0 Interval Command/Status Register X 0 0 1 General Purpose I/O Port A X 0 1 0 General Purpose 1;0 PorI B X 0 1 1 Port C - General Purpose 1/0 or Control X 1 a 0 low-Order 8 bits of Timer Count X 1 0 1 High 6 bits of Timer Count and 2 bits of Timer Mode
When the CIS registers are selected during WRITE operation, a command is written into the command register. The content,s of this register are not accessible through the pins.
When the CIS (XXXXXOOO) is selected during a READ operation, the status information of the 1/0 ports and the timer becomes available on the ADo-7 lines.
X: Don't Care _ _ t: 1/0 Address must be qualified by CE:= 1 181561 orCE=O 181551 and 101M"" 1 in order
to select the appropriate register
Figure 5. 1/0 port and Timer Addressing Scheme
Figure 6 shows how 1/0 PORTS A and B are structured within the 8155 and 8156:
8155/8156 ONE BIT OF PORT A OR PORT B
When PCO-5 is used as a control port, 3 bits are assigned for Port A and 3 for Port B. The first bit is an interrupt that the 8155 sends out. The second is an output signal indicating whether the buffer is full or empty, and the third is an input pin to accept a strobe for the strobed input mode. (See Table 1.)
When the 'C' port is programmed to either AL T3 or AL T4, the control signals for PA and PB are initialized as follows:
STS
(2) SIMPLE INPUT MULTIPLEXER (1) OUTPUT MODE }
(4) '" 1 FOR OUTPUT MODE
CONTROL INPUT MODE OUTPUT MODE
z 0 FOR INPUT MODE
BF Low Low INTR Low High
READ PORT = OO/M":o1j. (RD=O). (CE ACTIVE). (PORT ADDRESS SELECTED) WRITE PORT = (IO/M"'l). (WR=O). (CE ACTIVE). (PORT ADDRESS SELECTED)
STB Input Control Input Control
Figure 6. 8155/8156 Port Functions
8155/8156/8155~2/8156-2


TABLE 1. TABLE OF PORT CONTROL ASSIGNMENT.
Pin ALT 1 ALT 2 ALT 3 pca input Port Output Port A INTR (Port A Interrupt) PC1 Input Port Output Port A BF (Port A Buffer Full) PC2 Input Port Output Port A STB (Port A Strobe) PC3 Input Port Output Port PC4 Input Port Output Port PC5 Input Port Output Port
A INTR (Port A Interrupt)
A BF (Port A Buffer Full)
A STB (Port A Strobe) B INTR (Port B Interrupt)
Output Port Output Port Output Port
B BF (port B Buffer Full)
B STB (Port B Strobe)
TO 8085 RST INP UT The outputs of the 8155/8156 are "glitch-free" meaning that you can write a "1" to a bit position that was previ- ously "1" and the level at the output pin will not change. PORT A OUTPUT PORT A r A INTA (SIGNALS DATA RECEIVED) Note also that the output latch is cleared when the port enters the input mode. The output latch cannot be loaded by writing to the port if the port is in the input mode. The result is that each time a port mode is changed from input to output, the output pins will go low. When the 8155/56 is RESET, the output latches are all cleared and al13 ports enter the input mode.
I A srB (ACKNOWL DATA RECEIVED)
PORT C B STS (LOADS PORT B LATCH)
B SF (SIGNALS BUFFER IS FULL)
B INTR (SIGNALS BUFFER r
READY FOR READINGI 1
PORT B INPUT TO 8085 INPUT P ORT (OPTIONAL)
When in the AL T 1 or AL T 2 modes, the bits of PORT C are structured like the diagram above in the simple input or output mode, respectively.
Reading from an input port with nothing connected to the pins will provide unpredictable results.
Figure 7 shows how the 8155/8156 1/0 ports might be configured in a typical MCS-85 system.
}


TIMER SECTION
The timer is a 14-bit down-counter that counts the TIMER IN pulses and provides either a square wave or pulse when terminal count (TC) is reached.
The timer has the I/O address XXXXX100forthe low order byte of the register and the I/O address XXXXX101 for the high order byte of the register. (See Figure 5).
To program the timer, the COUNT LENGTH REG is loaded first, one byte at a time, by selecting the timer addresses. Bits 0-13 of the high order count register will specify the length of the next count and bits 14-15 of the high order register will specify the timer output mode (see Figure 8). The value loaded into the count length register can have any value from 2H through 3FFH in Bits 0-13.
In case of an odd-numbered count, the first half-cycle of the squarewave output, which is high, is one count longer than the second (low) half-cycle, as shown in Figure 10.
6 5 4 3 2 0 I M21 Ml I T131 T121 Tll I Tl0 I T91 Tal
I I II I I TIMER MODE MSB OF CNT LENGTH 65432 o
Figure 10; Asymmetrical Square-Wave Output Resulting from Count of 9
Figure 8. Timer Format
The counter in the 8155 is not initialized to any particular mode or count when hardware RESET occurs, but RESET does stop the counting. Therefore, counting cannot begin following RESET until a START command is issued via the CIS register.
There are four modes to choose from: M2 and M1 define the timer mode, as shown in Figure 9.
Please note that tlie timer circuit on the 8155/8156 chip is designed to be a square-wave timer, not an event counter. To achieve this, it counts down by twos twice in completing one cycle. Thus, its registers do not con- tain values directly representing the number of TIMER IN pulses received. You cannot load an initial value of 1 into the count register and cause the timer to operate, as its terminal count value is 10 (binary) or 2 (decimal). (For the detection of single pulses, it is suggested that one of the hardware interrupt pins on the 8085A be used.) After the timer has started counting down, the values residing in the count registers can be used to calculate the actual number of TIMER IN pulses required to com- plete the timer cycle if desired. To obtain the remaining count, perform the following operations in order:
START COUNT
TERMINAL (TERMINAL) COUNT COUNT
BITS
~ _____ 1 ____ _
M2 M1 o 0
2. CONTINUOUS SQUARE WAVE
3. SINGLE PULSE ON TERMINAL COUNT
4. CONTINUOUS PULSES
Figure 9. Timer Modes
Bits 6-7 (TM2 and TM1) of command register contents are used to start and stop the counter. There are four commands to choose from:
TM2 TMl o 0 NOP - Do not affect counter operation. o STOP - NOP if timer has not started; stop counting if the timer is running. o STOP AFTER TC - Stop immediately after present TC is reached (NOP if timer has not started)
START - Load mode and CNT length and start immediately after loading (if timer is not presently running). If timer is running, start the new mode and CNT length immediately after present TC is reached.
---~ · ur ~


EXAMPLE PROGRAM
Following is an actual sequence of program steps that adjusts the 8155/56 count register contents to obtain the count, extracted from Intel@ Application Note AP38. "Application Techniques for the Intel8085A Bus." First store the value of the full original count in register HL of the 8085A. Then stop the count to avoid getting an incorrect count value. Then sample the timer-counter, storing the lower-order byte of the current count register in register C and the higher-order count byte in register B. Then, call the following 8080A/8085A subroutine:
;Load accumulator with upper half ; of count.
;Reset upper 2 bits and clear carry.
;Rotate right through carry.
;Store shifted value back in B.
;Load accumulator with lower half.
;Rotate right through carry.
;Store lower byte in C.
;If in 2nd half of count, return. ;If in 1st lialf, go on.
;Clear carry.
;Divide full count by 2. (If HL ;is odd, disregard remainder.)
67 MOV H,A
70 MOV A,L
1F RAR
6F MOV L,A
09 DAD B
;Double-precision add HL and BC.
;Store results back in BC.
C9 RET
;Return.
After executing the subroutine, BC will contain the remaining count in the current count cycle.


8085A MINIMUM SYSTEM CONFIGURATION
Figure 11 shows a minimum system using three chips, containing:
ADO-7
---.!. ;.. v
ALE
B085A RD
WR
VCC - vv~ --- - - 1
101M
READY , , , ,- ,
Vee ,
7:~~<; 7~~ _101 iIDiOvi ,
I TIMER I IN WR AD ALE CE" 7 G
101M
"
CE M ALE elK RS~RDY
~ '-l LATCHES
'--'-- I
T~~~R_
8355 J ROM ... I/O I OR 8755 I PROM + lID I
CONTROL 256 x 8 RAM
~~cp$
- NOTE, OPTIONAL CONNECTIONS B. B B
B B
Figure 11. 808SA Minimum System Conllguratlon. (Memory Mapped 1/0)


ABSOLUTE MAXIMUM RATINGS·
Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional opera·
Temperature Under Bias O°C to +70°C Storage Temperature : -65°Cto+150°C Voltage on Any Pin
tion of the device at these or any other conditions above those indicated in the operationfjl sections of thisspecifi· cation is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
With Respect to Ground -O.5V to +7V Power Dissipation 1.5W
VIL Input Low Voltage -0.5 0.8 V
VIH Input High Voltage 2.0 Veet{)·5 V
VoL Output Low Voltage 0.45 V IoL = 2mA
VoH Output High Voltage 2.4 V IOH = -4001lA
IlL Input Leakage ±10 IlA VIN = Vee to OV
ILO Output Leakage Current ±10 IlA 0.45V .;;; VOUT .;;; Vee
Icc Vee Supply Current 180 mA
IldCE) Chip Enable Leakage
8155 +100 p.A VIN = Vee to OV 8156 -100 p.A


tAL Address to Latch Set Up Time
'.' 50 30 ns
tLA Address Hold Time after Latch 80 30 ns
tlC Latch to R EAD/WR ITE Control 100 40 ns'
tRO Valid Data Out Delay from READ Control 170 140 ns
tAO Address Stable to Data Out Valid 400 330 ns tll Latch Enable Width 100 70 ns
tROF Data Bus Float After READ 0 100 0 80 ns
tCl READ/WRITE Control to Latch Enable 20 10 ns
tcc READ/WRITE Control Width 250 200 ns
tow Data In to WR ITE Set Up Time 150 100 ns
two Data In Hold Time After WR ITE 0 0 ns
tRV Recovery Time Between Controls 300 200 ns
twp WR ITE to Port Output 400 300 ns
tPR Port Input Setup Time 70 50 ns
tRP Port Input Hold Time 50 10 ns
tSBF Strobe to Buffer Full 400 300 ns
tss strobe Width 200 150 ns
tRBE READ to Buffer Empty 400 300 ns
tSI Strobe to INTR On 400 300 ns
tROI READ to INTR Off 400 300 ns
tPSS Port Setup Time to Strobe Strobe 50 0 ns
tPHS Port Hold Time After Strobe 120 100 ns
tSBE Strobe to Buffer Empty 400 300 ns
tWBF WR ITE to Buffer Full 400 300 ns
tWI WR ITE to INTR Off 400 300 ns
tTL TIMER·IN to TIMER·OUT Low 400 300 ns
tTH TIMER·IN to TIMER·OUT High 400 300 ns
tROE Data Bus Enable from READ Control 10 10 ns
tl TIMER·IN Low Time 80 40 ns
t2 TIMER·IN High Time 120 70 ns
8155/8156/8155~218156-2 · 8155/8156 8155·2/8156-2 (Preliminary) · 6·92


WAVEFORMS
a. Read Cycle
-' / '\
CE 18156
101M \ / \ . tA:D
~
DATA VALID ~ -+-- t AL ______
ADDRESS ~
--- t LA
f tLL~ I ... t RDE .. I-- tRDF -
~I'-l ~tRD_ V I\- tLc - - t eL ! tee ~ tRY ~
b. Write Cycle
CE 18156 I I -'[\ /
IO/i> n \ ,V ~
ADDRESS K ) DATA VALID -"K I--- t AL -- I---tLA - -tow +- -tel-
ALE l 1\ V \- -- t lL - t Le ---:1 - two .
Figure 12. 8155/8156 Read/Write Timing Diagrams


a. Strobed Input Mode
~r-../ ~~~ I-t5S - tRBE - 7\ \. / \"7 L \ /
--tpss tpHS
~ ~
FROM PORT
b. Strobed Output Mode
~~ I_~
/ /
INTR
'WI J j ) \ /
OUTPUT DATA
~
TO PORT
Figure 13. Strobed 1/0 Timing
tSBF · tWBF · I t--twp


a. Basic Input Mode
b. Basic Output Mode
OUTPUT
·DATA BUS TIMING IS SHOWN IN FIGURE 7.
Figure 14. Basic 1/0 Timing Waveform
TIMER IN
TIMER OUT (PULSE)
\ (NOTE 1) "
___ J
\ I \ (NOTE 1( I '--------_..1
TIMER OUT (SQUARE WAVE)
Figure 15. Timer Output Waveform Countdown from 5 to 1
6·95


8185/8185-2 1024 x 8-BIT STATIC RAM FOR MCS_85™
The Intel'" 8185 is an 8192-bit static random access memory (RAM) organized as 1024 words by 8-bits using N-channel Silicon-Gate MOS technology. The multiplexed address and data bus allows the 8185 to interface directly to the 8085A and 8088 microprocessors to provide a maximum level of system integration.
The low standby power dissipation minimizes system power requirements when the 8185 is disabled.
The 8185·2 is a high-speed selected version of the 8185 that is compatible with the 5 MHz 8085A-2 and the full speed 5 MHz 8088.
BLOCK DIAGRAM
AD, RD
AD, WR
AD, ALE
AD, CS
R!W LOGIC
AD5 CE,
RO WALE
AD, CE,
AD, A,
BUS RAM ---v
~ DATA 1K x 8
ARRAY
X-V DECODE ~ U
PIN NAMES
;:..
ADO·AD7 As. A9 CS CE, CE, ALE RO WJj
ADDRESS/DATA LINES ADDRESS LINES CHIP SELECT CHIP ENABLE (101M) CHIP ENABLE ADDRESS LATCH ENABLE READ ENABLE WRITE ENABLE
LATCH
Aa. Ag
AFN-Q0201A-01
ADo Vee · cs CE, CE, · Vss As


OPERATIONAL DESCRIPTION
The 8185 has been designed to provide for direct interface to the multiplexed bus structure and bus timing of the 8085A microprocessor.
RST7,5 HLDA -- AST6,S 8085A SOD '-- RST5,5 SID - INTR 9, r-- 1NTA RESET
TRAP X, X, RESET IN -
At the beginning of an 8185 memory access cycle, the 8- bit address on ADo-7, As and Ag, and the status of CEI and CE2 are all latched internally in the 8185 by the falling edge of ALE. If the latched status of both CEI and CE2 are active, the 8185 powers itself up, but no action occurs until the CS line goes low and the appropriate RD or WR control signal input is activated.
The CS input is not latched by the 8185 in order to allow the maximum amount of time for address decoding in selecting the 8185 chip. Maximum power consumption savings will occur, however, only when CEI and CE2 are activated selectively to power down the 8185 when it is not in use. A possible connection would be to wirethe 8085A's 101M line to the 8185's CEI input, thereby keeping the 8185 powered down during 1/0 and interrupt cycles.
ALE 'ORTP(> DATAl c (6)
TABLE 1. TRUTH TABLE FOR POWER DOWN AND FUNCTION ENABLE
CE1 CE2 CS {CS*)[2] 8185 Status
"- As.10 V 8355/ 8755A DATAl ADDR
1 X X 0 Power Down and Function Disablell]
X 0 X 0 Power Down and Function Disable[l]
0 1 1 0 Powered Up and Function Disable[l]
0 1 0 1 Powered Up and Enabled
vs! v!c V~D tROG
RO
CE, 8185
ALE H-- es, CE2 H-- As, Ag
TABLE 2. TRUTH TABLE FOR CONTROL AND DATA BUS PIN STATUS
ADo_7 During Data RD WR Portion of Cycle 8185 Function
X X Hi-Impedance No Function
0 1 Data from Memory Read
Figure 1. 8185 in an MCS-85 System.
1 0 Data to Memory Write
1 1 Hi-Impedance Reading, but not Driving Data Bus
4 Chips: 2K Bytes ROM 1 .25K Bytes RAM 38 I/O Lines 1 Counter/Timer 2 Serial I/O Lines 5 Interrupt Inputs
X: Don't Care.


Stresses above thos'e listed under"Absolute Maximum-Ratings" may cause
p~rmanent damage to the device. This is a s~ress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of thts specification is not implied. Exposure to absolute maximum rating conditions for extended periods may, affect device reliability.
Symbol Parameter Min. Max. Units Test Conditions
VIL Input Low Voltage -0.5 0.8 V
VIH Input High Voltage 2.0 Vcc+0.5 V
VOL Output Low Voltage 0.45 V IOL =2mA
VOH Output High Voltage 2.4 IOH = - 400,uA
hL Input Leakage ±10 ,uA VIN = Vee to OV
ILO Output Leakage Current ±10 ,uA 0.45V ::; VOUT ::; Vce
lec Vce Supply Current
Powered Up 100 mA Powered Down 35 mA
8185 8185-2 Preliminary Preliminary
Symbol Parameter [11 Min. Max. Min. Max. Units
tAL Address to Latch Set Up Time 50 30 ns
tLA Address Hold Time After Latch 80 30 ns
tLC Latch to READ/WRITE Control 100 40 ns
tRO Valid Data Out Delay from READ Control 170 140 ns
tLO ALE to Data Out Valid ~OO 200 ns
tLL Latch Enable Width 100 70 ns
tROF Data Bus Float Afte~ READ 0 100 0 80 ns
tCL READ/WRITE Contrpl to Latch Enable 20 10 ns
tcc READ/WRITE Control Width. 250 200 ns
tow Data In to WRITE Set Up Time 150 150 ns
two Data In Hold Time After WRITE 20 " 20 ns
tse Chip Select Set Up to Control Line 10 10 ns
tes Chip Select Hold Time After Control 10 .10 ns
tALCE Chip Enable Set Up to ALE Falling 30 10 ns
tLACE Chip Enable Hold Time After ALE 50 30 ns
Input Waveform for A.C. Tests:
818~~8185-2


(CE2'" 1)
ADO·AD7
(READ CYCLE)
(WRITE CYCLE)
(SELECTED)
(DESELECTED)
Figure 3.8185 Timing.






The Intel® 8031/8051/8751 is a stand-alone, high-performance single-chip computer fabricated with Intel's highly-reliable +5 Volt, depletion-load, N-Channel, silicon-gate HMOS technology and packaged in a 40-pin DIP. It provides the hardware features, architectural enhancements and new instructions that are necessary to make it a powerful and cost effective controller for applications requiring up to 64K bytes of program memory and/or up to 64K bytes of data storage. The 8051/8751 contains a non-volatile 4K x 8 read only program memory; a volatile 128 x 8 read/write data memory; 32 I/O lines; two 16-bit timer/counters; a five-source, two-priority-Ievel, nested interrupt structure; a serial I/O port for either multi-processor communications, I/O expansion, or full duplex UART; and on-chip oscillator and clock circuits. The 8031 is identical, except that it lacks the program memory. For systems that require extra capability, the 8051 can be expanded using standard TTL compatible memories and the byte oriented MCS-80 and MCS-85 peripherals. The 8051 microcomputer, like its 8048 predecessor, is efficient both as a controller and as an arithmetic processor. The 8051 has extensive facilities for binary and BCD arithmetic and excels in bit-handling capa- bilities. Efficient use of program memory results from an instruction set consisting of 44% one-byte, 41% two-byte, and 15% three-byte instructions. With a 12 MHz crystal, 58% of the instructions execute in 1,us, 40% in 2,us and multiply and divide require only 4,us. Among the many instructions added to the standard 8048 instruction set are multiply, divide, subtract and compare.
L-""..-....J 1
RXO __ I TXD4-
1 1 ........... -...,.-11
~-+- ... INT1 .... ~
TO :!i Tl A- m
Rb
SERIAL SERIAL IN OUT
Figure 1. Pin Configuration
Figure 2. Logic Symbol
Figure 3. Block Diagram
r---""' , 1 · (


1.0 INTRODUCTION This data sheet provides an introduction to the 8051 family. A detailed description of the hardware re- quired to expand the 8051 with more program mem- ory, data memory, I/O, specialized peripherals and into multiprocessor configurations is described in the 8051 Family User's Manual.
modified and updated in the field.
2.0 MACRO-VIEW OF THE 8051 ARCHITECTURE On a single die the 8051 microcomputer combines CPU; non-volatile 4K x 8 read-only program me·mory; volatile 128 x 8 read/write data memory; 321/0 lines; two 16-bit timer/event counters; a five-source, two- priority-level, nested interrupt structure; serial I/O port for either multi-processor communciations, I/O expansion, or full duplex UART; and on-Chip oscilla- tor and clock circuits. This section will provide an overview of the 8051 by providing a high-level de- scription of its major elements: the CPU architecture and the on-chip functions peripheral to the CPU. The generic term ".8051" is used to refer collectively to the 8031,8051, and 8751.
chip computer intended for use in sophisticated real-time applications such as instrumentation, industrial control and intelligent computer periph- erals. It provides the hardware features, architectural enhancements and new instructions that make it a powerful and cost effective controller for applications requiring up to 64K-bytes of program memory and/or up to 64K-bytes of data storage. A Block Diagram is shown in Figure 3. The 8031 is a control-oriented CPU without on-chip program memory. It can address 64K-bytes of external Program Memory in addition to 64K-bytes of External Data Memory. For systems requiring extra capability, each member of the 8051 family can be expanded using standard memories and the byte oriented MCS-80 and MCS-85 peripherals. The 8051 is an 8031 with the lower 4K-bytes of Program Memory filled with on-chip mask programmable ROM while the 8751 has 4K-bytes of UV-light- erasable/electrically-program mabie ROM. The three pin-compatible versions of this com- ponent reduce development problems to a minimum and provide maximum flexibility. The 8751 is well suited for development, prototyping, low-volume production and applications requiring field updates; the 8051 for low-cost, high volume production; and the 8031 for applications desiring the flexibility of external Program Memory which can be easily
2.1 8051 CPU ARCHITECTURE The 8051 CPU manipulates operands in four memory spaces. These are the 64K-byte Program Memory, 64K-byte External Data Memory, 384-byte Internal Data Memory and 16-bit Program Counter spaces. The Internal Data Memory address space is further divided into the 256-byte Internal Data RAM and 128-byte Special Function Register (SFR) address spaces shown in Figure 2.1. Four Register Banks (each with eight registers), 128 addressable bits, and the stack reside in the Internal Data RAM. The stack depth is limited only by the available Internal Data RAM and its location is determined by the 8-bit stack pointer. All registers except the Program Counter and the four 8-Register Banks reside in the Special Function Register address space. These memory mapped registers include arithmetic regis- ters, pointers, I/O ports, interrupt system registers, timers and serial port. 128 bit locations in the SFR address space are addressable as bits. The 8051 con- tains 128 bytes of Internal Data RAM and 20 SFRs.
64K
EXTERNAL
OVERLAPPED SPACE I
4095 Il
-------
~r-----A
12: I I 128 I
INTERNAL 255 I I 255 I
I 0 ~ PROGRAM MEMORY
' ... '
' ... '
INTERNAL DATA RAM
SPECIAL FUNCTION REGISTERS
EXTERNAL DATA MEMORY
INTERNAL DATA MEMORY
Figure 2.1. 8051 Family Memory Organization
AFN-01462A-Q2
, · ,


2.2 ON-CHIP PERIPHERAL FUNCTIONS Thus far only the CPU and memory spaces of the 8051 have been described. In addition to the CPU and memories, an interrupt system, extensive I/O facilities, and several peripheral functions are inte- grated on-Chip to relieve the CPU of repetitious, complicated or time-critical tasks and to permit stringent real-time control of external system inter- faces. The extensive I/O facilities include the I/O pins, parallel I/O ports, bidirectional address/data bus and the serial port for I/O expansion. The CPU peripheral functions integrated on-chip are the two 16-bit counters and the serial port. All of these work together to greatly boost system performance.
The 8051 provides a non-paged Program Memory address space to accommodate relocatable code. Conditional branches are performed relative to the Program Counter. The register-indirect jump permits branching relative to a 16-bit base register with an offset provided by an 8-bit index register. Sixteen-bit jumps and calls permit branching to any location in the contiguous 64K Program Memory address space. The 8051 has five methods for addressing source operands: Register, Direct, Register-Indirect, Im- mediate and Base-Register- plus Index-Register-
Indirect Addressing. The first three methods can be used for addressing destination operands. Most instructions have a "destination, source" field that specifies the data type, addressing methods and operands involved. For operations other than moves, the destination operand is also a source operand. Registers in the four 8-Register Banks can be accessed through Register, Direct, or Register-
2.2.1 Interrupt System External events and the real-time-driven on-phip peripherals require service by the CPU asynchronous to the execution of any particular section of code. To tie the asynchronous activities of these functions to normal program execution, a sophisticated mul- tiple-source, two-priority~level, nested interrupt sys- tem is provided. Interrupt response latency ranges from 3ps to 711S when using a 12 MHz crystal. The 8051 acknowledges interrupt requests from five sources: Two from external sources via the INTO and iN'R pins, one from each of the two internal counters and one from the serial I/O port. Each
Indirect Addressing; the 128 bytes of Internal Data RAM through Direct or Register-Indirect Addressing; and the Special Function Registers through Direct Addressing. External Data Memory is accessed through Register-Indirect Addressing. Look-Up- Tables resident in Program Memory can be accessed through Base-Register- plus Index-Register- Indirect Addressing. The 8051 is classified as an 8-bit machine since the internal ROM, RAM, Special Function Registers, Arithmetic/Logic Unit and external data bus are each 8-bits wide. The 8051 performs operations on bit, nibble, byte and double-byte data types. The 8051 has extensive facilities for byte transfer, logic, and integer arithmetic operations. It excels at bit handling since data transfer, logic and condi- tional branch operations can be performed directly on Boolean variables. The 8051's instruction set is an enhancement of the instruction set familiar to MCS-48 users. It is enhanced to allow expansion of on-Chip CPU peripherals and to optimize byte efficiency and execution speed. Op codes were reassigned to add new high-power operations and to permit new addressing modes which make the old operations more orthogonal. Efficient use of program memory results from an instruction set consisting of 49 single-byte, 45 tWO-byte and 17 three-byte instruc- tions. When using a 12 MHz oscillator, 64 instructions execute in 1/.1s and 45 instructions execute in '2/.Js. The remainin,g instructions (multiply and divide)
interrupt vectors to a separate location in Program Memory for its service program. Each of the five sources can be assigned to either of two priority levels and can be independently enabled and dis- abled. Additionally all enabled sources can be globally disabled or enabled. Each external interrupt is pro- grammable as either level- or transition-activated and is active-low to allow the "wire or-ing" of several interrupt sources to the input pin. The interrupt system is shown diagrammatically in Figure 2.2
2.2.2 1/0 Facilities The 8051 has instructions that treat its 32 I/O lines as 32 individually addressable bits and as four parallel 8-bit ports addressable as Ports 0,1,2 and 3. Ports 0, 2 and 3 can also assume other functions. Port 0 provides the multiplexed low-order address ahd data bus used for expanding the 8051 with standard memories and peripherals. Port 2 provides the high-order address bus when expanding the 8051 with external Program Memory or more than 256 bytes of External Data Memory. The pins of Port 3 can be configured individually to provide ex- ternal interrupt request inputs, counter inputs, the serial port's receiver input and transmitter output, and to generate the control signals used for reading and writing External Data Memory. The generation or use of an alternate function on a Port 3 pin is done automatically by the 8051 as long as the pin
require only 4/.1s. The number of bytes in each instruc- tion and the number of oscillator periods required for execution are listed in the appended 8051 Instruc- tion Set Summary.
AFN-ol482A-03


INPUT LEVEL AND INTERRUPT ENABLE INTERRUPT REQUEST REGISTER: FLAG REGISTERS: SOURCE GLOBAL ENABLE ENABLE
~ ----
EXTERNAL V INTO -
f ..
EXTERNAL V INT1 -
INTERNAL V
TIMER 0
SOURCE
~
VECTOR
I.D.
INTERNAL V
TIMER 1
~
INTERNAL~ V SERIAL
LOW PRIORITY INTERRUPT REQUEST
~l
Figure 2.2. 8051 Interrupt System
pullup resistor of approximately 20K- to 40K-ohms is provided to hold the external driver's loading at a TTL high level. Ports 1, 2 and 3 can sink/source one TTL load.
is configured as an input. The configuration of the ports is shown on the 8051 Family Logic Symbol of Figure 2. 2.2.2.1 OPEN DRAIN I/O PINS Each pin of Port 0 can be configured as an open drain output or as a high impedance input. Resetting the microcomputer programs each pin as an input by writing a one (1) to the pin. If a zero (0) is later written to the pin it becomes configured as an output and will continuously sink current. Re-writing the pin to a one (1) will place its output driver in a high- impedance state and configure the pin as an input. Each I/O pin of Port 0 can sink two TTL loads.
2.2.2:3 MICROPROCESSOR BUS A microprocessor bus is provided to permit the 8051 to solve a wide range of problems and to allow the
upward growth of user products. This multiplexed address and data bus provides an interface com- patible with standard memories, MCS-80 peripherals and the MCS-85 memories that include on-chip programmable I/O ports and timing functions. These are summarized in the 8051 Microcomputer Expan- sion Cdmponents chart of Figure 2.3. When accessing external memory the high-order address is emitted on Port 2 and the low-order address on Port O. The ALE signal is provided for strobing the address into an external latch. The program store enable (PSEN) signal is provided for enabling an external memory device to Port 0 during a read from the Program Memory address space. When the MOVX instruction is executed Port 3 auto- matically generates the read (RD) Signal for enabling an External. Data Memory device to Port 0 or gener- ates the write (WR) signal for strobing the external memory device with the data emitted by Port O. Port o emits the address and data to the external memory through a push/pull driver that can sink/source two
2.2:2.2 QUASI-BIDIRECTIONAL I/O PINS Ports 1, 2 and 3 are quasi-bidirectional buffers. Resetting the microcomputer programs each pin as an input by writing a one (1) to the pin. If a zero (0) is later written to the pin it becomes configured as an output and will continuously sink current. Any pin that is configured as an output will be recon- figured as an input when a one (1) is written to the pin. Simultaneous to this reconfiguration the output driver of the quasi-bidirectional port will source current for two. oscillator periods. Since current is sourced bnly when a bit previously written to a zero
(0) is updated to a one (1), a pin programmed as an input will not source current into the TTL gate that is driving it if the pin is later written with.anoth.er one (1). Since the quasi-bidirectional output driver sources current for only two oscillator periods, an internal
TTL loads. At the end of the read/write bus cycle Port 0 is automatically reprogrammed to its high
tNT ROST 0 · PORT "Ft · ~


I/O Expander 8 Line I/O Expander Low Cost I/O Expander 12 (Shift Register)
Standard EPROMs 2758 1 K x 8 450 ns Light User programmable and P 9 Erasable erasable. 2716-1 2K x 8 350 ns Light P 11 Erasable 2732 4K x 8 450 ns Light P 9 Erasable 2732A 4K x 8 250 ns Light P 12 Erasable
Standard RAMs 2114A 1Kx4100nsRAM Data memory can be D 12 2148 1 K x 4 70 ns RAM easily expanded using D 12 2142-2 1 K x 4 200 ns RAM standard NMOS RAMs. D 12 "' C Multiplexed Address/ 8185A 1 K x 8 300 ns RAM D 12
Universal Peripheral 8041A ROM Program Memory User programmable to D/P 12/11.7 Interfaces 8741A EPROM Program perform custom I/O and D/P 12/11.7 Memory control functions.
Memories with 8155-2 256 x 8 330 ns RAM D 12 on-chip I/O and 8355-2 2K x 8 330 ns ROM P 11.6 Peripheral Functions. 8755-2 2K x 8 330 ns EPROM P 11.6
Figure 2.3. 8051 Microcomputer Expansion Components
2.2.3 Timer/Event Counters The 8051 contains two 16-bitcountersformeasuring time intervals, measuring pulse widths, counting events and generating precise, periodic interrupt re- quests. Each can be programmed independently to operate similar toan 80488-bittimerwith divide by32 prescaler or as an 8-bit counter with divide by 32 pre- scaler (Mode 0), as a 16-bit time-interval or event counter (Mode 1), or as an 8-bittime-interval orevent counter with automatic reload upon overflow (Mode 2).
impedance state and Port 2 is returned to the state it had prior to the bus cycle. The 8051 generates the address, data and control signals needed by memory and I/O devices ina manner that minimizes the requirements placed on external program and data memories. At 12 MHz, the Program Memory cycle time is 500ns and the access times required from stable address and PSEN are approximately 320ns and 150ns respectively. The External Data Memory cycle time is 1J,Js and the access times required from stable address and from read (RD) or write (WR) command are approximately 600ns and 250ns respectively.
Additionally, counter 0 can be programmed to a mode that divides it into one 8-bit time-interval or


event counter and one 8-bit time-interval counter
(Mode 3). When counter 0 is in Mode 3, counter 1 can be programmed to any of the three aforementioned modes, although it cannot set an interrupt request flag or generate an interrupt. This mode is useful because counter 1's overflow can be used to pulse the serial port's transmission-rate generator. Along with their multiple operating modes and 16-bit pre- cision, the counters can also handle very high input frequencies. These range from 0.1 MHz to 1.0 MHz (for 1.2 MHz to 12 MHz crystal) when programmed for an input that is a division by 12 of the oscillator frequency and from 0 Hz to an upper limit of 50 KHz to 0.5 MHz (for 1.2 MHz to 12 MHz crystal) when programmed for external inputs. Both internal and external inputs can be gated to the counter by a second external source for directly measuring pulse widths. The counters are started and stopped under software contro/. Each counter sets its interrupt request flag when it overflows from all ones to all zeros (or auto- reload value). The operating modes and input sources are summarized in Figures 2.4A and 2.4B. The effects of the configuration flags and the status flags are shown in Figures 2.5A and 2.5B. 2.2.4 Serial Communications The 8051 has a serial I/O port that is useful for serially linking peripheral devices as well as multiple 8051s through standard asynchronous protocols with full-duplex operation. The serial port also has a synchronous mode for expansion of I/O lines using CMOS and TTL shift registers. This hardware serial communications interface saves ROM code and permits a much higher transmission rate than could be achieved through software. In response to a serial port interrupt request the CPU has only to read/write the serial port's buffer to service the serial link. A block diagram of the serial port is shown in Figure 2.6. Methods for linking UART (universal asynchro- nous receiver/transmitter) devices are shown in
Figure 2.4.A Timer/Event Counter
Modes 0, 1 and 2
Figure 2.4.B Timer/Event Counter 0 In Mode 3
COUNTER 0
MODE 0: .·BIT TIMER WITH 5·BIT PRESCALER/
.·BIT COUNTER WITH 5·BIT PRESCALER MODE 1: 16·BIT TIMER/COUNTER MODE 2: .·BIT AUTO·RELOAD TIMER/COUNTER MODE 3: .·BIT TIMER COUNTER (TLO)
XTAL1
Figure 2.S.A Timer/Counter 0 Control and Status Flag Circuitry
GATE COUNTER/TiMER RUN


TIMERI COUNTER 0 IN MODE 3
PULSE TO SERIAL PORT
COUNTER 1
MODE 0: S-BIT TIMER WITH PRESCALERI
8-BIT COUNTER WITH PRESCALER MODE 1: 16-BIT TIMER/COUNTER MODE 2: S-BIT AUTO-RELOAD TIC MODE 3: PREVENTS INCREMENTING OF TIC 1
Figure 2.5.8 Timer/Counter 1 Control and Status Flag Circuitry ,------ -------~N;,;T;;;--I
I I I I I I I
,---------, INTERRUPT
r-----*iU ___ ...,.. ..... ___ J-----.--~~~~SMIT
I L ________ L-_--_--_--_----_--_--_----_--.....I--'-~;~:IVE
Figure 2.6.A Serial Port-Synchronous Mode 0
.10 OR 11 BIT FRAME I- ~R~S;;"T-;; - 1
t____ ..,-.~~~~SMIT 4__ -,.., ___ '"
I I I I I
CRYSTAL OSCILLATOR
TIMER 1 OVERFLOW
RECEIVER
=:;-;=;-:;:=-:;;;=-=:;-;;=I::;N=T=ER;:-R=U:;:P~T======c;;;;If__-~~i!1VE
Figure 2.6.8 Serial Port-UART Modes 1, 2, and 3


i J
TXD -
TXD RXD TXD RXD TXD RXD RXD TXD TXD RXD TXD RXD
TXD PORT PIN CTS
RXD ~
8051 8051 6051 8051 8051 8051
A. MULTI-80s1 INTERCONNECT -HALF DUPLEX B. MULTI-80s1 INTERCONNECT -FULL DUPLEX
Figure 2.7. UART Interfacing Schemes
Figure 2.7 and a method for 110 expansion is shown in Figure 2.8. The full-duplex serial I/O port provides asyn- chronous modes to facilitate communications 'vvith
standard UART devices, such as printers and CRT terminals, or communications with other 8051s in
multi-processor systems. The receiver is double buffered to eliminate the overrun that would occur if the CPU failed to respond to the receiver's interrupt before the beginning of the next frame. Double buffer- ing of the transmitter is not needed since the 8051 can generally maintain the serial link at its maximum rate without it. A minor degradation in transmission rate can occur in rare events such as when the servic- ing of the transmitter has to wait for a lengthy inter- rupt service program to complete. In asynchronous modes, false start-bit rejection is provided on re- ceived frames. For noise rejection a best two-out-of- three vote is taken on three samples near the center of each received bit.
CLOCK
PORT PIN
EN
B. 1/0 OUTPUT EXPANSION
Figure 2.8. 1/0 Expansion Technique
When interfacing with standard UART devices the serial channel can be programmed to a mode (Mode 1) that transmits/receives a ten-bit frame or pro- grammed to a mode (Mode 2 or 3) that transmits/ receives an eleven-bit frame as shown in Figure 2.9. The frame consists of a start bit, eight or nine data bits and a stop bit. In Modes 1 and 3, the transmission- rate timing circuitry receives a pulse from counter 1 each time the counter overflows. The input to counter
START 7·BIT DATA PARITY~
2 STOP {"
TYPICAL START 7-81T DATA MARK STOP
CRT
I I I START 8-BIT DATA PARITY STOP r I
1 can be an external source or a division by 12 of the oscillator frequency. The auto-reload mode of the counter provides communication rates of 122 to 31,250 bits per second (including start and stop bits) for a 12 MHz crystal. In Mode 2 the communication
MULTI- STAAT 8-BIT DATA ADDRi STOP PROCESSOR DATA COMMUNICA-
rate is a division by 64 of the oscillator frequency yielding a transmission rate of 187,500 bits per second (including start and stop bits) for a 12 MHz crystal. Distributed processing offers a faster, more power- ful system than can be provided by a single CPU processor. This results from a hierarchy of intercon- nected processors, each with its own memories and
10 S-BITS ~DATA EXPANSION
---... eLK
Figure 2.9. Typical Frame Formats


It is also the multiplexed low-order address and data bus when using external memory. It is used for data input and output during programming and verifica- tion. Port 0 can sink/source two TTL loads.
1. Slaves-Configure serial port to interrupt CPU if the received ninth data bit is a one (1). 2. Master-Transmit frame containing address in first 8 data bits and set ninth data bit (Le. ninth data bit designates address frame). 3. Slaves-Serial port interrupts CPU when address frame is received. Interrupt service program compares received address to its address. The slave which has been addressed recon- figures its serial port to interrupt the CPU on all subsequent trans- missions. 4. Master-Transmit control frames and data frames (these will be accepted only by the previous.ly addressed slave).
Port 1 Port 1 is an S-bit quasi-bidirectional I/O port. It is used for the low-order address byte during program- ming and verification. Port 1 can sink/source one TTL load. Port 2 Port 2 is an S-bit quasi-bidirectional 110 port. It also emits the high-order 8 bits of address when accessing external memory. It is used for the high-order address and the control signals during programming and verification. Port 2 can sink/source one TTL load.
Port 3 Port 3 is an S-bit quasi-bidirectional I/O po.rt. It also contains the interrupt, timer, serial port and RD and WR pins that are used by various options. The out- put latch corresponding to a special function must be programmed to a one (1) for that function to operate. Port 3 can sink/source one TTL load. The special functions are assigned to the pins of Port 3, as follows: -RXD/data (P3.0). Serial port's receiver data input
Communications
I/O. In multiprocessing, a host 8051 microcomputer controls a multiplicity of 8051s configured to operate simultaneously on separate portions of the program, each controlling a portion of the overall process. The interconnected 8051s reduce the load on the host processor and result in a low-cost system of data transmission. This form of distributed process- ing is especially effective in systems where controls in a complex process are required at physically separated locations.
(asynchronous) or data input/output (synchro- nous). - TXD/clock (P3.1). Serial port's. transmitter data
output (asynchronous) or clock output (synchro- nous). -INTO (P3.2). Interrupt 0 input or gate control input
for counter O. -INT1 (P3.3). Interrupt 1 input or gate control
In Modes 2 and·3 the automatic wake-up of slave processors through interrupt driven address-frame recognition is provided to facilitate interprocessor communications. The protocol for interprocessor communications is shown in Figure 2.10.
input for counter 1. - TO (P3.4). Input to counter O. - T1 (P3.5). Input to counter 1. - WR (P3.6). The write control signal latches the data byte from Port 0 into the External Data Memory. - RD (P3.7). The read control signal enables External
In synchronous mode (Mode 0) the high speed serial port provides an efficient, low-cost method of expand- ing I/O lines using standard TTL and CMOS shift registers. The serial channel provides a clock output for synchronizing the shifting of bits to/from an external register. The data rate is a division by 12 of the oscillator frequency and is 1 M bits per second at 12 MHz.
Data Memory to Port O.
RSTIVPD A low to high transition on this pin (at approximately 3V) resets the S051. If VpD is held within its spec (approximately +5V). while VCC drops below spec, VpD will provide standby power to the RAM. When VpD is low, the RAM's current is drawn from VCC· A small internal resistor permits power-on reset using only a capacitor connected to VCC· ALE/PROG Provides Address Latch Enable output used for latching the address into external memory during normal operation. Receives the program pulse
VSS Circuit ground potential. Vee +5V power supply during operation, programming and verification. Port 0 Port 0 is an S-bit open drain bidirectional I/O port.


input during EPROM programming. PSEN The Program Store Enable output is a control signal that enables the external Program Memory to the bus during normal fetch operations. EAIVOO When held at a TTL high level, the 8051 executes instructions from the internal ROM/EPROM when the PC is less than 4096. When held at a TTL low level, the 8051 fetches all instuctions from external
assembly language instructions into machine exe- cutable object code. These assembly language mnemonics are easier to program and are more readable than binary or hexidecimal machine in- structions. Also, by allowing the programmer to give symbolic names to memory locations rather than absolute addresses, software design and debug are performed more quickly and reliably.
ASM51 provides symbolic access forthe many use- ful addressing methods in the 8051 architecture which reference bit, nibble and byte locations.
Program Memory. The pin also receives the 21V EPROM programming supply voltage. XTAL1 Input to the oscillator's high gain amplifier. A crystal or external source can be used. XTAL2 Output from the oscillator's amplifier. Required when a crystal is used.
The assembler supports macro definitions and calls. This provides a convenient means of program- ming a frequently used code sequence only once. The assembler also provides conditional assembly capabilities. Cross referencing is provided in the symbol table listing, which shows the user the lines in which each symbol was defined and referenced.
If an 8051 program contains errors, the assembler provides a comprehensive set of error diagnostics, which are included in the assembly listing.
The object code generated may be used to program the 8751 EPROM version of the chip or sent to Intel for fabricating the 8051 ROM version. The assembler output can also be debugged using the
ICE-51 in-circuit emulator.
8048 to 8051 Assembly Language Converter Utility Program (CONV51) The 8048 to 8051 assembly language converter is a utility to help users of the MCS-48 family of micro- computers upgrade their designs to the high per- formance 8051 architecture. By converting 8048 source code to 8051 source code, the investment in software developed for the 8048 is maintained when the system is upgraded.
8051 Emulation Board (EM-51) The EM-51 8051 emulation board is a small (2.85" x 5.25") board which emulates an 8031/8051/8751 microcomputer using standard PROMs or EPROMs in place of the 8051's on-chip program memory. The board includes a modified 8051 microcomputer, supporting circuits, and two sockets for program memory. The user may select two 2716 EPROMs, a 2732 EPROM, or two 3636 bipolar PROMs depend- ing on crystal frequency and power requirements.
8051 Software Development Package (ASM51 and CONV51) The 8051 software development package provides development system support for the powerful 8051 family of single chip microcomputers. The package contains a symbolic macro assembler and a 8048 to 8051 source code converter. This diskette-based software package runs under ISIS-II on any Intellec® Microcomputer Development System with 64K bytes of memory.
8051 In-Circuit Emulator (ICE-51™) The 8051 In-Circuit Emulator resides in the Intellec development system. The development system interfaces with the user's 8051 system through an in-cable buffer box with the cable terminating in an 8051 pin-compatible plug. Together these replace the 8051 device in the system. With the emulator plug in place, the designer can exercise the system in real-time while collecting up to 255 instruction


cycles of real-time data. In addition, he can single step the system program. Static RAM memory is available in the ICE-51 buffer box to emulate the 8051 's internal and external pro- gram memories and external data memory. The designer can display and alter the contents of the replacement memory in the ICE-51 buffer box, internal 8051 registers, internal data RAM, and Special Function Registers. Symbolic reference capability allows the designer to use meaningful symbols provided by ASM51 rather than absolute values when examining and modifying these mem- ory, register, flag, and I/O locations in his system.
Programmer is an Intellec system peripheral cap- able of programming and verifying the 8751 when the UPP-851 is inserted. Programming and verifica- tion operations are initiated from the Intellec de- velopment system console and are controlled by the Universal PROM Mapper (UPM) program. 8051 Workshop The workshop provides the design engineer or system designer hands-on experience with the 8051 microcomputers. The course includes explanation of the Intel 8051 architecture, system timing and input/output design. Lab sessions will allow the attendee to gain detailed familiarity with the 8051 family and support tools. INSITE™ Library The INSITE Library contains 8051 utilities and applications programs.
Universal PROM Programmer Personality Card (UPP-851) The UPP-851 is a personality card for the UPP-103 Universal PROM Programmer. The Universal PROM
'COMMENT: Stresses above those listed under "Absolute MaxImum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this speCification is not implied. Exposure to absolute maximum rating con- ditions for extended periods may affect device reliability.
CONDITIONS; T A = O· C TO 70· C; VCC = SV ± 5%; VSS = OV
Typ Max Units Test Conditions
VIL Input Low Voltage (All except XTAL 1) -0.5
VIL 1 Input Low Voltage (XTAL1) -0.5
VIH Input High Voltage 2,0 (All ExceptXTAU. RSTIVPD)
VIH1 Input High Voltage (XTAL 1) TBD
VIH2 Input High Voltage (RST) 3,0
VIH3 Input High Voltage (VpD) 4,5
5,5 V Power Down Only (Vee = 0)
VOL Output Low Voltage (All Outputs Except Port 0)
0.45 V 10L =2 mA
VOU Output Low Voltage (Port 0)
0.45 V 10L =4 mA
VOH Output High Voltage (All Outputs 2.4 Except Port O. ALE and J5'S"Bij)
VOH1 Output High Voltage (ALE and PSEN, 2,4 Port 0 In External Bus Mode)
ILO Pullup Resistor Current (P1, P2. P3)
-250 /JA .45Vs VIN sVCC
IL01 Output Leakage Current (PO)
:t.10 }JA .45VSVIN sVce
ICC Power Supply Current
150 mA TA=25· C
IPD Power Down Supply Current
20 mA T A= 25° C, VpD = 5V, Vce=OV
CIO Capacitance Of I/O Buffer
10 pF fc=1 MHz
Symbol Parameter Min · Vec+0,5 V


A.C.CHARACTERISTICS
CONDITIONS: TA = O°C TO 70°C; VCC=5V±5% Port 0, ALE and PSEN Outputs - CL = 150 PF;
All Other Outputs - CL = 80PF
Variable Clock 12M Hz Clock 1/TCLCL=1.2 MHz to 12 MHz
TCLQi.. Oscillator Period 83 ns ns
TCY Min Instruction Cycle Time 1.0 I1s 12TCLCL 12TCLCL ns
TLHLL ALE Pulse Width 140 ns 2TCLCL-30 ns
TAVLL Address Set Up To ALE 45 ns TCLCL-40 ns
TLLAX Address Hold After ALE 50 ns TCLCL-35 ns
TPLPH PSEN Width 230 ns 3TCLCL-20 ns
TLHLH PSEN, ALE Cycle Time 500 ns 6TCLCL ns
TPLDV PSEN To Valid Data In 150 ns 3TCLCL-100 ns
TPHDX Input Data Hold After PSEN 0 ns 0 ns
TPHDZ Input Data Float After PSEN 75 ns TCLCL-10 ns
TAVDV Address To Valid Data In 320 ns 5TCLCL-100 ns
TAZPL Address Float To PSEN 0 ns 0 ns
12MHz Clock Variable Clock
Symbol Parameter Min. Max. Units Min. Max. Units
TRLRH RD Pulse Width 400 ns 6TCLCL-100 ns
TWLWH WR Pulse Width 400 ns 6TCLCL-100 ns
TRLDV RDTo Valid Data In 250 ns 5TCLCL-170 ns
TRHDX Data Hold After RD 0 ns 0 ns
TRHDZ Data Float After RD 100 ns 2TCLCL-70 ns
TAVDV Address To Valid Data In 600 ns 9TCLCL-150 ns
TAVWL Address To WR or RD 200 ns 4TCLCL-130 ns
TOVWH Data Setup Before WR 400 ns 7TCLCL-180 ns
TWHOX Data Held After WR 80 ns 2TCLCL-90 ns
Address setup and hold time from ALE are the same for data and program memory.


T12 Tl T2 T3 T4 T5 T& T7 T6 T9 Tl0
TIl T12 T1 T2
ALE
PORT 2
OR
PORTO
Program Memory Read Cycle
ALE
PSEN
TRLRH
PORT 2 ADDRESS A15-AS
ADD SFR
RESS OR P2
r---TRHDZ ---- r--
~TAYWL
TRLDYI+-
TAYDY
TRHDX-
LOAT }@ ORF
PORTO INSTR IN IFLOAT)< A7AO
FLOAT )< DATA IN
FLOAT
RESS
Data Memory Read Cycle
ALE
PSEN
TWLWH
ADDR SFRP
ESSOR 2
PORT 2 ADDRESS AIS-As
TQYWH
TWHQX--!
ADDR ESS
PORTO (INSTR IN IFLOAT)< A7-AO DATA OUT
OAT OR FL
Data Memory Write Cycle
AFN-01462A-13
RD, Wii


Interrupt Response Timf3: To finish execution of current instruction, respond to the interrupt request, push the PC and to vector to the first instruction of the interrupt service program requires 38 to 81 oscillator periods (3 to 7 ps @12MHz).
Internal Data Ram location (0-127) or a SFR (i.e. I/O port, control register, status register, etc. (128-255). -8-bil Internal Data RAM location (!f-255) addressed in-
directly through register Rl or RO. -8-bit constant included in instruction.
-1~bit constant included in instruction. #data #datal6 addr16 -16-bit destinatien address. Used by LCALL & LJMP. A
INSTRUCTION FLAG INSTRUCTION FLAG C OV AC C OV AC ADD X X X CLR C 0 AD DC X X X CPL C X SUBB X X X ANL C, bit X MUL 0 X ANL C,Ibit X DIV 0 X ORL C, bit X DA X ORL C,Ibit X RRC X MOV C, bit X RLC X CJNE X SETB C 1
branch can be anywhere within the 64K-byte Program Memory address space. addrll
-II-bit destination address. Used by ACALL &AJMP. The
branch will be within the same 2K-byte page of program memory as the first byte of the following instruction. -Signed (two's complement) 8-bit offset byte. Used by
SJMP and all conditional jumps. Range is -128 to +127 bytes relative to first byte of the following Instruction. -Direct Addressed bit in Internal Data RAM or Special
Function Register. - New operation not provided by 8048/8049.
'Note that operations on SFR byte address 208 or bit addresses 209- 215 (I.e. the PSW or bits in the PSW) will also affect flag settings.
Oscillalor Mnemonic Description Bytes Periods MOV A,Rn Move register to A 1 12 'MOV A,data Move direct byte to A 12 MOV A,@Ri Move indirect RAM to A 12 MOV A,#data Move immediate data to A 12 MOV Rn,A Move A to register 12 'MOV Rn,dala Move direct byte to register 24 MOV Rn,#data Move immediate data to 12 register 'MOV data,A Move A to direct byte 12 'MOV data,Rn Move register to direct byte 24 'MOV data,data M6ve direct byte to direct 24 byte 'MOV data,@Ri Move indirect RAM to direct 24 byte 'MOV data,#data Move immediate data to 24 direct byte MOV@Ri,A Move A to indirect RAM 12 'MOV @Ri.data Move direct byte to indirect 24 RAM MOV @Ri,#data Move immediate data to 12 indirect RAM 'MOV DPTR, Move 16-bit constant to Data 24 #datal6 Pointer 'MOV C,bit Move direct bit to carry 12 'MOV bit,C Move carry to di rect bit 24 'MOVC A,@A+ Move Program Memory byte 24 DPTR addressed by A+DPTR to A 'MOVC A,@A+PC Move Program Memory byte 24 addressed by A+PC to A MOVX A,@Ri Move External Data (8-bil 24 address) to A 'MOVX A,@DPTR Move External Data (16-bit 24 address) to A MOVX @Ri,A Move A to External Data 24 (8-bit address) 'MOVX @DPTR,A Move A to External Data 24 (16-bit address) 'PUSH data Move direct byte to stack 24 and inc. SP 'POP data Move direct byte from stack 24 and dec. SP XCH A,Rn Exchange register with A 12 'XCH Adata Exchange direct byte with A 12 XCH A,@Ri Exchange indirect RAM 12 with A XCHD A,@Ri Exchange indirect RAM's 12 least sig nibble with A's LSN
Oscillator Mnemonic Description Bytes Periods ANL A,Rn AND register 10 A 1 12 'ANL A.data AND direcl byte to A 12 ANL A,@Ri AND indirect RAM to A 12 ANL A,#dala AND immediate data to A 12 'ANL data,A AND A to direct byte 12 'ANL data,#data AND immediate data to direct 24 byte 'ANL G,bit AND direct bit to carry 24 'ANL C,Ibit AND complement of direct bit 24 to carry ORL A,Rn OR reg ister to A 12 'ORL A,data OR direct byte to A 12 ORL A,@Ri OR indirect RAM to A 12 ORL A,#data OR immediate data to A 12 'ORL dataA OR A to direct byte 12 'ORL data,#data OR immediate data to direct 24 byte 'ORL C,bit OR direct bit to carry 24 'ORL C,Ibit OR complement of direct bit 24 to carry XRL A,Rn Exclusive-OR register to A 12 'XRL A,data Exclusive-OR direct byte to A 12 XRL A,@Ri Exclusive-OR indirect RAM 12 to A XRL A,#data Exclusive-OR immediate 12 data to A 'XRL data,A Exclusive-OR A to direct byte 12 , XRL data,#data Exclusive-OR immediate 24 data to direct byte 'SETB C Set carry 12 'SETS bit Set direct bit 12 CLR A Clear A 12 CLR C Clear carry 12 'GLR bit Clear direct bit 12 CPL A Complement A 12 CPL C Complement carry 12 'CPL bit Complement direct bit 12 RL A Rotate A Left ·1 12 RLC A Rotate A Left through carry 12 RR A Rotate A Right 12 RRC A Rotate A Right through carry 12 SWAP A Rotate A left four (exchange 12 nibbles wi.thin A)
All mnemonics copyrlghled@ Intel Corporation 1980.

![Intel mcs-48 — inter 8031/8051/8751 ~!ru~lLO[M]OOO&'!ruW diagram (page 259)](/cdn/reader/9a/9acabeee08ff2a6f4c642f2cc01a53e64b11049295ad968d4877186556043cf6/images/rimg-259.webp)
Arithmetic Control Transfer (Branch) Oscillator Oscillator Mnemonic Oescrlptlon Bytes Periods Mnemonic Description Bytes Periods ADD A,An Add register to A 1 12 AJMP addr 11 Absolute Jump 2 24 "ADD A,data Add direct byte to A 2 12 "LJMP addr16 Long Jump 3 24 ADD A,@Ai Add indirect AAM to A 12 "SJMP rei Short Jump 24 ADD A,#data Add immediate data to A 12 "JMP @A+DPTA Jump indirect relative to 24 ADDC A,An Add register and carry flag to A 12 the DPTA "ADDC A,data Add direct byte and carry flag 12 JZ rei Jump if A is zero 24 to A JNZ rei Jump if A is not zero 24 ADDCA,@Ai Add indirect RAM and carry 12 JC rei Jump if carry is set 24 flag to A JNC rei Jump if carry is not set 24 ADDC A,#data Add immediate data and carry 12 "JB bit,rel Jump relative if direct bit 3 24 flag to A is set "SUBB A,An Subtract register and carry flag 12 • JN8 bitt rei Jump relative if direct bit 3 24 from A is not set "SUBB A,data Subtract direct byte and carry 12 "JBC bit,rel Jump relative if direct bit 24 flag from A is set, then clear bit "SUBBA,@Ai Subtract indirect RAM and 12 "CJNE A,data,rel Compare direct byte to A 3 24 carry flag from A & Jump if not Eq. "SUBB A,#data Subtract immediate data and 12 See Note 8. carry flag from A "CJNE A.#data,rel Compare immed. to A & Jump 3 24 INCA Increment A 12 jf not Eq. See Note a. INC An Increment register 12 "CJNE An,#data, Compare immed. to reg & 3 24 "INC data Increment direct byte 12 rei Jump if not Eq. See Note a. INC@Ai Increment indirect RAM 12 "CNJE@Ri, Compare immed. to indirect 3 24 DECA Decrement A 12 #data,rel AAM & Jump if not Eq. DEC An Decrement register 12 See Note a. "DEC data Decrement direct byte 12 DJNZ An,rel Decrement register & Jump 3 24 "DEC@Ai Decrement indirect RAM 12 if not zero "INC DPTR Increment Data Pointer 24 "DJNZ data,rel Decrement direct byte & 24 "MUL AB Multiply A times B 48 Jump if not zero "DIVAB Divide A by B 48 Note a) Set C if the first operand is less than the second operand; DAA Decimal add Adjust of A 12 else clear
Oscillator Mnemonic Description Bytes Periods Other ACALL addrll Absolute Subroutine Call 2 24 Oscillator LCALL addr16 Long Subroutine Call 3 24 Mnemonic Description Bytes Periods AET Return from Subroutine Call 24 NOP No Operation 1 12 AETI Return from Interrupt Call 24
All mnemonics copyrlghted@ Intel Corporation 1980"
Control Transfer (SubrOUtine)




Compatible MCS-48™ Components
.,
,
"
"
,
h'


2114A 1024 X 4 BIT STATIC RAM
The Intele> 2114A is a 4096-bit static Random Access Memory organized as 1024 words by 4-bits using HMOS, a high per- formance MOS technology. It uses fully DC stable (static) circuitry throughout, in both the array and the decoding, therefore it . requires no clocks or refreshing to operate. Data access is particularly simple since address setup times are not required. The data is read out non destructively and has the same polarity as the input data. Common input/output pins are provided.
The 2114A is designed for memory applications where the high performance and high reliability of HMOS, low cost, large bit storage, and simple interfacing are important design objectives. The 2ll4A is placed in an la-pin package for the highest possible density.
It is directly TTL compatible in all respects: inputs, outputs, and a single +5V supply. A separate Chip Select (CS) lead allows easy selection of an individual package when outputs are or-tied.
A, Vee Ao A ® -ill-GND II,; , A, A, 1/°1 ® A, As ROW MEMORY ARRAY Ao (i') SELECT 64 ROWS
As '-' 64 COLUMNS Ao 110, @ A, A, Ao 1/°1 @ As A,
A, 110, A. 1/°3 IIO,@ A, 1/°3 A,
1/° 4 A, 1/°4 IIO,@
WE A. 110,@ WE es
AO-Ag ADDRESS INPUTS Vee POWER 1+5VI o = PIN NUMBERS
WE WRITE ENABLE GND GROUND C! CHIP SELECT 1/01-1/04 OATA INPUT/OUTPUT
INTEL CORPORATION ASSUMES NO RESPONSIBILITY FOR THE USE OF ANY CIRCUITRY OTHER THAN CIRCUITRY EMBODIED IN AN INTEL PRODUCT. NO OTHER CIRCUIT PATENT LICENSES ARE IMPLIED. ·.INTEL CORPORATION, 1977. 1979 DECEMBER. 1979 8-1


Temperature Under Bias -lOoC to 80°C Storage Temperature -6SoC to 1S0°C Voltage on any Pin
·COMMENT: Stresses. above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device.
This is a stress rating only and functional operation ofthe device at these or any other conditions above those indicated in the operational sections of this specification is not implied. Ex- posure is not implied. Exposure to absolute maximum rating conditions for extended· periods may affect device reliability.
With Respect to Ground -3.SV to +7V Power Dissipation 1.0W D.C. Output Current SmA
TA = O°C to 70°C, Vee = sv ± 10%, unless otherwise noted.
2114AL-1/L-2/L-3/L-4 SYMBOL PARAMETER Min. Typ.111
2114A-4/-S Min. Typ.lll Max. UNIT CONDITIONS
Max.
III Input Load Current (All Input Pins)
10 /lA V ,N ~ 0 to 5.SV
IILOI 1/0 Leakage Current
10 /lA CS ~ V'H
VI/O = GND to VCC
IcC Power Supply Current 25
50 70 mA Vee = max, 11/0 = 0 mA, TA = DoC
VIL Input Low Voltage -3.0
-3.0 O.B V
VIH Input High Voltage 2.0
10L Output Low Current 2.1 9.0
2.1 9.0 mA VOL = O.4V
10H Output High Current -1.0 -2.5
-1.0 -2.5 mA VOH ~ 2.4V
IOsI2) Output Short Circuit Current
TA = 2SoC, f = 1.0 MHz
SYMBOL TEST
MAX
UNIT CONDITIONS
pF V'/O ~ OV
pF VIN = OV
Input Pulse Levels 0.8 Volt to 2.0 Volt
Input Rise and Fall Times 10 nsec
Input and Output Timing Levels 1.5 Volts
Output Load 1 TTL Gate and CL = 100 pF
40 mA · CliO Input/Output Capacitance · CIN Input Capacitance


A.C. CHARACTERISTICS TA = O'C to 70'C. Vee" 5V ± 10%. unless otherwise noted.
2114AL-1 2114AL-2 2114AL-3 2114A-4/L-4 2114A-5
SYMBOL PARAMETER Min. Max. Min. Max. Min. Max. Min. Max. Min. Max. UNIT
tRC Read Cycle Time 100 120 150 200 250 ns
tA Access Time 100 120 150 200 250 ns
tco Chip Selection to Output Valid 70 85 ns
tcx Chip Selection to Output Active 10 ns
toro Output 3-state from Deselection 30 35 40 50 60 ns
tOHA Output Hold from Address Change 15 ns
2114AL-1 2114AL-2 2114AL-3. 2114A-4/L-4 2114A-S
SYMBOL PARAMETER Min. Max. Min. Max. Min. Max. Min. Max. Min. Max. UNIT
twc Write Cycle Time 100 120 150 200 250 ns
tWR Write Release Time 0 ns
torw Output 3-state from Write 30 35 40 50 60 ns
tow Data to Write Time Overlap 70 70 90 120 135 ns
tOH Data Hold from Write Time 0 ns
I------toc-------I i------tA--------i
ADDRESS
ADDRESS -..II'-------------i--'l'---
0c~ l"""" f/I I I III I III II,
® ~\\'\
-tor=!
NOTES:
DOUT


NORMAUZED ACCESS TIME VS.
NORMALIZED ACCESS TIME VS.
AMBIENT TEMPERATURE
,:$ ---
~ o 0.9 w I 08 :.---
$. c· 0.9 i
o. 7
o. 7
o. 6
o. 5
o. 5
4.75 5.00 5.25
NORMALIZED ACCESS TIME VS.
OUTPUT LOAD CAPACITANCE
VS. AMJlIENT TEMPERATURE
1.3 /
/
./' ,,/
o i
$ Q w !:lI
0.7 100 150
0.5 o
OUTPUT SINK CURRENT
VS. OUTPUT VOLTAGE
VS. OUTPUT VOLTAGE
/ /
/ /
~ K
~
V OH (V)
VOL (V)


The Intel® 2316E is a 16,384-bit static, N-channel MaS read only memory (ROM) organized as 2048 words by 8 bits. Its high bit density is ideal for large, non-volatile data storage applications such as program storage. The three-state outputs and TTL input/output levels allow for direct interface with common system bus structures. The 2316E single +5V power supply and 450 ns access time are both ideal for usage with high performance microcomputers such as the Intel MCSTM-80 and MCSTM-85 devices.
A cost-effective system development program may be implemented by using the pin compatible Intel 2716 16K UV EPROM for prototyping and the lower cost 2616 PROM and 2316E ROM for production. The three 2316E programmable chip selects may be defined by the user and are fixed during the masking process. To simplify the conversion from 2716 prototyping to 2316E production, it is recommended that the 2316E programmable chip select logic levels be defined the same as that shown in the below data sheet pin configuration. This pin configuration and these chip select logic levels are the same as the 2716.
AS A. A, • .. es,
A, CS2 A, A. 0, D. Os AS
PIN NAMES
A,
A.


Ambient Temperature Under Bias 10°C to BOoC Storage Temperature 65°C to +150°C Voltage On Any Pin With Respect
·COMMENT: Stresses above those listed under "Absolute Maxi- mum Ratings" may cause permanent damage to the device. This Is a stress rating only and functional operation of the devica at these or at any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability .
to Ground -0.5V to +7V Power Dissipation ' 1.0 Watt
T A = O°C to +70°C. Vee = 5V ±10%. unless otherwise specified.
UNIT TEST CONDITIONS MIN. TYP.(11 MAX.
ILl Input Load Current 10 IlA VIN = 0 to 5.25V (All Input Pins)
ILOH Output Leakage Current 10 IlA Chip Deselected. VOUT = 4.0V
ILOL Output Leakage Current -20 IlA Chip Deselected. VOUT = O.4V
ICC Power Supply Current 7D 120 mA All Inputs 5.25V Data Out Open
VIL Input "Low" Voltage -0.5 0.8 V
VIH Input "High" Voltage 2.4 Vee+1.OV V
VOL Output "Low" Voltage 0.4 V IOL = 2.1 mA
VOH Output "High" Voltage 2.4 V IOH =- 400 IlA
T A = O°C to +70°C. Vee = +5V ±10%. unless otherwise specified.
SYMBOL PARAMETER
UNIT MIN. MAX.
tA Address to Output Delay Time 450 ns
teo Chip Select to Output Enable Delay Time 120 ns
tOF Chip Deselect to Output Data Float Delay Time 10 100 ns
CAPACITANCE121 TA = 25°C. f = 1 MHz
Output Load ........... 1 TTL Gate and CL = 1bo pF
TYP. MAX.
Input Pulse Levels 0.8 to 2.4V Input Pulse Rise and Fall Times (10% to 90%) 20 ns Timing Measurement Reference Level
CIN All Pins Except Pin Under 5pF 10 pF Test Tied to AC Ground
COUT All Pins Except Pin Under 10 pF 15 pF Test Tied to AC Ground
tested.


1------ tco ------"'I
PROGRAMMABLE
CHIP SELECTS
~----------IA------------~
DATA OUTPUT ----=HIGHZ~--~~~~~~~~~~-OU-T~TV-ALIO~~~JlJJI
Typical System Application (8K )( 8 ROM Memory)
\ ADDRESS BUS
I I \ CONTROL BUS
J
_Ll I \ DA.TA BUS
MEMR At2 An An-Al0
eli CHIP ROM SELECT Fll
.. veS3 '3 1 DECODER
liNTEL t--- 82051 t- C!2 es, I +5V es, ~~ r- '--- ~ ~ C!2 cs,l ROM +5V eS3 V
os. es, ROM +SV eS3 • 0 - 2316E


2708 8K (1 K x 8) UV ERASABLE PROM
Max. Power Max. Access
The Intel@ 2708 is an 8192-bit ultraviolet light erasable and electrically reprogrammable EPROM, Ideally suited where fast turnaround and pattern experimentation are Important requirements. All data Inputs and outputs are TTL com- patible during both the read and program modes. The outputs are three-state, allowing direct interface with common system bus structures.
The 2708L at 425mW is available for systems requiring lower power dissipation than from the 2708. A power dissipation savings of over 50% without any sacrifice in speed is obtained with the 2708L. The 2708L has high input noise Immunity and is specified at 10% power supply tolerance. A high-speed 2708-1 is also available at 350ns for microprocessors requiring fast access times.
The 2708 family is fabricated with the N-channel silicon gate FAMOS technology and is available in a 24-pln dual in-line package.
BLOCK DIAGRAM
DATA OUTPUT
00-07 I
A. A.
A. ~.
A, CSNIE
V GATING
A, PROGRAM
ADDRESS INPUTS A. A sA._ A,- A._ ~-
X DECODER
64 X 128 ROM ARRAY
PIN CONNECTION DURING READ OR PROGRAM
PIN NAMES
PIN NUMBER
ADDRESS DATA I/O INPUTS 9-11. 1-8. V,. PROGRAM Voo CStwE MODE 13·17 22.23 12 18 19 20 READ DOUT AIN GND GND +12 VIL DESELECT HIGH IMPEDANCE DON'TeARE GND GND +12 V,H PROGRAM D,N A'N GND PULSED +12 VIHW NY
01..()a DATA OUTPUTS/INPUTS C /WE CHIPSELECT/WRITE ENABLE INPUT
Va. Vee 21 2' -s +5 -5 +s -5 +s
INTEL CORPORATION ASSUMES NO RESPONSIBllITV FOR THE USE OF ~NV CIRCUITRV OTHER THAN CIRCUITRV EMBODIED IN AN INTEL PRODUCT. NO OTHER CIRCUIT PATENT LICENSES ARE IMPLIED.
@INTELCORPORATION 1980 January 1980 . 8-8 AFN-ol104A-ol


PROGRAMMING The programming specifications are described in the Data Catalog PROM/ROM Programming Instructions Section. Absolute Maximum Ratings*
Temperature Under Bias Storage Temperature Voo With Respect to VBB VCC and Vss With Respect to VBB All Input or'Output Voltages With Respect
_25°C to +85°C _65°C to +125°C
Stresses above those listed under" Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these·or any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
+20V to -0.3V +15V to -0.3V
to VBB During Read +15V to -0.3V CSIWE Input With Respect to VBB
During Programming +20V to -0.3V Program I nput With Respect to VBB " +35V to -0 3V Power Dissipation 1.5W
Temperature Range 0·C-70·C 0·C-70·C
0·C-70·C 0·C-70·C 5V±5% 5V±10% 12V±5% 12V ± 10% -5V±5% -5V±10%
Vcc Power Supply 5V±5% 5V±5%
Voo Power Supply 12V±5% 12V±5% VBB Power Supply -5V±5% -5V:t.5%
D.C. AND OPERATING CHARACTERISTICS
2708.2708·1.2708,8 Limit. 2708L Limits Symbol Parameter Unit. Te.t Conditions Min. Typ.12I Max. Min. Typ.l2l Max.
ILl Address and Chip Select Input Sink 1 10 1 10 ~A VIN = 5.25V or VIN = VIL Current
ILO Output Leakage Current 1 10 1 10 ~A VOUT = 5.5V, CSJWE = 5V
100[31 Voo Supply Current 50 65 21 28 mA Worst Case Supply Currents[4]
IcC[3] Vcc Supply Current 6 10 2 4 mA All Inputs High;
IBB[3] VBB Supply Current 30 45 10 14 mA CSWE=5V;TA=0'C
VIL Input Low Voltage Vss 0.65 Vss 0.65 V
VIH Input High Voltage 3.0 VCC+1 2.2 Vcc+1 V
VOL Output Low Voltage 0.45 0.4 V 10L = 1.6mA (2706. 2708-1, 2708-6)
10L = 2mA (2706L)
VOH1 Output High Voltage 3.7 3.7 V 10H= -100~A
VOH2 Output High Voltage 2.4 2.4 V 10H= -lmA
PO Power Dissipation 600 325 mW TA=70'C
NOTES: 1. VBB must be applied prior to Vcc and Voo. VBB must also be the last power supply switched ofl. 2. Typical values are for TA = 25'C and nominal supply voltages. 3. The total power dissipation Is not calculated by summing the various currents (100• Icc, and IBB) multiplied by their respective vol· tages since current paths exist between the various power supplies and Vss. The 100. Icc. and IBB currents should be used to deter· mine power supply capacity only. 4. IBB for the 2708L Is specified in the programmed state and is lSmA maximum In the unprogrammed state.
2708 2708·1 · 425 mW TA=O'C · 8-9 AFN-Qll04A-Q2


2708,2708·1, AND 2708·6 RANGE OF SUPPLY CURRENTS
VS. TEMPERATURE
VS. TEMPERATURE ACCESS TIME VS. TEMPERATURE
i 1 1 TTL LOAD + l00pF
80 ~ ALL POSSIBLE OPERATING CONDITIONS:
-- -- -- - ,..--
VCC " 5.25V \fOO ~ 12.6V 400 Vea = -5.25V
20D
.~~~~~hH~cJ o 20 40 80 80 100 ~ 20 TA,r e)
40 60 80 TAf'C)
20 4. 80 8.
A.C. CHARACTERISTICS
2708, 2708L Limits 2708·1 limits Min. Max. Min. Max.
2708·6 Limits Min. Max. Units
t ACC Address to Output Delay
tco Chip Select to Output Delay 120 120 160 ns
tOF Chip Deselect to Output Float 0 120
0 120 0 160
tOH Address to Output Hold 0
CAPACITANCE [1] TA = 25°C, f = 1 MHz
Symbol Parameter Typ. Max. Unit. Conditions
CIN I nput Capacitance 4 6 pF VIN = OV
2.8V for inputs; 0.8V and.2.4V for outputs. Input Pulse Levels: 0.65V to 3.0V
COUT Output Capacitance 8 12 pF VOUT =OV


VALID K
ADDRESSES
ADDRESSES
CS/WE
I----+-- tACC (31-------1 toH
OUTPUT _____ ...:.:.HI:;;:G:.:.H,:,Z ____ -f+~H~+_~H++_t_< ~ HIGH Z VALID OUTPUT
NOTES:
4.~1;7~~~~~I~~iri ~R'6::~'OR ADDRESS CHANGE, WHICHEVER OCCURS FIRST.
The erasure characteristics of the 2708 family are such that erasure begins to occur when exposed to light with wave- lengths shorter than approximately 4000 Angstroms (A). It should be noted that sunlight and certain types of fluores- cent lamps have wavelengths in the 3000-4000A range. Data show that constant exposure to room level fluores- cent lighting could erase the typical device in approxi- mately 3 years, while it would take approximately 1 week to cause erasure when exposed to direct sunlight. If the 2708 is to be exposed to these types of lighting conditions for extended periods of time, opaque labels are available from Intel which should be placed over the 2708 window to prevent unintentional erasure.
The recommended erasure procedure (see Data Catalog PROM/ROM Programming Instructions Section) for the 2708 family is exposure to shortwave ultraviolet light which has a wavelength of 2537 Angstroms (A). The inte- grated dose (j,e" UV intensity X exposure time) for erasure should be a minimum of 15 W-sec/cm2. The erasure time with this dosage is approximately 15 to 20 minutes using an ultraviolet lamp with a 12000 /J.W/cm2 power rating, The device should be placed within 1 inch of the lamp tubes during erasure, Some lamps have a filter on their tubes which should be removed before erasure,


The intei® 2716 is a 16,384·bit ultraviolet erasable and electrically programmable read-only memory (EPROM). The 2716 operates from a single 5·volt power supply, has a static standby mode, and features fast single address location program- ming. It makes designing with EPROMs faster, easier and more economical.
The 2716, with its single 5-volt supply and with an access time up to 350 ns, is ideal for use with the newer high performance +5V microprocessors such as Intel's 8085 and 8086. A selected 2716-5 and 2716-6 is available for slower speed applications. The 2716 is also the first EPROM with a static standby mode which reduces the power dissipation without increasing access time. The maximum active power dissipation is 525 mW while the maximum standby power dissipation is only 132 mW, a 75% savings.
The 2716 has the simplest and fastest method yet devised for programming EPROMs - single pulse TTL level programming. No neeo for high voltage pulsing because all programming controls are handled by TTL signals. Program any location at any time-either individuallY, sequentially or at random, with the 2716's single address location programming. Total programming time for all 16,384 bits is only 100 seconds.
MODE SELECTION
I~
CE/PGM OE v" Vee OUTPUTS I,a, 120' ,2', 1241 19·11,13.171 MODE
A6
Read V'L V'L '5 +6 DOUT
Program Pulled VIL to V1H VIH .2. '5 DIN
BLOCK DIAGRAM
00 ·01 --
Yccc>--.-
data sheet for specifications
"o-A,O ADDRESSES C IPGM CHIP ENABI.E/PROGRAM DE OUTPUT ENABLE 0-0 OUTPUTS
AFN-008' 1 A-01


PROGRAMMING The programming specifications are described in the Data Catalog PROM/ROM Programming Instructions Section.
Temperature Under Bias 10°C to +80°C 'COMMENT: Stresses above those listed under "Absolute Max;· mum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sec- tions of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
Respect to Ground +6V to -0.3V Vpp Supply Voltage with Respect
DC and AC Operating Conditions During Read
2716 2716-1 2716-2 2716-5 2716-6
Temperature Range O°C _ 70°C O°C _ 70°C O°C _ 70°C O°C _ 70°C OoC _ 70°C
Vcc Power Supply[1.2] 5V ±5% 5V ±10% 5V ±5% 5V ±5% 5V ±5%
Vpp Power Supply[2] Vcc Vcc Vcc VCC VCC
READ OPERATION D.C. and Operating Characteristics
Limits Conditions Symbol Parameter Typ.[3] Unit Min. Max.
III Input Load Current 10 f.lA VIN = 5.25V
ILO Output Leakage Current 10 f.lA VOUT = 5.25V
IpPl [2] Vpp Current 5 mA Vpp = 5.25V
ICCl [2] Vcc Current (Standby) 10 25 mA CE = VIH. OE = VIL
ICC212] V cc Current (Active) 57 100 mA O"E=cr=VIL
VIL I nput Low Voltage -0.1 0.8 V
VIH Input High Voltage 2.0 Vcc+1 V
VOL Output Low Voltage 0.45 V IOL = 2.1 mA
VOH Output High Voltage 2.4 V IOH = -400f.lA
ACCESS TIME
ACCESS TIME
vs. TEMPERATURE
vs. CAPACITANCE
vs. TEMPERATURE
~ -
Cl:=Vll vccr v --
f-- -
~ .- 300
T
o 10 W ~ 40 ~ M ro M
o 100 200 300 400 500 600 700 MO
o 10 W ~ ro ~
TEMPERATURE ('C)
AFN-00811A'()2


A.C. Characteristics
2716 2716-1 2716-2 2716-5 2716-6 Test Symbol Parameter Conditions Min. Max. Min. Max. Min. Max. Min. Max. Min. Max.
tACC Address to Output Delay 450 350 390 450 450 CE=OE=VIL
tCE CE to Output Delay 450 350 390 490 650 OE = VIL
tOE Output Enable to Output Delay 120 120 120 160 200 CE=VIL
tOF Output Eneble High to Output Float 0 100 0 100 0 100 0 100 0 100 CE=VIL
tOH Output Hold from Addresses, CE or 0 CE = OE = VIL DE Wh iehever Oeeu rred First
Symbol Parameter Typ.
Max. Unit
Output Load: 1 TTL gate and CL = 100 pF Input Rise and Fall Times: ';;;20 ns
CIN Input Capacitance 4
COUT Output Capacitance 8 12 I I I
pF VOlJT = OV I
Timing Measurement Rp.fp.renr.e Leve!:
Inputs 1 V and 2V Outputs 0.8V and 2V
A. C. Waveforms [1]
ADDRESSES
VALID
CE--------------~--~
5E--------------~----------~
1'' +-


A8-15 1-_--+ .
ADDRESS ALE ~t ., LATCH
o This scheme accomplished by using CE (PO) as the primary decode. OE (CS) is now controlled by previously unused
signal. RO now controls data on and off the bus by way of OE.
o A selected 2716 is available for systems which require CE access of less than 450 ns for decode network operation.
o The use of a PROM as a decoder allows for:
a) Compatibility with upward (and downward) memory expansion.
b) Easy assignment of ROM memory modules, compatible with PUM modular software concepts.
SK, 16K, 32K, 64K 5V EPROM/ROM FAMILY PRINTED CIRCUIT BOARD LAYOUT
o c,
RD~t ~~ ~ 8085


OUTPUT OR-TIEING
The erasure characteristics of the 2716 are such that erasure
Because 2716's are usually used in larger memory arrays, Intel has provided a 2 line control function that accomo- dates this use of multiple memory connections. The two line control function allows for:
begins to occur when exposed to light with wavelengths shorter than approximately 4000 Angstroms (A). It should be noted that sunlight and certain "types of fluorescent lamps have wavelengths in the 3000-4000A range. Data show that constant exposure to room level fluorescent
a) the lowest possible memory power dissipation, and b) complete assurance that output bus contention will
lighting could erase the typical 2716 in approximately 3 years, while it would take approximatley 1 week to cause erasure when exposed to direct sunlight. If the 2716 is to be exposed to these types of lighting conditions for ex· tended periods of time, opaque labels are available from
not occur.
To most efficiently use these two control lines, it is recom- mended that CE (pin 18) be decoded and used as the primary device selecting function, while OE (pin 20) be made a common connection to all devices in the array and connected to the READ line from the system control bus. This assures that all deselected memory devices are in their low power standby mode and that the output pins are only active when data is desired from a particular memory device.
Intel which should be placed over the 2716 window to prevent unintentional erasure.
The recommended erasure procedure (see Data Catalog
PROM/ROM Programming Instruction Section) for the 2716 is exposure to shortwave ultraviolet light which has a wavelength of 2537 Angstroms (A). The integrated dose (i.e., UV intensity X exposure time) for erasure should be a minimum of 15 W-sec/cm 2. The erasure time with this dosage is approxirnatdy i 5 to 20 minutes using an uitra- violet lamp with a 12000 pW/cm2 power rating. The 2716 should be placed within 1 inch of the lamp tubes during erasure. Some lamps have a filter on their tubes which should be removed before erasure.
Initia;Jy, cmu oTter each erasure, aii bits of the 2/10 are in the "1" state. Data is introduced by selectively program- ming "O's" into the desired bit locations. Although only "O's" will be programmed, both "l's" and "O's" can be presented in the data word. The only way to change a "0" to a "1" is by ultraviolet light erasure.
The 2716 is in the programming mode when the Vpp power supply is at 25V and OE is at V IH. The data to be pro- grammed is applied 8 bits in parallel to the data output pins. The levels required for the address and data inputs are TTl.
The five modes of operation of the 2716 are listed in Table
I. It should be noted that all inputs for thefive modes are at TTL levels. The power supplies required are a +5V V cc and a Vpp. The Vpp power supply must be at 25V during the three programming modes, and must be at 5V in the other two modes.
When the address and data are stable, a 50 msec, active high, TTL program pulse is applied to the CE/PGM input. A program pulse must be applied at each address location to be programmed. You can program any location at any time - either individually, sequentially, or at random. The program pulse has a maximum width of 55 msec. The 2716 must not be programmed with a DC signal applied to the CE/PGM input.
CE/PGM DE Vpp Vee OUTPUTS (181 (201 (211 (24) (9.11,13-17)
Read V'L V'L +, +, DOUT
Standby V'H Don't Care +, +, High Z
Program Pulsed VIL to VIH V'H +25 +, D'N
Program Verify V'L V'L +2' +, DOUT
Programming of multiple 2716s in parallel with the same data can be easily accomplished due to the simplicity of the programming requirements. like inputs of the paral- leled 2716s may be connected together when they are pro- grammed with the same data. A high level TTL pulse applied to the CE/PGM input programs the paralleled 2716s. PROGRAM INHIBIT
Program Innibit V'L V'H +2' +, High Z
READ MODE The 2716 has two control functions, both of which must be logically satisfied in order to obtain data at the outputs. Chip Enable (CE) is the power control and should be used for device selection. OUtput Enable (OE) is the output control and should be used to gate data to the output
pins, independent of device selection. Assuming that addresses are stable, address access time (tACC) is equal to the delay from CE to output (tCE). Data is available at the outputs 120 ns (tOE) after the falling edge of OE, assuming that CE has been low and addresses have been stable for at least tACC - tOE, STANDBY MODE
Programming of multiple 2716s in parallel with different data is also easily accomplished. Except for CE/PGM, all like inputs (including OE) of the parallel 2716s may be common. A TTL level program pulse applied to a 2716's CE/PGM input with Vpp at 25V will program that 2716. A low level CE/PGM input inhibits the other 2716 from
being programmed.
The 2716 has a standby mode which reduces the active power dissipation by 75%, from 525 mW to 132 mW. The 2716 is placed in the standby mode by applying a TTL high signal to the CE input. When in standby mode, the outputs are in a high impedence state, independent of the DE input.
A verify should be performed on the programmed bits to determine that they were correctly programmed. The verify may be performed wth V pp at 25V. Except during pro- gramming and program verify, Vpp must be at 5V.
AFN-00911 A-oS


The Intel 2732A Is a 5Vonly, 32,384 bit ultraviolet erasable and electrically programmable read-only memory (EPROM). It Is pin compatl~le to Intel's 450ns 2732. The standard 2732A's access time is 250ns with speed selection (2732A-2) available at 200ns. The access time is compatible to high performance microprocessors, such as the 8mHz 8086-2. In these systems, the 2732A allows the microprocessor to operate without the addition of WAIT states.
An Important 2732A feature is the separate output control, Output Enable (OE), from the Chip Enable control (CE). The OE control eliminates bus contention in multiple bus microprocessor systems. Intel's Application Note AP-72 describes the microprocessor system implementation of the OE and CEcontrols on Intel's EPROMs. AP-72 Is available from Intel's Literature Department.
The 2732A has a standby mode which reduces the power dissipation without increasing access time. The maximum active current Is 150mA, while the maximum standby current is only 35mA, a 75% saving. The standby mode Is achieved by applying a TTL-high signal to the CE input.
The 2732A Is fabricated with HMOS*-E technology, Intel's high speed N-channel MOS Silicon Gate Technology.
MODE SELECTION ~ MODE
CE OENpp Vcc OUTPUTS (18) (20) (24) (9·11,13·17)
VIL VIL -+;5 DOUT
As A8 A, Ag
VIH Don't Care +5 High Z
VIL Vpp +5 DIN
A3 OE A. A,O
VIL VIL +5 DOUT
VIH Vpp +5 High Z
AO
00 0, 0, o. 0,
GND 03
DATA OUTPUTS
('(For total compatibility from 2732A provide a trace to pin 26
PIN NAMES
Y·GATING
AQ-A" ADDRESS
CE CHIP ENABLE ~ OUTPUT ENABLE °o-Or OUTPUTS
32.788·8IT CELL MATRIX
·HMOS Is a patented process of Intel Corporation.


The Intel'" 8205 decoder can be used for expansion of systems which utilize input ports, output ports, and memory components with active low chip select input. When the 8205 is enabled, one of its 8 outputs goes "low", thus a single row of a memory system is selected. The 3·chip enable inputs on the 8205 allow easy system expansion. For very large systems, 8205 decoders can be cascaded such that each decoder can drive 8 other decoders for arbitrary memory expansions.
The 8205 is packaged in a standard 16-pin dual in-line package, and its performance is specified over the temperature range of oDe to +75°e, ambient. The use of Schottky barrierdlode clamped transistors to obtain fast switching speeds results in higher performance than equivalent devices made with a gold diffussion process.
Ao 16 V.cc Ao
A2 3 14 0, A2
E, 4 13 °2 8205 8205 E2 5 12 03
0, 10 °5 E2
GRD 8 0 6 EJ
ADDRESS ENABLE OUTPUTS PIN NAMES Ao A, A, E, E, E3 0 1 2 3 • 0 6 )
L H L H L H H L H AO· A2 ADDRESS INPUTS L Ii L L L H H H L H L L L H L H L L H L L H L H H H E ,. E3 ENABLE INPUTS 00· 0, DECODED OUTPUTS H L H L L H L H H l H H L L H L H L L H L X X X L L L H X X X H L L H X X X L H L H X X X H H L H X X X H L H X X X L H X X X H
8-18 AFN-00204B-ol


The 8205 contains a one out of eight binary decoder. It ac· cepts a three bit binary code and by gating this input, creates an exclusive output that represents the value of the input code.
A.z
For example, if a binary code of 101 was present on the AO, A 1 and A2 address input lines, and the device was enabled, an active low signal would appear on the 05 outputJine. Note that all of the other output pins are sitting at a logic high, thus the decoded output is said to be exclusive. The decoders outputs will follow the truth table shown below in the same manner for all other input variations.
ENABLE GATE
When using a decoder it is often necessary to gate the out·
puts with timing or enabling signals so that the exclusive output of the decoded value is synchronous with the overall system.
The 8205 has a built-in function for such gating. The three enable inputs (~, ~, E3) are ANDed together and create. a single enable signal for the decoder. The combination of both active "high" and active "low" device enable inputs provides the designer with a powerfully flexible gating func- tion to help reduce package count in his system.
Figure 1. Enable Gate
OUTPUTS 0 1 2 3 4 5 6 7
Ao A, A2 E, E2 E3
L H H L H L H L L L H H H L L L H L L H L L H H L H L L H L H H L L H L L H X X X L L L X X X H L L X X X L H L X X X H H L X X X H L H X X X L H H X X X H H H
L H L H L H L H L H L H L H L H


ray of 8205s can be used to create Ii simple interface to a 24K memory system.
The 8206 can be used in a wide variety of applications in microcomputer systems. I/O ports can be decoded from the address bus, chip select signals can be generated to select memory devices and the type of machine state such as in 8008 systems can ~ derived from a simple decoding of the state lines (SO, S1, S2) of the 8008 CPU.
The memory devices used can be either ROM or RAM and are 1 K in storage capacity. 8308s and 81 02s are the devices typically used for this application. This type of memory de- vice has ten (10) address inputs and an active "low" chip select (CS). The lower order address bits AO·A9 which come from the microprocessor are "bussed" to all memory ele-
ments and the chip select to enable a specific device or group of devices comes from the array of ~206s. The output of the 8206 is active low so it is directly compatible with the memory components.
Shown in the figure below is a typical application of the 8206. Address input lines are decoded by a group of 8206s (3). Each input has a binary weight. For example, AO is as· signed a value of 1 and is the LSB; A4 is assigned a value of
Basic operation is that the CPU issues an address to identify a specific memory location in which it wishes to "write" or "read" data. The most significant address bits A 10·A 14 are decoded by the array of 8206s and an exclusive, active low, chip select is generated that enables a specific memory de· vice. The least significant address bits AO.A9 irt.!I1tify !! specific location within the selected device. Thus, all ad' dresses th roughout the entire memory array are exclusive
16 and is: the MSB. By connecting them to the decoders as shown, an active low signal that is exclusive in nature and represents the value of the input address lines, is available at the outputs of the 8206s.
This circuit can be used to generate enable signals for I/O
ports or any other decoder related application. Note that no external gating is required to decode up to 24 exclusive devices and that a simple addition of an inverter or two will allow expansion to even larger decoder net· works.
in nature and are non·redundant.
This technique can be expanded almost indefinitely to sup·
port even larger systems with the addition of a few inverters and an extra decoder (8205).
> ~~MORIES
Using a very similar circuit to the I/O port decoder, an ar·
A",----~_I ... ,---~+-I A,,---.-1--+--1
A,
A,
A,
A,
E1 .. '3
A 13 --..,-H+-q A 14 -_-t-H-+-q
E,
E, '3 .. A,
A, -T"1-t--t-1t--ClI 'N -+-t-t--t-t---t
A.
A,
A,
OS;; cr,; CHIP es;; SELECTS es;;
f1 8205 PORT 12 NUMBERS
E1 r, '3 .. A,
Eii-+-IH-+t-
A,
!!Iii an
A,
A,
A,
E,
E, '3
Figure 2. 1/0 Port Decoder
Figure 3. 32K Memory Interface
8-20 AFN-0020411-03


Probably the most overlooked application of the 8205 is that of a general purpose logic element. Using the "on-chip" enabling gate, the 8205 can be configured to gate its de- coded outputs with system timing signals and generate strobes that can be directly connected to latches, flip-flops and one-shots that are used throughout the system.
and T2 decoded strobes can connect directly to devices like 8212s for latching the address information. The other de- coded strobes can be used to generate signals to control the system data bus, memory timing functions and interrupt structure. RESET is connected to the enable gate so that strobes are not generated during system reset, eliminating accidental loading.
An excellent example of such an application is the "state decoder" in an 8008 CPU based system. The 8008 CPU is- sues three bits of information (SO, S1, S2) that indicate the nature of the data on the Data Bus during each machine state. Decoding of these signals is vital to generate strobes that can load the address latches, control bus discipline and general machine functions.
The power of such a circuit becomes evident when a single decoded strobe is logically broken down. Consider fi out- put, the boolean equation for it would be:
T1 ~ (SO'S1'S2)-(SYNC'Phase 2'Reset)
A six input NAND gate plus a few inverters would be need- ed to implement this function. The seven remaining outputs would need a similar circuit to duplicate their function, obviously a substantial savings in components can be achieved when using such a technique .
In the figure below a circuit is shown using the 8205 as the "state decoder" for an 8008 CPU that not only decodes the SO, S1, S2 outputs but gates these signals with the clock
(phase 2) and the SYNC output of the 8008 CPU. The T1
2 '3 1'1 .. 11 1'2 -, " T3
S, I I I T1I T1 T2 WAIT T3 STOP T' TO
I Sill I - I 2-..u I
1 I .. ill I OUTPUTS 0 I FROM ill I I I ,- I 8200 W I 7 W I I .. w---r Iff
12 STOP E, 3" .- ru
SYSTEM RESET
So ., "
STATE 0 1 0 T1 0 1 1 T1I 0 0 1 T2 0 0 0 WAIT 1 0 0 T3 1 1 0 STOP 1 1 1 T' 1 0 1 T5
Figure 4. 8205 State Decoder Circuit
So · State Control Coding


'COMMENT Stresses above those listed under "Absolute Maximum Rat- ing" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or at any other condition above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
Storage Temperature -65°C to +160oC
All Output or Supply Voltages
-0.5 to +7 Volts
All I nput Voltages
-1.0 to +5.5 Volts
Output Currents 125 mA
TA = O·C to + 75·C, Vee = 5V ± 5%
LIMIT MIN. MAX. UilJiT TEST CONDiTiONS
-0.25 mA Vee - 5.25V, V F - 0.45V
10 ~A Vee = 5.25V, VR = 5.25V
Ve INPUT FORWARD CLAMP VOLTAGE
-1.0 V Vee = 4.75V, Ie = -5.0 mA
Val OUTPUT "LOW" VOLTAGE
0.45 V Vee - 4.75V, IOl - 10.0 mA
2.4 V Vee = 4.75V, IOH = -1.5 mA
0.85 V Vee = 5.0V
2.0 V Vee = 5.0V -40 -120 mA Vee = 5.0V, VOUT = OV
Ise OUTPUT HIGH SHORT
Vox OUTPUT "LOW" VOLTAGE
0.8 V Vee = 5.0V, lox = 40 mA
Icc POWER SUPPLY CURRENT -
70 mA Vee = 5.25V
OUTPUT CURRENT VS. OUTPUT CURRENT VS. OUTPUT "LOW" VOLTAGE
DATA TRANSFER FUNCTION
100 TA '" 75°C ___ Y
r-- ~cc J 50~ flV I HIt. ~ 25"C
I _I. vee'" s.ov f- -
TA~25"C~ -., ~
TA=O°C- ~ TA~-~ /I , I i If i J I b
Vee'" 5.0V I ~ TA '" DOC 80 -10
i# -20
TA - DOC
60 J
'I 1\ I\'<
TA " 25"C M f..\
40 '"
TA "" 75"C f--I \ ! \
TA ~ 75"C~ ~
/, ~ TA. '" DOC 20 -40 .,M r-- ,
I ,\ \.. ~ ~
I TA.= 25"C o -50 o .2 .4 .6 .8 1.0
1.0 2.0 3.0 4.0 5.0
.2 .4 ,6 .8 1.0 1.2 1.4 1.6 1.B 2.0
OUTPUT "lOW" VOL TAGE (V)
INPUT VOL TAGE (V)
AFN-00204B-05
SYiviBOL PARAMETER


Conditions of Test:
Measurements are made at 1.5V
All Transistors 2N2369 or Equivalent. CL = 30 pF
INPUT PULSE
OUTPUT
A.C. CHARACTRISTICS
TA = DOG to + 75°G, Vee = 5V ± 5% unless otherwise specified.
UNIT TEST CONDITIONS . - ---.- .. .-~-.--.- ns ._ ,-- ns
t -+ ADDRESS OR ENABLE TO 18
_.- ---" ns -- "-_._- .. - ns . - pF f = , MHz. Vee = ov pF VSIAS = 2.0V. TA < 250 e
t+_ OUTPUT DELAY 18
ADDRESS OR ENABLE TO OUTPUT DELAY VS. AMBIENT TEMPERATURE
20 " I.,ov Vee CL 30 pF
Vee'" 5.0V
'5 I I I, • I_ I ------ .. ------ I '0--·--
~ 15 I---------+-
0 '" w -' "' " iii '" 0
w -' "' " iii '" '01------1o
~ '" o 51
oL__ L__ L__ L-_~ o 50 '00 '50 200
0 _I
0 25 50 75
AMBIENT TEMPERATURE. {"Cl


8212 8-BIT INPUT/OUTPUT PORT
The 8212 input/output port consists of an 8-bit latch with 3-state output buffers along with control and device selection logic. Also included is a service request flip-flop for the generation and control of interrupts to the microprocessor.
The device is multi mode in nature. It can be used to implement latches, gated buffers or multiplexers. Thus, all of the principal peripheral and input/output functions of a microcomputer system can be implemented with this device.
LOGIC DIAGRAM
SERVICE A~UEST FF
MO INT
01, 01.
IT> os, [i]> oS2
DO, DO.
01 2 017 002 007
013 DI. 003 DO.
BUFFER
IT> 0', ---------++t
OATA LATCH
GNO OS2
[B>o', -------=-+t
Vo'3 ----------t-+t
[E> D '. --------I-+t
PIN NAMES
GD ~'s -------+-H
IT> D '6 ---------7--H
~ D', --------++1
0> D'B ----------'--+i
IE> Cl R -----4


The (SR) flip-flop is used to generate and control interrupts in microcomputer systems. It is asynchron- ously set by the CLR Input (active low). When the (SR) flip- flop is set it Is In the non-Interruptl!lg state.
The 8 flip-flops that make up the data latch are of a "0" type design. The output (0) of the flip-flop will follow the data Input (0) while the clock Input (C) Is high. Latching will occur when the clock (C) returns low.
The output of the (SR) flip-flop (0) is connected to an inverting input of a "NOR" gate. The other Input to the "NOR" gate is non-inverting and Is connected to the device selection logic (OS1 • OS2). The output of the "NOR" gate (00) Is active low (interrupting state) for connection to active low Input priority generating circuits.
The latched data Is cleared by an asynchronous reset Input (CIA). (Note: Clock (C) Overrides Reset (CLR).)
The outputs of the data latch (0) are connected to 3-state, non-Inverting output buffers. These buffers have a common control line (EN); this control line either enables the buffer to transmit the data from the outputs of the data latch (0) or disables the buffer, forcing the output Into a high Impedance state. (3-state)
\
The high-impedance state allows the designer to connect the 8212 directly onto the microprocessor bl-directional data bus.
Il> D " --------++1
The 8212 has control inputs OS1, OS2, MO and STB. These inputs are used to control device selection, data latching, output buffer state and service request flip-flop.
[Z> D '3 --------r-+1
DS1, DS2 (Device Select)
These 2 inputs are used for device selection. When OS1 Is low and OS2 is high (OS1 • OS2) the device is selected. In the selected state the output buffer is enabled and the service request flip-flop (SR) is asynchronously set.
I)]> D 's --------++1
I)]> D '6 --------;--+1
This input is used to control the state of the output buffer and to determine the source of the clock input (C) to the data latch.
When MO is high (output mode) the output buffers are enabled and the source of clock (C) to the data latch is from the device selection logic (OS1 • OS2).
When MO is low (input mode) the output buffer state is determined by the device selection logic (OS1 • OS2) and the source of clock (C) to the data latch.ls the STB
(Strobe) input.
STa . MO
3·STATE DATA LATCH DATA LATCH DATA LATCH . DATA IN DATA IN DATA IN
o , 0 • , I 0
, . 0 • " I ' , ':""'\-. 1 0
-INTERNAL SR FLIP· FLOP
This input is used as the ciock (C) to the data latch for the input mode MO = 0) and to synchronously reset the service request flip-flop (SR).
SETS SR FLlp·FLOP INO EFFECT ON OUTPUT BUFFERI


I Basic Schematic Symbol II Gated Buffer III BI-Directlonal Bus Driver IV Interrupting Input Port
V Interrupt Instruction Port VI Output Port ' VII '8080A,$,tatus Latch VIII 8085A'-Address Latch
Two examples of ways to draw the 8212 on system schematics - (1) the top being, the detailed view showing pin numbers, and (2) the bottom being the symbolicview
showing the system input or output as a system bus (bus containing 8 parallel lines). The output to the data bus is symbolic In referencing 8 parallel lines.
INPUT DEVICE
OUTPUT DEVICE
11 STB 4 01 DO 6 8 9 10
16 8212 15 18 (DETAILED)
GND INPUT STROBE----;:=L...,
Vee .. _..c:::;~-- OUTPUT, FLAG
(SYMBOLIC) SYSTEM OUTPUT
SYSTEM INPUT
GND DATA BUS
II. Gated Butter (3-State)
The simplest use of the 82121s that of a gated butter. By tying the mode signal low and the strobe input high, the data latch is acting as a straight through gate. The output buffers are then enabled from the device selection logic DS1 and DS2. '
vcc--~ .---~
INPUT DATA, (250.AI
OUTPUT DATA (15mA) (3.65V MIN)
When the device selection logic is false, the outputs are 3- state. '
When the device selection logic is true, the input data from the system is directly transferred to the output. The input data load Is 250 micro amps. The output data can sink 15 milll amps. The minimum high output is ,3.65 volts.
~


III. BI-Dlrectlonal BUB Driver
A pair of 8212's wired (back-to-back) can be used as a symmetrical drive, bi-directional bus driver. The devices are controlled by the data bus input control which is connected to DS1 on the first 8212 and to DS2 on the second. One device is active, and acting as a straight through buffer the other is in 3-state mode. This is a very useful circuit in small system design.
J.
DATA
,.l
DATA
BUS
:. v
CLR
DATA BUS CONTROL (0= L - RJ (I = R - LJ
~ 8212 L CLR
"
----..J f---Y
GND
IV. Interrupting Input Port
This use of an 8212 is that of a system input port that accepts a strobe from the system input source, which in turn clears the service request flip-flop and interrupts the processor. The processor then goes through a service routine, identifies the port, and causes the device selection logic to go true -enabling the system input data onto the data bus.
INPUT STROBE
BUS
STB
SYSTEM INPUT
SYSTEM RESET
PORT { SELECTION (DS1·DS2J -------' t----- T~c~~0~R~6~JCKT
OR
TO CPU INTERRUPT INPUT
V. Interrupt Instruction Port
The 8212 can be used to gate the interrupt instruction, normally RESTART instructions, onto the data bus. The device is enabled from the interrupt acknowledge signal from the microprocessor and from a port selection signal. This signal is normally tied to ground. (DS1 could be used to multiplex a variety of interrupt instruction ports onto a common bus).
BUS
STB
RESTART INSTRUCTION (RST 0 - RST 7J
(DSIJ PORT SELECTION
INTERRUPT ACKNOWLEDGE --l
"- · ~


VI. Output Port (With Hand-Shaking)
The 8212 can be used to transmit data from the data bus to a system output. The output strobe could be a hand- shaking signal such as "reception of data" from the device that the system is outputting to. It In turn, can interrupt the system signifying the reception of data. The selection of the port comes from the device selection logic.(OS1· OS2)
BUS r---- .... - OUTPUT STROBE
STB
SYSTEM OUTPUT
SYSTEM RESET
PORT SELECTION L--'-' ____ - :~~~2~ONTROL)
SYSTEM INTERRUPT
VII. 808GA Status Latch
Here the 8212 is used as the status latch for an 8080A microcomputer system. Tha input to the 8212 ;atch Is directly from the 8080A data bus. Timing shows that when the SYNC signal is true, which is connected to the OS2 input and the phase 1 signal is true, which is a TTL level coming from the clock generator; then, the status data will be latched into the 8212.
It is shown that the two areas of concern are the bl- di rectional data bus ofthe microprocessor and the control bus.
10 9 8 7 3 4 5 6
0 1 O2 0 3 04 8080A 0 5 06 0 7
19 r!1-
SYNC
DB IN
STATUS
LATCH
22 15 12V" ovJ '- .""" l----,
--4 ~ 7 9 16 18 20
Do 4- ~ rfur,s 8212 P,tffgrt"" r:-
INTA wo 11 T2
STACK HLTA ~1 OUr
BASIC Ml CONTROL ¢2 INP BUS MEMR SYNC CLR DS2 MD OS1
CLOCK GEN.
STATUS
8-28 AFN..(J0731Ao05
} · \11 \12 · Io DRIVER


VIII. 808SA Low-Order Address Latch
The 808SA microprocessor uses a multiplexed address/ data bus that contains the low order 8-bits of address information during the first part of a machine cycle. The same bus contains data at a later time in the cycle. An address latch enable (ALE) signal is provided by the 808SA to be used by the 8212 to latch the address so that it may be available through the whole machine cycle. Note: In this configuration, the MODE input is tied high, keeping the 8212's output buffers turned on at all times.
13 AD, 14 AD2 1S AD3 16 AD4 17 BOSSA AD5 AD6 18
19 AD7
ALE ~
VJc 11 ~DI, STBDO,&
20 r,g-
22 _ 121: f CLR " .';, j~ 1
1 _ Vcc
AFN-00731 A-()6


Stresses above those listed under"Absolu~e Maximum Ratings" mayc~use permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditio'ns above those indicated in the operational sections of this specificaUon is' not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. .
Limits Unit Test Conditions Parameter
Min. Typ. Max.
IF Input Load Current, ACK, OS2, CR, 011-01a Inputs -.25 mA VF = A5V
IF Input Load Current MO Input -.75 mA VF = .45V
IF Input Load Current OSl Input -1.0 mA VF = .45V
IR Input Leakage Current, ACK, OS, CR, 011-01a Inputs 10 p.A VR SVcc
IR Input Leakage Current MO Input 30 p.A VR S Vcc
IR Input Leakage Current OSl Input 40 p.A VR S Vcc
Vc Input Forward Voltage Clamp -1 V Ic = -5mA
VIL Input "Low" Voltage .85 V
VIH Input "High" Voltage 2.0 V
VOL Output "Low" Voltage 045 V IOL = 15mA
VOH Output "High" Voltage 3.65 4.0 V IOH = -1mA
Isc Short Circuit Output Current -15 -75 mA Va = OV, Vcc = 5V
1101 Output Leakage Current High Impedance State 20 p.A Va = .45V/5.25V
Icc Power Supply Current 90 130 mA
Symbol · 8-30 AFNoOO731A-Il7


OUTPUT CURRENT VS. OUTPUT "LOW" VOLTAGE
loor . r ~ __,
Vee - +5.0V
! -100
C ! Iili a: a: :> " I-
TA"O~C V- V'TA ' 25'C i-"'V TA • 75"C
I- ili ~ -150 i3
-2 -1 +1 +2
OUTPUT "LOW" VOLTAGE (V)
OUTPUT CURRENT VS. OUTPUT "HIGH" VOLTAGE
DATA TO OUTPUT DELAY VS. LOAD CAPACITANCE
Vee ~ ~5.0V
i r-----:.-
! -- ~-- i \~"'-- f...- ! _-_1.- ~ 20 -r--r-- ~
10 -.,
50 100 150 ~o 250
DATA TO OUTPUT DELAY
WRITE ENABLE TO OUTPUT DELAY
VS. TEMPERATURE
VS. TEMPERATURE
Vee =+5.0V
Vee = +S.OV
~~----+-----+-----+------+-----~ !
I i ! ~!.. I -- . --,..,
>- 18 :5 ~ I-
~ :> 0 0 Iw -' .. .. ffi w lii: i:
ST~< f---- -" - t+_ os, --
~'\ .. %
r-=:.- os;<
t __ t---- ~ !
10 -25 25 50 75 100
25 50 75 100


Min. Typ.
Max.
tpw Pulse Width 30
tPD Data to Output Delay
tWE Write Enable to Output Delay
tSET Data Set Up Time 15
tH Data Hold Time 20
tR Reset to Output Delay
ts Set to Output Delay
tE Output Enable/Disable Time
te Clear to Output Delay
CAPACITANCE* F = 1MHz. VBIAS = 2.5V. Vee = +5V. TA = 25·C
Typ. Max.
CIN 051 MD Input Capacitance 9pF 12pF
CIN 052. CK. ACK. DI1-Dls Input Capacitance 5pF 9pF
COUT 001-DOs Output Capacitance 8pF 12pF
'This parameter is sampled and not 100% tested.
Input Pulse Amplitude = 2.5V Input Rise and Fall Times 5ns Between 1V and 2V Measurements made at 1.5V with 15mA and 30pF Test Load
Test CL* R1 R2
tPD. tWE. tA. ts. tc 30pF 3000 6000
TO D.U.T.
tEo ENABLE! 30pF 10KO 1KO
tEo ENABLE I 30pF 3000 6000
tEo DISABLE! 5pF 3000 6000
tEo DISABLEI 5pF 10KO 1KO
'Includes probe and jig capacitance.


DATA 1.5V'J:'"-Y,.5V '. ~tpw ../1' 1,-- "I" tH ~
STa or l5S1 • DS2 1.5vl --- ' 1._5V ,...- l-_tw_E::J r ---
1.5V! \1.5V ' l tE -1 r _ ~E~~~WL _ ~-t-D-+ ~ . ;::::::::::;::~ Itpw~
1.5V\ 11.5V I. tC"I, ____ _
_______________ )( .... 1.5_V _____ _ DO
OATA 15VX y1.5V J~ 'I~ tSET - - -r - tH --I
_______ ~_t_PD_j r ___________ _
'OUTPUT _________ --' \ .... 1._5V ____________________ _
STa ______ -J~ .... 1._5V _____________________________ _ Ltpw ------.-- --~-----""\
-=ci
NOTE: ALTERNATIVE TEST LOAD
OUT
eL "::" ·'K
vec'OK · 8-33 AFN-ClO731A-10


The Intel~ 8214 is an 8·level priority Interrupt control unit (PICU) designed to simplify interrupt·driven microcomputer systems.
The PICU can accept 8 requesting levels; determine the highest priority. compare this priority to a software controlled current status register and issue an interrupt to the system along with vector information to identify the service routine.
The 8214 is fully expandable by the use of open collector interrupt output vector information. Control signals are also provided to simplify this function.
The PICU is designed to support a wide variety of vectored interrupt structures and reduce package count in Interrupt· driven microcomputer systems.
'Note: The specifications for the 3214 are Identical with those for the 8214.
LOGIC DIAGRAM
·0 Vee ., Ees ., A;
~ Ra I!!> R; [!D R, I!!> R, I!!> ;;:; ~ "- ~ As ~ R;
A.[D iI,[D A,11!>
SGS A,
'NT R,
elK A, 8214 R, 'NTE
I:!> B, ID s:; II> B, [D SGS l?D EcS
A, A,
A, R,
GNO ETLG
CC>'NTE-----------------~ OC> ~--------------------------~
PIN NAMES
INPUTS
RO-A? REQUEST LEVELS IR7 HIGHEST PRIORITY) 80-82 CURRENT STATUS iGi STATUS GROUP SELECT ECi ENABLE CURRENT STA'JUS INTE INTERRUPT ENABLE ill CLOCK UNT F·FI ELA ENABLE lEVEL READ ETLG ENABLE THIS LEVEL GROUP
REQUEST LEvl:LS }-OPEN INTEARUPT(ACT. LOW) COLLECTOR


ABSOLUTE MAXIMUM RATINGS·
'COMMENT: Stresses above those listed under "Absolute Maximum Rating" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or at any other condition above those indicated in the operational sections of this specifi· cations is not implied. Exposure to absolute maximum ratings for extended periods may affect device reliabilitY.
TA = o°c to +70°C, VCC = 5V ±5%.
Limits Unit Conditions Typ.[l] Max.
Symbol Parameter Min.
Vc Input Clamp Voltage (all inputs)
-1.0 V Ic=-5mA
-.15 -0.5 mA VF=0.45V -.08 -0.25 mA
80 p.A VR=5.25V 40 p.A
Icc Power Supply Current
90 130 mA See Note 2.
.3 .45 V 10l =15mA
3.0 V 10H=-lmA
-35 -55 mA VOs=OV, Vcc=5.0V
100 p.A VCEx=5.25V


A.C. CHARACTERISTICS TA = o°c to +70°C, VCC = +5V ±5%
limits Symbol Parameter Min. Typ.(1) Max. Unit
tCY ClK Cycle Time 80 50 ns
tpw ClK, ECS, I NT Pulse Width 25 15 ns
tlSS INTE Setup Time to ClK 16 12 ns
tlSH INTE Hold Time after ClK 20 10 ns
tETCS[21 ETlG Setup Time to ClK 25 12 ns
tETCH[21 ETlG Hold Time After ClK 20 10 ns
tECCS[21 ECS Setup Time to ClK 80 25 ns
tECCH[31 ECS Hold Time After ClK 0 ns
tECRS[31 ECS Setup Time to ClK 110 70 ns
tECRH[31 ECS Hold Time After ClK 0
tECSH[21 ECS Hold Time After ClK 0 ns
tocs[21 SGS and Bo·B2 Setup Time to ClK 70 50 ns
tOCH[21 SGS and Bo·B2 Hold Time After ClK 0 ns
tRCS[31 Ro·R 7 Setup Time to ClK 90 55 ns
tRCH[31 RO·R7 Hold Time After ClK 0 ns
tiCS INT Setup Time to ClK 55 35 ns
tCI ClK to INT Propagation Delay 15 25 ns
tRIS[41 RO·R7 Setup Time to INT 10 0 ns
tRIH[41 Ro·R7 Hold Time After INT 35 20 ns
tRA Ro·R7 to AO·A2 Propagation Delay 80 100 ns
tELA E lR to Ao·A2 Propagation Delay 40 55 ns
tECA ECS to Ao·A2 Propagation Delay 100 120 ns
tETA ETlG to Ao·A2 Propagation Delay 35 70 ns
tOECS[41 SGS and Bo·B2 Setup Time to ECS 15 10 ns
tOECH[41 SGS and Bo·B2 Hold Time After ECS 15 10 ns
tREN Ro·R7 to EN lG Propagation Delay 45 70 ns
tETEN ETlG to ENlG Propagation Delay 20 25 ns
tECRN ECS to ENlG Propagation Delay 85 90 ns
tECSN ECS to ENlG Propagation Delay 35 55 ns
limits Symbol Parameter Min. Typ.l11 Max Unit
CIN I nput Capacitance 5 10 pF
COUT Output Capacitance 7 12 pF
8-36 "FN·00210"-o3


WAVEFORMS
)(-----------------)( x------- ._-----, :I~-----~j tRCS tRCH tRIS tRIH
ETlG ------- --"'\ ;-------1..------- 1( .... _--------- X
tETCH ------- 1--- --------y -X----- -----------
INTE
'I~ -.II
----------- '~ ~- .... __ J
r---- "\ -------JF P
'ISS
'oECS _~CH 'oes tecss tecsH II 'oCH \ 1:;i
ECRS 'I 'ECRH 'ECCS teecH '
'ECRN ~
'1"--- 'PW -- ----- --- ------ 1-------"\ t--- -----------
tecA 'RA ~ tELA ___ X-... -"'\ --~--- ---f-. tETEN '
(1) Typical values are for T A ~ 25'e ,Vee ~ 5,QV,
(2) Required for proper operation if ISE is enabled during next clock pulse.
(3) These times are not required for proper opera'tion but for desired change in interrupt flip-flop.
(4) Required for new request or status to be properly loaded.
Test Load Circuit VCC
Input pulse amplitude: 2.5 volts.
Input rise and fall times: 5 ns between 1 and 2 volts.
Output loading of 15 mA and 30 pf.
Speed measurements taken at the 1.5V levels.


8216/8226 4·BIT PARALLEL BIDIRECTIONAL BUS DRIVER
The 821618226 Is a 4-blt bidirectional bus driver/receiver_ All Inputs are low power TIL compatible. For driving MOS. the DO outputs provide a high 3.65V "OH, and for high capacitance terminated bus structures, the DB outputs provide a high 50 mA 10L capability. A non-Inverting (8216) and an inverting (8226) are available to meet a wide variety of applica- tions for buffering In microcomputer systems.
LOGIC DIAGRAM
LOGIC DIAGRAM
os. 00,
DB.
01, • .----001,
DB,
DO,
O~ 08,
GNO 0',
0', . 008,
PIN NAMES
01, .---0 DB,
DIo.otl, DATA BUS II·DIRECTIONAL 0'0"'0, DATA INPUT 00.,00 DATA OUTPUT
oo'~---+--~.t-~--~
O'EN DATA IN ENAILE DIRECTION CONTROL i!I CHIP SELECT
~ +~ ~a OlEN ~ __ """ J


FUNCTIONAL DESCRIPTION
Microprocessors like the 8080 are MOS devices and are generally capable of driving a single TTL load. The same is true for MOS memory devices. While this type of drive is sufficient in small systems with few componenu, quite often
08. DO. <>---t--G--+--'
it is necessary to buffer the microprocessor and memories when adding components or expanding to a multi·board system.
08, DO,o---t--G--+--'
The 8216/8226 is a four bit bi-directional bus driver specif· ically designed to buffer microcomputer system components.
08, DO,o---t--G--+--'
Each buffered line of the four bit driver consists of two separate buffers that are tri-state in nature to achieve direct bus Interface and bi-directional capability. On one side of the driver the output of one buffer and the input of another are tied together (DB), this side is used to interface to the system side components such as memories, 1/0, etc., be- cause its interface is direct TTL compatible and it has high drive (50mA). On the other side of the driver the inputs and outputs are separated to provide maximum flexibility. Of course, they can be tied together so that the driver can be used to buffer a true bi-directional bus such as the 8080 Data Bus. The DO outputs on this !ide of the driver have a special high voltage output drive capability (3.65V) so that direct interface to the 8080 and 8008 CPUs is achieved with an adequate amount of noise immunity (350mV worst case).
01, o---t---t~-+---..,
DB, DO, C>---t--c.I--+ '
DO.
Control aatlng OlEN, CS
The CS input is actually a device select. When it is "high" the output drivers are all forced to their high-impedance state. When it is at "zero" the device is selected (enabled) and the direction of the data flow is determined by the OlEN input.
DO,
The OlEN input controls the direction of data flow (see
Figure 1) for complete truth table. This direction control is accomplished by forcing one of the pair of buffers into its high impedance state and allowing the other to transmit its data. A simple two gate circuit is used for this function.
The 8216/8226 is a device that will reduce component count in microcomputer systems and at the same time enhance noise immunity to assure reliable, high performance op- eration.
0 0 01 . DB , 0 DB· 00 t-+ t+ , , } HIGH IMPEDANCE
Figure 1. 821818228 Logic Diagrams


WAVEFORMS
A.C. CHARACTERISTICS
Limits Symbol Parameter Min. Typ.ll) Max. U"nit Conditions
TpOl Input to Output Delay DO Outputs 15 25 ns CL=30pF,R,=300n
Tp02 Input to Output Delay DB Outputs
8216 19 30 ns " CL =300pF, R 1 =90n
16 25 ns R2 = 180n
Te Output Enable Time
42 65 ns (Note 2)
36 54 ns (Note 3)
TO Output Disable Time
16 35 ns (Note 4)
Test Load Circuit
Input pulse amplitude of 2.5V. I nput rise and fall times of 5 ns between 1 and 2 volts. Output loading is 5 mA and 10 pF. Speed measurements are made at 1.5 volt levels.
OUT O---T------+
",
CAPACITANCEIII
Limits Min. Typ.(1) Max.
Test Conditions VBIAS = 2.5V, Vee = 5.0V, TA = 25°C, f = 1 MHz.


ABSOLUTE MAXIMUM RATINGS·
'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" may cause permanent dam~ge to the device. This is a stress rating only and functional opera·
Storage Temperature -65°C to +150°C
tion of the device at these or any other conditions above those indicated in the operational sections of this specifi- cation is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
All Output and Supply Voltages -0.5V to +7V
Output Currents 125 mA
Symbol Parameter Min.
Typ. Max. Unit Conditions
IFI Input Load Current OlEN, CS
-0.15 -.5 mA VF =0.45
IF2 Input Load Current All Other Inputs
-0.08 -.25 mA VF=0.45
IRI Input Leakage Current OlEN, CS
IR2 Input Leakage Current 01 Inputs
Ve Input Forward Voltage Clamp
-1 V Ie = -5mA
VIL Input "Low" Voltage
VIH Input "High" Voltage 2.0
1101 Output Leakage Current DO (3-State) DB
20 JJ.A Vo = 0.45V /5.25V 100
8216 lee Power Supply Current
VOLI Output "Low" Voltage
0.3 .45 V DO Outputs IOL=15mA DB Outputs 10L =25mA
8216 VOL2 Output "Low" Voltage
0.5 .6 V DB Outputs IOL=55mA
0.5 .6 V DB Outputs 10L =50mA
VOHI Output "High" Voltage 3.65
4.0 V DO Outputs 10H = -lmA - 3.0 V DB Outputs 10H = -10mA
VOH2 Output "High" Voltage 2.4
-35 -65 mA DO Outputs Vo == OV, -75 -120 mA DB Outputs Vec=5.0V
lOS Output Short Circuit Current -15 -30
Limits · 95 130 mA · 85 120 mA


APPLICATIONS OF THE 8216/8226
The 8080 CPU Data 8us is capable of driving a single TTL
The 8216/8226 can be used in a wide variety of other buf· fering functions in microcomputer systems such as Address Bus Drivers, Drivers to peripheral devices such as printers, and as Drivers for long length cables to other peripherals or systems.
load and is more than adequate for small, single board sys· tems. When expanding such a system to more than one board to increase 1/0 or Memory size, it is necessary to provide a buffer. The 8216/8226 is a device that is exactly fitted to th is appl ication.
Shown in Figure 2 are a pair of 8216/8226 connected di·
rectly to the 8080 Data Bus and associated control signals. The buffer is bi·directional in nature and serves to isolate the CPU data bus.
On the system side, the DB lines interface with standard semiconductor liD and Memory components and are com·
~l DB, ,.
pletely TTL compatible. The DB lines also provide a high drive capability (SOmA) so that an extremely large system can be dirven along with possible bus termination networks.
0, 8216 8226 0, 11
12 ", 1. CS
13 DB,
On the 8080 side the 01 and DO lines are tied together and are directly connected to the 8080 Data Bus for bi·directional operation. The DO outputs of the 8216/8226 have a high voltage output capability of 3.65 volts which allows direct connection to the 8080 whose minimum input voltage is 3.3 volts. I t also gives a very adequate noise margin of 350mV (worst case).
01 OlEN 0, DO
DB,
0, 8216 8226 0, 11
The OlEN inputs to 8216/8226 is connected directly to the 8080. DIEN is tied to DBIN so that proper bus flow is maintained, and CS is tied to BUSEN so that the system side Data Bus will be 3-stated when a Hold request has been acknowledged during a DMA activity.
12 0, 1. cs
Memory and 1/0 Interface to a Bidirectional Bus
In large microcomputer systems it is often necessary to pro- vide Memory and liD with their own buffers and at the same time maintain a direct, common interface to a bi·directional Data Bus. The 8216/8226 has separated data in and data out lines on one side and a common bi·directional set on the other to accomodate such a function.
FIgure 2. 8080 Data BUI Buffer
Shown in Figure 3 is an example of how the 8216/8226 is used in this type of application.
I/O
The interface to Memory is simple and direct. The memories used are typically Intel® 8102,81 02A, 8101 or 8107B·4 and have separate data inputs and outputs. The 0 I and DO lines of the 8216/8226 tie to them directly and under control of the MEMR signal, which is connected to the OlEN input, an interface to the bi·directional Data Bus is maintained.
The interface to liD is similar to Memory. The 110 devices
used are typically Intel® 8255s, and can be used for both input and output ports. The 110 R signal is connected di· rectly to the 01 EN input so that proper data flow from the 110 device to the Data Bus is maintained.
FIgure 3. Memory and 110 Intertace
to a BIdIrectional BUI
Do · 8080 15


The 8282 and 8283 are 8-bit bipolar latches with 3-state output buffers. They can be used to implement latches, buffers, or multiplexers. The 8283 inverts the input data at its outputs while the 8282 does not. Thus, all of the principal periph- eral and input/output functions of a microcomputer system can be implemented with these devices.
011 000 011 000
012 001 012 001
013 002 013 002
014 003 014 003
015 004 015 004
016 005 016 005
017 006 017 006
GNO STS GNO STS
Figure 1. 8282 Pin Configuration Figure 2_ 8283 Pin Configuration


8282 r-------, &- __ IOQ :
I I I I I L ______ _
L ______ _
Figure 3. Logic Diagrams
D.scrlptlon
The 8282 and 8283 octal latches are 8·bit latches with 3·state output buffers. Data having satisfied the setup time requirements is I.atched Into the data latches by strobing the STe line HIGH to LOW. Holding the STB line In its active HIGH state makes the latches appear transparent. Data Is presented to the data output pins by activating the ~ Input line. When OE Is Inactive HIGH· the output buffers are In their high Impedance state. Enabling or disabling the output buffers will not cause negatlve·golng transients to appear on the data output bus.
STROBE (Input). STB Is an Input control pulse used to strobe data at the data Input pins (Ao-A7) Into the data latches. This signal Is active HIGH to admit Input data. The data Is latched at the HIGH to LOW transition of STB.
OUTPUT ENABLE (Input). C5"E Is an Input control signal which when active LOW enables the contents of the data latches onto the data output pin (Bo-B7). OE being Inactive HIGH forces the output buffers to their high Impedance state. DATA INPUT PINS (Input). Data presented at these pins satisfying setup time re- quirements when STB Is strobed and latched Into the data Input latches.
000-007 (8282) 000-1)(57 (8283)
DATA OUTPUT PINS (Output). When OE Is true, the data In the data latches Is pre- sented as Inverted (8283) or non·lnverted (8282) data onto the data output pins.
Pin · 010-017 · AFN oo727B


'NOTICE: Stresses above those listed under"AbsoluteMaxlmum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
Max Units Test Conditions
Vc Input Clamp Voltage
-1 V Ic = -5 rnA
Icc Power Supply Current
IF Forward Input Current
-0.2 rnA VF = 0.45V
IR Reverse Input Current
VOL Output Low Voltage
.45 V 10L = 32 rnA
VOH Output High Voltage 2.4
V 10H = -5 rnA
10FF Output Off Current
± 50 ,..A VOFF = 0.45 to 5.25V
VIL Input Low Voltage
0.8 V .Vcc= 5.0V See Note 1
VIH Input High Voltage 2.0
V Vcc=5.0V See Note 1 F= 1 MHz 12 pF VBIAS = 2.5V, Vcc= 5V TA=25·C
CIN Input Capacitance
Loading: Outputs - 10L = 32 rnA, IOH = - 5 rnA, CL = 300 pF
Symbol Parameter Min Max Units Test Conditions
TIVOV Input to Output Delay (See Note 1) -Inverting 5 22 ns -Non-Inverting 5 30 ns
TSHOV STB to Output Delay
-Inverting 10 40 ns - Non·lnverting 10 45 ns
TEHOZ Output Disable Time 5 18 ns
TELOV Output Enable Time 10 30 ns
TIVSL Input to STB Setup Time 0 ns
TSLIX Input to STB Hold Time 25 ns
TSHSL STB High Time 15 ns
Symbol Parameter Min · 160 rnA


INPUTS \1 \V ______ -JJ\~ ______ _J/~~ ____________________________ _
-TIVSL-!-TSLIX.
\
\
-TIVOV- _ TEHOZ ~ TELOV- } --+ '"""\/r ' VOH-.W OUTPUTS >- ~ ~
Figure 4. Timing Diagram
OUT 0---< OUTe>-- OUT~
1300PF 1300 pF 1300 pF
Figure 5. Output Test Load Circuits
331l 1801l


Figure 6. Output Delay vs. Capacitance
pF LOAD · pF LOAD


8286/8287 OCTAL BUS TRANSCEIVER
The 8286 and 8287 are 8-bit bipolar transceivers with 3-state outputs. The 8287 inverts the input data at its outputs while the 8286 does not. Thus, a wide variety of applications for buffering in microcomputer systems can be met.
A1 BO A1 So
A3 B2 A3 B2
A4 B3 A4 B3
AS B4 AS B4
A6 Bs A6 BS
OE B7 OE B7
GND T GND T
Figure 1. 8286 Pin Configuration Figure 2_ 8287 Pin Configuration
Intel Corporation Assumes No Responsibilty for the Use of Any Circuitry Other Than Circuitry Embodied in an Intel Product. No Other Circuit Patent Licenses afa Implied.


8286 r-------,
8287 r-------, I I I L-_~~
I I ~ I ........ ! L I I
Figure 3. Logic Diagrams
Table 1. Pin Description
T TRANSMIT (Input). T is an input control signal ul!ed to control the direction of the transceivers. When HIGH, it configures the transceiver's Bo-B7 as outputs with ArrA7 as inputs. T LOW con· figures Ao-A7 as the outputs with Bo-B7 serVing as the Inputs.
OE OUTPUT ENABLE (Input). OE Is an input control signal used to enable the appropriate output driver (as selected by T) onto its respective bus. This signal Is active LOW.
Ao-A7 LOCAL BUS DATA PINS (Input/Output). These pins serve to either present data to or accept data from the processor's local bus depending upon the state of the T pin.
~-!!z (8286) SYSTEM BUS DATA PINS (Input/Output). These pins serve to either present data to or accept Bo-B7 (8287) data from the system bus depending upon the state of the T pin.
The 8286 and 8287 transceivers are 8·bit transceivers with high impedance outputs. With T active HIGH and OE active LOW, data at ~he Ao-A7 pins is driven onto the Bo-B7 pins. With T inactive LOW and OE active LOW, data at the Bo-B7 pins is driven onto the Ao-A7 pins. No output low glitchlng will occur whenever the transceivers are entering or leaving the high impedance state.
Pin ~e~crlpllon


ABSOLUTE MAXIMUM RATINGS·
Temperature Under Bias O°C to 70°C Storage Temperature - 65°C to + 150°C All Output and Supply Voltages , ... - 0.5V to + 7V All Input Voltages - 1.0V to + 5.5V Power Dissipation 1 Watt
*NOTICE: Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any -other conditions above those indicated in the operational sections 01 this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
Min Max Units Test Conditions
Vc Input Clamp Voltage
Icc Power Supply Current-8287
130 mA ;60 mA
IF Forward Input Current
-0.2 mA VF=0.45V
IR Reverse Input Current
VOL Output Low Voltage -B Outputs
.45 V IOL = 32 mA .45 V IOL = 16 mA
V OH Outpu1 High Voltage -B Outputs
2.4 V IOH=-5 mA 2.4 V IOH=-1mA
IOFF Output Off Current
IF VOFF = 0.45V IR VOFF = 5.25V
IOFF Output Off Current
0.8 V Vee = 5.0V, See Note 1 0.9 V V cc = 5.0V, See Note 1
VIH Input High Voltage
2.0 V V ce = 5.0V, See Note 1
F= 1 MHz 12 pF VSIAS =2.5V, Vcc=5V TA= 25°C
A.C. CHARACTERISTICS FOR 8286/8287 Conditions: Vee = 5V ±10%, TA = O°C to 70°C
Loading: B Outputs - IOL = 32 mA, IOH = -5 mA, CL = 300 pF A Outputs - IOL = 16 mA, IOH = -1 mA, CL = 100 pF
Max Units Test Conditions
TIVOV Input to Output Delay
Inverting 5 Non·lnverting 5
22 ns (See Note 1) 30 ns
TEHTV Transmit/Receive Hold Time 5
TTVEL Transmit/Receive Setup 10
TEHOZ Output Disable Time 5
TELOV Output Enable Time 10


INPUTS _ _ t ________ _
1 - - - { t~
I, mm:1 , '; TEHOZ :. VOH _ .W TELOV-, -< ~ +I--}V:~~--+ '
I~ TEHTV - -! ~ TTVEL ______________________________________________ -J)k~ ______________ _
Figure 4. 8286/8287 Timing
Figure 5. Output Delay vs. Capacitance


!-" l~ t·" OUT 1 OUT 1
oUT l r
OOPF r
100PF r
300PF
3·STATE TO VOL 3·STATE TO VOL SWITCHING
B OUTPUT A OUTPUT B OUTPUT
1.5V 1.SV 2.2BV
OUT 0--- OUT OUT r 300 pF
3·STATE TO VOH 3·STATE TO VOH SWITCHING
B OUTPUT A OUTPUT A OUTPUT
Figure S. Test Load Circuits
8-52 AFN 01506A
180\1 8002 11411






The Intel'" 8251A is the enhanced version of the industry standard, Intel'" 8251 Universal Synchronous/Asynchronous Receiver/Transmitter (USART), designed for data communications with Intel's new high performance family of microprocessors such as the 8085. The 8251A is used as a peripheral device and is programmed by the CPU to operate using virtually any serial data transmission technique presently in use (including IBM "bi-sync"). The USART accepts data characters from the CPU in parallel format and then converts them into a continuous serial data stream for transmission. Simultaneously, it can receive serial data streams and convert them into parallel data characters for the CPU. The USART will signal the CPU whenever it can accept a new character for transmission or whenever it has received a character for the CPU. The CPU can read the complete status of the USART at any time. These include data transmission errors and control signals such as SYNDET, TxEMPTY. The chip is constructed using N·channel silicon gate technology.
D, D,
D] D" R,D vcc.:
GND R.e
D, RESET r;c eLK ViR hD cs TlCEMPTY
DSR Data Set Ready e/D Control or Data 15 to be Wntten Of Re
RTS Request to Send Data eLK Clock Pulse ITTlI RESET Reset CTS Clear to Send Data fKC Transm!t1er Clock T.E Transmitter Empty T.D Transmitter Data Vee +5 Volt Supply R;c Receiver Clock
GND Ground R.D Receiver Data RxRDY Receiver Ready Ihas character for 80801 I hRDY Transmitter Ready Iready for char from 808011
CIO eTS · AD SYNDn/BO · RIIRDV TlCRDY


FEATURES AND ENHANCEMENTS
8251A is anadval'lced designon"-e industry stan, dard USAR:r, the Intel® 8251. The 8251A oper- ates with an extended range of I ntel micropro- cessors that includes the new 8085 CPU and main- tains compatibility with the 8251. Familiarization time is minimal because of compatibility and involves only knowing the additional features and enhancements, and reviewing the AC and DC ·speci- fications of the 8251A.
The 8251A incorporates all the key features of the 8251 and has the following additional features and enhancements:
Data In, and Data Out, which considerably simplifies control programming and mini- mizes CPU overhead.
relieving the CPU of this task.


ABSOLUTE MAXIMUM RATINGS·
'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional opera-
Ambient Temperature Under Bias oDe to 700 e Storage Temperatur~ -65°e to +1500 e Voltage On Any Pin
tion of the device at these or any other conditions above those indicated in the operational sections of this specifi- cation is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
With Respect to Ground -0.5V to +7V Power Dissipation 1 Watt
T A = OOC to 70°C; Vee = 5.0V ±5%; GND = OV
Symbol Parameter Min.
Max. Unit Test Conditions
VIL Input Low Voltage -0.5
VIH Input High Voltage 2.2
VOL Output Low Voltage
VOH Output High Voltage 2.4
±10 !LA VOUT = Vee TO O.4SV
IOFL Output Float Leakage
IlL I nput Leakage
Icc Power Supply Current
CAPACITANCE
T A = 2SoC; Vee = GND = OV
Symbol Parameter Min. Max.
CIN Input Capacitance 10
CliO I/O Capacitance 20
pF Unmeasured pins returned to GND
~ 0 ... :> ~ :> 0 .., -'0
8251A 1----,--+---0 OUT
-20 '---'--:': ' ='= ' -'00
CL"'160pF.
Figure 16. Test Load Circuit
Figure 17. Typical 4 Output Delay vs. 4


A.C. CHARACTERISTICS
Bus Parameters !(Note 1)
Read Cycle:
MIN.
MAX.
TEST CONDITIONS
tAR Address Stable Before READ (CS, C/O)
tRA Address Hold Time for READ (CS, C/O)
tRR READ Pulse Width
tRD Data Delay from READ
3, CL = 150 pF
tDF READ to Data Floating
Write Cycle:
MIN.
MAX.
TEST CONDITIONS
tAW Address Stable Before WR ITE
tWA Address Hold Time for WR ITE
tww WRITE Pulse Width
tow Data Set Up Time for WRITE
two Data Hold Time for WRITE
tRV Recovery Time Between WRITES
Recovery Time between Writas for Asynchronous Mode is 8 tCY and for Synchronous Mode is 16 tCY'
Input Waveforms for AC Tests
:::x'- ___ _
00216A


Other Timings:
tCY Clock Period 320 1350 ns Notes 5, 6
tq, Clock High Pulse Width 140 tCY-90 (IS
1:$ Clock Low Pulse Width 90 ns
tR, tF Clock Rise and Fall Time 20 ns
tDTx TxD Delay from Falling Edge of TxC 1 J.Ls
fTx Transmitter I nput Clock Frequency
lx Baud Rate DC 64 kHz 16x Baud Rate DC 310 kHz 64x Baud Rate DC 615 kHz
tTPW Transmitter I nput Clock Pulse Width
1 x Baud Rate 12 tCY 16x and64x Baud Rate 1 tCY tTPD Transmitter Input Clock Pulse Delay
1 x Baud Rate 15 tCY 16x and 64x Baud Rate 3 tCY fRx Receiver Input Clock Frequency
lx Baud Rate DC 64 kHz 16x Baud Rate DC 310 kHz 64x Baud Rate DC 615 kHz
tRPW Receiver Input Clock Pulse Width
lx Baud Rate 12 tCY 16x and 64x Baud Rate 1 tCY tRPD Receiver Input Clock Pulse Delay
lx Baud Rate 15 tCY l6x and 64x Baud Rate 3 tCY tTxRDY TxRDY Pin Delay from Center of last Bit 8 tCY Note 7
tTxRDY CLEAR TxRDY ~ from Leading Edge of WR 6 tCY Note 7
tRxRDY RxRDY Pin Delay from Center of last Bit 24 tCY Note 7
tRxRDY CLEAR RxRDY ~ from Leading Edge of RD 6 tCY Note 7
tiS Internal SYNDET Delay from Rising 24 tCY Note 7 Edge of RxC
tES External SYNDET Set· Up Time Before 16 tCY Note 7 Falling Edge of RxC
tTxEMPTY TxEMPTY Delay from Center of Last Bit 20 tCY Note 7 twc Control Delay from Rising Edge of 8 tCY Note 7 WRITE (TxEn,DTR, RTS)
tCR Control to READ Set-Up Time (DSR, CTS) 20 tCY Note 7


8253/8253·5 PROGRAMMABLE INTERVAL TIMER
The IntelC!> 8253 is a programmable counter/timer chip designed for use as an Intel microcornputer peripheral. It uses nMOS technology with a single +5V supply and is packaged in a 24·pin plastic DiP.
It is organized as 3 independent 16·bit counters, each with a count rate of up to 2 MHz. All modes of operation are soft· ware programmable.
BLOCK DIAGRAM
0, Vee o. ViR
BUS BUFFER
GATE 0
oJ A, 0, Ao 0, eLK 2
eLK 0 GATE 2
OUT 0 eLK 1
GATE 1
AO---~
GNO OUT 1
OUT 1
CS--------'
PIN NAMES
°7,0 DATABUS(8BtTf elK N COUNTER CLOCK INPUTS GATE N COUNTER GATE INPUTS
GATE 2
OUT 2
OUT N COUNTER OUTPUTS RD READ COUNTER
WR WRITE COMMAND OR OAT A
CS CHIP SELECT
Vee +5 VOL T5 GND GROUND
INTEL CORPORATION ASSUMES NO RESPONSIBILITY FOR THE USE OF ANY CIRCUITRY OTHER THAN CIRCUITRY EMBODIED IN AN INTEL PRODUCT. NO OTHER CIRCUIT PATENT LICENSES ARE IMPlIEO.


FUNCTIONAL DESCRIPTION General
These inputs are normally connected to the address bus. Their function is to select one of the three counters to be operated on and to address the control word register for mode selection.
The 8253 is a programmable interval timerlcounter specifically designed for use with the Intel'· Micro- computer systems. Its function is that of a general purpose, multi-timing element that can be treated as an array of 1/0 ports in the system software.
A "low" on this input enables the 8253. No reading or writing will occur unless the device is selected. The CS input has no effect upon the actual operation of the counters.
The 8253 solves one of the most common problems in any microcomputer system, the generation of accurate time delays under software control. Instead of setting up timing loops in systems software, the programmer configures the 8253 to match his requirements, initializes one of the counters of the 8253 with the desired quantity, then upon command the 8253 will count out the delay and interrupt the CPU when it has completed its tasks. It is easy to see that the software overhead is minimal and that multiple delays can easily be maintained by assignment of priority levels.
". ,,-"
> >.t·
Other counterltimer functions that are non-delay in nature but also common to most microcomputers can be implemented with the 8253.
.-t! .. :. -..;.,..;.;o.q VIIi -.,--".,q
This 3-state, bi-directional, 8-bit buffer is used to interface the 8253 to the system data bus. Data is transmitted or received by the buffer upon execution of INput or OUTput CPU instructions. The Data Bus Buffer has three basic functions.
The ReadlWrite Logic accepts inputs from the system bus and in turn generates control signals for overall device operation. It is enabled or disabled by CS so that no operation can occur to change the function unless the device has been selected by the system logic.
Figure 1. Block Diagram Showing Data Bus Buffar and
RD (Read) A "low" on this input informs the 8253 that the CPU is inputting data in the form of a counters value.
CS RD WR A, Ao
0 1 0 0 0 Load Counter No. 0
0 1 0 0 1 Load Counter No.1
0 1 0 1 0 Load Counter No.2
A "low" on this input informs the 8253 that the CPU is outputting data in the form of mode information or loading counters.
0 1 0 1 1 Write Mode Word
0 0 1 0 0 Read Counter No. 0
0 0 1 0 1 Read Counter No.1
0 0 1 1 0 Read Counter No.2
0 0 1 1 1 No-O peration 3-State
1 X Disable 3-State
0 1 1 X X No-Operation 3-State
RaadIWrita Logic Functions


The Control Word Register is selected when AD, A 1 are 11. It then accepts information from the data bus buffer and stores it in a register. The information stored in this register controls the operational ~~ODE of each counter, selection of binary or BCD counting and the loading of each count register.
The Control Word Register can only be written into; no read operation of its contents is available.
These three functional blocks are identical in operation so only a single Counter will be described. Each Counter consists of a single, 16-bit, pre-settable, DOWN counter. The counter can operate in either binary or BCD and its input, gate and output are configured by the selection of MODES stored in the Control Word Register.
The counters are fully independent and each can have separate Mode configuration and counting operation, binary or BCD. Also, there are special features in the control word that handle the loading of the count value so that software overhead can be minimized for these functions.
The reading of the contents of each counter is available to the programmer with simple READ operations for event counting applications and special commands and logic are included in the 8253 so that the contents of each counter can be read "on the fly" without having to inhibit the clock input.
Figure 2. Block Diagram Showing Control Word
8253 SYSTEM INTERFACE The 8253 is a component of the Intel'· Microcomputer Systems and interfaces in the same manner as all other peripherals of the family. It is treated by the systems software as an array of peripheral I/O ports; three are counters and the fourth is a control register for MODE programming.
Register and Counter Functions
CONTROL BUS
Basically, the select inputs AD, A 1 connect to the AD, A 1 address bus signals of the CPU. The CS can be derived directly from the address bus using a linear select method. Or it can be connected to the output of a decoder, such as an Intel® 82D5 for larger systems.
:·1
A, Ao CS 0 0 .07 RD WR
I lOUT GATE elK I j I I 1 I I j I )
I lOUT GATE elK'
lOUT GATE elK I
Figure 3. 8253 System Interface


OPERATIONAL DESCRIPTION
0 0 0 Mode 0
The complete functional definition of the 8253 is programmed by the systems software. A set of control words must be sent out by the CPU to initialize each counter of the 8253 with the desired MODE and quantity information. These control words program the MODE, Loading sequence and selection of binary or BCD counting.
0 0 1 Mode 1
X 1 0 Mode 2
X 1 1 Mode 3
1 0 0 Mode 4
1 0 1 Mode 5
Once programmed, the 8253 is ready to perform whatever
timing tasks it is assigned to accomplish. BCD:
The actual counting operation of each counter is completely independent and additional logic is provided on-chip so that the usual problems associated with efficient monitoring and management of external, asynchronous events or rates to the microcomputer system have been eliminated.
Binary Coded Decimal (BCD) Counter (4 Decades)
All of the MODES for each counter are programmed by the systems software by simple I/O operations.
The count register is not loaded until the count value is written (one or two bytes, depending on the mode selected by the RL bits), followed by a rising edge and a falling edge of the clock. Any read of the counter prior to that falling clock edge may yield invalid data.
Each counter of the 8253 is individually programmed by writing a control word into the Control Word Register.
(AD, Al = 11)
MODE 0: Interrupt on Terminal Count. The output will be initially low after the mode set operation. After the count is loaded into the selected count register, the out· put will remain low and the counter will count. When ter· minal count is reached the output will go high and re- main high until the selected count register is reloaded with the mode or a new count is loaded. The counter continues to decrement after terminal count has been reached.
SC - Select Counter:
0 0 Select Counter 0
Rewriting a counter register during counting results in the following:
0 1 Select Counter 1
1 0 Select Counter 2
(1) Write 1st byte stops the current counting. (2) Write 2nd byte starts the new count.
RL - Read/Load:
MODE 1: Programmable One·Shot. The output will go low on the count following the rising edge of the gate in- put.
0 0 Counter Latching operation (see R EADIWR ITE Procedure Section)
The output will go high on the terminal count. If a new count value is loaded while the output is 10\\1 it will not affect the duration of the one-shot pulse until the suc- ceeding trigger. The current count can be read at any time without affecting the one-shot pulse.
1 0 Read/Load most significant byte only.
0 1 Read/Load least significant byte only.
The one-shot is retriggerable, hence the output will re- main low for the full count after any rising edge of the gate input.
1 1 Read/Load least significant byte first, then most significant byte.


MODE 2: Rate Generator. Divide by N counter. The out· put will be low for one period of the input clock. The period from one output pulse to the next equals the number of input counts in the count register. If the count register is reloaded between output pulses the present period will not be affected, but the subsequent period will reflect the new value.
If the count register is reloaded between output pulses the present period will not be affected, but the subse- quent period will reflect the new value. The count will be inhibited while the gate input is low. Reloading the counter register will restart counting beginning with the new number.
The gate input, when low, will force the output high. When the gate input goes high, the counter will start from the initial count. Thus, the gate input can be used to synchronize the counter.
MODE 5: Hardware Triggered Strobe. The counter will start counting after the rising edge of the trigger input and will go low for one clock period when the terminal count is reached. The counter is retriggerable. The out· put will not go low until the full count after the rising edge of any trigger.
When this mode is set, the output will remain high until after the count register is loaded. The output then can also be synchronized by software.
MODE 3: Square Wave Rate Generator.Simi lar to MODE 2 except that the output will remain high until one half the count has been completed (for even numbers) and go low for the other half of the count. This is accom· plished by decrementing the counter by two on the fall· ing edge oi each ciock puise. Wilen the counter reaches terminal count, the state of the output is changed and the counter is reloaded with the full count and the whole process is repeated.
Low Status Or Going Modes Low Rising High
~~ Fn;:!htp
1 ~~ 1) Initiates ~~
counting 2) Resets output after next clock
If the count is odd and the output is high, the first clock pulse (after the count is loaded) decrements the count by 1. Subsequent clock pulses decrement the clock by 2. After timeout, the output goes low and the full count is reloaded. The first clock pulse (following the reload) decrements the counter by 3. Subsequent clock pulses decrement the count by 2 until timeout. Then the whole process is repeated. In this way, if the count is odd, the output will be high for (N + 1)/2 counts and low for (N -1)/2 counts.
2 1) Disables counting Initiates Enables 2) Sets output counting counting immediately high
3 1) Disables counting Initiates Enables
4 Disables ~~ Enables counting counting
MODE 4: Software Triggered Strobe. After the mode is set, the output will be high. When the count is loaded, the counter will begin counting. On terminal count, the output will go low for one input clock period, then will go high again.
Figure 4. Gate Pin Operations Summary


CLOCK
i I WRn~
OUTPUT (n = 4)
I I 4 3 2 1 0 OUTPUT (INTERRUPT) l ' I In = 41 I---t--n --+]
OUTPUT (n = 51
I I GATE ~:L___Jr~I
A
~~~2 __ '~~
4 3 2 1 ~i~~~~-f OUTPUT
GATE -------~~~---------
4i_~3 __ :2~4 __ 3~~2 __ '~j OUTPUT ,.
GATE ------I r -----
4 3 2 1 0 OUTPUT (n • 41 L.J
GATE~ 4343210 OUTPUT In • 41 W
Figure 5. 8253 Timing Diagrams
(m "'51 '--' · A+B=-m


8253 READIWRITE PROCEDURE
The systems software must program each counter of the 8253 with the mode and quantity desired. The program- mer must write out to the 8253 a MODE contrel word and the programmed number of count register bytes (1 or 2) prior to actually using the selected counter.
LSB Col,lnt Register byte
MSB Cou nt Register byte
The actual order of the programming is quite flexible. Writing out of the MODE control word can be in any sequence of counter selection, e.g., counter #0 does not have to be first or counter #2 last. Each counter's MODE control word register has a separate address so that its loading is completely sequence independent. (SCO, SC1)
does not imply that it is the only format that can be used.
The loading of the Count Register with the actual count value, however, must be done in exactly the sequence programmed in the MODE control word (RLO, RL 1). This loading of the counter's count register is still sequence independent like the MODE control word loading, but when a selected count register is to be loaded it !!!..!!§! be loaded with the number of bytes programmed in the MODE control word (RLO, RL 1). The one or two bytes to be loaded in the count register do not have to follow the associated MODE control word. They can be programmed at any time following the MODE control word loading as long as the correct number of bytes is loaded in order.
No.1 MODE Control Word
No.2 MODE Control Word 1 1 Counter 1
MODE Control Word 1 1 Counter 2 No.3
All counters are down counters. Thus, the value loaded into the count register will actually be decremented. Loading all zeroes into a count register will result in the maximum count (2'6 for Binary or 10'for BCD). In MODE 0 the new count will not restart until the load has been completed. It will accept one of two bytes depending on how the MODE control words (RLO, HL 1) are program- med. Then proceed with the restart operation.
LSB Count Register Byte 0 1 Counter 1 No.4
Count Register Byte 0 1 MSB Counter 1 No.5
LSB Count Register Byte 1 0 Counter 2 No.6
MSB Count Register Byte 1 0 Counter 2 No. 7
LSB Count Regist~r Byte 0 0 Counter 0 No.8
MSB Count Register Byte 0 0 Counter 0 No.9
the task of programming the 8253 a very simple matter. and maximum effective use of the device will result if this feature is fully utilized.
AFN-00745A-G7


In most counter applications it becomes necessary to read the value of the count in progress and make a computational decision based on this quantity. Event counters are probably the most common application that uses this function. The 8253 contains logic that will allow the programmer to easily read the contents of any of the three counters without disturbing the actual count in progress.
Al AD RD a a a Read Counter No, a a 1 a Read Counter No. I
1 1 0 Illegal
There are two methods that the programmer can use to read the value of the counters. The first method involves the use of Simple 1/0 read operations of the selected counter. By controlling the AO, A I inputs to the 8253 the programmer can select the counter to be read (remember that no read operation of the mode register is allowed AO, AI-II). The only requirement with this method is that in order to assure a stable count reading the actual operation of the selected counter must !:!f inhibited either by controlling the Gate Input or by external logic that Inhibits the clock Input. The corotents of the counter selected will be available as follows:
I n order for the programmer to read the contents of any counter without effecting or disturbing the counting operation the 8253 has speCial internal logiC that can be accessed uSing simple WR commands to the MODE register. BaSically. when the programmer wishes to read the contents of a selected counter "on the fly" he loads the MODE register with a special code which latches the present count value Into a storage register so that Its contents contain an accurate, stable quantity. The programmer then Issues a normal read command to the selected counter and the contents of the latched register IS available
first I/O Read contains the least significant byte (lSB).
second 1/0 Read contains the most significant byte (MSB).
MODE Register for Latching Count
Due to the internal logic of the 8253 it is absolutely necessary to complete the entire reading procedure. If two bytes are programmed to be read then two bytes must be read before any loading WR command can be sent to the same counter.
SCI,SCO- speCify counter to be latched.
00 designates counter latching operation.
don't care.
The same limitation applies to this mode of reading the counter as the previous method. That is, it is mandatory to complete the entire read operation as programmed, This command has no effect on the counter's mode.
"If an 8085 clock output is to drive an 8253·5 clock input, it must be reduced to 2 MHz or less,
Figure 8. MCS-8S™ Clock Interface"


ABSOLUTE MAXIMUM RATINGS·
'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional opera-
Ambient Temperature Under Bias Storage Temperature Voltage On Any Pin
tion of the device at these or any other conditions above those indicated in the operational sections of this specifi- cation is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
With Respect to Ground Power Dissipation
-0.5Vto+7V
MIN_
MAX. UNITS TEST CONDITIONS
V,L Input Low Voltage
V,H Input High Voltage
VOL Output Low Voltage
0.45 V Note 1
VOH Output High Voltage
I,L Input Load Current
IOFL Output Float Leakage
lee Vee Supply Current
Typ_ Max.
pF Ic = 1 MHz
pF Unmeasured pins returned to VSS


A.C. CHARACTERISTICS TA = o°c to 70°C; Vcc = 5.0V ±5%; GND = OV
Bus Parameters (Note 1)
Re.dCycle:
tAR Address Stable Before READ 50 30 ns
tRA Address Hold Time for READ 5 5 ns
tRR READ Pulse Width 400 300 ns
tRO Data Delay From READI21 300 200 ns
tOF READ to Data Floating 25 125 25 100 ns
tRV Recovery Time Between READ 1 1 and Any Other Control Signal /-IS
Write Cycle:
tAW Address Stable Before WR ITE 50 30 ns
tWA Address Hold Time for WR ITE 30 30 ns
tww WR ITE Pulse Width 400 300 ns
tow Data Set Up Time for WR ITE 300 250 ns
two Data Hold Time for WR ITE 40 30 ns
tRv Recovery Time Between WRITE 1 1 IlS
and Any Other Control Signal
0.45 ---..I <::X __ _
Input Waveforms for A.C. Tests:
8253 8253-5 · 8253 8253-5 · 9-15 AFN-0074SA-tO


Clock and Gate Timing:
tCLK Clock Per iod 380 de 380 de ns
tPWH High Pulse Width 230 230 ns
tPWL Low Pulse Width 150 150 ns
tGW Gate Width High 150 150 ns
tGL Gate Width Low 100 100 ns
tGS Gate Set Up Time to CLKt 100 100 ns
tGH Gate Hold Time After CLKt 50 50 ns
too Output Delay From CLK~111 400 400 ns
tOOG Output Delay From Gate~111 300 300 ns
8253 8253-5 · elK · 9-16 AFN-007~A-ll


The Intel@ 8255A is a general purpose programmable I/O device designed for use with Intel@ microprocessors. It has 24110 pins which may be individually programmed in 2 groups of 12 and used in 3 major modes of operation. In the first mode (MODE 0), each group of 12 1/0 pins may be programmed in sets of 4 to be input or output. In MODE 1, the second mode, each group may be programmed to have 8 lines of input or output. Of the remaining 4 pins, 3 are used for hand- shaking and interrupt control signals. The third mode of operation (MODE 2) is a bidirectional bus mode which uses 8 lines for a bidirectional bus, and 5 lines, borrowing one from the other group, for handshaking.
S~~;l~;S {-- m
-_GND 10 PA,-PAO
PIN NAMES
0,-°0 OAT A BUS (BI·DIRECTIONAl)
RESET RESET INPUT CHIP SELECT READ INPUT WR WAITE INPUT AD,A, PORT AODRESS PA7·PM PORT A IBITI ps,._ PORTB IBITI
~,-'CO PORT C (BIT) Vee


8255A FUNCTIONAL DESCRIPTION
Read. A "low" on this input pin enables the 8255A to send the data or status information to the CPU on the data bus. In essence, it allows the CPU to "read from" the 8255A.
The 8255A is a programmable peripheral interface (PPI) device designed for use in Intel~ ,microcomputer systems. Its function is that of a general purpose 1/0 component to interface peripheral equipment to the microcomputer system bus. The functional configura· tion of the ,8255A is programmed by the system ,software so that normally no external logic Is necessary to inter· face peripheral devices or structures. '
Write. A "low" on this input pin enables the CPU to write data or control words into the 8255A.
Port Select 0 and Port Select 1. These input signals, in conjunction with the RD and WR inputs, control the selection of one of the three ports or the control word registers. They are normally connected to the least significant bits of the address bus (Ao and A,).
This 3·state bidlrectional8·bit buffer is used to interface the 8255A to the system data bus. Data is transmitted or received by the buffer upon execution of input or output instructions by the CPU. Control words and status infor· mation are also transferred through the data bus buffer.
0 0 0 , 0 PORT A ... DATA BUS 0 1 0 1 0 PORT B'" DATA BUS 1 0 0 1 0 PORTC-DATABUS OUTPUT OPERATION (WRITE)
Al AO RD WR CS INPUT OPERATION (READ)
ReadlWrl~e and Control Logic
The function of this block is to manage all of the internal and external transfers of both Data and Control or Status
words. It accepts inputs from the CPU Address and Con· trol busses and in turn, issues commands to both of the Control Groups.
0 0 1 0 0 DATA BUS'" PORT A 0 1 1 0 0 DATA BUS'" PORT B 1 0 1 0 0 DATA BUS'" PORT C 1 1 1 0 0 DATA BUS'" CONTROL
(CS)
X 1 DATA BUS'" 3-STATE 1 1 0 1 0 ILLEGAL CONDITION
Chip Select. A "low" on this input pin enables the com·
muniction between the 8255A and the CPU.
Figure 1. 82SSA Block Diagram Showing Data Bus Buffer and Read/Write Control Logic Functions


Ports A, B, and C
Reset. A "high on this input clears the control register and all ports (A, C, C) are set to the Input mode.
The 8255A contains three 8-bit ports (A, B, and C). All can be configured in a wide variety of functional charac· teristlcs by the system software but each has its own special features or "personality" to further enhance the power and flexibility of the 8255A.
Group A and Group B Controls
The functional configuration of each port is program· med by the systems software. In essence, the CPU "out· puts" a control word to the 8255A. The control word con- tains information such as "mode", "bit set", "bit reset", etc., that initializes the functional configuration of the 8255. -
Port A. One 8-bit data output latch/buffer and one 8-bit data input latch.
Port B. One 8-bit data input/output latch/buffer and one 8·bit data input buffer.
Each of the Control blocks (Group A and Group 8) accepts "commands" from the ReadlWrite Control Logic, receives "control words" from the internal data bus and issues the proper commands to its associated ports.
Port C. One 8-bit data output latch/buffer and one 8·bit data input buffer (no latch for input). This port can be divided into two 4-bit ports under the mode control. Each 4-bit port contains a 4-blt latch and It can be used for the control signal outputs and status signal inputs in conjunction with ports A and B.
Control Group A - Port A and Port C upper (C7·C4) Control Group B - Port B and Port Clower (C3-CO)
The Control Word Register can Only be written into. No
Read operation of the Control wo;:d Register is allowed.
PIN NAMES
"
D7 00 ·DATA BUS (BI·DIRECTIONALI RESET RESET INPUT CS CHIP SELECT -- "e READ INPUT -- W" WRITE INPUT AG,A1 PORT ADDRESS -- PA7·PAD PORT A 181Tl PB7·P80 PORT BIBITI Pe7·pca PORT C (BITI
Vee +5 VOL 15 GNe 'VOLTS
Figure 2. 8225A Block Diagram Showing Group A and
Group B Control Functions
AFNoOO744A-03


8255A OPERATIONAL DESCRIPTION
There are three basic modes of operation that can be select- ed by the system software:
Mode 0 - Basic Input/Output Mode 1 - Strobed Input/Output Mode 2 - Bi-Directional Bus
When the reset input goes "high" all ports will be set to the input mode (i.e_, all 24 lines will be in the high im- pedance state)_ A Iter the reset is removed the 8255A can remain in the input mode with no additional initialization required_ During the executi.on of the system program any of the other modes may be selected using a single output instruction_ This allows a single 8255A to service a variety of peripheral devices with a simple software maintenance routine_ lIIIt'.
PORT C (LOWER) 1'" INPUT • 0 '" OUTPUT
MODE SELECTION O=MODEO ,,, MODE 1 L _I GROUP A
The modes for Port A and Port B can be separately defined, while Port C is divided into two portions as required by the Port A and Port B definitions_ All of the output registers, in- cluding the status fl ip-flops, will be reset whenever the mode is changed_ Modes may be combined so that their functional definition can be "tailored" to almost any I/O structure_ For instance; Group B can be programmed in Mode 0 to monitor simple switch closings or display compu- tational results, Group A could be programmed in Mode 1 to monitor a keyboard or tape reader on an interrupt-driven basis_
0= OUTPUT
PORT A 1 '" INPUT 0= OUTPUT
MODE SELECTION 00 = MODE 0 01'" MODE 1 lX=MODE2
ADDRESS BUS
CONTROL BUS
Figure 4_ Mode Definition Format
The mode definitions and possible mode cOfTlbinations may seem confusing at first but after a cursory review of the complete device operation a simple, logical 1/0 ap- proach will surface_ The design of the 8255A has taken into account things such as efficient PC board layout, control signal definition vs PC layout and complete functional flexibility to support almost any peripheral device with no external logic_ Such design represents the maximum use of the available pins.
Single Bit Set/Reset Feature
Any of the eight bits of Port C can be Set or Reset using a single OUTput instruction_ This feature reduces software Figure 3_ Basic Mode Definitions and Bus Interface requirements in Control-based applications.
Mode Selection


When Port C is being used as status/control for Port A or B. these bits can be set or reset by using the Bit Set/Reset op· eration just as if they were data output ports.
When the 8255A ie programmed to operate in mode 1 or mode 2, control signals are provided that can be used as interrupt request inputs to the CPU. The interrupt reo quest signals, generated from port C, can be inhibited or enabled by setting or resetting the associated INTE flip· flop, using the bit set/reset function of port C.
BIT SELECT
01234567 0101010180 001100118, 00001'118
This function allows the Programmer to disallow or allow a specific I/O device to interrupt the CPU without affecting any other device in the interrupt structure.
INTE flip-flop definition:
(BIT-SET) -INTE is SET - Interrupt enable (BIT-RESET) - INTE is RESET - Interrupt disable
Figure 5. Bit Set/Reset Format
mode selection and device Reset.
Mode 0 Basic Functional Definitions:
MODE 0 (Basic Input/Output). This functional configura· tion provides simple input and output operations for each of the three ports. No "handshaking" is required, data is simply written to or read from a specified port.
-t HR -!
t==..t AR -
- tRA------:! 1 I. toF l---
---- ------ ~<
MODE 0 (Basic Input)
twA - -
OUTPUT
MODE 0 (Basic Output)


MODE 0 Port Definition
04 03 0, DO PORTA PORTC PORTC
(UPPERI # PORTB (LOWERI
0 OUTPUT OUTPUT 0 OUTPUT OUTPUT 0 0 0 1 OUTPUT OUTPUT 1 OUTPUT INPUT 0 0 1 0 OUTPUT OUTPUT 2 INPUT OUTPUT 0 0 1 1 OUTPUT OUTPUT 3 INPUT INPUT 0 1 0 0 OUTPUT INPUT 4 OUTPUT OUTPUT 0 1 0 1 OUTPUT INPUT 5 OUTPUT INPUT 0 1 1 0 OUTPUT INPUT 6 INPUT OUTPUT 0 1 1 1 OUTPUT INPUT 7 INPUT INPUT 1 0 0 0 INPUT OUTPUT 8 OUTPUT OUTPUT 1 0 0 1 INPUT OUTPUT 9 OUTPUT INPUT 1 0 1 0 INPUT OUTPUT 10 INPUT OUTPUT 1 0 1 1 INPUT OUTPUT 11 INPUT INPUT 1 1 0 0 INPUT INPUT 12 OUTPUT OUTPUT -- I 1 0 1 INPUT INPUT 13 OUTPUT INPUT 1 1 1 0 INPUT INPUT 14 INPUT OUTPUT 1 INPUT INPUT 15 INPUT INPUT
CONTROL WORD #0 CONTROL WORD #2 0, D. D, D. 0, D. D. D, Do I,!o!o!o!o!o! o 1 0 I I ,
1 0 1 0 1 0 1 0 1 0 1 , 1 0 I
c{ c{ °7'°0 . °,,°0 4 • pc3,peO Pe3·peO
4 Pe,·pee 4 pc,.pee
B B PII,-P80 8 8 PII,-P8o
CONTROL WORD #1 CONTROL WORD #3 0, o. 0, o. 0, 0, 0, Do 0, 0, 0, D. 0, 0, 0, Do I ' 1 0 1 o 1 0 1 0 1 0 1 o 1 ' I 1,10101010101, I, I
A 8 PA,-PAc A 8 PA,-PAc
c{ c{ 0,.00 °7'°0 I . . /. PC3,PCO • Pc.-pco I
8 • PII,.P8 0 8~-PII,.P8o
MODE 0 Configurations


0, DO 0, DO I , I
0 I 0 I 0 I , 1 0 1 0 1 0 1 I, 1 0 1 o 1 ,
1 o 1 o 1 0 1 0 1
8 PA7·pAo A /8 PA7,PAa I
4 PC7·PC4 c{ c{ °7,00 • . °7-0 0 4 pel,pcn 4 pel,pcO
4 PC,.PC4
8 B PB7,PSo B 8 PB7,PSo
1 , I 0 1 0 1 0 1 ,
0, DO 0,
1 o 1 o 1 o I, 1
8 8 PBrPBo B 8 PB7,PSa
0, I ,
1 0 1 0 1 0 1 , 1 0 1 , 1 0 1 I' 1 o 1 0
1 o 1 o 1 , 1 0 1
8 A 8 A PA7,PAo PA7,PAo
4 PC 7 ,PC 4
4 4 pel,pcO pe3 ,pca
B 8 PB7,PSa 8 /8 P87,P80 I
0, D. D. 0, Do I ,
1 0 1 0 1 0 1 , I 0 1 , 1'1 I, 1 0 1 0 1 ,
1 , 1
A 8 PArPAo A 8 PA,.PA,
4 PC7·PC4 c{ c{ °7,00 DrDa 4 PCl,PCo
4 PC 7 ,PC 4
8 8 PB7,PSa 8 8 ..,·p80
4 pel,PCO


CONTROL WORD =14
0, 06 05 04 D3 02 0, DO I ' I, I 0 I 0 I 0 I
0, 06 05 04 03 02 D, 00 I ' I 0 I 0 I ' I ' I 0 I ' I 0 I
A 0 I ,8 PA,·pAo
8211A c{
0 I ' , PC,·PC4
0 I "
PC,.PC4
0 0 c ,
0,.°0
pe3,pea
Pe3,peO
8 B PB,.PBo
B ,8 I PB,·PBo
CONTROL WORD ... is
0,. D. Da D4 D3 02 0, DO I 0 I ' I
0, 0 6 05 D4 03 02 0, DO I ' I 0 I 0 I ' I ' I 0 I ' I I
I ' ,
8211A 4
B25SA
c{
0 . c{
4 Pe,.pc;,
8 8 P..,.P8,
Operating Modes
Mode 1 Basic Functional Definitions:
MODE 1 (Strobed Input/Output). This functional con- figuration provides a means for transferring 1/0 data to or from s specified port In conjunction with strobes or "handshsklng" signals. In mode 1, port A and Port B use the lines on port C to generate or accept these "hand- shaking" signals.
A 8 PA,·pAo


Input Control Signal Definition
MODE 1 (PORT Al
STB (Strobe Input). A "low" on this input loads data into the input latch.
IBF (Input Buffer Full F/F)
07 06 05 0. 0 3 02 0, Do I, I 0 I, I, 11IoMXW
A "high" on this output indicates that the data has been loaded into the input latch; in essence, an acknowledgement IBF is set by STB input being low and is reset by the rising edge of the RD input.
A "high" on this output can be used to interrupt the CPU when an input device is requesting service. INTR is set by the STB is a "one", IBF is a "one" and INTE is a "one".
It is reset by the falling edge of RD. This procedure allows an input device to request service from the CPU by simply strobi ng its data into the port.
07 06 0 5 D4 03 02 0, Do 1'~'I'w
INTE A
Controlled by bit set/reset of PC4.
Controlled by bit set/reset of PC2.
Figure 6. MODE 1 Input
V 1\ ""',,8-11
1 ~J
\ 1_'.,81 ') i/ 1 JL J
IBF
INTR
_tPH_!
INPUT FROM PERIPHERAL ---
Figure 7. MODE 1 (Strobed Input)
9-25 AFN-oG744A..Q9
INTR (Interrupt Request) · tSIT


Output Control Signal Definition
OBF (Output Buffer Full F/F). The OBF output will go "low" to Indicate that the CPU has written data out to the specified port. The OBF F/F will be set by the rising edge of the WR Input and reset by ACK Input being low.
PA,.p 8
D7 D. Os 04 03 02 0, Do /. 10 I. 1 °1·IOMXlXl
r-- , I INTE I I A I __ J
ACK (Acknowledge Input). A "low" on this Input informs the 8255A that the data from port A or port B has been ac· cepted. In essence, a response from the peripheral device indicating that it has received the data output by the CPU.
WR-
MODE 1 (PORT BI
INTR (Interrupt Reque,t). A "high" on this output can be used to interrupt the CPU when an output device has ac- cepted data transmitted by the CPU. INTR is set when ACK is a "one", OBF IS a "one" and INTE is a "one". It is reset by the falling edge of WR.
CONTROL WORD
INTEA
Controlled by bit set/reset of PC6.
Controlled by bit set/reset of PC2.
Figure 8. MODE 1 Output
...t tAK
Figure 9. Mode 1 (Strobed Output)
PC, ODs · INTRa


Combinations of MODE 1
Port A and Port B can be individually defined as input or output in Mode 1 to support a wide variety of strobed I/O applications.
PC, IBFA
PC, INTRA
2 Pe 6.7 -+-- I/O
I/O
PD O 8
PC,
pe2 -ACKB
INTRB
PC.
PORT A - (STROBED INPUT) PORT B - (STROBED OUTPUT)
PORT A - (STROBED OUTPUT) PORT B - (STROBED INPUT)
Figure 10. Combinations 01 MODE 1
MODE 2 (Strobed Bidirectional Bus 1/0). This functional configuration provides a means for communicating with a peripheral device or structure on a single S·bit bus for both transmitting and receiving data (bidirectional bus 1/0). "Handshaking" signals are provided to maintain proper bus flow discipline in a similar manner to MODE 1. Interrupt generation and enableldisable functions are also available.
OBF (Output Buffer Ful). The OBF output will go "low" to indicate that the CPU has written data out to port A.
ACK (Acknowledge). A "low" on this input enables the tri-state output buffer of port A to send out the data. Otherwise, the output buffer will be In the high im- pedance state.
INTE 1 (The INTE Flip-Flop Associated with OBF)_ Con- trolled by bit setlreset of PCs.
STB (Strobe Input)_ A "low" on this input loads data into the Input latch.
IBF (Input Buffer Full F/F)_ A "high" on this output in- dicates that data has been loaded into the input latch.
Bidirectional Bus 1/0 Control Signal Definition
INTR (Interrupt Request). A high on this output can be used to Interrupt the CPU for both input or output opera- tions.
INTE 2 (The INTE Flip-Flop Associated with IBF)_ Con- trolled by bit setlreset of PC4•


PC2~ 1'" INPUT o "'OUTPUT
1'" INPUT 0= OUTPUT
'------- GROUP 8 MODE
0" MODE ,0 1'" MODE 1
Figure 11. MODE Control Word
Figure 12. MODE 2
/
IBF
1----""-----
I --ltAOi- r
BUS
DATA FROM PERIPHERAL TO 8255A
DATA FROM 8255A TO 8080
Figure 13. MODE.2 (Bidirectional)


MODE 2 AND MODE 0 (INPUT)
MODE 2 AND MODE 0 (OUTPUT)
\----INTR A
PC, t---- INTRA
PC, 1---_ OBF A
PC,
CONTROL WORD
CONTROL WORD
PC 6 --ACK A
07 0 6 05 04 03 02 0, DO I, I, e>
07 0 6 05 04 03 02 0, DO \, I, e>
pc,. 1'" INPUT 0= OUTPUT
PCz.() -+-1/0
MODE 2 AND MODE 1 (INPUT)
PC, 1---_ INTRA
PC, 1---_ INTRA
PC, OBF A
PC, OBF A
CONTAOl WORD PC, ACKA
CONTROL WORD PC, -ACKA 0, 0 6 Os 04 03 02 0, 0. 1,I'NXCX1,I,[XJ PC, STBA
07 Os 05 04 0 3 02 01 00 I, I, k)(D1)
IBFA
PB7"PBa
RO--_~ PC, ACKa
WR--_~ pc. INTRa
pc. INTRa
Figure 14. MODE 2 Combinations
PC, OBFs · PC, 1BFa · 9·29


OUT .. ~ . OUT - OUT .. ~ OUT --- OUT - OUT --- OUT --- OUT --- OUT
OUT GROUPAONLV
PAo IN OUT IN
PAl IN OUT IN
PA3 IN OUT IN
PA4 IN OUT IN
PAS IN OUT IN
-- -- -- -- -- -- -- -- 1
PAa IN OUT IN
PBa IN OUT IN
OUT
PB2 IN OUT IN
OUT
OR MODE 1 J ONLY
PB3 IN OUT IN
OUT
MODE 0
PB4 IN OUT IN
OUT
PBS IN OUT IN
OUT
PBa IN OUT IN
PB7 IN OUT IN
OUT
PCa IN OUT INTRB
PC, IN OUT IBFB
OBFB I/O
PC2 IN OUT STBB
ACKB I/O
PC3 IN OUT INTRA
INTRA INTRA
PC4 IN OUT rnA
PCs IN OUT IBFA pca IN OUT I/O
I/O IBFA
ACKA ACKA
PC7 IN OUT I/O
OBFA OBFA
Special Mode Combination Considerations
allows the programmer to test or verify the "status" of each peripheral device and change the program flow accordingly.
There are several combinations of modes when not all of the
bits in Port C are used for control or status. The remaining bits can be used as follows:
There is no special instruction to read the status informa- tion from Port C. A normal read operation of Port C is executed to perform th is fu nction.
If Programmed as Inputs - All input lines can be accessed during a normal Port C read.
If Programmed as Outputs - Bits in C upper (PC7-PC41 must be individually accessed using the bit set/reset function.
Bits in Clower (PC3-PCol can be accessed using the bit set/reset function or accessed as a threesome by writing
into Port C.
Source Current Capability on Port B and Port C
" j , GROUPS
Any set of eight output buffers, selected randomly from Ports Band C can source 1mA at 1.5 volts. This feature allows the "8255 to directly drive Darlington type drivers and high-voltage displays that require such source current.
Figura 1.5. MODE 1 Status Word Format
01 0 6 Os 04 03 D2 0, Do I OBF. IINTE, IIBFA IINTE·IINTRA t>
Reading Port C Status
In Mode 0, Port C transfers data to or from the peripheral device. When the 8255 is programmed to function in Modes
1 or 2, Port C generates or accepts "hand-shaking" signals with the peripheral device. Reading the contents of Port C
(DEFINED BY MODe 0 OR MODE 1 SELECTION)
Figura 18. MODE 2 Statu. Word Format
Mode Definition Summary · i GRQUPA


REQU EST I
APPLICATIONS OF THE 8255A
PC,
R. R,
The 8255A is a very powerful tool for interfacing peripheral equipment to the microcomputer system. It represents the optimum use of available pins and is flex- ible enough to interface almost any 110 device without the need for additional external logic.
PA,
R, FULLY R, DECODED KEYBOARO R,
PA,
PA,
R,
MODE1 (INPUT)
SHIFT
Each peripheral device in a microcomputer system usually has a "service routine" associated with it. The routine manages the software interface' between the device and the CPU. The functional definition of the 8255A is programmed by the 110 service routine and becomes an extension of the system software. By ex· amining the 110 devices interface characteristics for both data transfer and timing, and matching this infor· mation to the examples and tables in the detailed opera· tional description, a control word can easily be devel· oped to initialize the 8255A to exactly "fit" the applica- tion. Figures 17 through 23 present a few examples of typical applications of the 8255A.
CONTROL
PC,
STROBE
PC, -
ACK
PB.
B.
B,
PB,
B, BURROUGHS
SELF-SCAN B, DISPLAY
PB,
PB,
B,
PB, MODE 1 ---.j PB, (OUTPUT)
, : PB 7
BACKSPACE
CLEAR
I PC,
DATA READY
INTERRUPT
PC,
ACK
REQUEST
BLANKING
PC.
CANCEL WORD
UPT~ INTERR
PA,
REQUEST
HIGH-SPEED
PA,
PRINTER
PA,
Figure 18. Keyboard and Display Interface
REOU EST I
(OUTPUT) PA,
PA,
HAMMER RELAYS
INTERRUPT
PAc -- PA,
PC, PC, PC,
R.
--!C 4
PA,
R,
8255A
R, FULLY DECODED R, KEYBOARD
PB.
PA,
PA,
PB,
PB,
R,
PB,
8255A
PA,
SHIFT
PB, MODEl PB, (OUTPUT) PB,
CONTROL
PC,
STROBE
PB,
PC,
ACKNOWLEDGE
PC, PC, ACK
PC, I PC, ,--
BUSY LT
TEST L T
-- "'0- -- '1>- -- '1>- -- "'0- -- '1>- -- t>-- -- 0- --0-.-
PC.
PB.
CONTROL LOGIC ANO DRIVERS INTERAUPT
PB,
REQUEST
PB,
MODE 0 (INPUT)
PB,
Figure 11. Printer Interface
PB, l PB. PB,
Figure 19. Keyboard and Terminal Address Interface


PA,
LSB
PC,
PA. D. PA, 0, PA, · · 0, PA, 0, FLOPPY DISK
PA,
PA,
MODE 0 PA, -- IOUTPUTI PA,
PA,
PA. · · D. CONTROLLER
PA.
AND DRIVE PA, · · 0, · · PA, D·A t-- CONVERTER ANALOG OUTPUT PAs 0,
MODE 2
PC. IDACI
PA, 0,
PC, r------
PC. DATA STS
8255A PC,
PC, 1---- MSB
PC, ACK (IN)
PC, DATA READY
PC. r----- SrB DATA
PC, ACK (OUT)
PC, OUTPUT EN
8255A
BIT SET/RESET
PC, TRACK "0" SENSOR
PC. SYNC READY
PC, SAMPLE EN
PC, INDEX r
PC, STB
I PB. LSB
PB, 8-BIT A·D PB, --
ENG,A.GE ~EA!)
FORWARD/REV. PB, READ ENABLE
CONVERTER
- ANALOG INPUT
MODE 0 PB, IADCI
MODe a PB3 WRITE ENABLE
(OUTPUT) PB4 DISC SELECT PB, ENABLE CRe
PB, TEST
PB, MSB
PB, BUSY IT
Figure 20. Digital to Analog, Analog to Digital
Figure 22. Basic Floppy Disc interface
INTERRUPT
REaU EST_:l
--- R. R, -- R, 8 lEVEL PAPER R, TAPE
PA.
PA.
PA,
PA,
PA,
PA,
PA,
PA.
PA.
PA, PA,
R,
PA,
R,
MODE 1 IOUTPUT!
SHIFT
R, R,
PA,
CONTROL -
PC,
DATA READY
PC,
STB
PC,
ACK
PC,
ACK
PC,
BLANKED f--- BLACKIWHtTE
PC,
STOP/GO
8255A
PC.
rca PC,
MACHINE TOOL
MODE 0 (INPUT)
START/STOP
PC,
ROW STB
LIMIT SENSOR (HIV)
PC,
PC,
OUT OF FLUID
pc.
PB. - PB,
PB.
PB,
MODE 0 IOUTPUTI
PB,
PB,
UP/DOWN
i PB, I I PB4
MODE 0 (OUTPUT)
PB, PB.
VERT. STEP STROBE
PB,
PB,
SLEW/STEP
PB, PB,
PB,
FlUID ENABLE 1---- EMERGENCY STOP
PB,
Figure 21. Basic CRT Controller Interface
Figure 23. Machine Tool Controller Interface
9-32 AFN-00744A-16


ABSOLUTE MAXIMUM RATINGS·
'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional opera·
Ambient Temperature Under Bias o°c to 70°C Storage Temperature 65°C to +150°C Voltage on Any Pin
tion of the device at these or any other conditions above those indicated in the operational sections of this specifi· cation is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
With Respect to Ground -0.5V to +7V Power Dissipation 1 Watt
TA = o°c to 70°C. Vee = +5V ±5%; GND = ov
SYMBOL PARAMETER MIN.
VIL Input Low Voltage -0.5
VIH Input High Voltage 2.0
VOL (DB) Output Low Voltage (Data Bus)
0.45 V IOL = 2.5mA
VOL (PER) Output Low Voltage (Peripheral Port)
0.45 V IOL =1.7mA
VOH(DB) Output High Voltage (Data Bus) 2.4
VOH(PER) Output High Voltage (Peripheral Port) 2.4
IDAR[11 Darlington Drive Current -1.0
-4.0 mA REXT = 750n; VEXT= 1.5V
lee Power Supply Current
IlL Input Load Current
±10 !-LA VIN = Vee to OV
IOFL Output Float Leakage
±10 !-LA VOUT = Vee to OV
SYMBOL PARAMETER MIN. TYP.
10 pF fc = 1MHz
20 pF Unmeasured pins returned to GN
~:O~'~ LJ l ~_~ : y y--------.,.. VEXT" I 100pF
'VEXT Is set at various voltages during testing to guarantee the specification.
Figure 24. Test Load Circuit (for dB)


A.C. CHARACTERISTICS
TA = O°C to 70°C; Vcc = +5V ±5%; GND = OV
Bus Parameters Read:
Write:
MIN.
tAW Address Stable Before WR ITE
twA Address Stable After WR ITE
tww WRITE Pulse Width
"~,100;i:"'~~" ;:
tow Data Valid to WR ITE (T.E.)
MAX. . MIN. UNIT
two Data Valid After WR ITE
~"i:.:J:,';:';;).:'\:;:,',:"':::.:,i'i·'
Other Timings:
'~,'
SYMBOL PARAMETER
MIN.
tws WR = 1 to Outputl1 ]
350 ' ," ns ;'e) i;' ., ns f6>:' ns Ft:r··
tlR Peripheral Data Before RD
tHR Peripheral Data After RD
tAK ACK Pulse Width
tST STB Pulse Width
tps Per. Data Before T.E. of STB
ns .. . ns
tpH Per. Data After T.E. of STB
tAO ACK = 0 to Outputl1 ]
300 ~.' ns
tKO ACK = 1 to Output Float
twos WR = 1 to OBF = 011]
tAOS ACK = 0 to OBF = 1111
tRIB RD = 1 to IBF = 0[1]
tRIT RD = Oto INTR = 0[1]
tSIT STB = 1 to INTR = 1[1]
300 .300 ns
850 ' ....... ns
tAIT ACK = 1 to INTR = 1[1]
tWIT WR = Oto INTR = 011 ]
Not,.: 1. Test Conditions: 8255A: CL = loopF;8255A·5: CL = 150pF.


2.4 X :::;;; TEST POINTS ::: ::: X
Figure 25. Input Waveforms for A.C. Tasts
. tRR .
j---t AR _ ...-- tAA-----+1
B.A'.AD
----------- -( ---
tRO . to. .
Figure 28. MODE 0 (Basic Input)
Figure 27. MODE 0 (Basic Output)
'w0 · twA


8255A18255A·5.
j 1
\ ~} l_tR1B_j
IBF
l--t RIT "1 ~/
INTR
/ II /
_t PH "_!
---------------------
INPUT FROM PERIPHERAL ---
Figure 28. MODE 1 (Strobed Inut)
--1-twB
Figure 29. MODE 1 (Strobed Output)


DATA FROM A 8080 TO 8255
\ _t AOB _ \
j i / ~'WOB-~
\
~ 1 \ -t AK - k:' , /~
,_t sT -_
V \
rBF 'SIB-Ii
- 1-"01- - ' •. 1-_ -i --- ---
/
_ tpHI--- / __ tRIB
OATAInOM OATA~OM PERIPHERAL TO 8255 8255 TO PERIPHERAL
Figure 30. MODE 2 (Bidirectional)


The Intell!l 8259A Programmable Interrupt Controller handles up to eight vectored priority interrupts for the CPU. It is cas cad able for up to 64 vectored priority interrupts without additional circuitry. It is packaged in a 28-pin DIP, uses NMOS technology and requires a single + 5V supp!y_ Circuitry is static, requiring no clock input.
The 8259A is designed to minimize the software and real time overhead in handling mUlti-level priority interrupts_ It has several modes, permitting optimization for a variety of system requirements.
The 8259A is fully upward compatible with the Intel 8259. Software originally written for the 8259 will operate the 8259A in all 8259 equivalent modes (MCS-80/85, Non-Buffered, Edge Triggered).
BLOCK DIAGRAM
CS
INTA INT
AD
IR7
IRG
DATA
IR5
BUS BUFFER
IR4
IR3
IR2
D,
IRI
IRO
-IRO
CASO
INT
-IR1
SP/EN
WR-
CASI
GND
CAS2
PIN NAMES
DATA BUS IBI-DIRECTIONALI
D7·~.~L AD iVA
--.~----- ._". WRITE INPUT COMMAND SELECT ADDRESS
CAS1 _
CHIP SELECT CAS2-CASO CASCADE LINES !lI'/£I'J SLAVE PROGRAM INPUT/ENABLE
'INTERNAL BUS
INT
__ 'NT~!l.uPT OU!!.l!!
INTERRUPT ACKNOWLEDGE INPUT INTERRUPT REaUEST INPUTS
INTEL CORPORAmlN ASSUMES NO RESPONSIBILITY FOR THE US[ Of ANY CIRCUITRY OTHER THAN CIRCUITRY EIIIIOOlEO IN AN INTEL PRODUCT. NO OTHER CIRCUIT PATENT LICENSES ARE IMPlIEO. " INTEL CORPORATION. 1979 9-38


INTERRUPTS IN MICROCOMPUTER SYSTEMS Microcomputer system design requires that 1/0 devices such as keyboards, displays, sensors and other com- ponents receive servicing in an efficient manner so that large amounts of the total system tasks can be assumed by the microcomputer with little or no effect on through- put.
match his system requirements. The priority modes can be changed or reconfigured dynamically at any time dur- ing the main program. This means that the complete interrupt structure can be defined as required, based on the total system environment.
The most common method of servicing such devices is the Polled approach. This is where the processor must test each device in sequence and in effect "ask" each one if it needs servicing. It is easy to see that a large por- tion of the main program is looping through this con- tinuous polling cycle and that such a method would have a serious, detrimental effect on system through- put, thus limiting the tasks that could be assumed by the microcomputer and reducing the cost effectiveness of using such devices.
CPU
RAM
A more desirable method would be one that would allow the microprocessor to be executing its main program and only stop to service peripheral devices when it is told to do so by the device itself. In effect, the method would provide an external asynchronous input that would inform the processor that it should complete whatever instruction that is currently being executed and fetch a new routine that will service the requesting device. Once this servicing is complete, however, the processor would resume exactly where it left off.
This method is called Interrupt. It is easy to see that system throughput would drastically increase, and thus more tasks could be assumed by the microcomputer to further enhance its cost effectiveness.
The Programmable Interrupt Controller (PIC) functions as an overall manager in an Interrupt-Driven system environment. It accepts requests from the peripheral equipment, determines which of the incoming requests is of· the highest importance (priority), ascertains whether the incoming request has a higher priority value than the level currently being serviced, and issues an interrupt to the CPU based on this determination. Each peripheral device or structure usually has a special program or "routine" that Is associated with its specific functional or operational requirements; this Is referred to as a "service routine". The PIC, after issuing an Inter- rupt to the CPU, must somehow input information into the CPU that can "point" the Program Counter to the service routine associated with the requesting device. This "pointer" is an address In a vectoring table and will often be referred to, In this document, as vectoring data.
RAM
ROM
8259A BASIC FUNCTIONAL DESCRIPTION GENERAL
The 8259A Is a device specifically designed for use in real time, Interrupt driven microcomputer systems. It Manages eight levels or requests and has built-In fea- tures for expandabillty to other 8259A's (up to 64 levels). It is programmed by the system's ·software as an 1/0 peripheral. A selection of priority modes Is available to the programmer so that the manner In which the re- quests are processed by the 8259A can be configured to


The interrupts at the IR input lines are handled by two registers in cascade, the Interrupt Request Register (IRR) and the In·Service Register (ISR). The IRR is used to store all the interrupt leveis which are requesting ser· vice; and the ISR is used to store all the interrupt levels which are being serviced.
This logic block determines the priorities of the bits set in the IRR. The highest priority is selected and strobed into the corresponding bit of the ISR during INTA pulse.
The IMR stores the bits which mask the interrupt lines to be masked. The IMR operates on the IRR. Masking of a higher priority input will not affect the interrupt request lines of lower priority.
This output goes directly to the CPU interrupt input. The VOH level on this line is designed to be fully compatible with the 8080A, 8085A and 8086 input levels.
INTA pulses will cause the 8259A to release vectoring information onto the data bus. The format of this data • depends on the system mode ("PM) of the 8259A.
This 3-state, bidirectional 8·bit buffer Is used to inter· face the 8259A to the system Data Bus. Control words and status information are transferred through the Data Bus Buffer.
The function of this block is to accept OUTput com· mands from the CPU. It contains the Initialization Com· mand Word (ICW) registers and Operation Command Word (OCW) registers which store the various control formats for device operation. This function block also allows the status of the 8259A to be transferred onto the Data Bus.
A LOW on this Input enables the 8259A. No reading or writing of the chip will occur unless the device is selected.
A LOW on this input enables the CPU to write control words (ICWs and OCWs) to the 8259A.
Ao This input signal is used in conjunction with WR and RD signals to write commands into the various command registers, as well as reading the various status registers of the chip. This line can be tied directly to one of the ad· dress lines.
A LOW on this Input enables the 8259A to send the status of the Interrupt Request Register (IRR), In Service Register (lSR), the Interrupt Mask Register (IMR), or the Interrupt level onto the Data Bus.· .
8259A Block Diagram · 8259A Block Diagram · Fffi (READ)


If no interrupt request is present at step 4 of either sequence (i.e., the request was too short in duration) the 8259A will issue an interrupt level 7. Both the vectoring bytes and the CAS lines will look like an interrupt level 7 was requested.
This function block stores and compares the IDs of all 8259A's used in the system. The associated three I/O pins (CASO-2) are outputs when the 8259A is used as a master and are inputs when the 8259A is used as a slave. As a master, the 8259A sends the 10 of the inter- rupting slave device onto the CASO-2 lines. The slave thus selected will send Its preprogrammed subroutine address onto the Data Bus during the next one or two consecutive INTA pulses. (See section "Cascading the 8259A".)
The powerful features of the 8259A in a microcomputer system are its programmability and the interrupt routine addressing capability. The latter allows direct or indirect jumping to the specific interrupt routine requested without any polling of the interrupting devices. The nor- mal sequence of events during an interrupt depends on the type of CPU being used.
The events occur as follows in an MCS-80/85 system:
4. Upon receiving an INTA from the CPU group, the highest priority ISR bit is set, and the corresponding IRR bit is reset. The 8259A will also release a CALL in- struction code (11001101) onto the 8-bit Data Bus through its 07-0 pins. 5. This CALL instruction will initiate two more INTA pulses to be sent to the 8259A from the CPU group. 6. These two INTA pulses allow the 8259A to release its preprogrammed subroutine address onto the Data Bus. The lower 8-bit address is released at the first INTA pulse and and the higher 8-bit address is re- leased at the second INTA pulse. 7. This completes the 3-byte CALL instruction released by the 8259A. In the AEOI mode the ISR bit is reset at the end of the third INTA pulse. Otherwise, the ISR bit remains set until an appropriate EOI command is issued at the end of the interrupt sequence.
The events occurring in an MCS-86 system are the same until step 4.
, INTERRUPT
8259A Interface to Standard System Bus
8259A Block Diagram · REQuESTS


INTERRUPT SEQUENCE OUTPUTS
During the third INTApuise the higher address of the appropriate service routine, which was programmed as byte 2 of the initialization sequence (As - A1sl, is enabled onto the bus.
This sequence is timed by three INTA pulses. During the
first iiifi'A pulse the CALL opcode is enabled onto the data bus. -
Content of Third Interrupt
Content of First Interrupt
05 D4 03 02 A13 A12 All Al0
D7 D8 D5 D4 D3 D2 Dl DO
CALLCODE ~1_l 0 0 0 l~1
During the second INTA pulse the lower address of the appropriate service routine is enabled onto the data bus. When Interval = 4 bits A5-A7 are programmed, while Ao- A4 are automatically inserted by the 8259A. When Inter· val = 8 only A6 and A7 are programmed, while Ao-A5 are automatically inserted.
MCS·86 mode is similar to MCS·80 mode except that only two Interrupt Acknowledge cycles are issued by the processor and no CALL opcode is sent to the proc· essor. The first interrupt acknowledge cycle is similar to that of MCS-80/85 systems in that the 8259A uses it to internally freeze the state of the interrupts for priority resoiuiion ana as a master it issues the interrupt code on the cascade lines at the end of the INTA pulse. On this first cycle it does not issue any data to the proc- essor and leaves its data bus buffers disabled. On the second interrupt acknowledge cycle in MCS·86 mode the master (or slave if so programmed) will send a byte of data to the processor with the acknowledged inter· rupt code composed as follows (note the state of the ADI mode control is ignored and A5-All are unused in MCS-86 mode):
Content of Second Interrupt
Intervll-4 D8 D5 04 D3 02
Dl DO 0
A6 A5 1 1 1
A6 A5 1 1 0 A6 A5 1 0 1
A7
A6 A5 1 0 0
4 3 2 1 0
A6 A5 0 1 1 A6 A5 0 1 0 A6 A5 0 0 1 A6 A5 0 0 0
Content of Interrupt Vector Byte
for MCS·86 System Mode
07 08 05 04 03 02 01 00
o7 o_6 D_5 o_4 o_3 D_2_~_0_1 __ ~0~~_ 7 ~~ A~6~ ~ ___ ~ __ ~ ___ ~O~ __ ~O O~ 6 A7 __ A~6 ~ __ ~ __ ~O __ ~O: ~O ~
A15 A14 A13 A12 All 1 1 1
A15 A14 A13 A12 All 1 1 0
A15 A14 A13 A12 All 1 0 1
IR4
A15 A14 A13 A12 All 1 0 0
'115 A14 A13 A12 Al_~ 1 1
3 A7 A6 0 1 0 0 o.~ 2 A7 A6 0 1 0 --- ~--~-.- 1--1 __ ~7 __ ~6 ___ ~ __ Cl ~ O" ~ __ ~ o A7 A6 0
A15 A14 A13 A12 'Ill 0 1 0
A15 A14 A13 A12 All 0 0 1
A15 A14 A13 A12 All 0 0 0 ~ ___ L -- __ ~_


INITIALIZATION
The 8259A accepts two types 01 command words gener· ated by the CPU:
Whenever a command is issued with AO = 0 and D4 = 1, this is interpreted as Initialization Command Word 1 (ICW1). ICW1 starts the initialization sequence during which the following automatically occur.
a. The Interrupt Mask Register is cleared.
b. IR 7 input is assigned priority 7.
c. The slave mode address is set to 7.
d. Special Mask Mode is cleared and Status Read is set to
IRR.
e. If IC4 = O. then all functions selected in ICW4 are set to
zero. (Non-Buffered mode'. no Auto-EOI. MCS-80/85 system. non SFNM).
The OCWs can be written into the 8259A anytime alter initialization.
'Nol.: Master/Slave In ICW4 Is only used in the buffered mode.
Ao D4 D3 RD WR CS
0 0 1 0 1 0 1 0
IRR. ISR or Interrupting Level-+-DATA BUS (Note 1) IMR .--DATA BUS
0 0 0 1 0 1 1 0 0 0 1 X 1 0 0 1 X X 1 0 0
DATA BUS --OCW2 DATA BUS --OCW3 DATA BUS ICW1 DATA BUS OCW1.ICW2.ICW3.ICW4 (Note 2)
X X X 1 1 0 X 1
DATA BUS - 3-STATE (NO OPERATION) DATA BUS - 3-STATE (NO OPERATION)
Nol." t. Selection of IRR. ISR or Interrupting Level Is based on the content of OCW3 written before the READ operation.
8259A Ba.le Operation


INITIALIZATION COMMAND WORD 3 (ICW3)
This word is read only when there is more than one 8259A in the system and cascading is used, in which case SNGL = O. It will load the 8-bit slave register. The functions of this register are:
As-A1S: Page starting address of service routines. In an MCS 80/85 system, the 8 request levels will generate CALls to 8 locations equally spaced in memory. These can be programmed to be spaced at intervals of 4 or 8 memory locations, thus the 8 routines will occupy a page of 32 or 64 bytes, respectively.
a. In the master mode (either when SP = 1, OJ in buttered
mode when MIS = 1 in ICW4) a "1" is set for each slave in the system. The master then will release byte 1 of the call sequence (for MCS-SO/S5 system) and will enable the corresponding slave to release bytes 2 and 3 (for MCS-S6 only byte 2) through the cascade lines. b. In the slave mode (either when SP = 0, or if BUF = 1
The address format is 2 bytes long (Ao-A1S)' When the routine interval is 4, Ao-A4 are automatically inserted by the 8259A, while As-Als are programmed externally. When the routine interval Is 8, Ao-As are automatically inserted by the 8259A, while A6-A1S are programmed externally.
and MIS = 0 in ICW4) bits 2-0 identify the slave. The slave compares its cascade Input with these bits and, if they are equal, bytes 2 and 3 of the call sequence (or just byte 2 for MCS-86) are released by it on the Data Bus. INITIALIZATION COMMAND WORD 4 (lCW4)
The a·byte interval will maintain compatibility with cur- rent software, while the 4-byte interval is best for a com- pact jump table.
In an MeS-86 system A1S-All are inserted in the five most significant bits of the vectoring byte and the 8259A seis ilie iI""" illasi signiiicant bits accorolng to the interrupt level. Al0-As are ignored and ADI (Address Interval) has no effect.
buffered mode SP/EN becomes an enable output and the masterlslave determination Is by MIS. MIS: If buffered mode Is selected: MIS = 1 means the 8259A is programmed to be a master, MIS = 0 means the 8259A is programmed to be a siave. If BUF = 0, MIS has no function. AEOI: If AEOI = 1 the automatic end of Interrupt mode
level Interrupt mode. Edge detect logic on the Interrupt Inputs will be disabled. ADI: CALL address Interval. ADI = 1 then Interval = 4; ADI = 0 then Interval = 8. SNGL: Single. Means that this Is the only 8259A In the
Is programmed. ,",PM: Microprocessor mode: ,",PM = 0 sets the 8259A for MCS-80/85 system operation, ,",PM = 1 sets the 8259A for MCS-86 system operation.
system. If SNGL= 1 no ICW3 will be Issued. IC4: If this bit Is set - ICW4 has to be read. If ICW4 Is not needed, set IC4 = O.
D3 D2 Dl DO
lTIM ADI SNGl IC4j ICWI
All Al0 AI AljlCW2
r (-~~.~~
,.------------~~~ ~."
READY TO ACCEPT REQUESTS
IN THE FUllY NESTED MODE
Figure 1_ Initialization Sequence
SFNM aUF t


1· lew. NEEOED 0 .. NO ICW4NEEDEO
CALL ADDRESS INTERVAL
1'" INTERVAL OF 4 O· INTERVAL OF 8
1 .. LEVel TRIGGERED INPUT 0'" EDGE TRIGGERED INPUT
A7 - AS OF LOWER ROUTINE ADDRESS (MC8-80/95 MODE ONl YI
UPPER ROUTINE ADDRESS
ICW3 (MASTER DEVICE)
1 ~ IR INPUT HAS A SLAVE 0" IR INPUT DOES NOT HAVE A SLAVE
~ 1, j 0 I 0 I 0 I 0 I 0 lID, liD, lIDo I
1 '" MCS 86 MODE 0'" MCS·80/85 MODE
1 ~ AUTO £01 0'" NORMAL EOI
EH!j
X--' - NON BUFFERED MODE 1 0 - BUFFERED MODE/SLAVE 1 , BUFFERED MODE/MASTER
Initialization Command Word Format


OPERATION COMMAND WORDS (OCWs)
After the Initialization Command Words (ICWs) are pro- grammed Into the 8259A, the chip Is ready to accept Interrupt requests at Its Input lines. However, during the 8259A operation, a selection of algorithms can com- mand the 8259A to operate In various modes through the Operation Command Words (OCWs).
OCW1 sets and clears the mask bits In the Interrupt Mask Register (IMR). M:'- Mo represent the eight mask bits. M = 1 Indicates the channel is masked (Inhibited), M = 0 indicates the channel is enabled.
OPERATION CONTROL WORDS (OCWI)
R, SEOI, EOI - These three bits control the Rotate and End of Interrupt modes and combinations of the two. A chart of these combinations can be found on the Opera· tlon Command Word Format.
OCW1 AO D7 De D5 D4 D3 D2 D1 DO [i] I M7 Me M5 M4 M3 M2 M1 MO I
L2, L1, La - These bits determine the Interrupt level acted upon when the SEOI bit Is active.
OCW2 0 I R SEOI EOI 0 0 L2 Ll LOI
ESMM - Enable Special Mask Mode. When this bit Is set to 1 It enables the SMM bit to set or reset the Special Mask Mode. When ESMM = 0 the SMM bit becomes a "don't care".
SMM - Special Mask Mode. If ESMM = 1 and SMM = 1 the 8259A will enter Special Mask Mode. If ESMM = 1 and SM M = 0 the 8259A will revert to normal mask mode. When ESMM = 0, SMM has no effect.


~ 07 ~ 0, ~
I 0 R I SEor I EOI I o i 0 1 c, 1 c, 1 c, I
BCD LEVel TO BE RESET OR PUT INTO LOWEST PRIORITV
0 , 1 r J- r+ NON-$I'ECIFrCEO. ~-'i-r+ SPECIFIC eol. lO-L2 CODE OF IS Ff TO BE RESET r,-o~ ROTATE AT Eor AUTOMATICALLY (MODE A) I-i-r,-r-;- ROTATE AT EOIIMOOE BI, (LG-U OEFINES NEW LOWESTPRIORITV) I-i-Io'o SET ROTATE A FF r,-r,-r,- CLEAR ROTATE A fF f7r-;-~ AOTATE PRIORITY (MODE B) INDEPENDENTLY OF EOI (LO-U CODE OF LINE) tttttt NOOPERATLON
I 0 1 - I"M"I SMM 1 0 1 ' 1 p 1 ERIS 1 R'S I
0 I 0 , ,
NO ACTION IR REG ISREG ON NE'(T ON NEXT RD PULSE AD PULSE
POLLING
A HIGH ENABLES THE NEXT Fib PULSE TO READ THE BCD CODe OF THE HIGH EST LEVEL REQUESTING INTERRUPT
Operation Command Word Format
ocw, · ocw, · SPECIAL MASK MODe


FULLY NESTED MODE This mode is entered after Initialization unless another mode is programmed. The interrupt requests are ordered in priority form 0 through 7 (0 highest). When an interrupt is acknowledged the highest priority request is determined and its vector placed on the bus. Additional- ly, a bit of the Interrupt Service register (ISO-7) is set. This bit remains set until the microprocessor issues an End of Interrupt (EOI) command immediately before returning from the service routine, or if AEOI (Automatic End of Interrupt) bit is set, until the trailing edge of the last INTA. While the IS bit is set, all further interrupts of the same or lower priority are inhibited, while higher levels will generate an interrupt (which will be acknowledged only If the microprocessor internal Inter- rupt enable flip-flop has been re-enabled through soft- ware). After the Initialization sequence, IRO has the highest priority and IR7 the lowest. Priorities can be changed, as will be explained, In the rotating priority mode.
Each Interrupt Request Input can be masked Indlvldu- ,ally by the Interrupt Mask Register (IMR) programmed
through OCW1. Each bit In the IMR masks one Interrupt channel If It Is set (1). Bit 0 masks IRO, Bit 1 masks IR1 and so forth. Masking an IR channel does not affect the other channels operation.
Some applications may require an interrupt service routine to dynamically alter the system priority struc- ture during its execution under software control. For example, the routine may wish to inhibit lower priority requests for a portion of its execution but enable some of them for another portion.
The difficulty here Is that if an Interrupt Request is acknowledged and an End of Interrupt command did not reset its IS bit (i.e., while executing a service routine), the 8259A would have inhibited all lower priority requests with no easy way for the routine to enable them That is where the Special Mask Mode comes In. In the special Mask Mode, when a mask bit is set in OCW1, it inhibits further interrupts at that level and enables Inter- rupts from all other levels (lower as well as higher) that are not masked.
This mode will be used In the case of a big system where cascading Is used, and the priority has to be con- served within each slave. In this case the fully nested mode will be programmed to the master (using ICW4). This mode Is similar to the normal nested mode with the following exceptions:
Thus, any interrupts may be selectively enabled by loading the mask register.
The special Mask Mode is set by OCW3 where: SSMM = 1, SMM = 1, and cleared where SSMM = 1, SMM=O.
a. When an Interrupt request from a certain slave is in
service this slave Is not locked out from the master's priority logic and further interrupt requests from higher priority IR's within the slave will be recognized by the master and will initiate Interrupts to the proc- essor. (In the normal nested mode a slave is masked out when Its request is in service and no higher requests from the same slave can be serviced.)
When the 8259A Is used in a large system where bus driving buffers are required on the data bus and the cas- cading mode is used, there exists the problem of enabl- Ing buffers. The buffered mode will structure the 8259A to send an enable Signal on Sfi/EN to enable the buffers. In this mode, whenever the 8259A's data bus outputs are ena- bled, the SP/EN output becomes active. This modification forces the use of software program- ming to determine whether the 8259Ais a master or a slave. Bit 3 in ICW4 programs the buffered mode, and bit 2 in ICW4 determines whether it is a master or a slave.
b. When exiting the Interrupt Service routine the soft-
ware has to check whether the interrupt servlced was the only one from that slave. This is done by sending a non-specific End of Interrupt (EOI) command to the slave and then reading Its In-Service register and checking for zero. If it is empty, a non-specific EOI . can be sent to the master too. If not, no EOI should be
sent.


second in MCS·86). Note that from a system standpoint, this mode should be used only when a nested multilevel interrupt structure is not required within a single 8259A.
In this mode the microprocessor internal Interrupt Enable flip-flop Is reset, disabling its interrupt input. Service to devices is achieved by programmer Initiative using a Poll command.
To achieve automatic rotation (Rotate Mode A) within AEOI, there is a special rotate flip-flop. It is set by OCW2 with R = 1, SEOI = 0, EOI = 0, and cleared with R = 0, SEOI = 0, EOI = O.
The Poll command Is Issued by setting P= "1" in OCW3. The 8259A treats the next AD pulse to the 8259A (i.e., RD = 0, ~ = 0) as an interrupt acknowledge, sets the appropriate IS bit If there is a request, and reads the priority level. Interrupt is frozen from WR to RD.
ROTATING PRIORITY MODE A (AUTOMATIC ROTATION) FOR EQUAL PRIORITY DEVICES
In some applications there are a number of interrupting devices of equal priority. In this mode a device, after being serviced, receives the lowest priority, so a device requesting an interrupt will have to wait, in the worst case until each of 7 other devices are serviced at most once. For example, if the priority and "in service" status is:
The word enabled onto the data bus during m5 is:
1 I W2 WI wol
requesting service. I: Equal to a "1" if there is an interrupt.
Before Rotate (IR4 the highest priority requiring service)
This mode Is useful if there is a routine command com·
mon to several levels so that the fNTA sequence is not needed (saves ROM space). Another application is to use the poll mode to expand the number of priority levels to more than 64.
IS7 lSI ISS IS. IS3 152 IS1 ISO
The In Service (IS) bit can be reset either automatically following the trailing edge of the last in sequence INTA pulse (when AEOI bit in ICW1 is set) or by a command word that must be issued to the 8259A before returning from a service routine (EOI command). An EOI command must be issued twice, once for the master and once for the corresponding slave if slaves are in use.
After Rotate (IR4 was serviced, all other priorities rotated correspondingly)
IS7 lSI ISS IS. IS3 IS2 151 ISO
There are two forms of EOI command: Specific and Non· Specific. When the 8259A Is operated in modes which preserve the fully nested structure, it can determine which IS bit to reset on EOL When a Non-Specific EOI command is issued the 8259A will automatically reset the highest IS bit of those that are set, since in the nested mode the highest IS level was necessarily the last level acknowledged and serviced.
Hlgh.1I Prlorlly
The Rotate command mode A is issued in OCW2 where: R = 1. EOI = 1. SEOI = O. Internal status is updated by an End of Interrupt I EOI or AEOII command. If R = 1, EOI = 0, SEOI = 0, a "Rotate-A" flip-flop is set. This is useful in AEOI, and described under Automatic End of Interrupt.
However, when a mode is used which may disturb the fully nested structure, the 8259A may no longer be able to determine the last level acknowledged. In this case a Specific End of Interrupt (SEOI) must be issued which Includes as part of the command the IS level to be reset. EOI is issued whenever EOI = 1, in OCW2, where LO-L2 is the binary level of the IS bit to be reset. Note that although the Rotate command can be issued together with an EOI where EOI = 1, it is not necessarily tied to it.
The programmer can change priorities by programming the bottom priority and thus fixing all other priorities; i.e., if IR5 is programmed as the bottom priority device, then IR6 will have the highest one.
It should be noted that an IS bit that is masked by an IMR bit will not be cleared by a non·specific EOI if the 8259A Is in the Special Mask Mode.
The Rotate command is issued in OCW2 where: R = 1, SEOI = 1; LO- L2 is the binary priority level code of the bottom priority device.
If AEOI = 1 In ICW4, then the 8259A will operate in AEOI mode continuously until reprogrammed by ICW4. In this mode the 8259A will automatically perform a non· specific EOI operation at the trailing edge of the last interrupt acknowledge pulse (third pulse in MCS·80/85,
Observe that In this mode internal status is updated by software control during OCW2. However, it is independ- ent of the End of Interrupt (EOI) command (also exe· cuted by OCW2). Priority changes can be executed duro ing an EOI command or independently.
Priority Status · Priority Status


LTIM liT .=EOGE 1 "",LEVEL
·""ORITY REIOLVER
CONTRDL
LOGIC
REOUEST
LATCH
,R -+-11>> '1.. o a~~-+---,~uo.~-+~--4~ NON· MASKED REO LATCH c a o oH-++-+ .:~
HOLD
Priority Cell - Simplified Logic Diagram
In-Service Register (ISR): 8-bit register which contains the priority levels that are being serviced. The .ISA is updated when an End of Interrupt command is Issued.
This mode is programmed using bit 3 in ICW1.
If LTIM ='1', an interrupt request wilrbe recognized by a 'high' level on IA Input, and there is no need for an edge detection. The interrupt request must be removed before the EOI command Is Issued or the CPU Interrupt is enabled to prevent a second interrupt from occurring.
Interrupt Mask Register: 8-bit register which. contains the interrupt request lines which are masked.
The IAA can be read when, prior to the AD pulse, a WR pulse is Issued with OCW3 (EAIS= 1, RIS=O.)
The above figure shows a conce~::Jal circuit to give the reader an understanding of the level sensitive and edge sensitive input circuitry of the 8259A. Be sure to note that the request latch is a transparent D type latch.
The ISA can be read in a similar mode when EAIS= 1,
AIS = 1 in the OCW3.
There is no need to write an OCW3 before every status read operation, as long as the status read corresponds with the previous one; I.e., the 8259A "remembers" whether the IRA or ISA has been previously selected by the OCW3. This is not true when poll is used.
The Input status of several internal registers can be read to update the user Information on the system. The following registers can be read by Issuing a suitable OCW3 and reading with AD.
After Initialization the 8259A is set to IAA.
For reading the IMA, no OCW3 is needed. The output data bus will contain the IMA whenever AD is actiYe and AO= 1.
Interrupt Mask Register: 8-blt register whose content specifies the Interrupt request lines being masked. acknowledged. The highest request leyel is reset from the IAA when an Interrupt Is acknowledged. (Not affected by IMA.)
Polling overrides status read when P= 1, EAIS= 1 in OCW3.
itT · fOLLOW


The 8272 is an LSI Floppy Disk Controller (FDG) Chip, which contains the circuitry and control functions for Interfacing a processor to 4. Floppy Disk Drives. It is capable of supporting either IBM 3740 single density format (FM), or IBM System 34 Double Density format (MFM) including double sided recording. The 8272 provides control signals which simplify the design of an external phase locked loop, and write precompensation circuitry. The FDC simplifies and handles most of the burdens associated with implementing a Floppy Disk Drive Interface.
8272 INTERNAL BLOCK DIAGRAM
RESET Vee liD RWISEEK
BUFFER
REGISTERS
AO
WPITS
SERIAL INTERFACE CONTROLLER
TERMINAL
COUNT - .
WRITE PROTECTITWO SIDE INDEX FAULTITRACK 0
INT liD_ WR ~ CONTROL
Ao ~ LOGIC RESET ~ L-.,..- I
DRIVE SELECT 0 DRIVE SELECT 1 MFM MODE
l'iW/SEEK HEAD LOAD HEAD SELECT LOW CURRENT/DIRECTION FAULT RESET/STEP
Vee -... GND ---+-
Intel Corporation Assumes No Responsibllty for the Use of Any Circuitry Other Than Circuitry Embodied in 8n Intel Product. No Other Circuit Patent Licenses are Implied.
DRQ mK_ · elK ~


The 8272 contains two registers which may be accessed by the main system processor; a Status Register and a Data Register, The 8-bit Main Status Register contains the status information of the FDC, and may be accessed at any time. The 8-bit Data Register (actually consists of several registers in a stack with only one register pre- sented to the data· bus at a time), stores data, com- mands, parameters, and FDD status information. Data bytes are read out of, or written into, the Data Register in order to program or obtain the results after execution of a command. The Status Register may only be read and is used to facilitate the transfer of data between the processor and 8272.
8237 i5ACK DMA CONTROLLER
The relationship between the Status/Data registers and the signals RD, WR, and Ao is shown below.
TC
Ao RD WR FUNCTION
COUNT
0 0 i Head Main l::itatus Register
0 1 0 Illegal
0 0 0 Illegal
1 0 0 Illegal
Hand-shaking signals are provided in the 8272 which make DMA operation easy to incorporate with the aid of an external DMA Controller chip, such as the 8237. The FDC will operate in either DMA or Non-DMA mode. In the Non-DMA mode, the FDC generates interrupts to the processor for every transfer of a data byte between the CPU and the 8272. In the DMA mode, the processor need only load a command into the FDC and all data transfers occur under control of the 8272 and DMA controller.
1 0 1 Read from Data Register
1 1 0 Write into Data Register
The bits in the Main Status Register are defined as
follows:
There are 15 separate commands which the 8272 will execute. Each of these commands require multiple 8-bit bytes to fully specify the operation which the processor wishes the FDC to perform. The following commands are available.
080 FOO 0 Busy 008 FOO numberO is in the Seek mode.
08, FDD 1 Busy 0,8 FOO number 1 is in the Seek mode.
082 FDD 2 Busy 028 FOD number2 is in the Seek mode.
Read Data Read ID Read Deleted Data Read a Track Scan Equal Scan High or Equal Scan Low or Equal Specify
083 FOD 3 Busy 038 FDO number3 is in the Seek mode.
Format a Track Write Deleted Data Seek Recalibrate (Restore to
084 FOC Busy C8 A read or write command is in process.
085 Non·DMA mode NOM The FOe is in the non·DMA mode. This bit is set only during the execution phase in non·DMA mode. Tran- sition to "0" state indicates execution phase has ended.
Track 0) Sense Interrupt Status Sense Drive Status
086 Data Input/Output 010 Indicates direction of data transfer between FOe and Data Register. If 010="1" then transfer Is from Data Register to the Processor. If 010 = "0", then_ transfer is -from the Processor to Data Register.
Address mark detection circuitry is internal to the FDC which simplifies the phase locked loop and read elec- tronics. The track stepping rate, head load time, and head unload time may be programmed by the user. The 8272 offers many additional features such as multiple sector transfers in both read and write modes with a single command, and full IBM compatibility in both single (FM) and double density (MFM) modes.
087 Request for ROM Indicates Data Register is Master ready to send or receive data to or from the Proc· essor. Both bits 010 and ROM should be used to perform the handshaking functions of "ready" and "direction" to the processor.
Write Data


40 VCC D.C. POWER + 5V
39 RWISEEK 0 FOO Read Write/SEEK: When "1" (high) Seek mode selected and 1 RST I "p Reset: Places FOe in idle when "0" (low) ReadlWrite state. Resets output lines to mode selected FOD to "0" (low)
38 LCTIOIR 0 FOO Low Current/Direction: Lowers Write current on inner tracks transfer of data from FOC to In ReadlWrlte mode, deter· Data Bus. when "0" (low) mines direction head will step
transfer of data to FOe via Data 37 FAlSTP 0 FOO Fault Reset/Step: Resets fault Bus, when "0" (low) FF in FOD in ReadlWrite
4 CS I "p Chip Select: Ie selected when "0" (low), allowing Ffi) and m to be enabled
mode, provides step puises to move head to another cylinder in Seek mode
5 Ao I "p Data/Status Reg Select Selects Data Reg (AO = 1) or Stalus Reg (AO = 0)
36 HOL 0 FOO Head Load: Command which causes read/write head in FDD to contact diskette content 35 ROY I FOO Ready: Indicates FDD Is ready be sent to Data Bus to send or receive data
6-13 OBo-OB7 I/O "p Data Bus: Bidirectional 34 WPITS I FOO Write ProtectlTwo-Slde: a-Sit Data Bus Senses Write Protect status In
ReadIWrlte mode, and Two Side Media In Seek mode
14 ORO 0 OMA Data DMA Request; DMA Request is being made by
FOC when ORO "1" 33 FLTITRKO I FOO Faultrrrack 0: Senses FDD
fault condition In ReadlWrlte mode and Track 0 condition in Seek mode.
15 OACK I OMA DMA Acknowledge: DMA cycle Is active when "0" (low) 'and Controller Is
performing DMA transfer 31,32 PS"PSO 0 FOO Precompensatlon (pre-shift):
16 TC I OMA Terminal Count: Indicates the termination of a DMA transfer when "1" (high)
Write precompensation status during MFM mode. Deter· mines early, late, and normal times. 17 lOX I FOO Index: Indicates the beginning of a disk track 30 WR DATA 0 FOO Write Data: Serial clock and data bits to FDD 18 INT 0 "p Interrupt: 'Interrupt Request Generated by FOC 28,29 OS"OSO 0 FOO Drive Select: Selects FOD unit
27 HOSEL 0 FOO Head Select: Head 1 selected when "1" (high) Head 0 selected when "0" (low) 20 GNO Ground: D.C. Power Return
26 MFM 0 PLL MFM Mode: MFM mode when "1", FM mode when "0"
24 VCO 0 PLL VCO Sync: Inhibits VCO in PLL when "0" (low), enables VCO when "1"
23 RO DATA I FOO Read Data: Read data from FOD, containing clock and data bits
22 OW I PLL Data Window: Generated by PLL, and used to sample data from FDD
21 WRCLK I Write Clock: Write data rate to FDD FM = 500 kHz, MFM = 1 MHz, with a pulse width of 250 ns for both FM and MFM


The 010 and ROM bits in the Status Register indicate when Data is ready and In which direction data will be transferred on the Data Bus.
the reset to the Interrupt signal.
If the 8272 Is in the DMA Mode, no Interrupts are gener- ated during the Execution Phase. The 8272 generates ORa's (DMA Requests) when each byte of data Is available. The DMA Controller responds to this request 'with both a DACK = 0 (DMA Acknowledge) and a RD = 0
04TAI,.·OUT 1010) OUT OF PROCEnaR AND INTO FDC
(Read signal). When the DMA Acknowledge signal goes low (DACK = 0) then the DMA Req uest Is reset (ORO = 0). If a Write COmmand has been programmed- then a WR Signal will appear Instead of RD. After the EXf!cution Phase has been completed (Terminal Count has occurred) then an Interrupt will occur (INT = 1). This signifies the beginning of the Result Phase. When the first byte of data Is read during the Result Phase, the In- terrupt Is automatically reset (INT = 0).
I·
I!l - DATA REGiStER HOT READY TO liE WRITTEN INTO IY PAOCUSOR @ - OATA REGISTER READY FDA NEXT DATA BYTE TO IE READ IV THE PROCESSOR [QJ _ DATA REGISTER NOT READY FDA NEXT DATA BYTE TO III! READ BY
It is important to note that during the Result Phase all bytes shown In the Command Table must be read. The Read Data Command, for example, has seven bytes of data in the Result Phase. All seven bytes must be read In order to successfully complete the Read Data Com- mand. The 8272 will not accept a new command until all seven bytes have been read. Other commands may re- quire fewer bytes to be read during the Result Phase.
The 8272 Is capable of executing 15 different com- mands. Each command is initiated by a multi-byte transfer from the processor, and the result after execu- tion of the command may also be a multi-byte transfer back to the processor. Because of this multi-byte Inter- change of information between the 8272 and the proc- essor, It is convenient to consider each command as consisting of three phases:
The 8272 contains five Status Registers. The Main Status Register mentioned above may be read by the processor at any time. The other four Status Registers (STO, ST1, ST2, and ST3) are only available during the Result Phase, and may be read only after successfully completing a command. The particular command which has been executed determines how many of the Status _ Registers will be read.
required to perform a particular operation from the processor. Execution Phase: The FDC performs the operation It
was Instructed to do. Resuft Phase: After completion of the operation, status and other housekeeping In- formation are made available to the processor.
The bytes of data which are sent to the 8272 to form the Command Phase, and are read out of the 8272 in the Result Phase, must occur In the order, shown In the Command Table. That Is, the Command Code must be sent first and the other bytes sent In the prescribed se- quence. No foreshortening of the Command or Result Phases are allowed. After the last byte of data In the Command Phase is sent to the 8272 the Execution Phase automatically starts. In a similar fashion, when the last byte of data is read out In the Result Phase;the command Is automatically ended and the 8272 Is ready for a new command. A command may be aborted by simply sending a Terminal Count signal to pin 16 (TC = 1). This Is a convenient means of ensuring that the processor may always get the 8272's attention even If the disk system hangs up In an abnormal manner.
During Command or Result Phases the Main Status Register (described earlier) must be read by the proc- essor before each byte of information Is written into or read from the Data Register. Bits 06 and 07 in the Main Status Register must be In a 0 and _1 state, respectively, before each byte of the command word may be written Into the 8272. Many of the commands require multiple bytes, and as a result the Main Status Register must be read prior to each byte transfer to the 8272. On the other hand, during the Result Phase, 06 and 07 In the Main Status Register must both be 1's (06= 1 and 07= 1) before reading each byte from the Data Register. Note, this reading of- the Main Status Register before each byte transfer to the 8272 is required in only the Com- mand and Result Phases, and NOT during the Execution Phase.
After the Specify command has been sent to the 8272, the Drive Select Lines DSO and DS1 will automatically go into a polling mode. In between commands (and be- tween step pulses in the SEEK command) the 8272 polls all four FDDs looking for a change In the Ready line from any of the drives. If the Ready line changes state (usual- ly due to a door opening or closing) then the 8272 will generate an Interrupt. When Status Register 0 (STO) Is read (after Sense Interrupt Status is Issued), Not Ready (NR) will be indicated. The polling of the Ready line by the 8272 occurs continuously between instructions, thus notifying the processor which drives are on or off line.
During the Execution Phase, the Main Status Register need not be read. If the 8272 Is in the Non-DMA Mode, then the receipt of each data byte (If 8272 Is reading data from FDD) is indicated by an Interrupt signal on pin 18 (lNT = 1). The generation of a Read signal (im = 0) will reset the Interrupt as well as output the Data onto the Data Bus. For example, If the processor cannot handle Interrupts fast enough (every 13/o1s for MFM mode) then It may poll the Main Status Register and then bit 07 (ROM) functions just like the Interrupt signal. If a Write
Command Is In process then the WFf Signal performs


I DATA BUS DATA BUS
PHASE AIW Dr De D6 D4 Da DZ D, DO REMARKS PHASE AIW Dr D, D6 D4 Da Dz D, DO REMARKS
Command W MT MFM SK 0 0 , , 0 Command Codes Command W 0 MFM SK 0 0 0 , 0 Command Codes
W 0 HDS OS, DSO W 0 HOS 051 DSO
W C Sector 10 information W C Sector 10 Information W H prior to Command W H prior to Command W R execution W R execution W N W N W EDT W EDT W GPL \
Execution Data transfer Execution Data transfer between the FOD between the FDD and main-system and maln-Iystem. Result R STO Status Information FCC road. all of R ST' after Command cylinders contents R ST2 execution from Index hole to R C EDT R H sector 10 Information R R after command Result R STO Statu8 Information R N execution R STI after Command R ST2 execution READ DELETED DATA R C
Command W MT MFM SK 0 1 • 0 0 Command Codes R H Sector 10 Information R R after Command W 0 HDS OS, 050 R N execution W C Sector 10 information W H prior to Command READ 10 W R execution Command W 0 MFM 0 0 1 0 , 0 Commands W N W EC. W 0 HDS OS. DSO
W GPL W DTL Execution The first correct 10
Execution Data transfer Information on the
between the FOO Cylinder Is stored In
and main-system Data Register
Result R STO Status Information Result R STO Status Information R ST1 after Command R STI after Command R ST2 execution R ST2 execution R C R C R H Sector 10 information R H Seotor 10 Information R R after Command R R during Execution R N execution R N Ph ...
W 0 HOS 051 050 W 0 HDS OS. DSO
W C Sector 10 information W N BytellSector W H prior to Command W SC SectorsfTrack
W R execution W GPL Gap 3 W N W 0 Fllt.r Byt. W EDT W GPL Execution FDC formats an W DTL entire cylinder
Execution Data transfer Result R STO Status Information between the main- R ST. after Command system and FOO R ST2 execution
Result R STO Status information R C
R ST. after Command R H In this case, the 10
R ST2 execution R R information has no R C R N meaning
R H Sector 10 information SCAN EQUAL R R after Command R N execution Command W MT MFM SK 1 0 0 0 1 Command Codes
WRITE DELETED DATA W 0 HOS OS. DSO
Command W MT MFM 0 0 • 0 0 1 Command Codes W C Sector 10 information W H prior to Command W 0 HDS OS. DSO W R execution W C Septar 10 Information W N W H prior to Command W EDT W R execution W GPL W N W STP W EDT W GPL Execution Data compared W DTL between the FDO
between the FOO Result R STO Status Information and main-system R STI after Command
Aesult R STO Status information R ST2 execution
R ST. after Command R C
R 5T2 execution R H Sector 10 Information
R C R R after Command
R H Sector 10 information R N execution
R R after Command R N execution
and main-system · Execution Data transfer


TABLE 1. COMMAND SET (Continued)
PHASE RIW I D7 De D5 D4 D3 D2 Dl DO REMARKS PHASE RIW 07 D6 D5 D4 D3 D2 Dl DO REMARKS
Command W MT MFM SK 1 1 0 0 1 Command Codes Command W 0 1 1 1 Command Codes W 0 HDS DSl DSO W 0 DSl DSO W C Sector lD information Execution Head retracted to W H prior Command Track 0 W R execution W N SENSE INTERRUPT STATUS W EOT Command W 0 1 0 0 0 Command Codes W GPL W STP Result R ST 0 Status Information at R PCN the end of each seek Execution Data compared operation about the between the FOD FDC and main-system SPECIFY
Result R STO Status Information Command W 0 1 1 Command Codes R STl after Command W _SPT ---HUT R ST2 execution - R C W HLT • NO
R H Sector 10 Information SENSE DRIVE STATUS R R after Command R N execution Command W 0 1 0 0 Command Codes
SCAN HIGH OR EQUAL w 0 HDS DSl DSO Result R ST 3 Status Information Command W MT MFM SK 1 1 1 0 1 Command Codes about FoD W 0 HDS DSl DSO SEEK W C Sector 10 information W H prior Command Command W 0 1 Command Codes W R execution W 0 HDS DSl DSO W N W NCN W EOT W GPL Execution Head Is positioned W STP over proper Cylinder
Execution Data compared on Diskette
between the FDD INVALID and main-system
Command W Invalid Codes Invalid Command Result R STO Status Information Code. (NoOp- FDC R ST 1 after Command goes Into Standby R 5T2 execution Stale) R C Result R 5TO STO=80 R H Sector 10 Information (16) R R after Command R N execution


SYMBOL NAME DESCRIPTION
Ao Address Line 0 AO controls selection of Main Status Register (AO= 0) or Data Register (AO = 1).
NCN New Cylinder Number NCN stands for a new Cylinder number, which Is going to be reached as a result of the Seek operation, Desired position of Head.
C Cylinder Number C stands for the current selected Cylinder track number 0 through 76 of the medium.
0 Data o stands for the data pattern which Is going to be written Into a Sector.
NO Non·DMA Mode NO stands for operation In the Non·DMA Mode,
orOo Data Bus B-blt Data Bus where 07 is the most significant bit, and 00 Is the least signlfl' cant bit.
PCN Present Cylinder PCN stands for the Cylinder number at Number the completion of SENSE INTERRUPT STATUS Command. Position of Head at present time.
OSO,OS1 Drive Select OS stands tor a selected drive number 0 or 1.
R Record R stands for the Sector number, which will be read or written.
oTl Data length When N is defined as OQ, DTl stands for the data length which users are going to read out or write into the Sector.
R/W Read/Write R/W stands for either Read (R) or Write (IN) aignal.
EOT End of Track EOT stands for the final Sector number of a Cylinder.
SC Sector SC Indicates the number of Sectors per Cylinder.
GPl Gap Length GPL stands for the length of Gap 3 (spacing between Sectors excluding VCO Sync Field).
SK Skip SK stands for Skip Deleted Data Address Mark.
SRT Step Rate Time SRT stands for the Stepping Rate for the FDD (1 to 16ms In 1 ms Increments). Stepping Rate applies to a1\ drives (F = 1 ms, E = 2 ms, etc.).
H Head Address H stands for head number 0 or 1, as specified in 10 field.
HOS Head Select HOS stands for a selected Mad number 0 or 1 (H = HOS in all command words).
STO Status 0 ST 0-3 stand for one of four registers ST 1 Status 1 which store the status information after ST 2 Status 2 a command has been executed. This ST 3 Status 3 information 15 available during the result phase after command execution. These registers should not be confused with the main status register (selected by AO = 0). ST 0-3 may be read only after a command has been executed and contain information relevant to that particular command.
HLT Head Load Time HLT stands for the head load time in the FOO (2 to 254 ms in 2 ms increments).
HUT Head Unload Time HUT stands for the head unload time after a read or write operation has occurred (16 to 240ms in 16ms Increments).
MFM FM or MFM Mode If MF is low, FM mode is selected and If It Is high, MFM mode Is selected,
MT Multi·Track If MT is high, a multi·track operation is to be performed (a cylinder under both HDO and HD1 will be read or written).
STP During a Scan operation, If STP= 1, the data in contiguous sectors Is compared byte by byte with data sent from the processor (or DMA), and if STP= 2, then alternate sectors are read and compared.
N Number N stands for the number of data bytes written in a Sector.
compares with the sector number read off the diskette, then the FOC outputs data (from the data field) byte-bY- byte to the main system via the data bus.
During the Command Phase, the Main Status Register must be polled by the CPU before each byte is written into the Data Register. The 010 (OB6) and ROM (OB7) bits in the Main Status Register must be in the "0" and "1" states respectively, before each byte of the com- mand may be written into.the 8272. The beginning of the execution phase for any of these commands will cause 010 and ROM to switch to "1" and "0" states respective- ly.
After completion of the read operation from the current sector, the Sector Number is incremented by one, and the data from the next sector is read and output on the data bus. This continuous read function is called a "Multi·Sector Read Operation." The Read Data Com- mand may be terminated by the receipt of a Terminal Count signal. Upon receipt of this signal, the FOC stops outputting data to the processor, but will continue to read data from the current sector, check CRC (Cyclic Redundancy Count) bytes, and then at the end of the sector terminate the Read Data Command.
A set of nine (9) byte words are required to place the FOC into the Read Data Mode. After the Read Data com· mand has been issued the FOC loads the head (if it is in the unloaded state), waits the specified head settling time (defined in the Specify Command), and begins reading 10 Address Marks and 10 fields. When the cur· rent sector number ("R") stored in the 10 Register (lOR)
The amount of data which can be handled with a Single command to the FOC depends upon MT (multi·track), MFM (MFM/FM), and N (Number of Bytes/Sector). Table 3 below shows the Transfer Capacity.
Maximum Transfer Capacity Final Sector Read MT MFM N (BytesJSector)(Number of Sectors) from Diskette
0 0 00 (128) (26) = 3.328 26 at Side 0 0 1 01 (256)(26) = 8,656 or 26 at Side 1
1 0 00 (128) (52)= 6,656 26 at Side 1 1 1 01 (256) (52) = 13,312
0 0 01 (256)(15)= 3,840 15 at Side 0 0 1 02 (512)(15)= 7,680 or 15 at Side 1
1 0 01 (256) (30)= 7,680 15 at Side 1 1 1 02 (512) (30)= 15,360
0 0 02 (512) (8) = 4.096 8 at Side 0 0 1 03 (1024) (8) = 8,192 or 8 at Side 1
1 0 02 (512)(16)= 8,192 8 at Side 1 1 1 03 (1024)(16)= 16,384
Multl·Track MFM/FM Bytes/Sector


The "multi·track" function (MT) allows the FDC to read data from both sides of the diskette. For a particular cylinder, data will be transferred starting at Sector 0, Side 0 and completing at Sector L, Side 1 (Sector L = last sector on the side). Note, this function pertains to only one cylinder (the same track) on each side of the diskette.
COMMAND'
Final Sector Transferred to 10 Intormatlon at Relult Ph.l. MT EOT Proce.sor C H R N
lA Sector 1 to 25 at Side 0 OF Sector 1 to 14 at Side 0 NC NC R+1 NC 08 Sector 1 to 7 at Side 0
lA Sector 26 at Side 0 OF Sector 15 at Side 0 C+l NC R=Ol NC 08 Sector 8 at Side 0 0 lA Sector 1 to 25 at Side 1 OF Sector 1 to 14 at Side 1 NC NC R+l NC 08 Sector 1 to 7 at Side 1
When N = 0, then DTL de.fines the data length which the FDC must treat as a sector. If DTL is smaller than the ac· tual data length in a Sector, the data beyond DTL in the Sector, is not sent to the Data Bus. The FDC reads (inter· nally) the complete Sector performing the CRC check, and depending upon the manner of command termina· tion, may perform a Multi,·Sector Read Operation. When N is non·zero, then DTL has no meaning and should be set to OFFH.
lA Sector 26 at Side 1 OF Sector 15 at Side 1 C+l NC R=Ol NC 08 Sector 8 at Side 1
lA Sector 1 to 25 at Side 0 OF Sector 1 to 14 at Side 0 NC NC R+l NC 08 Sector 1 to 7 at Side 0
lA Sector 26 at Side 0 OF Sector 15 at Side 0 NC LSB R=Ol NC 08 Sector 8 at Side 0 1 lA Sector 1 to 25 at Side 1 OF Sector 1 to 14 at Side 1 NC NC R+l NC 08 Sector 1 to 7 at Side 1
At the completion of the Read Data Command, the head is not unloaded until after Head Unload Time Interval (specified in the Specify Command) has elapsed. If the processor Issues another command before the head unloads then the head settling time may be saved be· tween subsequent reads. This time out is particularly valuable when a diskette is copied from one drive to another.
lA Sector 26 at Side 1 OF Sector 15 at Side 1 C+l LSB R=Ol NC 08 Sector 8 at Side 1
execution.
If the FOC detects the Index Hole twice without finding the right sector, (indicated in "R"), then the FDC sets the NO (No Data) flag in Status Register 1 to a 1 (high), and terminates the Read Data Command. (Status Register 0 also has bits 7 and 6 set to 0 and 1 respective· Iy.)
A set of nine (9) bytes are required to set the FOG into the Write Data mode. After the Write Data command has been issued the FDC loads the head (if it is in the unloaded state), waits the specified head settling time (defined in the Specify Command), and begins reading 10 Fields. When the current sector number (UR"), stored in the 10 Register (lOR) compares with the sector number read off the diskette, then the FDC takes data from the processor byte-by-byte via the data bus, and outputs it to the FDD.
After reading the 10 and Data Fields in each sector, the FDC checks the CRC bytes. If a read error is detected (incorrect CRC in ID field), the FDC sets the DE (Data Er- ror) flag in Status Register 1 to a 1 (high), and if a CRC er- ror occurs in the Data Field the FOG also sets the DO (Data Error in Data Field) flag in Status Register 2 to a 1 (high), and terminates the Read Data Command. (Status Register 0 also has bits 7 and 6 set to 0 and 1 respec- tively.)
After writing data into the current sector, the Sector Number stored in "R" is incremented by one, and the next data field is written into. The FDC continues this "Multi-Sector Write Operation" until the issuance of a Terminal Count signal. If a Terminal Count signal is sent to the FDC it continues writing into the current sector to complete the data field. If the Terminal Count signal is received while a data field is being written then the re- mainder of the data field is filled with 00 (zeros).
If the FOC reads a Deleted Data Address Mark off the diskette, and the SK bit (bit 05 in the first Command Word) is not set (SK = 0), then the FDC sets the CM (Con- trol Mark) flag in Status Register 2 to a 1 (high), and ter- minates the Read Data Command, after reading all the data in the Sector. If SK = 1, the FDC skips the sector with the Deleted Data Address Mark and reads the next sector.
The FDC reads the 10 field of each sector and checks the CRC bytes. If the FDC detects a read error (incorrect CRC) in one of the 10 Fields, it sets the DE (Data Error) flag of Status Register 1 to a 1 (high), and terminates the Write Data Command. (Status Register 0 also has bits 7 and 6 set to 0 and 1 respectively.)
During disk data transfers between the FDC and the processor, via the data bus, the FDC must be serviced by the processor every 27 fls in the FM Mode, and every 13 fls in the MFM Mode, or the FDC sets the OR (Over Run) flag in Status Register 1 to a 1 (high), and ter- minates the Read Data Command.
The Write Command operates in much the same manner as the Read Command. The following items are the same; refer to the Read Data Command for details:
If the processor terminates a read (or write) operation in the FDC, then the 10 Information in the Result Phase is dependent upon the state of the MT bit and ,EOT byte. Table 4 shows the values for C, H, R, and N, when the processor terminates the Command.


The READ 10 Command is used to give the present posi- tion of the recording head. The FDC stores the values from the first 10 Field it is able to read. If no proper 10 Address Mark is found on the diskette, before the IN- DEX HOLE is encountered for the second time then the MA (Missing Address Mark) flag in Status Register 1 Is set to a 1 (high), and if no data Is found then the NO (No Data) flag Is also set in Status Register 1 to a 1 (high) and the command is terminated.
I n the Write Data mode, data transfers between the proc- essor and FDC must occur every 31 I's in the FM mode, and every 15 I's in the MFM mode. If the time interval between data transfers Is longer than this then the FDC sets the OR (Over Run) flag In Status Register 1 to a 1 (high), and terminates the Write Data Command.
FORMAT A TRACK
This command is the same as the Write Data Command except a Deleted Data Address Mark is written at the beginning of the Data Field instead of the normal Data Address Mark.
The Format Command allows an entire track to be for- matted. After the INDEX HOLE Is detected, Data is writ- ten on the Diskette: Gaps, Address Marks, 10 Fields and Data Fields, all per the IBM System 34 (Double Density) or System 3740 (Single Density) Format are recorded. The particular format which will be written Is controlled by the values programmed into N (number of bytes/sec- tor), SC (sectors/cylinder), GPL (Gap Length), and 0 (Data Pattern) which are supplied by the processor dur-
This command is the same as the Read Data Command except that when the FDC detects a Data Address Mark at the beginning of a Data Field (and SK = 0 (low)), It will read all the data in the sector and set the CM flag in Status Register 2 to a 1 (high), and then terminate the command. If SK = 1, then the FDC skips the sector with the Data Address Mark and reads the next sector.
ing the Command Phase. The Data Field Is filled with the Byte of data stored in D. The 10 Field for each sector is supplied by the processor; that is, four data requests per sector are made by the FDC for C (Cylinder Number), H (Head Number), R (Sector Number) and N (Number of Bytes/Sector). This allows the diskette to be formatted with nonsequential sector numbers, if desired.
This command is similar to READ DATA Command except that the entire data field is read continuously from each of the sectors of a track. Immediately after encountering the INDEX HOLE, the FDC starts reading all data fields on the track as continuous blocks of data. If the FDC finds an error in the 10 or DATA CRC check bytes, it continues to read data from the track. The FDC compares the 10 information read from each sector with the value stored In the lOR, and sets the NO flag of Status Register 1 to a 1 (high) If there is no comparison. Multi-track or skip operations are not allowed with this command.
After formatting each sector, the processor must send new values for C, H, R, and N to the 8272 for each sector on the track. The contents of the R register is In- cremented by one after each sector is formatted, thus, the R register contains a value of R + 1 when It Is read during the Result Phase. This incrementing and format- ting continues for the whole track until the FDC en- counters the INDEX HOLE for the second time, where- upon it terminates the command.
If a FAULT signal is received from the FDD at the end of a write operation, then the FDC sets the EC flag of Status Register 0 to a 1 (high), and terminates the com- mand after setting bits 7 and 6 of Status Register 0 to 0 and 1 respectively. Also the loss of a READY signal at the beginning of a command execution phase causes command termination.
This command terminates when EOT number of sectors have been read. If the FDC does not find an 10 Address Mark on the diskette after it encounters the INDEX HOLE for the second time, then it sets the MA (missing address mark) flag in Status Register 1 to a 1 (high), and terminates the command. (Status Register 0 has bits 7 and 6 set to 0 and 1 respectively.)
Table 5 shows the relationship between N, SC, and GPL for various sector sizes:
FORMAT SECTOR SIZE N SC GPL' GPL2 REMARKS
128 bytes/Sector 00 1 ,,-{16) 07(16) 18(16) IBM Diskette 1 FM Mode 256 01 OF(16) OE(16) 2A(16) IBM Diskette 2 512 02 06 1B(16) 3,,-{16)
1024 bytes/Sector 03 04 - - FM Mode 2046 04 02 - - 4096 05 01 - -
256 01 1A(16) O~16) 36(16) IBM Diskette 20 512 02 OF(16) 1B(16) 54(16)
MFM Mode 1024 03 06 35(16) 74(16) IBM Diskette 20 2048 04 04 - - 4096 05 02 - - 8192 08 01 - -
between data field and 10 field of contiguous sections.


When either the STP (contiguous sectors STP = 01, or alternate sectors STP = 02 sectors are read) or the MT (Multi-Track) are programmed, it is necessary to remember that the last sector on the track must be read. For example, if STP = 02, MT = 0, the sectors are numbered sequentially 1 through 26, and we start the Scan Command at sector 21; the following will happen. Sectors 21, 23, and 25 will be read, then.the next sector (26) will be skipped and the Index Hole will be en· countered before the EOT value of 26 can be read. This will result in an abnormal termination of the command. If the EOT had been set at 25 or the scanning started at sector 20, then the Scan Command would be completed in a normal manner.
The SCAN Commands allow data which is being read from the diskette to be compared against data which is being supplied from the main system (Processor in NON-DMA mode, and DMA Controller in DMA mOde). The FDC compares the data on a byte-by-byte basis, and
looks for a sector of data which meets the conditions of
DFDD = Dprocessor, DFDD';; Dprocessor, or DFDD;;' Dprocessor· Ones complement arithmetic is used for comparison (FF = largest number, 00 = smallest number). After a whole sector of data is compared, if the conditions are not met, the sector number is incremented (R + STP -+ R), and the scan operation is continued. The scan opera· tion continues until one of the following conditions oc· cur; the conditions for scan are met (equal, low, or high), the last sector on the track is reached (EOT), or the ter- minal count signal is received.
During the Scan Command data is supplied by either the processor or DMA Controller for comparison against the data read from the diskette. In order to avoid having the OR (Over Run) flag set in Status Register 1, it is nec- essary to have the data available in less than 27 JJs (FM Mode) or 13 JJS (MFM Mode). If an Overrun occurs the FDC terminates the command.
If the conditions for scan are met then the FDC sets the SH (Scan Hit) flag of Status Register 2 to a 1 (high), and terminates the Scan Command. If the conditions for scan are not met between the starting sector (as specified by R) and the last sector on the cylinder (EOT), then the FDC sets the SN (Scan Not Satisfied) flag of Status Register 2 to a 1 (high), and terminates the Scan Command. The receipt of a TERMINAL COUNT signal from the Processor or DMA Controller during the scan operation will cause the FDC to complete the com· parison of the particular byte which is in process, and then to terminate the command. Table 6 shows the status of bits SH and SN under various conditions of SCAN.
The read/write head within the FDD is moved from cylinder to cylinder under control of the Seek Command. The FDC compares the PCN (Present Cylinder Number) which is the current head position with the NCN (New Cylinder Number), and performs the following operation if there is a difference:
PCN < NCN: Direction signal to FDD set to a 1 (high), and Step Pulses are issued. (Step In.)
PCN > NCN: Direction signal to FDD set to a 0 (low), and Step Pulses are issued. (Step Out.)
Scan Equal 0 1 OF DO = OProcessor 1 0 OF DO =t= 0processor
The rate at which Step Pulses are issued is controlled by SRT (Stepping Rate Time) in the SPECIFY Command. After each Step Pulse is issued NCN is compared against PCN, and when NCN = PCN, then the SE (Seek End) flag is set in Status Register 0 to a 1 (high), and the command is terminated.
0 1 DFDD = Dprocessor Scan low or Equal 0 0 DFDD < Dprocessor 1 0 DFOD 1: Dprocessor
0 1 DFDD = Dprocessor Scan Hlghor Equal 0 0 DFDD > Dprocessor 1 0 DFDD ~ Dprocessor
During the Command Phase of the Seek operation the FDC is in the FDC BUSY state, but during the Execution Phase it is in the NON BUSY state. While the FDC is in the NON BUSY state, another Seek Command may be issued, and in this manner parallel seek operations may be done on up to 4 Drives at once.
If the FDC encounters a Deleted Data Address Mark on one of the sectors (and SK = 0), then it regards the sec· tor as the last sector on the cylinder, sets CM (Control Mark) flag of Status Register 2 to a 1 (high) and ter· minates the command. If SK= 1, the FDC skips the sec· tor with the Deleted Address Mark, and reads the next sector. In the second case (SK = 1), the FDC sets the CM (Control Mark) flag of Status Register 2 to a 1 (high) in order to show that a Deleted Sector had been en· countered.
If an FDD is in a NOT READY state at the beginning of the command execution phase or during the seek opera- tion, then the NR (NOT READY) flag is set in Status Register 0 to a 1 (high), and the command is terminated.


Neither the Seek or Recalibrate Command have a Result Phase. Therefore, it is mandatory to use the Sense Inter· rupt Status Command after these commands to effec, tively terminate them and to provide verification of the head position (PCN).
This command causes the read/write head within the
FDD to retract to the Track 0 position. The FDC clears the contents of the PCN counter, and checks the status of the Track 0 signal from the FDD. As long as the Track o signal is low, the Direction signal remains 1 (high) and Step Pulses are issued. When the Track 0 signal goes high, the SE (SEEK END) flag in Status Register 0 is set to a 1 (high) and the command is terminated. If the Track o signal is still low after 77 Step Pulses have been· issued, the FDC sets the SE (SEEK END) and EC (EQUIP· MENT CHECK) flags of Status Register 0 to both 1s (highs), and terminates the command.
The Specify Command sets the initial values for each of the three internal timers. The HUT (Head Unload Time) defines the time from the end of the Execution Phase of one of the Read/Write Commands to the head unload state. This timer is programmable from 16 to 240 ms in increments of 16 ms (01 = 16 ms, 02 = 32 ms OF = 240 ms). The SRT (Step Rate Time) defines the time in· terval between adjacent step pulses. This timer is pro· grammable from 1 to 16 ms in increments of 1 ms (F = 1 ms, E = 2 ms, 0 = 3 ms, etc.). The HLT (Head Load Time) defines the time between when the Head load signal goes high and when the Read/Write operation starts. This timer is programmable from 2 to 254 ms in in· crements of 2 ms (01 = 2 ms, 02 = 4 ms, 03 = 6 ms FE=254 ms).
The ability to overlap RECALIBRATE Commands to multiple FDDs, and the loss of the READY signal, as described in the SEEK Command, also applies to the RECALIBRATE Command.
An Interrupt signal is generated by the FOC for one of the following reasons:
The time intervals mentioned above are a direct function of the clock (ClK on pin 19). Times indicated above are for an 8 MHz clock, if the clock was reduced to 4 MHz (mini·floppy application) then all time intervals are in· creased by a factor of 2.
The choice of OMA or NON·DMA operation is made by the NO (NON·OMA) bit. When this bit is high (NO = 1) the NON·OMA mode is selected, and when NO = 0 the DMA mode is selected.
Interrupts caused by reasons 1 and 4 above occur during normal command operations and are easily discernible by the processor. However, interrupts caused by reasons 2 and 3 above may be uniquely identified with the aid of the Sense Interrupt Status Command. This command when issued resets the interrupt signal and via bits 5, 6, and 7 of Status Register 0 identifies the cause of the interrupt.
This command may be used by the processor whenever
it wishes to obtain the status of the FDOs. Status Register 3 contains the Drive Status information.
If an invalid command is sent to the FOC (a command not defined above), then the FDC will terminate the com· mand. No interrupt is generated by the 8272 during this condition. Bit 6 and bit 7 (010 and RQM) in the Main Status Register are both high ("1") indicating to the processor that the 8272 is in the Result Phase and the contents of Status Register 0 (STO) must be read. When the processor reads Status Register 0 it will find a 80H indicating an invalid command was received.
SEEK END INTERRUPT CODE
BIT 5 BIT6 BIT7 CAUSE
0 1 1 Ready Line changed state, either polarity
1 0 0 Normal Termination of Seek or Recalibrate Command
A Sense Interrupt Status Command must be sent after a Seek or Recalibrate interrupt, otherwise the FDC will consider the next command to be an Invalid Command.
1 1 0 Abnormal Termination of Seek or Recalibrate Command
In some applications the user may wish to use this com· mand as a No·Op command, to place the FOC in a stand· by or no operation state.


BIT BIT
NO. NAME SYMBOL DESCRIPTION
SYMBOL DESCRIPTION NO. NAME
STATUS REGISTER 0 STAtUS RE.GISTER , (CO NT.)
0 7 Interrupt IC D7~Oand Ds~O Code Normal Termination of Command,
0, Not NW During execution of WRITE DATA, Writable WRITE DELETED DATA or Format A (NT). Command was completed and Cylinder Command, If the FDC properly executed. detects a write protect signal from
Os 07=0 and Ds=' the FDD, then this flag Is set.
Abnormal Termination of Com· mand, (AT). Execution of Command was started, but was not successfully completed.
Do MISSing MA If tlie FDC cannot detect the 10 Address Address Mark after encountering the Mark Index hole twice, then this flag is set.
If the FOC cannot detect the Data Address Mark or Deleted Data Address Mark, this flag Is set. Also at the sam.e time, the MD (Missing Address Mark in Data Field) of 07=' and Ds=' Status Register 2 is set. Abnormal Termination because during command execution the STATUS REGISTER 2
0 7=' and Ds=O Invalid Command issue, (I C). Command which was issued was never started.
ready signal from FDD changed state.
07 Not used. This bit is always 0 (low). --~
06 Control CM During executing the READ DATA or Mark SCAN Command, if the FOC SEEK Command, this flag Is set to , encounters a Sector which contains (high). a Deleted Data Address Mark, this
0 5 Seek End SE When the FDC completes the
04 Equipment EC If a fault Signal is received from the flag is set.
Check FDD, or If the Track 0 Signal fails to occur after 77 Step Pulses (Recali· brate Command) then this flag Is set.
05 Data Error in 00 If the FOC detects a CRC error In Data Field the data field then this flag is set.
04 Wrong WC This bit is related with the NO bit, Cylinder and when the contents of C on the medium is different from that stored issued, this flag Is set. If a read or write command is issued to Side 1
03 Not Ready NR When the FDD is in the not· ready state and a read or write command is
In the lOR, this flag is set.
of a single sided drive, then this flag is set.
03 Scan Equal SH During execution, the SCAN Hit Command, if the condition of
O2 Head HD This flag is used to Indicate the Address state of the head at Interrupt.
"equal" is satiSfied, this flag is set.
O2 Scan Not SN During executing the SCAN
0, Unit Select' US, These flags are used to indicate a
Satisfied Command, If the FDC cannot find a Sector on the cylinder which meets
Do Unit SelectO usa Drive Unit Number at Interrupt the condition, then this flag is set.
STATUS REGISTER' 0, Bad BC This bit is related with the NO bit,
Cylinder and when the content of C on the medium is different from that stored Cylinder Sector beyond the final Sector of a In the lOR and the content of C is Cylinder, this flag Is set. FF, then this flag is set.
07 End of EN When the FDC tries to access a
Os Not used. This bit is always 0 (low). Do Missing MD When data Is read from the medium,
Address If the FOC cannot find a Data Mark In Data Address Mark or Deleted Data Field Address Mark, then this flag Is set.
05 Data Erwr DE When the FDC detects a CRC error In either the 10 field or the data field, this flag Is set.
04 Over Run OR If the FDC Is not serviced by the STATUS REGISTER 3 main-systems during data transfers, within a certain time Interval, this flag Is set.
07 Fault FT This bit Is used I" indicate the status of the Fault signal from the FDO. 03 Not used. This bit always 0 (low).
Os Write WP This bit Is used to indicate the O2 No Data NO During execution of READ DATA, Protected status of the Write Protected Signal WRITE DELETED DATA or SCAN from the FDO. Command, If the FDC cannot find the Sector specified in the lOR Register, this flag is set.
0 5 Ready ROY This bit is used to indicate the status of the Ready signal from the FDD.
During executing the READ 10 Com· mand, if the FDC cannot read the
0 4 Track 0 TO This bit is used to indicate the status of the Track 0 signal from the FOO.
10 field without an error, then this flag is set.
03 Two Side TS This bit is used to indicate the status of the Two Side signal from the FDD.
During the execution of the READ A Cylinder Command, if the starting
02 Head HO This bit is used to indicate the status Address of Side Select signal to the FDD. sector cannot be found, then this flag is set. 0, Unit Select' US, This bit is used to Indicate the status of the Unit Select' signal tothe FDD.
Do Unit Select 0 usa This bit is used to indicate the status of the Unit Select 0 signal tothe FDD.


COMMENT: Stress above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute maxi· mum rating conditions for extended periods may affect device reliability.
Operating Temperature -10·C to + 70·C Storage Temperature -40·C to + 125·C All Output Voltages -0.5 to + 7 Volts All Input Voltages -0.5 to + 7 Volts Supply Voltage Vee -0.5 to + 7 Volts Power Dissipation 1 Watt
VIL Input Low Voltage -0.5 0.8 V
VIH Input High Voltage 2.0 Vee+ 0.5 V
VIL (CLK & WR CLK) -0.5 0.65 V
VIH (CLK & WR CLK) 2.4 Vee+ 0.5 V
VOL Output Low Voltage 0.45 V IOL=2.0 mA
VOH Output High Voltage 2.4 Vee V IOH= -200,.A
Icc Vee Supply Current 150 mA
IlL Input Load Current 10 ,.A VIN = Vee (All Input Pins) -10 ,.A VIN=OV
ILOH High Level Output 10 ,.A Vour= Vee Leakage Current
ILOL Low Level Output -10 ,.A VOUT = + 0.45V Leakage Current
CIN(
CIN Input Capacitance 10 pF Pin Under Test Tied to AC COUT Output Capacitance 20 pF Ground


ICY Clock Period 125 ns tCH Clock High Period 40 ns
tRST Reset Width 14 ICY
tAR Select Setup to AD! 0 ns
tRA Select Hold from RD! 0 ns
tRR AD Pulse Width 250 ns
tRO Data Delay from RD! 200 ns CL = 100 pF
tOF Output Float Delay 20 100 ns CL = 100 pF
tAW Select Setup to WR! 0 ns
tWA Select Hold from WJ!!! 0 ns tww iiiiFi Pulse Width 250 ns tow Data Setup to WR! 150 ns two Data Hold from WJ!!! 5 ns
Interrupt.
tRI INT Delay from RD! 500 ns tWI INT Delay from WR! 500 ns
tRQCY ORO Cycle Period 13 ~s tAKRQ i5ACK! to ORO! 200 ns
tRQR ORO! to RD! 800 ns 8 MHz clock tRQW ORO! toWR! 250 ns 8 MHz clock
tRQRW ORO! to RD! or WR! 12 ~s 8 MHz clock
FDD Interlace TYp1 tWCY WCK Cycle Time 20r4 --- -- - - MFM=O--- ~s Note 2 r- 1..£r2_ -80-- 35'0 - -
tWCH WCK HlghTlme 250 ns tcp Pre-Shift Delay from WCK! 20 100 ns tco WDA Delay from WCK! 20 100 ns twoo Write Data Width tWCH-50 ns
tWE WE! to WCK! or WE! to WCK! Delay 20 IUU ns 1 tWWCY Window Cycle Time 2 ~s MFM=O I- !- --
tWRO Window Setup to ROD! 15 ns
tROW Window Hold from ROD! 15 ns
tROD ROD Active Time (HIGH) 40 ns
FDD SeEKI DIRECTIONI STEP
tus USO,1 Setup to RW/SEEK! 12 ~s Isu ~,1 Hold from RW/SEEK! 15 ~s tso RW/SEEK Setup to LCTIDIR 7 ~s tos RW/SEEK Hold from LCT/DIR 30 ~s tOST LCT/DIR Setup to FRISTEP! 1 ~s tSTO LCT/DIR Hold from FA/STEP! 24 ~s 8MHz clock
tSTU DSO,1 Hold from FA/Step! 5 ~s tSTP STEP Active Time (H igh) 5 ~s tsc STEP Cycle Time 33 ~s Note 3
tFR FAULT RESET Active Time (High) 8 10 ~s tlOX INDEX Pulse Width 625 ~s tTC Terminal Count Width 1 tCY
Read Cycle · Write Cycle


Ao, Cs, DACK ~ ~Xl -I IA. I-I.. I IRA 1-
~" ----~=::{ -I'" ~---- I I~'RI-I
INT ---------------.L
AO, iSS, DACK ~ t -I lAW I-'WW-I IWA 1-' \ 1 I-tow- iWDI-
DATA ---""'X I ~,..---- I-'WI-I L INT
'"' ~'--_---;"~'---V _}--
-t
AM
1_. _IRQ~'---W- - ----'I, _ \\-_----11-- -IRQWIWRI-I --IFlQA(RO)--
FDD READ OPERATION
WRITE CI~CC~ I'-- __ -Jf\ !\1... _____ 1l-- ~
-lweH -=1 :- IWE I-,wev-I -II-IWE
WRITE ENABLE L lWEI I I
r ~ I-Ie.
WRITE DATA
IWDAI
PRESHIFT 0 PRESHIFT 1
NORMAL 0 0
EARLY 1 0
INVALID 1 1


050,1 ==x STABLE tl... ____ _ -I.us 1_ I-'STU-I .------+----.....:;1 'su -
RW/SEEK 1 I \'----- -I "J:- -1,---'oS 1__
LCT/DIRECTION ----~X 1 X ----'J '=1=""1 ,",1-"-----
STEP n ~ -I·ST.I- .sel-I
FLT RESET INDEX
FAULTRESET~ FILE UNSAFE RESET ~I ';\, . -----' -.,R-I'-----
FDD READ OPERATION J\ n READ DATA _I I+-'--.-Ro-o----I=----.w-Ro-----JII~-::...--.R-ow-::...----I--
READ DATA WINDOW _______ ---'X I LI
n RESET~ ~
2. 4V --V VO.4SV --A'-- ______ A--
MEASUREMENT POINT
twWCy


The Intel@ 8273 Programmable HOLC/SOLC Protocol Controller is a dedicated device designed to support the ISO/ CCITT's HOLC and IBM's SOLC communication line protocols. It is fully compatible with Intel's new high performance microcomputer systems such as the MCS-88/86™. A frame level command set is achieved by a unique microprogrammed dual processor chip architecture. The processing capability supported by the 8273 relieves the system CPU of the low level real-time tasks normally associated with controllers.
BLOCK OIAGRAM
eLK l'I3 RESET l'I3 TxOACK PT,
RxDRQ PA, R5 'A2 WR CIl
080- 7 T,D r;c
DB3 R,D
DB. ffiC[K
DB' cs DBS CPU
TxDACK DPLL 32XCiJ( RTs RxDACK
PB'_4
TxlNT ffi RxlNT Co
WR
PIN NAMES
A,
RESET R,D R;C
CS CHIP SELECT Him 32 TIMES CLOCK Alt 0 RECEIVER DATA Ax C RECEIVER CLOCK r" C TRANSMITTER CLOCK Tx 0 TRANSMITTER OATA rn CLEAR TO SEND co CARRIER DETECT
DBO-DB7 DATA BUS fS BITS) ~ FLAG DETECT TxtNT TRANSMITTER INTERRUPT elK CLOCK INPUT RESET RESET 'fi"'OAfR TRANSMITTER DMA ACKNOWLEDGE TxORO TRANSMITTER DMA REQUeST 1m READ INPUT "" WRITE INPUT Ri"'5ACR' RECEIVER DMA ACKNOWLEDGE Ax ORO RECEIVER DMA REQUEST Ax INT RECEIVER INTERRUPT AD-A1 COMMAND REGISTER SELECT ADDRESS lSISLL DIGITAL PHASE LOCKED LOOP
~:2-::4 GP INPUT PORTS m- 4 ~~g~::~~6~:~~ Vee +5 VOL T SUPPLY GND GROUND


A BRIEF DESCRIPTION OF HDLC/SDLC PROTOCOLS
types of frames; an I nformation Frame is used to transfer data, a Supervisory Frame is used for control purposes, and a Non-sequenced Frame is used for initialization and control of the secondary stations.
Frame Characteristics An important characteristic of a frame is that its con- tents are made code transparent by use of a zero bit insertion and deletion technique. Thus, the user can adopt any format or code suitable for his system - it may even be a computer word length or a "memory dump". The frame is bit oriented that is, bits, not characters in each field, have specific meanings. The Frame Check Sequence (FCS) is an error detection scheme similar to the Cyclic Redundancy Checkword (CRC) widely used in magnetic disk storage devices. The Command and Response information frames contain sequence numbers in the control fields identifying the sent and received frames. The sequence numbers are used in Error Recovery Procedures (ERP) and as implicit acknowledge- ment of frame cUlnrnunication, enhancing the tiue fu:l- duplex nature of the HOLC/SOLC protocols.
The High Level Oata Link Control (HOLC) is a standard communication link protocol established by International Standards Organization (ISOL HOLC is the discipline used to implement ISO X.25 packet switching systems.
The Synchronous Oata Link Control (SOLC) is an· IBM communication link protocol used to implement the System Network Architecture (SNAL Both the protocols are bit oriented, code independent, and ideal for full duplex communication. Some common applications include terminal to terminal, terminal to CPU, CPU to CPU, satellite communication, packet switching and other high speed data links. In systems which require expensive cabling and interconnect hardware, any of the two protocols could be used to simplify interfacing (by going serial), ttlereoy reducing interconnect hardware cosis. Since both the protocols are speed independent, reducing interconnect hardware could become an important application.
I n contrast, BISYNC is basically half-duplex (two way alternate) because of necessity to transmit immediate acknowledgement frames. HOLC/SOLC therefore saves propagation delay times and have a potential of twice the throughput rate of BISYNC.
In both the HOLC and SOLC line protocols, according to a pre-ass.igned hierarchy, a PRIMARY (Control) STATION controls the overall network (data link) and issues commands to the SECONOARY (Slave) STATIONS. The latter comply with instructions and respond by sending appropriate RESPONSES. Whenever a transmitting station must end transmission prematurely it sends an ABORT character. Upon detecting an abort character, a receiving station ignores the transmission block called a FRAME. Time fill between frames can be accomplished by transmitting either continuous frame preambles called FLAGS or an abort character. A time fill within a frame is not permitted. Whenever a station receives a string of more that fifteen consecutive ones, the station goes into an IOLE state.
It is possible to use HOLC or SOLC over half duplex lines but there is a corresponding loss in throughput because both are primarily designed for full-duplex communi- cation. As in any synchronous system, the bit rate is determined by the clock bits supplied by the modem, protocols themselves are speed independent.
A byproduct of the use of zero-bit insertion-deletion technique is the non-return-to-zero invert (NRZI) data transmission/reception compatibility. The latter allows
HOLC/SOLC protocols to be used with asynchronous data communication hardware in which the clocks are derived from the NRZI encoded data.·
IBM Synchronous Data Link Control Genera/Information, IBM, GA27-
A single communication element is called a FRAME which can be used for both Link Control and data transfer purposes. The elements of a frame are the beginning eight bit FLAG (F) consisting of one zero, six ones, and a zero, an eight bit AOORESS FIELO (A), an eight bit CONTROL FIELO (C), a variable (N-bit) INFORMATION FIELO (I), a sixteen bit FRAME CHECK SEQUENCE (FCS), and an eight bit end FLAG (F), having the same bit pattern as the beginning flag. In HOLC the Address (A) and Control (C) bytes are extendable. The HOLC and the SOLC use three
3093-1. Standard Network Access Protocol Specification, DATAPAC, Trans-
Canada Telephone System CCGlll Recommendation X.25. ISO/CCITT March 2. 1976. IBM 3650 Retail Store SysternLoop Interface OEM Information, IBM, GA
27 -3098-0 Guidebook to Data Communications, Training Manual, Hewlett-Packard
5955-1715 IBM Introduction to Teleprocessing,. IBM, GC 20-8095-02 System Network Architecture, Technical Overview, IBM, GA 27-3102 System Network Architecture Format and Protocol, IBM GA 27-3112
ADDRESS FIELD (A)
CONTROL
INFORMATION FIELD III
FRAME CHECK SEQUENCE (FCS)
CLOSING F1.AG (F)
FIELD (C)
01111110 8 BITS 8 BITS VARIABLE LENGTH 16BITS 01111110 (ONLY IN I FRAMESI
Figure 1, Frame Format


o Requests a transfer of data be- tween memory and the 8273 for a transmit operation. o Requests a transfer of data be- tween the 8273 and memory for a receive operation.
FUNCTIONAL DESCRIPTION General The Intel® 8273 HDLC/SDLC controller is a microcom- puter peripheral device which supports the International Standards Organization (ISO) High Level Data Link Control (HDLC), and IBM Synchronous Data Link Control (SDLC) communications protocols. This controller minimizes CPU software by supporting a comprehensive frame-level instruction set and by hardware implemen- tation of the low level tasks associated with frame assembly/disassembly and data integrity. The 8273can be used in either synchronous or asynchronous applications. In asynchronous applications the data can be program- med to be encoded/decoded in NRZI code. The clock is derived from the NRZI data using a digital phase locked loop. The data transparency is achieved by using a zero- bit insertion/deletion technique. The frames are automati- cally checked for errors during reception by verifying the Frame Check Sequence (FCS); the FCS is automatically generated and appended before the final flag in transmit. The 8273 recognizes and can generate flags (01111110), Abort, Idle, and GA (EOP) characters.
The Transmitter DMA acknow-
ledge signal notifies the 8273 that the TxDMA cycle has been granted.
The Receiver DMA acknowledge signal notifies the 8273 that the RxDMA cycle has been granted.
These two lines are CPU Inter- face Register Select lines. o This line transmits the serial data to the communication channel.
The transmitter clock is used to synchronize the transmit data.
The 8273 can assume either a primary (control) or a secondary (slave) role. It can therefore be readily implemented in an SDLC loop configuration as typified by the IBM 3650 Retail Store System by programming the 8273 into a one-bit delay mode. In such a configuration, a two wire pair can be effectively used for data transfer between controllers· and loop stations. The digital phase locked loop output pin can be used by the loop station without the presence of an accurate Tx clock. Hardware Description The 8273 is packaged in a 40 pin DIP. The following is a functional description of each pin.
This line receives serial data from the communication channel.
The Receiver Clock is used to synchronize the receive data.
The 32X clock is used to provide clock recovery when an asyn- chronous modem is used. In loop configuration the loop station can run without an accurate 1 X
clock by using the 32X CLK in conjunction with the DPLL out- put. (This pin must be grounded when not used). o Digital Phase Locked Loop out- put can be tied to RxC and/or TxC when 1X clock is not avail- able. DPLL is used with 32X CLK. o Flag Detect signals that a flag (01111110) has been received by an active receiver. o Request to Send signals that the 8273 is ready to transmit data.
Pin Name (No.) I/O Description
Vee (40) +5V Supply GND (20) Ground RESET (4) A high signal on this pin will force the 8273 to an idle state. The 8273 will remain idle until a command is issued by the CPU. The modem interface output signals are forc- ed high. Reset must be true for a minimum of 10 TCY. CS (24) The RD and WR inputs are en- abled by the chip select input. DB7-DBo (19-12) I/O The Data Bus lines are bidirec-
FLAG DET (1)
RTS (35)
CTS (30)
Clear to Send signals that the modem is ready to accept data from the 8273.
tional three-state lines which in- terface with the system Data Bus. WR (10) The Write signal is used to con- trol the transfer of either a com- mand or data from CPU to the 8273. RD (9)
Carrier Detect signals that the line transmission has started and the 8273 may begin to sample data on RxD line.
The Read signal is used to con- trol the transfer of either a data byte or a status word from the 8273 to the CPU. o The Transmitter interrupt signal indicates that the transmitter logic requires service. o The Receiver interrupt signal in- dicates that the Receiver logic re- quires service.
General purpose input ports. The logic levels on these lines can be Read by the CPU through the Data Bus Buffer. o General purpose output ports. The CPU can write these output lines through Data Bus Buffer.
CLK (3)
A square wave TTL clock.


8279/8279·5 PROGRAMMABLE KEYBOARD/DISPLAY INTERFACE
The Intel'" 8279 is a general purpose programmable keyboard and display 1/0 interface device designed for use with Intel'" microprocessors. The keyboard portion can provide a scanned interface to a 64-contact key matrix. The keyboard portion will also Interface to an array of sensors or a strobed Interface keyboard, such as the hall effect and ferrite variety. Key depressions can be 2·key lockout or N-key rollover. Keyboard entries are debounced and strobed in an 8-character FIFO. If more than 8 characters are entered, overrun status is set. Key entries set the interrupt output line to the CPU.
The display portion provides a scanned display interface for LED, incandescent, and other popular display technologies. Both numeric and alphanumeric segment displays may be used as well as simple indicators. The 8279 has 16X8 display RAM which can be organized into dual 16X4. The RAM can be loaded or interrogated by the CPU. Both right entry, calculator and left entry typewriter display formats are possible. Both read and write of the display RAM can be done with auto-increment of the display RAM address.
LOGIC SYMBOL
PIN NAMES
IRQ RLa.1
- KEY DATA
SHIFT
RD
WR CNTL'STB
CPU INTERFACE
CS SlO.3
our A, qUT A2
OUT AO-J
OUT A3 Bl! cs
DISPLAV DATA
VIS
Vee · ClK our B0-3 · AFN-D0742A-Ol


HARDWARE DESCRIPTION The 8279 is packaged in a 40 pin DIP. The following is a functional description of each pin. No. Of
SHIFT The shift input status is stored along with the key position on key closure in the Scanned
No. Of
Bi-directional data bus. All data and commands between the CPU and the 8279 are trans- mitted on these lines. Clock from system used to gen- erate internal timing.
Keyboard modes. It has an ac- tive internal pullup to keep it high until a switch closure pulls it low.
For keyboard modes this line is used as a control input and stored like status on a key clo- sure. The line is also the strobe line that enters the data into the FIFO in the Strobed Input mode.
A high signal on this pin resets the 8279. After being reset the 8279 is placed in the following mode: 1) 16 8-bit character display -left entry. 2) Encoded scan keyboard-2 key lockout. Along with this the program clock prescaler is set to 31.
(Rising Edge). It has an active internal pullup to keep it high until a switch closure pulls it low.
Chip Select. A low on this pin enables the interface functions to receive or transmit. Buffer Address. A high on this line indicates the signals in or out are interpreted as a com- mand or status. A low indicates that they are data. Input/Output read and write. These signals enable the data buffers to either send data to the external bus or receive it from the external bus. Interrupt Request. In a keyboard mode, the interrupt line is high when there is data in the FIFO/ Sensor RAM. The interrupt line goes low with each FIFO/ Sensor RAM read and returns high if there is still informa- tion in the RAM. In a sensor mode, the interrupt line goes high whenever a change in a sensor is detected.
4 OUT Ao-OUT A3 These two ports are the outputs 4 OUT Bo-OUT B3 for the 16 x 4 display refresh
registers. The data from these outputs is synchronized to the scan lines (Slo-Sl3) for multi- plexed digit displays. The two 4 bit ports may be blanked inde- pendently. These two ports may also be considered as one 8 bit port.
BD Blank Display. This output is used to blank the display during digit switching or by a display blanking command.
PRINCIPLES OF OPERATION
The following is a description of the major elements of the 8279 Programmable Keyboard/Display interface device. Refer to the block diagram in Figure 1.
The I/O control section uses the CS, Ao, RD and WR lines to control data flow to and from the various internal registers and buffers. All data flow to and from the 8279 is enabled by CS. The character of the information, given or desired by the CPU, is identified by Ao. A logic one means the information is a command Or status. A logic zero means the information is data. RD and WR determine the direction of data flow through the Data Buffers. The Data Buffers are bi-directional buffers that connect the internal bus to the external bus. When the chip is not selected (CS = 1), the devices are in a high impedance state. The drivers input during WR - CS and output during
Ground and power supply pins.
Scan Lines which are used to scan the key switch or sensor matrix and the display digits. These lines can be either en- coded (1 of 16) or decoded (1 of 4).
Return line inputs which are connected to the scan lines through the keys or sensor switches. They have active in- ternal pullups to keep them
RD -CS.
Control and Timing Registers and Timing Control These registers store the keyboard and display modes and other operating conditions programmed by the CPU. The modes are programmed by presenting the proper command on the data lines with Ao = 1 and then sending a WR. The command is latched on the rising edge of WR.
high until a switch closure pulls one low. They also serve as an 8-bit input in the Strobed Input mode.


FUNCTIONAL DESCRIPTION
Since data input and display are an integral part of many microprocessor designs, the system designer needs an interface that can control these functions without placing a large load on the CPU. The 8279 provides this function for 8-bit microprocessors.
The 8279 has two sections: keyboard and display. The keyboard section can int'erface to regular typewriter style keyboards or random toggle or thumb switches. The display section drives alphanumeric displays or a bank of indicator lights. Thus the CPU is relieved from scanning the keyboard or refreshing the display.
The 8279 is designed to directly connect to the microprocessor bus. The CPU can program all operating modes for the 8279. These modes include:
Other features of the 8279 include:
AND CONTROL
TIMING
AND CONTROL
OUT Ao., OUT Bg.3
SLO·3


The command is then decoded and the appropriate function is set. The timing control contains the basic timing counter chain. The first counter is a + N prescaler
that can be programmed to yield an internal frequency of 100 kHz which gives a 5.1 ms keyboard scan time and a 10.3 ms debounce time. The other counters divide down the basic internal frequency to provide the proper key scan, row scan, keyboard matrix scan, and display scan times.
The following commands program the 8279 operati!!1j modes. The commands are sent on the Data Bus with CS low and Ao high and are loaded to the 8279 on the rising edge of WR.
The scan counter has two modes. In the encoded mode. the counter provides a binary count that must be externally decoded to provide the scan lines for the keyboard and display. In the decoded mode. the scan counter decodes the least significant 2 bits and provides a decoded 1 of 4 scan. Note than when the keyboard is in decoded scan, so is the display. This means that only the first 4 characters in the Display RAM are displayed.
Where DO is the Display Mode and KKK is the Keyboard Mode.
o 0 8 8-bit character display - Left entry o 16 8-bit character display - Left entry' o 8 8-bit character display - Right entry
In the encoded mode, the scan lines are active high outputs. In the decoded mode, the scan lines are active low outputs.
16 8-bit character display - Right entry
Return Buffers and Keyboard Debounce and Control
For description of right and left entry, see Interface Considerations. Note that when decoded scan is set in keyboard mode, the display is reduced to 4 characters independent of display mode set.
The 8 return lines are buffered and latched by the Return Buffers. In the keyboard mode, these lines are scanned, looking for key closures in that row. If the debounce circuit detects a closed switch, it waits about 10 msec to check if the switch remains closed. If it does, the address of the switch in the matrix plus the status of SHIFT and CONTROL are transferred to the FIFO. In the scanned Sensor Matrix modes, the contents of the return lines is directly transferred to the corresponding row of the Sensor RAM (FIFO) each key scan time. In Strobed Input mode, the contents of the return lines are transferred to the FIFO on the rising edge of the CNTLlSTB line pulse.
KKK o 0 0 Encoded Scan Keyboard - 2 Key Lockout· o 0 Decoded Scan Keyboard - 2-Key Lockout o 0 Encoded Scan Keyboard - N-Key Rollover o Decoded Scan Keyboard - N-Key Rollover o 0 Encoded Scan Sensor Matrix o Decoded Scan Sensor Matrix o Strobed Input, Encoded Display Scan
FIFO/Sensor RAM and Status
This block is a dual function 8 x 8 RAM. In Keyboard or Strobed Input modes, it is a FIFO. Each new entry is written into successive RAM positions and each is then read in order of entry. FIFO status keeps track of the number of characters in the FIFO and whether it is full or empty. Too many reads or writes will be recognized as an error. The status can be read by an RD with CS low and Ao high. The status logic also provides an IRQ signal when the FIFO is not empty. In Scanned Sensor Matrix mode, the memory is a Sensor RAM. Each row of the Sensor RAM is loaded with the status of the correspond- ing row of sensor in the sensor matrix. In this mode, IRQ is high if a change in a sensor is detected.
Strobed Input, Decoded Display Scan
All timing and multiplexing signals for the 8279 are generated by an internal prescaler. This prescaler divides the external clock (pin 3) by a programmable integer. Bits PPPPP determine the value of this integer which ranges from 2 to 31. Choosing a divisor that yields 100 kHz will give the specified scan and debounce times. For instance, if Pin 3 of the 8279 is being clocked by a 2 MHz signal, PPPPP should be set to 10100 to divide the clock by 20 to yield the proper 100 kHz operat- ing frequency.
Display Address Registers and Display RAM
The Display Address Registers hold the address of the word currently being written or read by the CPU and the two 4-bit nibbles being displayed. The read/write addresses are programmed by CPU command. They also can be set to auto increment after each read or write. The Display RAM can be directly read by the CPU after the correct mode and address is set. The addresses for the A and B nibbles are automatically updated by the 8279 to match data entry by the CPU. The A and B nibbles can be entered independently or as one word, according to the mode that is set by the CPU. Data entry to the display can be set to either left or right entry. See Interface Considerations for details.
Code: 1 0 11 1 0 1 AI I X I A I A fA] X = Don't Care
The CPU sets up the 8279 for a read of the FIFO/Sensor RAM by first writing this command. In the Scan Key-
'Default after reset.


board Mode, the Auto·lncrement flag (AI) and the RAM address bits (AAA) are irrelevant. The 8279 will automati· cally drive the data bus for each subsequent read (Ao= 0) in the same sequence in which the data first entered the FIFO. All subsequent reads will be from the FIFO until another command is issued.
The Cobits are available in this command to clear all rows of the Display RAM to a selectable blanking code as fol- lows:
In the Sensor Matrix Mode, the RAM address bits AAA select one of the 8 rows of the Sensor RAM. If the AI flag is set (AI = 1), each successive read will be from the sub· sequent row of the sensor RAM.
Enable clear display when = 1 (or by CA = 1)
During the time the Display RAM is being cleared ("'160 flS), it may not be written to. The most significant bit of the FIFO status word is set during this time. When the Dis· play RAM becomes available again, it automatically resets.
The CPU sets up the 8279 for a read of the Display RAM by first writing this command. The address bits AAAA select one of the 16 rows of the Display RAM. If the AI flag is set (AI = 1), this row address will be incremented after each following read or write to the Display RAM. Since the same counter is used for both reading and writing, this command sets the next read or write address and the sense of the Auto·lncrement mode for both operations.
If the CF bit is asserted (C F = 1), the FIFO status is cleared and the interrupt output line is reset. Also, the Sensor RAM pointer is set to row O.
CA, the Clear All bit, has the combined effect of Co and CF; it uses the CD clearing code on the Display RAM and also clears FIFO status. Furthermore, it resynchronizes the internal timing chain.
End Interrupt/Error Mode Set
Code: 11 I 0 I 0 I AI I A I A I A I A 1
Code:
The CPU sets up the 8279 for a write to the Display RAM by first writing this command. After writing the com· mand with Ao= 1, all subsequent writes with Ao= 0 will be to the Display RAM. The addressing and Auto· Increment functions are identical to those for the Read Display RAM. However, this command does not affect the source of subsequent Data Reads; the CPU will read from whichever RAM (Display or FIFO/Sensor) which was last specified. If, indeed, the Display RAM was last specified, the Write Display RAM will, nevertheless, change the next Read location.
For the sensor matrix modes this command lowers the IRQ line and enables further writing into RAM. (The IRQ line would have been raised upon the detection of a change in a sensor value. This would have also inhibited further writing into the RAM until reset).
For the N-key rollover mode - if the E bit is programmed to '"1"' the chip will operate in the special Error mode. (For further details. see Interface Considerations Section.)
The status word contains the FIFO status, error, and display unavailable signals. This word is read by the CPU when Ao is high and CS and RD are low. See Interface
The IW Bits can be used to mask nibble A and nibble B
in applications requiring separate 4·bit display ports. By setting the IW flag (IW = 1) for one of the ports, the port becomes marked so that entries to the Display RAM from the CPU do not affect that port. Thus, if each nibble is input to a BCD decoder, the CPU may write a digit to the Display RAM without affecting the other digit being displayed. It is important to note that bit Bo corresponds to bit Do on the CPU bus, and that bit A3 corresponds to bit 0 7,
Considerations for more detail on status word.
Data is read when Ao. CS and RD are all low. The source of the data is specified by the Read FIFO or Read Display commands. The trailing edge of RD will cause the address of the RAM being read to be incremented if the Auto- Increment flag is set. FIFO reads always increment (if no error occurs) independent of AI.
If the user wishes to blank the display, the BL flags are available for each nibble. The last Clear command issued determines the code to be used as a "blank." This code defaults to all zeros after a reset. Note that both BL flags must be set to blank a display formatted with a single 8-bit port.
Data that is written with Ao. CS and WR low is always written to the Display RAM. The address is specified by the latest Read Display or Write Display command. Auto- Incrementing on the rising edge of WR occurs if AI set by the latest display command.


INTERFACE CONSIDERATIONS
Increment flag is set to zero, or by the End interrupt com- mand if the Auto-Increment flag is set to one.
There are three possible combinations of conditions that can occur during debounce scanning. When a key is depressed, the debounce logic is set. Other depressed keys are looked for during the next two scans. If none are encountered, it is a single key depression and the key position is entered into the FIFO along with the status of CNTL and SHIFT lines. If the FIFO was empty, IRQ will be set to signal the CPU that there is an entry in the FIFO. If the,FIFO was full, the key will not be entered and the error flag will be set. If another closed switch is encountered, no entry to the FIFO can occur. If all other keys are released before this one, then it will be entered to the FIFO. If this key is released before any other, it will be entirely ignored. A key is entered to the FIFO only once per depression, no matter how many keys were pressed along with it or in what order they were released. If two keys are depressed within the debounce cycle, it is a simultaneous depression. Neither key will be recognized until one key remains depressed alone. The last key will be treated as a single key depression.
Data Format In the Scanned Keyboard mode, the character entered into the FIFO corresponds to the pOSition of the switch in the keyboard plus the status of the CNTL and SHIFT lines (non-inverted). CNTL is the MSB of the character and SHIFT is the next most significant bit. The next three bits are from the scan counter and indicate the row the key was found in. The last three bits are from the column counter and indicate to which return line the key was connected.
Scanned Keyboard Mode, N·Key Rollover
In Sensor Matrix mode, the data on the return lines is entered directly in the row of the Sensor RAM that corresponds to the row in the matrix being scanned. Therefore, each switch post ion maps directly to a Sensor RAM position. The SHIFT and CNTL inputs are ignored in this mode. Note that switches are not necessarily the only thing that can be connected to the return lines in this mode. Any logic that can be triggered by the scan lines can enter data to the return line inputs. Eight multiplexed input ports could be tied to the return lines and scanned by the 8279.
With N-key Rollover each key depression is treated independently from all others, When a key is depressed, the debounce circuit waits 2 keyboard scans and then checks to see if the key is still down, If it is, the key is entered into the FIFO. Any number of keys can be depressed and another can be recognized and entered into the FIFO, If a simultaneous depression occurs, the keys are recognized and entered according to the order the keyboard scan found them,
Scanned Keyboard - Special Error Mode.
For N-key rollover mode the user can program a special error mode, This is done by the "End Interrupt/Error Mode Set" command. The debounce cycle and key-validity check are as in normal N-key mode, If during a single debounce cycle, two keys are found depressed. this is considered a simultaneous multiple depression. and sets an error flag. This flag will prevent any further writing into the FIFO and will set interrupt (if not yet set), The error flag could be read in this mode by reading the FIFO STATUS word, (See "FIFO STATUS" for further details,) The error flag is reset by sending the normal CLEAR command with CF = 1.
In Strobed Input mode. the data is also entered to the FIFO from the return lines. The data is entered by the rising edge of a CNTLlSTB line pulse. Data can come from another encoded keyboard or simple switch matrix. The return lines can also be used as a general purpose strobed input.
RL7! RLs I RLsl RL41 RL3! RL21 RL, ! RLo
Sen.or Matrix Mode In Sensor Matrix mode, the debounce logic is inhibited. The status of the sensor switch is inputted directly to the Sensor RAM. In this way the Sensor RAM keeps an image of the state of the switches in the sensor matrix. Although debouncing is not provided. this mode has the advantage that the CPU knows how long the sensor was closed and when it was released. A keyboard mode can only indicate a validated closure. To make the software easier, the designer should functionally group the sensors by row since this is the format in which the CPU will read them. The IRQ line goes high if any sensor value change is detected at the end of a sensor matrix scan. The IRQ line is cleared by the first data read operation if the Auto-
Left Entry mode is the simplest display format in that each display position directly corresponds to a byte (or nibble) in the Display RAM. Address 0 in the RAM is the left-most display character and address 15 (or address 7 in 8 character display) is the right most display character. Entering characters from position ze~o causes the display to fill from the left. The 17th (9th) character is entered back in the left most position and filling again proceeds from there.
Left Entry


lst entry r;TT__- __-ITI RAM L..:.LJ. Address o 1 14 15
o 1 14 15_Display
lst entry 11 I 1·1 I I I I I
01234587
2nd entry [20 = - - = IIJ o 1 14 15
2nd entry 11 12 I o 1 234 567
16th entry G21 = = = =:EEl o 1 14 15
Command l' 12 I I II I 1 1 10010101
17th entry E0= = = =~ o 1 14 15
Enter next at Location 5 Auto Increment o 1 234 567
3rd entry 11 I 2 I I I 13 I I I o 1 234 567
LEFT ENTRY MODE (AUTO INCREMENT)
Right entry is the method used by most e!ectronic ca)culators. The first entry is placed in the right most display character. The next entry is also placed in the right most character after the display is shifted left one character. The left most character is shifted off the end and is lost.
!n the Right Entry mode, Auto Incrementing and non Incrementing have the same effect as in the Left Entry except if the address sequence is interrupted:
2 3 4 5 6 7 O ___ Display
1 2 14 15 O-Display
2nd entry OJ = = = = I 11 I 2
2 3 15 0 1
Command 11 121 10010101
3 4 0 1 2
Enter next at Location 5 Auto Increment
5 6 7 0 1 2
1 2 14 15 0
13 14 1 11 121
18th entry ~= = = = 1161171181
.2 3 15 0 1
Starting at an arbitrary location operates as shown below:
(AUTO INCREMENT)
111I111I1:~~ess
Enter next at Location 5 Auto Increment
23456701 I \ I I
In the Left Entry mode, Auto Incrementing causes the address where the CPU will next write to be incremented by one and the character appears in the next location. With non-Auto Incrementing the entry is both to the same RAM address and display position. Entry to an arbitrary address in the Auto Increment mode has no undesirable side effects and the result is predictable:
(AUTO INCREMENT)
AFN-Q0742A-07


Entry appears to be from the initial entry point.
In a Sensor Matrix mode, a bit is set in the FIFO status word to indicate that at least one sensor closure indication is contained in the Sensor RAM.
8/16 Character Display Formats
If the display mode is set to an 8 character display, the on duty-cycle is double what it would be for a 16 character display (e.g., 5.1 ms scan time for 8 characters vs. 10.3 ms for 16 characters with 100 kHz internal frequency).
In Special Error Mode the S/E bit is showing the error flag and serves as an indication to whether a simultaneous multiple closure error has occurred.
G. FIFO Status
FIFO status is used in the Keyboard and Strobed Input modes to indicate the number of characters in the FIFO and to indicate whether an error has occurred. There are two types of errors possible: overrun and underrun. Overrun occurs when the entry of another character into a full FIFO is attempted. Underrun occurs when the CPU tries to read an empty FIFO.
The FIFO status word also has a bit to indicate that the Display RAM was unavailable because a Clear Display or Clear All command had not completed its clearing operation.
MATRIX
CONTROL
8/ 8 COLUMNS
RETURN
LINES 8 ROWS
"0_7 3 voo 3-8 DECODER v .. Jv ~ 3lsa
INT SHIFT CNTL INT 8-81T DATA BUS MICRO- DATA ~ DO_7 PROCESSOR BUS SYSTEM
lOR WR 8279 lOW RESET RESET CS CS ADDRESS {
CLOCK CLK SO _3 A O_3 BD BLANK r;6 I ~'~lAY
4--16 DECODER
BUS c/o c/o ClK
(DECODED) DISPLAY
4 CHARACTERS /
DATA
DISPLAY
FIGURE 2. GENERAL BLOCK DIAGRAM
9-77 AFN-00742A-08


ABSOLUTE MAXIMUM RATINGS*
'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functiona/opera- tion of the device at these or any other conditions above those indicated in the operational sections of this specifi- cation is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
Ambient Temperature O°C to 70°C Storage Temperature , 65°C to 125°C Voltage on any Pin with
Symbol Parameter Min. Max. Unit Test Cond itions
VIL1 Input Low Voltage for Shift Control -0.5 1.4 V and Return Lines
VIL2 Input Low Voltage for All Others -0.5 0.8 V
V 11-1 1 Input High Voltage for Shift, Control 2.2 V and Return Lines
VIH2 Input High Voltage for All Others 2.0 V
VOL Output Low Voltage 0.45 V Note 2
VOH Output High Voltage on Interrupt 3.5 V Note 3 Line
IIL1 Input Current on Shift, Control and +10 J.1A VIN = Vee Return Li nes -100 fJ.A VIN = OV
IIL2 Input Leakage Current on All Others ±10 fJ.A VIN = Vee to OV
IOFL Output Float Leakage ±10 fJ.A VOUT = Vee to OV
Icc Power Supply Current 120 mA
Cin Input Capacitance 5 10 pF Vin = Vee
Cout Output Capacitance 10 20 pF Vout=Vee


A.C. CHARACTERISTICS
TA = O°C to 70°C, VSS = OV, (Note 1)
READ CYCLE:
Min. Max. Min. Max. Unit
tAR Address Stable Before READ
tRA Address Hold Time for READ
tRR READ Pulse Width
tRol21 Data Delay from READ
tAO[21 Address to Data Valid
tOF READ to Data Floating
10 100 10 100 ns
tRCY Read Cycle Ti me
Min. Max. Min. Max. Unit
tAW Address Stable Before WR ITE
tWA Address Hold Time for WR ITE
tww WR ITE Pulse Width
tow Data Set Up Time for WR ITE
two Data Hold Time for WR ITE
Symbol Parameter Min. Max. Min. Max. Unit
t¢w Clock Pu Ise Width
5.1 msec 10.3 msec 80llsec 10.3 msec
480llsec 160llsec 10 11 sec
2.0 2.0 ? TEST POINTS <
O.B O.B tI.4ti


WAVEFORMS
'--------------------
ISYSTEM'S ADDR ESS BUS)
IREAD CONTROL)
DATA BUS
(OUTPUT) ~~~w.w.~~~w.W.;W~~ _I~W.;W~~~W.;W~~~w.~
Y (SYSTEM'S J.M\ .... ------------------ ADDRESS BUS)
AO.a
tAw-II.
...---t Dw - -- 'wD
DATA MAY CHANGE )(
-DATAVALID----. X
DATA BUS
DATA MAY CHANGE
(INPUT )
3. Clock Input
9-80 AFN-00742A-11
'ww , -twA · ~


SCAN WAVEFORMS
ENCODED
SCAN
S,
u u u S'-U u DECODED
u u u
S, u
u
SCAN
S,
u
u
u
Lf
DISPLAY WAVEFORMS
ASSUME INTERNAL FREQUENCV = 100 kHz
BLANK
BLANK
CODE' A(O)
CODE·
A(1)
·BLANK CODe IS EITHER ALL a's OR ALL 1', OR 20 HEX
NOTE: SHOWN IS ENCODED SCAN LEFT ENTRY
~·S3 ARE NOT SHOWN BUT THEY ARE SIMPLY 81 DIVIDED BY 2 AND 4


The 8291 GPIB Talker/Listener is a microprocessor-controlled chip designed to interface microprocessors (e.g., 8048; 8080,8085,8086) to an IEEE Standard 488 Instrumentation Interface Bus. It implements all of the Standard's interface functions except for the. controller.
BLOCK DIAGRAM
GPIB DATA
INTERFACE
FUNCTIONS ~===-=".
TO NON-INVERTING
AH TE LE
BUS TRANSCEIVERS
I T/RCONTROL


I/O Pin No. Function
I/O Pin No. Function
I/O 12-19 Data bus port, to be connected to microprocessor data bus.
I/O 37 Not ready for data; GPIB hand- shake control line. Indicates the condition of readiness of de- vicels) connected to the bus to accept data.
21-23 Register select inputs, to be con- nected to three non-multiplexed microprocessor address bus lines. Select which of the 8 in- ternal read (write) registers will be read from (written into) with the execution of RD (WR).
I/O 38 Not data accepted; GPIB hand- shake control line. Indicates the condition of acceptance of data by the device(s) connected to the bus.
Chip select. When low, enables reading from or writing into the register selected by RSo-RS2.
Read strobe. When low, selected register contents are read by the CPU.
Interface clear; GPIB command line. Places the interface func- tions in a known quiescent state.
Write strobe. When low, data is written into the selected register.
Service request; GPIB command line. Indicates the need for attention and requests an inter- ruption of the current sequence of events on the GPIB.
Interrupt request to the micro- processor, set high for request and cleared when the appropri- ate register is accessed by the CPU. May be software config- ured to be active low.
Remote enable; GPIB command line. Selects (in conjunction with other messages I remote or local control of the device.
o
DMA request, normally low, set high to indicate byte output or byte input, in DMA mode; reset by DACK.
End or identify; GPIB command line. Indicates the end of a multiple byte transfer sequence or, in conjunction with ATN, addresses the device during a polling sequence.
DACK 7 DMA acknowledge. When low, resets DREQ and selects data in/data out register for DMA data transfer (actual transfer done by RD/WR pulse).
o
External transceivers control line. Set high to indicate output data/signals on the D101-D108 and DAV lines and input signals on the NRFD and NDAC lines (active source handshake I. Set low to indicate input data/ signals on the D101·D108 and DAV lines and output signals on the NRFD and NDAC lines (ac- tive acceptor handshake I.
Must be high if DMA is not used.
Trigger output, normally low; generates a triggering pulse with 1!,sec min. width in response to the GET bus command or Trigger auxiliary command.
External clock input, used only for T 1 delay generator. May be any speed in 1-8 MHz range.
Reset input. When high, forces the device into an "Idle" (initiali- zation) mode. The device will re- main at "Idle" until released by the microprocessor.
External transceivers control line. Set high to indicate output signals on the EOI line. Set low to indicate expected input signal on the EOI line during parallel
8-bit GPIB data port, used for bidirectional data byte transfer between 8291 and GPIB via non- inverting external line trans- ceivers.
poll.
Positive power supply (5V ± 10%).
P.S. 20
Potential ground circuit.
Data valid; GPIB handshake control line. Indicates the avail- ability and validity of infor- mation on the DIO lines.


r -, OREO I DMA I c(g~il~~~LLE)R I~ __ D_AC_K_~L""::~~:::':'..J L I
r r 1 f
r r r r r
The General Purpose Interface Bus (GPIB) is defined in the IEEE Standard 488-1978 "Digital Interface for Programmable Instrumentation." Although a knowledge of this standard is assumed, Figure 1 provides the bus structure for quick reference. Also, Tables 1 and 2 reference the interface state mnemonics and the interface messages respectively. Modified state diagrams for the 8291 are presented in Appendix A.
ABLE TO TALK, LISTEN,
I t-
AND CONTROL
DATA BUS
(e.g. calculator)
ABLE TO TALK AND
I r--
GENERAL DESCRIPTION
LISTEN
The 8291 is a microprocessor controlled device de- signed to interface microprocessors e.g., 8048, 8080, 8085,8086 to the GPIB. It implements all of the interface functions defined in the IEEE 488 Standard. If an imple- mentation of the Standard's Controller function is desired, it can be connected with an Intel® 8292 to form a complete interface.
(e.g. digital multimeterl
DEVICE C
ONLY ABLE
I t-
TO LISTEN
(e.g. signal generator)
The 8291 handles communication between a microproc- essor controlled device and the GPIB. Its capabilities in- clude data transfer, handshake protOCOl, talkerllistener addressing procedures, device clearing and triggering, service request, and both serial and parallel polling schemes. In most procedures, it does not disturb the microprocessor unless a byte is waiting on input or a byte sent on output (output buffer empty).
ONLY ABLE
I t-
TO TALK
(e.g. counter)
~}DIOl . .. 8
The 8291 architecture includes 16 registers. Eight of these registers may be written into by the microprocessor. The other eight registers may be read by the microprocessor. One each of these read and write registers is for direct data transfers. The rest of the write registers control the various features of the chip, while the rest of the read registers provide the microprocessor with a monitor of GPIB states, various bus conditions, and device conditions.
IFC ATN SRO REN EOI
Figure 1_ Interface Capabilities and Bus Structure_
TRANSFER (I-t-- CONTROL · (


second mode allows the user to implement a single talker/listener with a two byte address (primary address + secondary address). The third mode again allows for two distinct addresses but in this instance, they can each have a two-byte address. However, this mode requires that the secondary addresses be passed to the microprocessor for verification. These three addressing schemes are des- cribed in more detail in the discussion of the Address registers.
Each device connected to the GPIB must have at least one address whereby the controller device in charge of the bus can configure it to talk, listen, or send status. An 8291 implementation of the GPIB offers the user three addressing modes from which the device can be initialized for each application. The first of these modes allows for the device to have two separate primary addresses. The
ACDS Accept Data State ACRS Acceptor Ready State AIDS Acceptor Idle State ANRS Acceptor Not Ready State APRS Affirmative Poll Response State AWNS Acceptor Wait for New Cycle State , I CACS Controller Active State I : CADS Controller Addressed State I I CAWS Controller Active Wait State I I CIDS Controller Idle State I I CPPS Controller Parallel Poll State I I CPWS Controller Parallel Poll Wait State I : CSBS Controller Standby State : I CSNS Controller Service Not Requested State I I CSRS Controller Service Requested State I I CSWS Controller Synchronous Wait State I L ~T~~ _ ~~t.':?~~TI:a~s!:.r ~t~t~ J DCAS Device Clear Active State DCIS DTAS OTIS
Parallel Poll Addressed to Configure State Parallel Poll Active State Parallel Poll Idle State Parallel Poll Standby State Parallel Poll Unaddressed to Configure State
Remote State Remote With Lockout State
SACS SDYS SGNS SIAS SIDS SIIS SINS SIWS SNAS SPAS SPIS SPMS SRAS SRIS SRNS SRQS STRS SWNS
System Control Active State Source Delay State Source Generate State System Control Interface Clear Active State Source Idle State System Control Interface Clear Idle State System Control Interface Clear Not Active State Source Idle Wait State System Control Not Active State Serial Poll Active State Serial Poll Idle State Serial Poll Mode State System Control Remote Enable Active State System Control Remote Enable Idle State System Control Remote Enable Not Active State Service Request State Source Transfer State Source Wait for New Cycle State
Device Clear Idle State Device Trigger Active State Device Trigger Idle State
Listener Active State Listener Addressed State Listener Idle State Local State Listener Primary Addressed State Listener Primary Idle State Local With Lockout State
Talker Active State Talker Addressed State Talker Idle State Talker Primary Idle State
Negative Poll Response State
The Controller function is implemented on the Intel® 8292.
GPIB Addressing · Mnemonic State Represented · Mnemonic State Represented


Mnemonic Message Interlace Functlon(s)
LOCAL MESSAGES RECEIVED (By Interlace Functions)
·gts go to standby C ist individual status PP Ion listen only L, LE Ipe local poll enable PP nba new byte available SH
rtl return to local RL 'sic send interface clear C 'sre send remote enable C *tca take control asynchronously C ·tcs take control synchronously AH,C ton talk only T, TE
ATN Attention SH,AH,T,TE,L,LE,PP,C DAB Data Byte (Via L, LE) DAC Data Accepted SH DAV Data Valid AH DCL Device Clear DC
END End (via L, LE) GET Group Execute Trigger DT GTL Go to Local RL lOY Identify L,LE,PP IFC Interface Clear T,TE,L,LE,C
LLO Local Lockout RL MLA My Listen Address L,LE,RL,T,TE MSA My Secondary Address TE,LE,RL MTA My Talk Address T,TE,L,LE OSA Other Secondary Address TE
OTA Other Talk Address T, TE PCG Primary Command Group TE,LE,PP tPPc Parallel Poll Configure PP t [PPD) Parallel Poll Disable PP t [PPE] Parallel Poll Enable PP
[SOC] Select Device Clear DC SPD Serial Poll Disable T, TE SPE Serial Poll Enable T, TE 'SaR Service Request (via C) STB Status Byte (via L, LE)
'TCT or [TCT] Take Control C UNL Un listen L, LE
'These' messages are handled only by Intel's 8292. tUndefined commands which may be passed to the microprocessor.


TABLE 2. (Cont'd) IEEE 488 INTERFACE MESSAGE REFERENCE LIST
ATN Attention DAB Data Byte DAC Data Accepted DAV Data Valid DCl Device Clear
C (via T, TE) AH SH (via C)
END End GET Group Execute Trigger GTl Go to local IDY Identify IFC Interface Clear llO local lockout MlA or [MlA[ My Listen Address MSA or [MSA[ My Secondary Address MTA or [MTA[ My Talk Address OSA Other Secondary Address
(via T) (via C) (via C) C C
(via C) (via C) (via C) (via C) (via C)
OTA Other Talk Address PCG Primary Command Group PPC Parallel Poll Configure [PPD[ Parallel Poll Disable [PPE[ Parallel Poll Enable
(via C) (via C) (via C) (via C) (via C)
PPRN Parallel Poll Response N PPU Parallel Poll Unconfigure REN Remote Enable RFD Ready for Data ROS Request Service
PP (via C) C AH T, TE
[SDC[ Selected Device Clear SPD Serial Poll Disable SPE Serial Poll Enable SRO Service Request STB Status Byte
(via C) (via C) (via C) SR (via T, TE)
TCT Take Control UNl Unlisten
(via C) (via C)


A bit-by-bit map of the 16 registers on the 8291 is presented in Table 3. A more detailed explanation of each of these registers and their functions follows. The access of these registers by the microprocessor is accomplished by using the es. RD, WR, and RSo-RS2 pins.
All Read Registers 0 0 eee
o
o
eee
TABLE 3. 8291 REGISTERS
READ REGISTERS REGISTER SELECT
WRITE REGISTERS
CODE
RS2
RSO
I 017 I 016 015 014 013 012 Oil! 010
o ! 007 ! 006 o05! 004 003 I 002 001 I 000
DATA OUT
I CPT I APT GET I END I DEC! ERR! 80 ! 81
1 I CPT ! APT ! GET I ENO I DEC I ERR 80 I 81
INTERRUPT ENABLE 1
o I 0 I 0
INT ! SPAS! LLO! REM! SPASC!LLOC I REMC! Aosci
oMAOloMAl1 SPAScl LLOC! REMC! AoSC I
INTERRUPT ENABLE 2
I S8 SROS I 56 I S5 I 54 ! 53 S2 ! 51
SERIAL POLL STATUS
SERIAL POLL MODE
1 ton I Ion EOI I LPAS I TPAS I LA TA I MJMNI
o I TO I LO I 0 I 0 I 0 I 0 AOMll AoMOI
ADDRESS MODE
[CPT71 CPT61 CPTS! CPT41 CPT3! CPT21 cpnl CPTO I
1 I CNT2l CNTll CNTOI COM41 COM31 COM21 COMll COMol
AUX MODE
o I ARS I oT oL I AD5 I A04 I A03 A02 I Aol
oTO oLO I A05.01 A04.0! A03.0! A02.01 AOl.01
1 I Ee7 ! EC6 EC5 I Ee4 I Ee3 I Ee2 Eel I ECO
EOS
addressed to listen. Incoming information is separately latched by this register, and its contents are not destroyed by a write to the data-out register. The RFD (Ready for Datal message is held false until the byte is removed from the data In register, either by the microprocessor or by DMA. The 8291 then completes the handshake automati- cally. In RFD/DAV holdoff mode (see Auxiliary Register AI, the handshake is not finished until a command is sent telling the 8291 to release the holdoff. In this way, the same byte may be read several times, or an over anxious talker may be held off until all available data has been processed.
017 ! 016 016 I 014 013 012 011 I 010 I
007 I 006 I 005 I 004 I 003 I 002 I 001 I 000 I
The data-In register is used to move data from the GPIB to the microprocessor or to memory when the 8291 is


When the 8291 is addressed to talk, it uses the data-out
RFO/OAV holdoff mode is in effect, data is held until the release command is issued. Also, a read of the data-in register does not destroy the information in the data-out register.
register to move data onto the GPIB. Upon a write to this register, the 8291 initiates and completes the handshake while sending the byte out over the bus. When the
I CPT I APT I GET I ENO OEC I ERR BO BI
I CPT I APT I GET I END I DEC I ERR BO BI I
INTERRUPT ENABLE 1 I1W)
liNT I SPAS I LLO I REM I SPAscl LLOC I REMCI ADSC I
I 0 I 0 I DMAOI DMAI I SPAscl LLOC I REMCI ADscl
INTERRUPT ENABLE 2 (2W)
The 8291 can be configured to generate an interrupt to the microprocessor upon the occurrence of any of 12 conditions or events on the GPIB. Upon receipt of an interrupt, the microprocessor must read the Interrupt Status registers to determine which event has occurred, and then execute the appropriate service routine (if necessary). Each of the 12 interrupt status bits has a matching enable bit in the interrupt enable registers. These enable bits are used to select the events that will
Status registers are set regardless of the states of the enable bits. The Interrupt Status registers are then cleared upon being read or when a local pon (power·on) message is executed. If an event occurs while one of the Interrupt Status registers is being read, the event is typically held until after its register is cleared and then placed in the register.
The mnemonics for each of the bits in these registers and a brief description of their respective functions appears in Table 4. This table also indicates how each of the interrupt bits is set.
cause the INT pin to be asserted. Writing a logic "1" into any of these bits enables the corresponding interrupt status bits to generate an interrupt. Bits in the Interrupt
TABLE 4. Interrupt Bits
An undefined command has been received.
Set by (TPAS + LPAS)oSCGoACOSoMODE 3
A secondary address must be ""assed through to the microprocessor for recognition.
A group execute trigger has occurred.
Set by (EOS + EOI)oLACS
An EOS or EOI message has been received.
Device Clear Active State has occurred.
Set by TACS.nbaoOAC.RFO
Interface error has occurred; no listeners are active.
A byte should be output.t
Set by LACS.ACOS
A byte has been input.
Shows status of the INT pin
The device has been enabled for a serial poll
These are status only. They will not generate interrupts, nor do they have corresponding mask bits.
The device is in local lock out state.
The device is in a remote state.
SPAS-SPAS SPASC Serial Poll Active State change interrupt.t --- LLCNO LLO LLOC Local lock out change interrupt.
AddressedUnaddressed AOSC Address status change interrupt: -- tSee section on 8291A compatibility. 'In ton (talk-only) and Ion (listen·only) modes, no ADSC interrupt Is generated.
Remoti:~Jocal REMC Remote/Local change interrupt.


The BO and BI interrupts enable the user to perform data transfer cycles. BO indicates that a byte has been sent to the GPIB or the 8291 has been addressed to talk. A new data byte may be written into the Data Out register. It is set by the occurrence of TACS. (SWNS + SGNS). Hence, it is reset when a data byte is written into the Data Out register, when ATN is asserted on the GPIB, or when the device stops being addressed to talk. Similarly, BI is set when an input byte is accepted into the 8291 and reset when the microprocessor reads the Data In register. BO and BI are also reset by pon (power-on local message) and by a read of the Interrupt Status 1 register. However, if it is so desired, data transfer cycles may be performed without reading the Interrupt Status 1 register if all interrupts except for 80 or BI are enabled; BO and BI will automatically reset after each byte is transferred.
The CPT interrupt bit flags the occurrence of an unde-
fined command and of all secondary commands follow- ing an undefined command. The Command pass through feature is enabled by the BO bit of Auxiliary register B.
UDC = [UCG + ACG(TADSoPPC
+ LADSoTCT)]oundefinedoBO where:
ACG - Addressed Command Group UCG - Universal Command Group SCG - Secondary Command Group
Any message not decoded by the 8291 (not included in the state diagrams in Appendix B) becomes an undefined command. Note from the logic equation that any addressed command is automatically ignored when the 8291 is not addressed.
If the 8291 is used without DMA, the BO and BI interrupts may be enabled through the DREQ pin. The DMAO and DMAI bits in the Interrupt Enable 2 register would be the corresponding enable bits for this feature. Thus, imple- menting this feature, with 80 and Bi enabied from the INT pin, allows for servicing of these interrupts without reading the Interrupt Status registers.
Undefined commands are read by the CPU from the Command Pass Through Register of the 8291. Until this register is read, the 8291 will hold off the handshake (only ii the CP I teatu re is enabled).
An especially useful feature of the 8291 is its ability to generate interrupts from state transitions in the interface functions. In particular, the lower 4 bits of the Interrupt Status 2 register, if enabled by the corresponding enable bits, will cause an interrupt upon changes in the follow- ing states as defined in IEEE 488:
Bit 0 ADSC Bit 1 RLC Bit 2 LLOC Bit 3 SPASC
change in LIDS or TIDS or MJMN change in LOCS or REMS change in LWLS or RWLS change in SPAS
The DEC bit is set whenever DCAS has occurred. The user must define a known state to which all device functions will return in DCAS. Typically this state will be a power-on state. However, the state of the device functions at DCAS is at the designer's discretion. It should be noted that DCAS has no effect on the interface functions which are returned to a known state by the IFC (interface clear) message or the pon local message.
The upper 4 bits of the I nterrupt Status 2 register are available to the processor as status bits. Thus, if one of the bits 1-3 generates an interrupt indicating a state change has taken place, the corresponding status bit (bits 5-7) may be read to determine what the new state is. To determine the nature of a change in addressed status (bit 0) the Address Status Register is available to be read. And finally, bit 7 monitors the state of the 8291 INT pin. Logically, it is an OR of all enabled interrupt status bits. One should note that bits 4-7 of the Interrupt Status 2 Register do not generate interrupts, but are available only to be read as status bits by the processor.
The END Interrupt bit may be used by the microprocessor to detect that a mUlti-byte transfer has been completed. The bit will be set when the 8291 is an active listener (LACS) and either EOS or EOI is received. EOS will
generate an interrupt when the byte in the Data In regis- ter matches the byte in the EOS register. Otherwise the interrupt will be generated when a true input is detected at the EOI pin of the 8291.
Bits 4 and 5 (DMAI, DMAO) of the Interrupt Enable 2 Register are available to enable direct data transfers between memory and the GPIB, DMAI (DMA in) enables the DREQ (DMA request) pin of the 8291 to be asserted upon the occurrence of 81. Similarly, DMAO (DMA out) enables the DREQ pin to be asserted upon the occurrence of BO. One might note that the DREQ pin may be used as a second interrupt output pin, monitoring BI and/or BO and enabled by DMAI and DMAO. One should note that the DREQ pin is not affected by a read of the Interrupt Status 1 Register. It is reset whenever a byte is written to the Data Out Register or read from the Data In Register.
The GET interrupt bit is used by the microprocessor to detect that DTAS has occurred. It is set by the 8291 when
the GET message is received while it is addressed to lis- ten. The TRIG output pin of the 8291 is also asserted when the GET message is received. Thus, the basic operation of the device may be started without involving the microprocessor.
The APT interrupt bit indicates to the processor that a secondary address is available in the CPT register for validation. This interrupt will only occur if Mode 3 addressing is in effect. (Refer to the section on addressing.) In Mode 2, secondary addresses will be recognized on the 8291. They will be ignored in Mode 1.
To ensure that an interrupt status bit will not be cleared without being read, and will not remain uncleared after being read, the 8291 Irnplem~Jnts a special Interrupt


handling procedures. When an enabled interrupt bit is set in either of the Interrupt Status Registers, the Input of the registers are blocked until the set bit is read and reset by the microprocessor. Thus, potential problems arise when interrupt status changes while the register is being blocked. However, the 8291 stores all new Inter- rupts in a temporary register and transfers them to the appropriate interrupt Status Register after the interrupt
has been reset. In the Interrupt Status 1 Register and in AOSC bit, this transfer takes place only if the correspon- ding bits were read as zeroes. For the other status change bits In the Interrupt Status 2 Register, the transfer will always take place. However, even number of changes In these status bits during blocking time will cause no Interrupt.
58 rsv 56 55 54 53 52 51
SERIAL POLL MODE 13W)
The Serial Poll Mode Register is used to establish the status byte that the 8291 sends out on the GPIB data lines when it receives the SPE I Serial Poll Enable I message. Bit 6 of this register is reserved for the rsv I request service} local message. Setting this bit to 1 causes the 8291 to assert its SRO line, indicating its need for attention from the controller-in-charge of the GPIB. When service has been granted, the bit should be cleared by the microprocessor. The other bits of this register are available for sending status information over the GPIB. Sometime after the microprocessor initiates a request for service by setting bit 6, the controller of the GPIB sends the SPE message and then addresses the 8291 to
talk. At this point, one byte of status is returned by the 8291 via the Serial Poll Mode Register.
The Serial Poll Status Register is available for reading the status byte in the Serial Poll Mode Register. The processor may check the status of a request for service by polling bit 6 of this register, which corresponds to SROS IService Request State I. When a Serial Poll is conducted and the controller-in-charge reads the status byte, the SROS bit is cleared. The SRO line is tied to this bit, so that a request for service is terminated when the 8291 's status byte is read. The rsv bit of the Serial Poll Mode Register must then be cleared by the microprocessor.
I TO ILO I 0 I 0 I 0 I 0 ADM'I AOMOI
ADDRESS STATUS 14R) I X OTO! OLO! AOS.O! A04.0! AD3.0! AD2.0! AD,.O !
! ARS ! DT DL I ADS I AD41 AD3! AD2! AD1
ADDRESS 0 16R) I X on DL1! ADS"! AD4.1! AD3.'! AD2.1! AD,., !
The Address Mode Register is used to select one of the five modes of addressing available on the 8291. It determines the way in which the 8291 uses the information in the Address 0 and Address 1 registers: -In Mode 1, the contents of the Address 0 Register constitute the "Major" talkerllistener address while tne Address 1 Register represents the "Minor" talker/listener address. In applications where only one address is needed, the major talker/listener is used, and the minor talker/listener should be disabled. Loading an addres via the Address 0/1 Register into Address Registers 0 and 1 enables the major and minor talker/listener functions respectively. -In Mode 2 the 8291 recognizes two sequential address bytes: a primary followed by a secondary. Both address bytes must be received in order to enable the device to talk or listen. In this manner, Mode 2 addressing implements the extended talker and listener functions as defined in IEEE 488.
To use Mode 2 addressing the primary address must be loaded into the Address 0 Register, and the Secondary address is placed in the Address 1 Register. With both primary and secondary addresses residing on chip, the 8291 can handle all addressing sequences without processor intervention. -In Mode 3, the 8291 handles addressing just as it does in Mode 1, except that each Major or Minor primary address must be followed by a secondary address. All secondary addresses must be verified by the microprocessor when Mode 3 is used., When the 8291 is in TPAS or LPAS (talker/listener primary addresses statel, and it does not recognize the byte on the 010 lines, an APT interrupt is generated (see section on Interrupt Registers) and the byte is available in the CPT (Command Pass-Through) Register. As part of its interrupt service routine, the microprocessor must read the CPT Register and write one of the following responses to the Auxiliary Mode Register:
Serial Poll Registers · Address Registers · ADDRESS Oil 16WI


Setting the "ton" bit generates the local ton (talk-only) . message and sets the 8291 to a talk-only mode. This mode
Operation CS RD WR Data RSZ-RSO
allows the device to operate as a talker in an interface system without a controller.
1 .. Select addressing Mode 1 0 1 0 00000001 100
Setting the "Ion" bit generates the local Ion (listen-only) message and sets the 8291 to a listen-only mode. This mode allows the device to operate as a listener in an interface system without a controller.
The mode of addressing implemented by the 8291 may be selected by writing one of the following bytes to the Address Mode Register:
At this point, the addresses AAAAA and BBBBB are stored in the Address 0 and Address 1 registers respectively, and are available to be read by the microprocessor. Thus, it is not necessary to store any address information elsewhere. Also, with the information stored in the Address 0 and Address 1 registers, processor intervention is not required to recognize addressing by the controller. Only in Mode3, where secondary addresses are passed through, must the processor intervene in the addressing sequence.
10000000 01000000 11000000 00000001 00000010 00000011
Enable talk only mode (ton) Enable listen only mode (Ion) The 8291 may talk to itself Mode 1, (Primary-Primary) Mode 2 (primary-Secondary) Mode 3 (primary/APT-Primary/APT)
The Address Status Registercontains information used by the microprocessor to handle its own addressing. This information includes status bits that monitor the address state of each talker/listener, "ton" and "Ion" flags which indicate the talk only and listen only states, and an EOI bit which, when set, signifies that the END message came with the last data byte. LPAS and TPAS indicate that the
Command Pass Through Register
The Command Pass Through Register is used to transfer undefined 8-bit remote message codes from the GPIB to the microprocessor. When the CPT feature is enabled (bit BO in Auxiliary Register B), any message not de- coded by the 8291 becomes an undefined command. When Mode 3 addressing is used secondary addresses are also passed through the CPT Register. In either case, the 8291 will holdoff the handshake until the microprocessor reads this register and issues the VSCMD auxiliary command.
listener or talker primary address has been received. The microprocessor can then use these bits when the secondary address is passed through to determine whether the 8291 is addressed to talk or listen. The LA (listener addressed) bit will be set when the 8291 is in LACS (Listener Active State) or in LADS (Listener Addressed State). Similarly, the TA (Talker Addressed bit will be set to indicate TACS or TAOS, but also to indicate SPAS (Serial Poll Active State). The MJMN bit is used to determine whether the information in the other bits applies to the Major or Minor talker/listener. It is set to "1" when the Minor talker/listener is addressed. It should be noted that only one talker/listener may be active at any one time. Thus, the MJMN bit will indicate which, if either, of the talker/listeners is addressed or active.
The CPT and APT interrupts flag the availability of undefined commands and secondary addresses in the CPT Register. The details of these interrupts are explained in the section on Interrupt Registers.
An added feature of the 8291 is its ability to handle undefined secondary commands following undefined primaries: Thus, the number of available commands for future IEEE 488 definition is increased; one undefined primary command followed by a sequence of as many as 32 secondary commands can be processed. The IEEE-488 Standard does. not permit users to define their own commands, but upgrades of the standard are thus .provided for.
The Address 0/1 Register is used for specifying the device's addresses according to the format selected in the Address Mode Register. Five bit addresses may be loaded into the Address 0 and Address 1 registers by writing into the Address 0/1 Register. The ARS bit is used to select which of these registers the other seven bits will be loaded into. The DT 'and DL brts may be used to disable the talker or lis.tener function at the address Signified by the other five bits. When Mode.l addressing is used and only one primary address is desired, both the talker and the listener should be disabled at the Minor address.
The recommended use o.f the 8291 's undefined command capabilities is for a controller-configured Parallel Poll. The PPC message is an undefined primary command typically followed by PPE, an undefined secondary command. For details on this procedure, refer to the section on Parallel Poll Protocol. .
As an example of how the Address 0/1 Register might be used, consider an example where t.wo primarY'addresses are .needed in the device. The Major primary address will be selectable only ass lalker and the Minor primary address will be selectable only· as a listener. This configuration of the 8291 is fo.rmed by the following
sequence of writes by. the microprocessor:
Register Contents · Mode


I CNT21 CNT1 I CNTO I COM41 COM31 COM21 COM' I COMO I
The 8291 is designed to power up in certain states as spec,ified in the IEEE 488 state dia- grams. Thus, the following states are in effect in the power upstate: SIDS, AIDS, TIDS, LIDS, NPRS, LOeS, and PPIS.
CNTO-2:CONTROL BITS COMO-4:COMMAND BITS
The "0000" pon is an immediate execute command (a pon pulse). It is also used to release the "initialize" state generated by either an external reset pulse or the "0010" Chip Reset.command.
The Auxiliary Mode Register contains a three-bit control field and a five-bit command field. It is used for several purposes on the 8291:
0010 Chip Reset (Initialize) - This command has the same effect as a pulse applied to the Reset pin. (Refer to the section on Reset Procedure.)
0011 Finish Handshake - This command finishes a handshake that was stopped because of a holdoff on RFD or DAV. (Refer to Auxiliary Register A.)
Table 5 summarizes how these tasks are performed with the Auxiliary Mode Register. Note that the three control bits determine how the five command bits are interpreted.
0100 Trigger - A "Group Execute Trigger" is forced by this command. It has the same effect as a GET command issued by the controller- in-charge of the GPIB, but does not cause a GET interrupt.
CODE CONTROL COMMAND
COMMAND
BITS BITS 000 OCCCC
0101 rtlt - This command corresponds to the local rtl message as defined in IEEE 488. The 8291 will go to a local state if local lockout is not in effect.
Execute auxiliary command ccee Preset internal counter to match external clock frequency of FFFF MHz (FFFF - binary representation of 1 to 8 MHz) 100 DDDDD Write DDDDD into auxiliary register A 101 ODDDD Write DDDD into auxiliary register B 011 USP3P2Pi Enable/disable parallel poll
0110 Send EOI - The EOI line of the 8291 may be asserted with this command. The command causes EOI to go true with the next byte trans- mitted. The EOlline is then cleared upon com- pletion of the handshake for that byte.
0111, 1111 Non-Valid/Valid Secondary Address or Command (VSCMD) - This command in- forms the 8291 that the secondary address re- ceived by the microprocessor was valid or invalid (0111 - invalid, 1111 - valid). If Mode3 addressing is used, the processor must field each extended address and respond to it, or the GPIB will hang up. Note that the COM3 bit is the invalid/valid flag.
either in response to remote messages (PPC followed by PPE or PPD) or as a local Ipe message. (Enable if U = 0, disable if U = 1.)
The valid (1111) command is also used to tell the 8291 to continue from the command-pass- through state (immediate execute command).
0001, 1001 Parallel Poll Flag (local "ist" message) - This command sets (1001) or clears (0001) the parallel poll flag. A "1" is sent over the assigned data line (PPR-Parallel Poll Re- sponse true) only if the parallel poll flag matches the sense bit from the'lpe local message (or indirectly from the PPE mess- age). For a more complete description of the Parallel Poll features and procedures refer to the section on ParaHel Poll Protocol.
Auxiliary commands are executed by the 8291 whenever OOOOCCCC is written into the Auxiliary' Mode Register, where ecce is the 4-bit command code.
4-Blt Code Descri tion
0000 Immediate Execute pon - This command re- . sets the 8291 to a power up state (local pon .' message as defined in IEEE 488).
The following conditions constitute the power up state: 1. All talkers and listeners are disabled. 2. No interrupt status bits are set.
ISee section on 8291A compatibility.
Auxiliary Mode Register · 4-Blt Code Description


A2 - End on EOS Received: Whenever the byte in the Data In Register matches the byte in the EOS Register, the End interrupt bit will be set inthe Interrupt Status 1 Register.
The Internal counter determines the delay time allowed for the settling of data on the DIO lines. This delay time is defined as T1 In IEEE 488 and appears in the Source Handshake state diagram between SDYS and STRS. As such, DAV is asserted T1 after the DIO lines are driven. Consequently, T1 is a major factor In determining the data transfer rate of the 8291 over the GPIB (T1 = TWRDV2-TWRD15).
A3 - Output EOI on EOS ~ent: Any occurrence of data in the Data Out Register matching the EOS Register causes the EOI line to be sent true along with the data.
A4 - EOS 8inary Compare: Setting this bit causes the EOS Register to function as a full8·bit word. When it is not set, the EOS Register is a 7·bit word Ifor ASCII characters I.
When open-collector transceivers are used for connection to the GPIB, T1 is defined by IEEE 488 to be 2!,sec. 8y writing 0010FFFF into the Auxiliary Mode Register, the counter is preset to match a fc MHz clock input, where FFFF is the binary representation of NF 11 SNFS8, NF=I FFFFI2J.· When NF = fc, a 2!,sec T1 delay will be generated before each DAV asserted.
If Ao = A, = 1, a special "continuous Acceptor Handshake cycling" mode is enabled. This mode should be used only in a controller system configuration, where both the 8291 and the 8292 are used. It provides a continuous cycling through the Acceptor Handshake state diagram, requiring no local messages from the microprocessor; the rdy local message is automatically generated when in ANRS. As such, the 8291 Acceptor Handshake serves as the controller Acceptor Handshake. Thus, the controller cycles through the Acceptor Handshake, without delaying the data transfer in progress. When the tcs local message is executed, the 8291 is taken out of the "continuous AH cycling" mode, the GPI8 hangs up in ANRS, and a 81 interrupt is generated to indicate that control may be taken. A simpler procedure may be used when a "tcs on end of block" is executed; the 8291 may stay in "continuous AH cycling". Upon the end of a block (EOI or EOS received" a holdott is generated, the GPI8 hangs up in ANRS, and control maybe taken.
tSYNC is a synchronization error, greater than zero and smaller than the larger of T clock high and T clock low. I For a 50% duty cycle clock, tSYNC is less than half the clock cyclel.
If it is necessary that T1 be different from 2!,sec, NF may be set to a value other than fc.ln this manner, data transfer rates may be prpgrammed for a given system. In small systems, for example, where transfer rates exceeding GPIB specifications are required, one may set NF < fc and decrease T1.
When tri·state transceivers are used, IEEE 488 allows a higher transfer rate dower T11. Use of the 8291 with such transceivers is enabled by setting B2 in Auxiliary Register B.ln this case, setting NF = fc causes a T 1 delay of 2!,sec to be generated for the first byte transmitted - all subsequent bytes will have a delay of 500 nsec.
Auxiliary Register 8 is a "hidden" 4·bit register which is used to enable some of the features of the 8291. Whenever a 101083B28180 is written into the Auxiliary Mode Register, it is loaded with the data 83828,60. Setting the respective bits to "1" enables the following features:
Bo - Enable Undefined Command Pass Through: This feature allows any commands not recognized by the 8291 to be handled in software. If enabled, this feature will cause the 8291 to holdott the handshake when an undefined command is received. The microprocessor must then read the command from the Command Pass Through Register and send the VSCMD auxiliary command. Until the VSCMD command is sent, the handshake holdoff will be in effect.
Thus, setting N'F = 1 using a8 MHz clock will generate for a 50% duty cycle clock (tSYNc
T1(HS) = 2~8 + 0.063 = 125 nsec max.
B1 - Send EOI in SPAS: This bit enables EOI to be sent with the status byte; EOI is sent true in Serial Poll Active State. Otherwise, EOI is sent false in SPAS.
Auxiliary Register A is a "hidden" 5-bit register which is used to enable some of the 8291 features. Whenever a 100 A4A3A2A 1 Ao byte is written into the Auxil iary Register, it Is loaded with the data A4A3A2A1Ao. Setting the respective bits to "1" enables the following features:
82 - Enable High Speed Data Transfer: This feature may be enabled when tri-state external transceivers are used. The data transfer rate is limited by T1 (delay time generated in the Source Handshake function', which is defined according to the type of transceivers used. When the "High Speed" feature is enabled, T 1 = 2 microseconds is generated for the first byte transmitter! after each true to false transition of ATN. For all subsequent bytes, T1 = 500 nanoseconds. Refer to the I nternal Counter section for an explanation of T 1 duration as a function of B2 and of clock frequency.
Ao - RFD/DAV Holdoff on all Data: Ifthe8291 is listening, RFD will not be sent true until the "finish handshake" auxiliary command is issued by the microprocessor. If the 8291 is talking, DAV is not sent true until the "finish handshake" command is given. In both cases, the holdoff will be in effect for each data byte.
A1 - RFD/DAV Holdoff on End: This feature enables the holdott on EOI or EOS (if enabled). However, no holdoft will be in effect on any other data bytes.


B3 - Enable Active Low Interrupt: Setting this bit causes the polarity of the I NT pin to be reversed, providing an output signal compatible with Intel's MCS-48'". Interrupt registers are not affected by this bit.
End of Sequence (EaS) Register
I EC7 I EC6 I EC5 I EC4 I EC3 I EC2 ECl ECO I
The EOS Register and its features offer an alternative to the "Send EOI" auxiliary command. A seven or eight bit
Writing a 011USP3P2P, into the Auxiliary Mode Register will enable (U = 0) or disable (U = 1) the 8291 for a parallel poll. When U = 0, this command is the "Ipe" (local poll enable) local message as defined in IEEE 488. The "S" bit is the sense in which the 8291 is enabled; only if the Parallel Poll Flag ("ist" local message) matches this bit will the Parallel Poll Response, PPRN, be sent true (Response = S~ ist). The bits P3P2P, specify which of the eight data lines PPRN will be sent over. Thus, once the 8291 has been configured for Parallel Poll, whenever it senses both EOI and ATN true, it will automatically compare its PP flag with the sense bit and send PPRN true or false according to the comparison.
byte (ASCII or binary) may be placed in the register to flag the end of a block or read. The type of EOS byte to be used is selected in Auxiliary Register bit A4.
If the 8291 is a listener, and the "End on EOS Received" is
enabled at bit A2, then an End interrupt is generated in the Interrupt Status 1 Register whenever the byte in the Data- In Register matches the byte in the EOS Register.
If the 8291 is a talker, and the "Output EOI on EOS Sent" is enabled at bit A3, then the EOI line is sent true with the next data byte whenever the contents of the Data Out Register match the EOS register.
If a PP2' implementation is desired, the "Ipe" and "ist" local messages are all that are needed. Typically, the user will configure the 8291 for Parallel Poll immediately after
The 8291 is reset to an initialization state either by a pulse applied to its Reset pin, or by a reset auxiliary command (02H written into the Auxiliary Command Register). The following conditions are caused by a reset pulse (or local reset command):
initialization. During normal operation the micro- processor will set or clear the Parallel Poll Flag (ist) according to the device's need for service. Consequently the 8291 will be set up to give the proper response to I DY
(EOI • ATN) without directly involving tne micropro- cessor.
2_ The Interrupt Status Registers are cleared (not Interrupt Enable Registers). 3. Auxiliary Registers A and B are cleared. 4. The Serial Poll Mode Register is cleared. 5. The Parallel Poll Flag is cleared. 6. The EOI bit in the Address Status Register is cleared. 7. NF in the Internal Counter is set to 8 MHz. This set- ting causes the longest possible t, delay to be generated in the Source Handshake (16 I'sec for 1 MHz clock). 8. The rdy local message is sent.
If a PP1' implementation is desired, the undefined command features of the 8291 must be used. In PP1, the 8291 is indirectly configured for Parallel Poll by the active controller on the GPIB. The sequence at the 8291 being enabled or disabled remotely is as follows:
The initialization state is released by an "immediate ex- ecute pon" command (OOH written into the Auxiliary Command Register).
The suggested initialization sequence is:
1. Apply a reset pulse or send the reset auxiliary command. 2. Set the desired initial conditions by writing into the In- terrupt Enable, Serial Poll Mode, Address Mode, Address 0/1, and EOS Registers. Auxiliary Registers A and B, and the internal counter should also be initialized. 3. Send the "immediate execute pon" auxiliary command to release the initialization state. 4. If a PP2 Parallel Poll implementation is to be used the "Ipe" local message may be sent, enabling the 8291 for a Parallel Poll Response on an assigned line. (Refer to the section on Parallel Poll Protocol.)
'As defined in IEEE Standard 488.
Reset Procedure · 9·95


8291 to 8291A Software Compatibility
The 8291 may be connected to the Intel 8237 or 8257 DMA Controllers for DMA operation. The DREO pin of the 8291 requests a DMA byte transfer from the 8237. It Is set by BO or BI flip flops, enabled by the DMAO and DMAI bits In the Interrupt Enable 2 Register. (After read· ing, the INT1 register BO and BI interrupts will be cleared but not BO and BI In DREO equation.)
Intel will be improving the 8291 by manufacturing an 8291A. To maintain software compatibility between the 8291 and the 8291A, the following precautions should be taken In the 8291 software:
The DACK pin Is driven by the 8237 in response to the DMA request. When DACK is true (active low) it sets CS = RSO= RS1 = RS2=0 such that the m; and WR signals sent by the 8237 refer to the Data In and Data Out Regis· ters. Also, the DMA request line is reset by DACK.
DMA input sequence:
Before setting rsv, SPAS in.register 2 should be zero. After setting rsv, the processor should poll the SROS bit in register 3, and when it is clear the Status Byte has been Issued. The processor should then write an rsv local message clearing rsv.
The definition of the SPASC interrupt will change in the 8291 A. SPASC (Serial Poll Active State Change) in the 8291 is set by a transition into or out of SPAS. SPASC (Serial Poll Active State Complete) in the 8291A will be set only by the actual transfer of a Status Byte (APRSxSTRSxSPAS).
DMA output sequence:
It should be noted that each time the device is addressed, the Address Status Register should be read, and the 8237 should be initialized accordingly. (Refer to the 8237 or 8257 Data Sheets.)
The 8291 is 8080, 8048, 8085, 8088, and 8086 compatible. The three address pins (RSo. RS1, RS2) should be connected to the non-mUltiplexed address bus (for example: As. Ag, A10). In case of 8080, any address lines may be used.
set, the device is the 8291. If BO is clear, It is the 8291A.
This can be used to set a.11ag in the user's software which will permit special routines to be executed for each device. It could be Included as part of a normal initialization procedure as the first step after a chip reset.
The 8293 GPIB Transceiver interfaces the 8291 directly to the IEEE·488 bus. The 8291 and two 8293's can be con· figured as a talker/listener (see Figure 2) or as with the 8292 as a talker/listener/controller (see Figure 3). Ab· solutely no active or passive external components are re- quired to comply with the complete IEEE·488 electrical specification.
The 8291A will be a significant improvement over the 8291. Users should plan to convert to this product when It is available.
Microprocessor Bus Connection · External Transceivers Connection


TA = O°C to 70°C; Vee = 5V ± 10%
Symbol Parameter Min.
Max. Unit Test Conditione
VIL Input Low Voltage -0,5
VIH Input High Voltage 2
VOL Output Low Voltage
0.45 V IOL=2mA (4mA for TR1 pin)
VOH Output High Voltage 2.4
V IOH = -400f.lA 1-150f.lA for SRQ pin I
VOH-INT Interrupt Output High Voltage 2.4
V IOH=-4OOf.lA
V IOH=-5Of.lA
IlL I nput Leakage
10 f.lA VIN=OV to Vee
ILOL Output Leakage Current
-10 f.lA VOUT=0.45V
ILOH Output Leakage Current
10 f.lA Vour=Vee
lee Vee Supply Current
Vee = 5V ± 10%, Commercial: TA = O°C to 70°C
Symbol Parameter Min.
Max. Unit
tAR Address Stable Before READ 0
tRR READ width 140
tAD Address Stable to Data Valid
tRD READ to Data Valid
100 nse(;1 21
tAW Address Stable Before WRITE 0
tWA Address Hold After WRITE 0
tww WRITE Width 170
tDW Data Set Up Time to the Trailing Edge of WRITE 150
tWD Data Hold Time After~ 0
tAKRQ DACKI to DREQI
tDKDA6 ~I to Up Data Valid


~
K I' lAD
~ " I--IARI-IRO- -0 I---IROF
1iEAD:
./ )( VALID DATA "- "- lot'
- J
J(
IWW [twA~ .
]two~ I--IAW-+
DATA MAY CHANGE ). VALID DATA K
DATA MAY CHANGE
DREQ / ~ -""""1 " ..
~/RSj · CS/RSj · ~


Symbol Parameter Max. Unit Test Conditions
TEOT13 ~I to TRll 135 nsec PPSS, ATN=0.45V
TEODI6 EOII to 010 Valid 155 nsec PPSS, ATN=0.45V
TEOT12 EOI! to TR11 155 nsec PPSS, ATN=0.45V
TATND4 ATNI to NDACI 155 nsec TACS, AIDS
TATT14 ATNI to TRll 155 nsec TACS, AIDS
TATT24 A"'i'N1 to TR21 155 nsec TACS, AIDS
TDVND3-C DAVI to NDACI 650 nsec AH,CACS
TNDDV1 NDACI to DAVI 350 nsec SH, STRS
TNRDV2 NRFDI to DAVI 350 nsec SH, T1 True
TNDDR1 NDACI to DREQI 400 nsec SH
TDVDR3 DAVI to DREQI 600 nsec AH, LACS, ATN=2.4V
TDVND2-C DAVI to NDACI 350 nsec AH,LACS
TDVNR1-C DAVlto~1 350 nsec AH, LACS, rdy=True
TRDNR3 RD~ to NRFDt 500 nsec AH, LACS
TWRDI5 \iV'Fi to DIO Valid 250 nsec SH, TACS, RS=0.4V
NF = fc, tSYNC = 1/Nc


MODIFIED STATE DIAGRAMS
ically true at
Figure A.1 presents the interface function state diagrams. It is derived from IEEE Std. state diagrams, with the following changes:
O. All remote multiline messages decoded are condi· tioned by ACOS. The multiplication by ACOS is not drawn to simplify the diagrams.
A. The 8291 supports the complete set of IEEE-488 interface functions except for the controller. These include: SH1, AH1, T5, TE5, L3, LE3, SR1, RL 1, PP1, OC1, OT1, and co.
indicates:
B. Addressing modes included in T,L state diagrams.
C. In these modified state diagrams, the IEEE-488 con· vention of low true logic is followed. Thus, OAV is log·
Statement 2 simplifies the diagram, avoiding the explicit use of X to condition all transitions from S to other states.
r l I I I SH I I I L J
ATN+ i=1 (WITHIN t2)
F1 '" TACS + SPAS
r , I I I AH I I I L ___ _ J
*THIS TRANSITION WILL NEVER OCCUR UNDER NORMAL OPERATION.
tTOELAY IS ABOUT 300 NS
FOR DEBOUNCING DAV.
. DAV
T3' '" T3 • CPT· APT
BI
NRFD
Figure A.1. 8291 State Diagrams (Continued next page)
pon · pon l~ · F3~ATN+rdy


r , I I I TE ! I I L _ ___ J
pon .j
F4 == OTA + (OSA' TPAS + MSA· LPAS)'
EOI IF DAB = EOS OR EDI IS TRUE.
r - ~-, I I I SA Q I I I L J
r----' I I I LEI I I L ____ J
r----l I I I R L I I I L ____ J
F5 = (MLA· MODE 1 + LPAS • MSA· MODE 11


r , I I I PP2 I I I L J
F6'" DCl + SOC • LADS
F!gure A,1, 8291 State D!agrams
Identifier' Function (Applies to) Description
T1 SH Settling Time for Multiline Messages
t2 LC,iC,SH,AH,T,L Response to ATN
::; 200ns
t4 T,TE,L,LE,C,CE Response to IFC or REN False
t5 PP Response to ATN+EOI
::; 200ns
T6 C Parallel Poll Execution Time
T7 C Controller Delay to Allow Current Talker to see ATN Message
T8 C Length of IFC or REN False
T9 C Delay for EOI"
If three-state drivers are used on the 010, DAV, and EOI lines, T1 may be: 1. 2: 1100ns 2. Or 2: 700ns if it is known that within the controller ATN is driven by a three-state driver. 3. Or 2: 500ns for 'all subsequent bytes following the first sent after each false transition of ATN (the first byte must be sent in accordance with, (1) or (2). 4. Or 2: 350ns for all subsequent bytes following the first sent 'after each false transition of ATN under conditions specified in Section 5.2.3 and warning note. See IEEE Standard 488. t Time required for interface functions to accept, not necessarily respond to interface messages.
{j Implementation independent.


-TWRD'5, I
VALID I
NOT VALID I
VALID nL TDVNR1 I---- T, f4-- TNDDV,- --
-TWRDV2-
J '--- -TRDNR3- - -TNRDV2--"
'I
DREOISH)
--TDVDR3
DREOIAH) \
"-.J' '0
Figure C-l. 3-Wire Handshake Timing at 8291.
} · -TDVND3- i--TDVND2 · I---TNDDR'l


ACCEPTOR
YES
YES
OATA IS VALID AND MAY
NOW BE ACCEPTED
NDAC SIGNAL LINE STAYS LOW UNTIL
ALL ACCEPTORS HAVE ACCEPTED IT
DATA IS NOT TO BE CONSIDERED
VALID AFTER THIS TIME
NO
FLOW DIAGRAM OUTLINES SEaUENCE OF EVENTS DURING TRANSFER OF DATA BYTE. MORE THAN ONE LISTENER AT A TIME CAN ACCEPT DATA BECAUSE OF LOGICAL AND CONNECTION OF NRFD AND NDAC LINES.
Figure C.2. Handshake Flowchart.


FUNCTIONAL PARTITIONS
A
1 I ~I
DEVICE (APPARATUS)
INTERFACE FUNCTIONS
C (8292 ONLY) \ -- - --
:::(6): =~ LL C /E ~~C
DT \.
PP \
\ RL \ ~
DRIVERS ~ AND ¢0)::::
RECEIVERS ~INTERFACE ------- ------- K~~S
DEVICE FUNCTIONS
MESSAGE
CODING SR / / /
3 -- --
L I OR LE I T /
i AH
L__ ---,- ___ -IIIL______ --, _______ --11 ,--I _--,--_-'
MCS'· SYSTEM
A - CAPABILITY DEFINED BY THE 488-1978 STANDARD. B - CAPABILITY DEFINED BY THE DESIGNER. 1 - INTERFACE BUS SIGNAL LINES. 2 - REMOTE INTERFACE MESSAGES TO AND FROM INTERFACE FUNCTIONS. 3 - DEVICE DEPENDENT MESSAGES TO AND FROM DEVICE FUNCTIONS. 4 - STATE LINKAGES BETWEEN INTERFACE FUNCTIONS. 5 - LOCAL MESSAGES BETWEEN DEVICE FUNCTIONS AND INTERFACE FUNCTIONS (MESSAGES TO INTERFACE FUNCTIONS ARE DEFINED, MESSAGES FROM INTERFACE fUNCTIONS EXIST ACCORDING TO THE DESIGNER'S CHOICE). 6 - CONTROL MESSAGES (8292 ONLY).
Figure 0.1. Functional Partition Within a Device.


The 8292 GPIB Controller is a microprocessor-controlled chip designed to function with the 8291 GPIB Talker/Listener to implement the full IEEE Standard 488 controller function, including transfer control protocol. The 8292 is a pre- programmed Intel® 8041A.
8291,8292 SYSTEM DIAGRAM : __ IT_, ~.~"'''=. "'no 00'
X1 COUNT
X2 REN
I DACK I DMA DREQ I CONTROLLER I I (OPTIONAL) I L I
8291 GPIB TALKER! LISTENER
8292 GPIB CONTROLLER
VCC IBFI Cs OBFI
GND EOI Rli SPI
WR CIC
SYNC NC
DO ATNO
D1 NC
D2 CLTH
D3 VCC
D4 NC
DS SYC
D6 IFC
VSS SRQ
GENERAL PURPOSE INTERFACE BUS


Symbol I/O Pin No. Function Symbol 1/0 Pin No_ Function
IFCL I 1 IFC Received (latched) - The 8292 Vee P.S. 5,26,40 +5V supply input. ± 10%. monitors the IFC Line (when not system controller) throOgh this pin.
COUNT I 39 Count Input - When enabled by the proper command the internal counter will count external events X1, X2 I 2, 3 Inputs for a crystal, LC or an exter· through this pin. High to low tran- nal timing signal to determine the sition will increment the internal internal oscillator frequency. counter by one. The pin is sampled
once per three internal instruction cycles (7.5I'sec sample period when using 6 MHz XTAL). It can be used for byte counting when con' nected to NDAC, or for block counting when connected to the RD I 8 I/O write input which allows the EOL master CPU to read from the 8292. REN 0 38 The Remote Enable bus signal Ao I 9 Address Line - Used to select be- selects remote. or local control of tween the data bus and the status the device on the bus. A GPIB bus register during read operations management line, as defined by and to distinguish between data IEEE Std. 488-1978. and commands written into the DAV I/O 37 DAV Handshake Line - Used dur- 8292 during write operations. ing parallel poll to force the 8291 WR I 10 I/O read input which allows the to accept the parallel poll status master CPU to write to the 8292. bits. It is also used during the tcs
RESET I 4 Used to initialize the chip to a known state during power on.
CS I 6 Chip Select Input - Used to select the 8292 from other devices on the common data bus.
SYNC 0 11 8041 A instruction cycle synchro- ... procedure .
nization signal; it is an output IBFI 0 36 Input Buffer Not Full - Used to clock with a frequency of interrupt the central processor XTAL ... 15. while the input buffer of the 8292
Do-D7 I/O 12-19 8 bidirectional lines used for com- munication between the central processor and the 8292's data bus
is empty. This feature is enabled and disabled by the interrupt mask register.
buffers and status register. OBFI 0 35 Output Buffer Full - Used as an
Vss P.S. 7, 20 Circuit ground potential.
interrupt to the central processor while the output buffer of the 8292 is full. The feature can be enabled IEEE control lines. Sampled by the 8292 when it is controller in charge. If true, SPI interrupt to the master will be generated.
SRO I 21 Service Request - One of the
and disabled by the interrupt mask register.
EOl2 I/O 34 End Or Identify - One of the GPIB management lines, as defined by IEEE Std. 488-1978. Used with ATN monitor the GPIB ATN control line. It is used during the transfer control procedure.
ATNI I 22 Attention In - Used by the 8292 to
as Identify Message during paral- lel poll.
SPI 0 33 Special Interrupt - Used as an interrupt on events not initiated by the central processor. IEEE Std. 488-1978, places all de- vices in a known quiescent state.
IFC I/O 23 Interface Clear - One of the GPIB management lines, as defined by
TCI 0 32 Task Complete Interrupt - Inter- rupt to the control processor used to indicate that the task requested system controller switch. was completed by the 8292 and CLTH 0 27 CLEAR LATCH Output - Used to the information requested is ready clear the I FCR latch after being in the data bus buffer. recognized by the 8292. Usually low (except after hardware Reset),
SYC I 24 System Controller - Monitors the
CIC 0 31 Controller In Charge - Controls the SIR input of the SRO bus it will be pulsed high when IFCR is transceiver. It can also be used to recognized by the 8292. indicate that the 8292 is in charge Ai1W 0 29 Attention Out - Controls the ATN of the GPIB bus. control line of the bus through ex- ternal logic for tcs and tca pro- cedures. (ATN is a GPIB control line, as defined by IEEE Std. 488-1978.)


The Intel'" 8293 GPIB Transceiver is a high current, non-inverting buffer chip designed to interface the. 8291 GPIB Talker/Listener or the 6292 GPIB Controller with the 8291 to the I.EEE Standard 488-1978 Instrumentation Interface Bus. Each GPIB interface would contain two 8293 Bus Transceivers. In addition, the 8293 can also be used as a general purpose bus driver.
8291,8292,8293 SYSTEM DIAGRAM
8292 GPIB CONTROLLER
EOI 3 I,m
GENERAL PURPOSE INTERFACE BUS
Tllll · DATAl · TIRl


PIN DESCRIPTION Symbo. 110 Pin No; Function
Symbol 110 Pin No. Function EOI I/O 3 End or Identify; this pin indio
BUS1- I/O 12,13, These are the IEEE-488 bus cates the end of a multiple
BUS9 1S·19, interface driver/rece!vers. byte .transfer or, In conjunc·
21,22 Using the mode select pins, tion with ATN, addresses the
they can be configured .dlffer· device during a polling se·
ently to allow direct connec· quence. It connects to the
tions between the 8291 GPIB 8291 and is switched between
Talker/Listener and the 8292 transmit and receive by T/R2.
GPIB Controller. . This pin is TTL compatible.
OATA1- I/O 5·11, These are the pins to be con· ATN 0 4 Attention; this pin is used by
OATA10 23-2S nected to the 8291 and 8292 to the 8291 to monitor the GPIB'
interface with the GPIB bus. ATN control line. It specifies
Their use is programmed by how data on the 010 lines is to
the two mode select pins, be interpreted. This output is
OPTA and OPTB. All these TTL compatible.
pins are TTL compatible. o PTA 27 These two pins are to control
T/R1 Transmit receive 1; this pin OPTB I 26 the function of the 8293. A
controls the direction for truth table of how this pro-
NOAC, NAFO, OAV, and 0101- grams the various modes is in
0108. Input is TTL compatible. Table 1.
T/R2 2 Transmit receive 2; this pin Vee P.S. 28 Positive power supply (SV
controls the direction for EOL ± 10%).
Input is TTL compatible. GNO P.S. 14,20 Circuit ground potential.
Table 1. 8293 Mode Selection Pin Mapping
Pin Name Pin No. Mode 0 Mode 1 Mode 2 Mode 3
OPTA 27 0 1 0 1 OPTB 26 0 0 1 1
OATA1 S IFC 0108 n=c 0108 BUS1 12 IFC' 0108' IFC' OIOS' OATA2 6 AEN 0107 AEN 0107 BUS2 13 AEN' 0107' AEN' 0107' OATA3 7 NC 0106 EOl2 0106 BUS3 1S EOI' 0106' EOI' 0106' OATA4 8 SAO OIOS SAO 0105 BUS4 16 SAO' OIOS' SAO' OIOS' OATAS 9 NAFO 0104 NAFO 0104 BUSS 17 NAFO' 0104' NAFO' 0104' OATA6 10 ~ ~ NOAC 0103 BUS6 18 NOAC' 0103' NOAC' 0103' OATA7 11 T/R101 NC ATNI ATNO OATA8 23 T/R102 0102 ATNO 0102 BUS7 19 ATN' 0102' ATN' 0102' OATA9 24 G101 OAV CIC OAV BUS8 . 21 G101' OAV' CLTH OAV' OATA10 2S GI02 0101 IFCL 0101 BUS9 22 G102' 0101' SYC 0101'
T/R1 1 T/R1 T/R1 TfR1 TlFh T/R2 2 T/R2 NC T/R2 IFCL EOI 3 EOI EOI mr EOI ATN 4 ATN Aiiil Am' ATN
'Note: These pins are the IEEE-488 bus non·lnvertlng driver/receivers. They Include all the bus terminations required by the Standard and may be
connected directly to the GPIB bus connector.
IEEE Implementation Name


GENERAL DESCRIPTION
The 8293 is a bidirectional transceiver. It was designed to interface the Intel 8291 GPIB Talker/Listener and the Intel® 8292 GPIB Controller to the IEEE Standard 488-1978. Instrumentation Bus (also referred to as the GPIBBus). The Intel GPIB Bus Transceiver meets or ex- ceeds all of the electrical specifications defined in the IEEE Standard 488-1978, Seytion 3.3-3.5, including the required bus termination specifications.
OPTB THREE
GIO, STATE ONLY GIO,·
G.IO, STATE ONLY GI02*
iFc INPUT ONLY IFC'
The 8293 can be hardware programmed to one of four modes of operation. These modes allow the 8293 to be configured to support both a Talker/Listener/Controller environment and Talker/Listener environment. In addi- tion, the 8293 can be used as a general purpose three- state (push-pull) or open-collector bus transceiver with nine receiver/drivers. Two modes are used to support a Talker/Listener environment (s.ee Figure 1), and to sup- port a Talker/Listener/Controller environment (see Figure 2). Mo.de 1 is the general purpose mode.
ATN INPUT ONLY ATN'
OPEN COL
SRO OUTPUT ONLY SRO'
THREE WI STATE ONLY EOI'
T/~2
GPIB
NDAC
TIC 1 = THREE STATE ---.I = +5V 0= OPEN COLLECTOR
TO PROCESSOR
BUS 14 8291 18
SIR 1 = SEND TO GPIB -& =OV 0= RECEIVE FROM GPIB , = IEEE·488 BUS NON·INVERTING DRIVERIRECEIVER
Figure 3. Talker/Listener Control Configuration
Symbol 1/0 Pin No_
Transmit receive 1; direction control for NDAC and NRFD. If TfRl is high, then NDAC* and
Figure 1. Talker/Listener Configuration
NRFD* are receiving. Input is TTL compatible.
I/O 10
Not Data Accepted; processor GPIB bus handshake control line; used to indicate the con- dition of acceptance of data by device(s). It is TTL compati- ble.
BUS
NDAC* I/O 18
Not Data Accepted; IEEE GPIB bus handshake control line. When an input, it is a TTL compatible Schmitt~trigger. When an output, ilisan open- collector driver with 48 mA sinking capability.
BUS
I/O 9
Not Ready For Data; proc- essor GPIB handshake control line; used to indicate the con- dition of readiness of de- vice(s) to accept data. This pin
Figure 2. Talker/Listener/Controller Configuration
is TTL compatible.


1/0 Pin No. Function
1/0 17 Not Ready For Data; IEEE GPIB bus handshake control line. When an input, it is a TTL compatible Schmitt·trigger. When an output, it is an open· collector driver with a 48 mA current sinking capability.
Interface Clear; processor GPIB bus control line; used by a controller to place the inter- face system into a known quiescent state. It is a TIL compatible output.
Interface Clear; IEEE GPIB bus control line. This input is a TIL compatible Schmitt- trigger.
2 Transmit receive 2; direction control for EOL If T/R2 is high, EOI" is sending. Input Is TIL compatible.
11 23 Transmit receive General 10; direction control for the two spare transceivers. Input is TIL compatible.
1/0 3 End or Identify; processor GPIB bus control line; is used by a talker by indicate the end of a multiple byte transfer. This pin is TIL compatible.
1/0 24 1/0 25 General 10; this is the TIL side of the two spare tran- sceivers. These pins are TTL compatible.
1/0 15 End or Identify; IEEE GPIB bus control line; is used by a talker to indicate the end of a multi- ple byte transfer. This pin is a three-state (push-pull) driver capable of sinking 48 mA and a TIL compatible receiver with hysteresiS.
1/0 21 1/0 22 General 10; these are spare three-state (push-pull) driversl Schmitt-trigger receivers. The drivers can sink 48 mAo
Service Request; processor GPIB bus control line; used by a device to indicate the need for service and to request an interruption of the current se- quence of events on the GPIB. It is a TIL compatible input
OPT"
DAV 1-------1
o 16
SRO"
Service Request; IEEE GPIB bus control line; it is an oPen collector driver capable of sinking 48 mAo
o 6
Remote Enable; processor GPIB bus control line; used by a controller (in conjunction with other messages) to select between two alternate sources of device program- ming data (remote ·or local control). This output is TIL compatible.
010, /------H
I!i!l4 I------H
rno, /------H
Remote Enable; IEEE GPIB bus control line. This input is a TIL compatible Schmitt- trigger.
o 4
~ 1------+-1
Figura 4. TalkerlListener Data Configuration


Symbol I/O Pin No.
OPTB
T/R1
Transmit receive 1; controls the direction for DAV and the DIO lines. If T/R1 is high, then all these lines are sending in· formation to the IEEE GPIB lines. This input is TTL com· patible.
SYC 1-1--+--- ...... -' iIEliiH-+----H H---/REN'
End of Sequence and Atten· tion; processor GPIB control lines. These two control signals are ANDed together to determine whether all the transceivers in the 8293 are three·state (push·pull) or open·collector. When both signals are low (true), then the controller is performing a parallel poll and the tran· sceivers are all open· collector. These inputs are TTL compatible.
~ ~t~=+=~====~~~dl-I ATN'
EOl2 i-+--+----t-! ~---IEOI· Jrnm 1_+- ...... '1,
E1jj I_+--==-:J-H
Data Valid; processor GPIB bus handshake control line; used to indicate the condition (availability and validity) of in·
c~~~ I=~~~...L")
formation on the DIO signals. It is TTL compatible.
Figure 5. Talker/Listener/Controller Control
I/O 21
Data Valid; IEEE GPIB bus handshake control line. When an input, it is a TTL compati· ble Schmitt·trigger. When DAV' is an output, it can sink 48 mAo
Symbol I/O Pin No.
Transmit receive 1; direction control for NDAC and NRFD. If T/R1 is high, then NDAC and NRFD are receiving. Input is TTL compatible.
Data Input/Output; processor GPIB bus data lines; used to carry message and data bytes in a bit·parallel byte·serial form controlled by the three handshake signals. These lines are TTL compatible.
10,9, 8,7, 6, 5
Not Data Accepted; processor GPIB bus handshake control line; used to indicate the con- dition of acceptance of data by device(s). This pin is TTL compatible.
Not Data Accepted; IEEE GPIB bus handshake control line. It is a TTL compatible Schmitt-trigger when used for input and an open-collector driver with a 48 mA current sink capability when used for output.
I/O 22, 19, 18, 17, 16, 15, 13, 12
Data Input/Output; IEEE GPIB bus data lines. They are TTL compatible Schmitt·triggers when used for input and can sink 48 mA when used for out· put. See ATN and EOI descrip· tion for output mode.


Symbol I/O Pin No. Function
Symbol I/O Pin No.
NRFD 1/0 9 Not Ready For Data; processor GPIB bus handshake control line; used to indicate the con· dition of readiness of device(s) to accept data. This pin is TTL compatible.
is recognized by the 8292. This input is TTL compatible.
IFC Received Latched; the 8292 monitors the IFC line when it is not the active con· troller through this pin.
NRFD' 1/0 17 Not Ready For Data; IEEE GPIB bus handshake control line. It is a TTL compatible Schmitt·trigger when used for input and an open'collector driver with a 48 mA current sink capability when used for output.
Service Request; processor GPIB control line; indicates the need for attention and reo quests the active controller to interrupt the current sequence of events on the GPIB bus. This pin is TTL compatible.
Service Request; IEEE GPIB bus control line. When used as an input, this pin is a TTL compatible Schmitt·trigger. When used as an output, it is an open·collector driver with a 48 mA current sinking capa· bility. Transmit receive 2; controls the direction for EOL This in· put is TTL compatible.
SYC 22 System Controller; used to monitor the system controller switch and control the direc· tion for IFC and REN. This pin is a TTL compatible input.
REN 1/0 6 Remote Enable; processor GPIB control line; used by the active controller (in conjunc· tion with other messages) to select between two alternate sources of device program· ming data (remote or local con· trol). This pin is TTL compa· tible.
REN' 1/0 13 Remote Enable; IEEE GPIB bus control line. When used as an input, this is a TTL compati· ble Schmitt·trigger. When an output, it is a three·state driver with a 48 mA current sinking capability.
IFC I/O 5 Interface Clear; processor GPIB bus control line; used by the active controller to place the interface system into a known quiescent state. This pin is TTL compatible.
IFC' I/O 12 Interface Clear; IEEEGPIB bus control line. This is a TTL com· patible Schmitt·trigger when used for input and a three· state driver capable of sinking 48 mA current when used for output.
CIC 24 Controller in Charge; used to control the direction of the SRO and to indicate that the 8292 is in charge of the bus. CiC is a TTL compatible input.
CLTH 21 Clear Latch; used to clear the IFC Received latch after it has been recognized by the 8292. Normally low (except after a hardware reset), it will be pulsed low when IFC Received
End or Identify 2; processor GPIB bus control line; used in conjunction with ATN by the active controller (the 8292) to execute a polling sequence. This pin is TTL compatible.
Function · 1/0 8


Symbol I/O Pin No. Function
End or Identify; processor GPIB bus control line; used by a talker to indicate the end of a multiple byte transfer se· quence. This pin is TTL com· patible.
Symbol I/O Pin No. Function
T/R1 Transmit receive 1; controls the direction for DAV and the 010 lines. If T/R1 is high, then all these lines are sending information to the IEEE GPIB lines. This input is TTL com· patible.
I/O 15
End or Identify; IEEE GPIB bus control line; used by a talker to indicate the end of a multi· pie byte transfer sequence or, by a controller in conjunction with ATN, to execute a polling sequence. Whel1 an output, this pin can sink 48 mA cur· rent. When an input, it is a TTL compatible Schmitt·trigger.
EOI 3 End of Sequence and Atten· ATN 4 tion; processor GPIB control lines. These two control lines are ANDed together to deter· mine whether all the tran· sceivers in the 8293 are push· pull or open·collector. When both signals are low (true), then the controller is perform- ing a paiallei poli and the transceivers are all open- collector. These inputs are TTL compatible.
OPTB
Interface Clean Latched; used to make DAV received after the system controller asserts IFC. This input is TTL compatible.
T/l!1 1--i>O-+-{>O~...J
Data Valid; processor GPIB handshake control line; used to indicate the condition (availability and validity) of in- formation on the 010 signals. This pin is TTL compatible.
010, 1-----+-1
DAV'
I/O 21
Data Valid; IEEE GPIB hand- shake control line. When an input, this pin is a TTL com- patible Schmitt-trigger. When DAV' is an output, it can sink 48 mA.
010,1-----+1
Data Input/Output; processor GPIB bus data lines; used to carry message and data bytes in a bit-parallel byte-serial form controlled by the three handshake signals. These lines are TTL compatible.
10,9, 8,7, 6, 5
Data Input/Output; IEEE GPIB bus data lines. They are TTL compatible Schmitt-triggers when used for input and can sink 48 mA when used for out- put.
Figure 6. Talker/Listener/Controller Data


0101 0101' Di02 0102'
..!!...
..E !! ~ ~ -.!! !!. -.!! !!. 2- ---.! !.!! !.!. .2. --..!. 2- !.. T2
Dii56 0106' 6Im 0107' !iIl5i 0108'
DAY OAV'
1 ~
ATN OPTS
GNO
--.!.
TO MICROPROCESSOR
CS OAV 36
INTERFACE
WR ATN
INT EOI 39
3 ~
6293 EOI EOI'
..!!..
...!!!...
OREQ NRFO 37
TIR2
r!!- r!!... r1L r!!- r1L r!!- ~
TO IEEE·488 SUS
OACK SRQ 27
NOAC NOAC'
GPIS TRIGGER OUTPU
NRFO NRFO'
SlIQ SRQ' lIEN REN'
OPTA
GNO
OPTS
GNO
MOOEO
, = GPIS SUS TRANSCEIVER
Figure 7. 8291 and 8293 System Configuration


rE- ~ r2! ~ 16
DO 0101 28
~ ~ ~ r!Z- ~ ~ ~ ~
03 0104 31 04 0105 32 05 0106 33 06
J MICROPROCESSOR
RSO 8291 0108 35
RS1 T/R1 1
RS2
OAV
DAV·
EOI 39 WR
ATN 26 RESET
EOI
ATN
OREO SRO 21
OACK 24 ~
IFC
NOAC 36 CLOCK
NRFO 37 INT
rE-v ~V
T/R2 2
,---!!..
,2
ATNO
OPTA
TRIG REN ~
IFCL
OPTB
OUTPUT
MODE 3
cE.. ~ ~ .!i.
DO OAV 2!..
~ r!!.-
NOAC
NRFO
05 SRO 21 06
T/R2
t-'!- ~ ~ ~ ~
SRO
SRO·
TO IEEE·488 BUS
07 REN 38
AO 8292 - IFC 23
REN
REN*
TO I MICROPROCESSOR
IFC 8293
IFC·
10 "
ATNO
ATN·
4 6
EOI
EOI·
34 ~ EOl2 -- 22 TCI ATNI
,ATNI
SPI
OBFI
IBFI
OSCILLATOR
15'25PF± r
SYNC
OUTPUT
Vee 2..
IFCL
~ ~3
27 X2 CLTH
CLTH
OPTA
E....G ~V
NO
SYC 24
SYC
OPTB
MOOE2
l)e ON SYSTEM CONTROLLER .i 0FF SWITCH
Figure 8. 8291,8292, and 8293 System Configuration


Ambient Temperature Under Bias O·C to 70·C Storage Temperature - 65·C to + 150·C Voltage 011 any Pin with
'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those Indicated In the operational sections of this specification Is not Implied. Exposure to absolute maximum rating can· ditions 10', extended periods may affect device reliability.
Respect to Ground - 1.0V to + 7V Power Dissipation 1 Watt
LIMITS UNIT TEST CONDITIONS MIN. TYP. MAX.
VILl Input Low Voltage (GPIB Bus Pins)
VIL2 Input Low Voltage (Option Pins)
VIL3 Input Low Voltage (All Others)
VIH1 Input High Voltage (GpIB Bus Pins)
VIH2 Input High Voltage (Option Pins)
VIH3 Input High Voltage (All Others)
VOLl Output Low Voltage (GPIB Bus Pins)
0.5 V IOL=48 mA
VOL2 Output Low Voltage (All Others)
0.5 V IOL= 16 mA
VOH1 Output High Voltage (GPIB Bus Pins)
2.4 V IOH= -5.2 mA
VOH2 Output High Voltage (All Others)
VIH4 Receiver Input Hysteresis
VIT . High to Low Receiver Input Threshold Low to High
ILI1 Low Input Load Current (GPIB Bus Pins)
-3.2 0.0 mA VIL= 0.8V
IU2 Low Input Load Current (All Others)
Ipo Bus Power Down Leakage Current
Icc Power Supply Current
MIN. TYP. MAX. UNIT TEST CONDITIONS
5 10 pF VIN=VCC
10 20 pF VOUT=VCC


A.C. Characteristics T A = O·C to 70·C; Vee= 5.0V ± 10%; GND = OV
PARAMETER
TYP.· MAX. UNITS
Driver Propagation Delay (Low to High)
Driver Propagation Delay (High to Low)
Receiver Propagation Delay (Low to High)
Receiver Propagation Delay (High to Low)
Driver Enable Delay (High to 3·State)
Driver Enable Delay (3-State to High)
Driver Enable Delay (Low to 3-State)
Driver Enable Delay (3-State to Low)
t pHZ2 .
Receiver Enable Delay (High to 3-State)
Receiver Enable Delay (3-State to High)
Receiver Enable Delay (Low to 3-State)
Receiver Enable Delay (3-State to Low)
I .-'" " I ,.,.
~ w ~ 3.0
NON·SHADED AREA CONFORMS TO PARAGRAPH 3.5.3 OF IEEE STANDARD 488 ·1978 Vcc=5.0V -0 2.0 4.0 6.0
-4.0 -2.0
o 0.5 1.0 1.5 2.0 V,. INPUT VOLTAGE (VOLTSi
Figure 9. Typical Bus Load Line Figure 10. Typical Receiver Hysteresis Characteristics


TO SCOPE
(OUTPUT) +2.3V
(OUTPUT)
+5.0V
BUS
DATA
~z INlll ~~ OREQUIV.
CL INCLUDES JIG AND PROBE CAPACITANCE
CL INCLUDEI JIG AND PROBE CAPACITANCE
Figure 11. Data Input to BUI Output (Driver)
Figure 12. BUI Input to Data Output (Receiver)
TO SCOPE
(OUTPUT) 5.oV
BUS ./ (I.LZI. I.ZL 1) o-- ....... --~:r
DATA ./ (I.LZI. I .. u) o--t----<y
1l·HZ1.I.ZHIl
CL INCLUDEI JIG AND PROBE CAPACITANCE
Figure 13. SendlRecelve Input to BUI Output (Driver)
Figure 14. SendlRecelve Input to Data Output (Receiver)
1"1


tRISE = 'FALL < 5 na 3.0V DUTY CYCLE = 50%
OV
'PLHI 'PHLI OUTPUT (DRIVER PROP. DELAY) 2.0V FIGURE" LOAD
FIGURE 12 LOAD t.BV
FIGURE 13 LOAD Vz"'t.OV 'PZLI OUTPUT (DRIVER ENABLE DELAY
WITH INPUT LOW) O.SV FIGURE 13 LOAD I' VOL---+- :f'
tPZH4t OUTPUT (RECEIVER ENABLE DELAY , VOH---+---:Il
WITH INPUT HIGH) t.SV FIGURE 14 LOAD
'm2 }::- SV
WITH INPUT LOW) t.SV FIGURE '4 LOAD
ov


The Intell!> 8294 Data Encryption Unit (DEU) is a microprocessor peripheral device designed to encrypt and decrypt 64·bit blocks of data using the algorithm specified in the Federal Information Processing Data Encryption Standard. The DEU operates on 64·bit text words using a 56·bit user·specifled key to produce 64·blt cipher words. The operation is reversible: if the cipher word Is operated upon, the original text word is produced. The algorithm itself is perma· nently contained in the 8294; however, the 56·blt key is user·defined and may be changed at any time.
The 56·bit key and 64·blt message data are transferred to and from the 8294 in 8·bit bytes by way of the system data bus. A DMA interface and three interrupt outputs are available to minimize software overhead associated with data transfer. Also, by using the DMA interface two or more DEUs may be operated In parallel to achieve effective system conversion rates which are virtually any multiple of 80 bytes/second. The 8294 also has a 7·bit TTL compatible output port for user·specified functions.
Because the 8294 implements the NBS encryption algorithm it can be used in a variety of Electronic Funds Transfer applications as well as other electronic banking and data handling applications where data must be encrypted.
BLOCK DIAGRAM
Vee Ne !lACK ORO SRO DAV Ne P6 PS P' P3 P2 01 PI 02 PO 03 VDD D4 Ne OS CCMP 06 Ne 07 Ne GND NC
BUS
RESET
SYNC
+5VINTERNAL POWER--
OND-- BUS


The Intel'" 8295 Dot Matrix Printer Controller provides an interface for microprocessors to the LRC 7040 Series dot matrix impact printers. It may also be used as an interface to other similar printers.
The chip may be used in a serial or parallel communication mode with the host processor. In parallel mode, data transfers are based on polling, interrupts, or DMA. Furthermore, it provides internal buffering of up to 40 characters and contains a 7 x 7 matrix character generator accommodating 64 ASCII characters.
BLOCK DIAGRAM
INTERNAL
'OO
9·122


8·BIT MICROCOMPUTER
The Intell!) 8041A18741A is a general purpose, programmable interface device designed for use with a variety of 8-bit microprocessor systems. It contains a low cost microcomputer with program memory, data memory, 8-bit CPU, I/O ports, timer/counter, and clock in a single 40-pin package. Interface registers are included to enable the UPI device to function as a peripheral controller in MCS-48™, MCS-80™, MCS-85™, MCS-86™, and other 8-bit systems.
The UPI-41ATM has 1 K words of program memory and 64 words of data memory on-chip. To allow full user flexibility the program memory is available as ROM in the 8041A version or as UV-erasable EPROM in the 8741A version. The 8741A and the 8041 A are fully pin compatible for easy transition from prototype to production level designs. The 8641A is a one-time programmable (at the factory) 8741A which can be ordered as the first 25 pieces of a new.8041A order. The substitution of 8641A's for 8041A's allows for very fast turnaround for initial code verification and evaluation results.
The device has two 8-bit, TTL compatible I/O ports and two test inputs. Individual port lines can function as either in- puts or outputs under software control. I/O can be expanded with the 8243 device which is directly .compatlble and has 16 I/O lines. An 8-bit programmable timer/counter is included in the UPI device for generating timing sequences or counting external inputs. Additional UPI features include: single 5V supply, low power standby mode (in the 8041A), single-step mode for debug (in the 8741A), and dual working register banks.
Because ifs a complete microcomputer, the UPI provides more flexibility for the designer than conventional LSI inter- face devices. It is· designed to be an efficient controller as well as an arithmetic processor. Applications include key- board scanning, printer control, display multiplexing and similar functions which involve interfacing peripheral devices to microprocessor systems.
INTERNAL
BUS
MAITIR SVSTEM 1
::·¢:E::::;~~=~===~
,., ......... -
0lI-_ 01-- .. - k;====:::J
PERIPHERAL
INTERFACE
SYNC 1Ii-- '"00 omT--
00188A
'0)


UPI·41A™ FEATURES AND ENHANCEMENTS
If "EN FLAGS" has been executed, P25 becomes the IBF (Input Buffer Full) pin. A "1" written to P25 enables the IBF pin (the pin outputs the inverse of the IBF Status Bit). A "0" written to P25 disables the iBF pin (the pin remains low). i This pin can be used to indicate that the UPI·41A is ready for data.
DATA
BUS BUFFER
DO-D7 '---------'
OUTPUT
DATA
BUS BUFFER
DATA BUS BUFFER INTERRUPT CAPABILITY
EN FLAGS Op Cod.: OF5H
ST 4-ST 7 are user definable status bits. These bits are defined by the "MOV STS, A" Single byte, Single cycle instruction. Bits 4-7 of the accumulator are moved to bits 4-7 of the status register. Bits 0-3 of the status register are not affected.
If the "EN DMA" instruction has been executed, P26 becomes the DRQ (DMA ReQuest) pin. A "1" written to P26 causes a DMA request (ORO is activated). DRQ is deactivated by DACK'RD, DACK·WR, or execution of the "EN OM A" instruction.
If "EN DMA" has been executed, P27 becomes the DACK (DMA ACKnowledge) pin. This pin acts as a chip select input for the Data Bus Buffer registers during DMA transfers.
DRQ~ OROn 8041A! 8257 8741A DACK~ DACK
If the "EN FLAGS" instruction has been executed, P24 becomes the OBF (Output Buffer Full) pin. A "1" written to P24 enables the OBF pin (the pin outputs the OBF Status Bit). A "0" written to P24 disables the OBF pin (the pin remains low). This pin can be used
to indicate that valid data is available from the UPI· 41A (in Output Data Bus Buffer).
9-124 00188A


PIN DESCRIPTION
Mnemonic Description Bytes Cycles
ADD A.Rr ADD A.@Rr ADD A.#data ADDC A.Rr ADDC A.@Rr ADDC Mdata ANL A.Rr ANL A.@Rr ANL A.#data ORl A.Rr ORL A.@Rr ORL A.#data XRl A.Rr XRL A.@Rr XRL A.#data INC A DEC A CLR A CPL A DA A SWAP A RL A RlC A RR A RRC A
Add register to A Add data memory to A Add immediate to A Add register to A with carry Add data memory to A with carry Add immed. to A with carry AND register to A AND data memory to A AND immediate to A OR register to A OR data memory to A OR immediate to A Exclusive OR register to A Exclusive OR data memory to A Exclusive OR immediate to A Increment A Decrement A Clear A Complement A Decimal Adjust A Swap nibbles of A Rotate A left Rotate A left through carry Rotate A right Rotate A right through carry
1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1
1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1
00- 0 7 Three·state, bidirectional DATA BUS BUFFER lines (BUS) used to interface the UPI·41A to an 8·bit master system data bus.
P 10-P 17 8·bit, PORT 1 quasi·bidirectionall/O lines.
P20-P27 8·bit, PORT 2 quasi·bidirectionall/O lines. The lower 4 bits (P20-P23) interface directly to the 8243 I/O ex· pander device and contain address and data infor· mation during PORT 4-7 access. The upper 4 bits (P24-P27) can be programmed to provide Interrupt Request and DMA Handshake capability. Software control can configure P24 as OBF (Output Buffer Full), P25 as IBF (Input Buffer Full~as DRQ (DMA Request), and P27 as DACK (DMA ACKnowledge).
WR I/O write input which enables the master CPU to write data and command words to the UPI·41A IN· PUT DATA BUS BUFFER.
RD 110 read input which enables the master CPU to read data and status words from the OUTPUT DATA BUS BUFFER or status register.
CS Chip select input used to select one UPI·41A out of several connected to a common data bus.
Ao Address input used by the master processor to in· dicate whether byte transfer is data or command.
IN A.Pp OUTL Pp.A ANl Pp.#data ORl Pp.#data IN A.DBB OUT DBB.A MOV STS,A MOVD A.Pp MOVD Pp.A ANlD Pp.A ORlD Pp.A
Input port to A Output A to port AND Immediate to port OR immediate to port Input DBB to A. clear IBF Output A to DBB. set OBF A4-A7 to Bits 4-7 of Status Input Expander port to A Output A to Expander port AND A to Expander port OR A to Expander port
2 1 1 1 2
TEST 0, Input pins which can be directly tested using condi· TEST 1 tional branch instructions.
T1 also functions as the event timer input (under software control). To is used during PROM program· ming and verification in the 8741A.
XTAL 1, Inputs for a crystal, LC or an external timing signal XTAL2 to determine the internal oscillator frequency.
SYNC Output signal which occurs once per UPI·41A in· struction cycle. SYNC can be used as a strobe for external circuitry; it is also used to synchronize single step operation.
MOV A.Rr Move register to A MOV A.@Rr Move data memory to A MOV A.#data Move Immediate to A MOV Rr.A Move A to register MOV @Rr.A Move A to data memory MOV Rr.#data Move immediate to register MOV @Rr.#data Move Immediate to data memory MOV A.PSW Move PSW to A MOV PSW.A Move A to PSW XCH A.Rr Exchange A and register XCH A.@Rr Exchange A and data memory XCHD A.@Rr Exchange digit of A and register MOVP A.@A Move to A from current page MOVP3. A.@A Move to A from page 3
1 1 2 1 1 2 2 1
1 1 2 1 1 2 2 1 2 2
EA External access input which allows emulation, testing and PROM/ROM verification.
PROG Multifunction pin used as the program pulse input during PROM programming.
During I/O expander access the PROG pin acts as an address/data strobe to the 8243.
RESET Input used to reset status flip·flops and to set the program counter to zero.
RESET is also used during PROM programming and verification.
SS Single step input used in the 8741A in conjunction with the SYNC output to step the program through each instruction.
MOV A.T MOV T.A STRT T STRT CNT STOP TCNT EN TCNTI DIS TCNTI
Read Timer/Counter Load Timer /Counter Start Timer Start Counter Stop Timer /Counter Enable Timer /Counter Interrupt Disable Timer /Counter Interrupt
+ 5V main power supply pin.
+ 5V during normal operation. + 25V during pro· gramming operation. Low power standby pin in ROM version.
Circuit ground potential.


CPL FO
EN DMA Enable DMA Handshake Lines EN I Enable IBF Interrupt DIS I Disable IBF Interrupt EN FLAGS Enable Master Interrupts SEL RBO Select register bank 0 SEL RBI Select register bank,1 NOP No Operation
CLR Fl CPL Fl
Clear Fl Flag Complement Fl Flag
BRANCH JMP addr JMPP@A OJ NZ Rr, addr JC addr JNC addr JZ addr JNZ addr JTO addr JNTO addr JT1 addr JNT1 addr JFO addr JFl addr JTF addr JNIBF addr JOBF addr JBb addr
Jump unconditional 2 Jump Indirect 1 Decrement register and jump 2 Jump on Carry = 1 2 Jump on Carry = 0 2 Jump on A Zero 2 Jump on A not Zero ,2 Jump on TO= 1 2 Jump on TO=O 2 Jump on Tl = 1 2 Jump on Tl =0 2 Jump on FO Flag = 1 2 Jump on Fl Flag = 1 2 Jump on Timer Flag = 1, Clear Flag 2 Jump on IBF Flag = 0 2 Jump on OBF Flag = 1 2 Jump on Accumulator Bit 2
2
REGISTERS INC Rr Increment register INC@Rr Increment data memory DEC Rr Decrement register
CALL addr Jump to subroutine RET Return RETR Return and restore status
FLAGS CLRC Clear Carry CPLC Complement Carry CLR FO Clear Flag 0
iiii ~
WR 8041A1 ~ cs 8741A PORT CONTROL 2 AO I+-To
TO PERIPHERAL DEVICES
8048 WR
TO PERIPHERAL DEVICES
ADDR CONTROL~==::11S,.J
BUS DATA BUS 8 DBB -Tl
Figure 1, 808SA-8041A Interface
Figure 2. 8048,..8041A Interface
8243 KEYBOARD EXPANDER MATRiX
z z 0 0 :I
.~ >= a:
~ It 0. 0. II. Cl .. 0 W 0- W Z II. iii: e '" 0- Z ::;
PORT 2
8041A18741A
DATA BUS
CONTROL BUS
CONTROL BUS
Figure 3, 8041A-8243 Keyboad Scanner
Figure 4. 8041A Matrix Printer Interface


ABSOLUTE MAXIMUM RATINGS·
'COMMENT: Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This Is a stress rating only and functional operation of the device at these or any other conditions above those indicated In the operational sections of this specification is not implied. Exposure to absolute maximum rating con· ditlons for extended periods may affect device reliability.
Ambient Temperature Under Bias O·C to 70·C Storage Temperature - 65·C to + 150·C Voltage on Any Pin With Respect
D.C. AND OPERATING CHARACTERISTICS
TA= O·C to 70·C, Vss=OV, 8041 A: Vee= Voo= +5V± 10%, 8741A: Vee = Voo= +5V± 5%
Symbol Parameter Min. Max. Unit Test Conditions
VIL Input Low Voltage (Except XTAL 1, XTAL2, RESET) -0.5 0.8 V
VIU Input Low Voltage (XTAL1, XTAL2, RESET) -0.5 0.6 V
VIH Input High Voltage (Except XTAL 1, XTAL2, RESET) 2.2 Vee VIH1 Input High Voltage (XTAL1, XTAL2, RESET) 3.8 Vee V
VOL Output Low Voltage (00-07) 0.45 V IOL=2.0 mA
Vou Output Low Voltage (P1QP17, P20P27, Sync) 0.45 V 10L = 1.6 mA
VOL2 Output Low Voltage (Prog) 0.45 V IOL = 1.0 mA
VOH Output High Voltage (00-07) 2.4 V 10H= - 4OO I'A
VOH1 Output High Voltage (All Other Outputs) 2.4 V 10H= -50 I'A
IlL Input Leakage Current (To, T1, RD, WR, CS, Ao, EA) ±10 I'A Vss :S VIN :S Vee
loz Output Leakage Current (00-07, High Z State) ± 10 I'A Vss +0.45 :S VIN:s Vee
lu Low Input Load Current (P1QP 17, P20P27) 0.5 mA VIL = 0.8V
IU1 Low Input Load Current (RESET, SS) 0.2 mA VIL =0.8V
100 Voo Supply Current 15 mA Typical = 5 mA
lee+ 100 Total Supply Current 125 mA Typical = 60 mA
TA= o·c to 70·C, Vss=OV, 8041A: Vee= Voo= + 5V ± 10%, 8741A: Vee= Voo= + 5V ± 5% DBB READ
Symbol Parameter Min. Max. Unit Test Conditions
tAR CS, Ao Setup to RDi 0 ns
tRA CS, Ao Hold After m51 0 n5
tRR RD Pulse Width 250 ns
tAD CS, Ao to Data Out Delay 225 ns CL=150pF
t RO RDi to Data Out Delay 225 ns CL= 150 pF
tOF ROI to Data Float Delay 100 ns
tey Cycle Time (Except 8741A·8) 2.5 15 1'5 6.0 MHz XTAL
tey Cycle Time (8741A·8) 4.17 15 I's 3.6 MHz XTAL
Symbol Parameter Min. Max. Unit Test Conditions
tAW CS, Ao Setup to WRi 0 ns
tWA CS, Ao Hold After WAt 0 ns
tww iiVA Pulse Width 250 ns
tow Data Setup to WRt 150 ns
two Data Hold After'i}J'R t 0 ns


2.4 ----""'X~::>TEST POINTS,:::::~·.:XL ___ _ O.4S----...J -
WAVEFORMS
_t"~1 -+----il--
(READ CONTROL)
-v r (SYSTEM'S e!OR AO ---')- ________________ ~ 1.. ___________ ADDRESS BUS)
------------- t ow -- --- two
DATA SUS DATA ~ --DATAVAlIO-_V DATA UNPUTl M_A_y..:"CH..:"A..:"NG..:..' __ -..Jj' ~'- M_A_y _CH_AN_G_E
9-128 00188A


A.C. CHARACTERISTICS-PORT 2
Symbol P.arameter
Min.
Max. Unit
Telt Condition.
tcp Port Control Setup Before Failing Edge of PROG
tpc Port Control Hold After Falling Edge of PROG
tPR PROG to Time P2 Input Must Be Valid
tpF Input Data Hold Time
top Output Data Setup Time tpo Output Data Hold Time
tpp PROG Pulse Width
SYNC
EXPANDER PORT
PORT 20-3 DATA
EXPANDER PORT
INPUT
PORT 20-3 DATA
PROG
A.C. CHARACTERISTICS-DMA
Min.
Max. Unit
tACC DACK to WR or"RD
tAco DACK to Data Valid
CL= 150 pF
tCRO RD or WR to ORO Cleared
'ACC .:--iCAC- -
l - tAce -
-ICAe - ,..---,.
VALID - Ii _.CRJ-
~I- -


DRIVING FROM EXTERNAL SOURCE
CRYSTAL OSCILLATOR MODE
r I I I ~ ,..
XTALI
< 16 pF (INCLUDES XTAL,
I I I L ____ _
+5V
3 XTAL2
16-26 pF (INCLUDES SOCKET, I
470Q
STRAY) ':"
CRYSTAL SERIES RESISTANCE SHOULD BE
BOTH XTALI AND XTAL2 SHOULD BE DRIVEN. RESISTORS TO Vee ARE NEEDED TO ENSURE V,H = 3.8V IF TTL CIRCUITRY IS USED.
J,. ..Q. NOMINAL I 45.H 20 pF 5.2 MHz 120.H 20 pF 3.2 MHz ---. "-1 XTAL 1
EACH C SHOULD BE APPROXIMATELY 20 pF.INCLUDING STRAY CAPACITANCE.
An attempt to program a missocketed 8741 A will result in severe damage to the part. An indication of a properly socketed part is the appearance of the SYNC clock output. The lack of this clock may be used to disable the programmer.
The Program/Verify seqUef1ce fs:
In brief, the programming process consists of: activating the program mode, applying an address, latching the address, applying data, and applying a programming pulse. Each word is programmed completely before moving on to the next and is followed by a verification step. The follow- ing is a list of the pins used for programming and a descrip- tion of their functions:
S. Address applied to BUS and P2Q..1
XTAL 1 Clock Input (1 to 6MHz)
Reset Initialization and Address Latching
Test 0 Selection of Program or Verify Mode
10_ VOO = 5v
EA Activation of Program/Verify Modes
BUS Addre~s and Data Input Data Output During Verify
VOO Programming Power Supply
PROG Program Pulse Input


should be placed over the 8741A window to prevent unintentional erasure.
The erasure characteristics of the 8741A are such that erasure begins to occur when exposed to light with wavelengths shorter than approximately 4000 Ang· stroms (A). It should be noted that sunlight and certain types of fluorescent lamps have wavelengths In the 3000-4000A range. Data show that constant exposure to room level fluorescent lighting could erase the typical 8741A in approximately 3 years while it would take ap· proximately one week to cause erasure when exposed to direct sunlight. If the 8741A is to be exposed to these types of lighting conditions for extended periods of time, opaque labels are available from Intel which
The recommended erasure procedure for the 8741A is exposure to shortwave ultraviolet light which has a wavelength of 2537 A. The integrated dose (i.e., UV inten· sity x exposure time) for erasure should be a minimum of 15 w·sec/cm2. The erasure time with this dosage is approximately 15 to 20 minutes using an ultraviolet lamp with a 12,000 ,..W/cm2 power rating. The 8741A should be placed within one inch of the lamp tubes duro ing erasure. Some lamps have a filter on their tubes which should be removed before erasure.
TA = 25°C ±5°C, Vcc = 5V ±5%, Voo = 25V ±1V
Symbol Parameter Min. Max. Unit Test Conditions
tAW Address Setup Time to RESET t 4tcy
tWA Address Hold Time After RESET t 4tcy
tow Data in Setup Time to PROG I 4tcy
two Data in Hold Time After PROG I 4tcy
tPH RESET Hold Time to Verify 4tcy
tvoow Voo Setup Time to PROG t 4tcy
tVOOH Voo Hold Time After PROG I 0 tpw Program Pulse Width 50 60 mS trw Test 0 Setup Time for Program Mode 4tcy
tWT Test 0 Hold Time After Program Mode 4tcy
too Test 0 to Data Out Delay 4tcy
tww RESET Pulse Width to Latch Address 4tcy
tr, tf Voo and PROG Rise and Fall Times 0.5 2.0 I-'S
tCY CPU Operation Cycle Time 5.0 I-'S
tRE RESET Setup Time Before EA t. 4tcy
TA = 25°C ±5°C, Vcc = 5V ±5%, Voo = 25V ±1V
Symbol Parameter Min. Max. Unit Test Conditions
VOOH Voo Program Voltage High ~evel 24.0 26.0 V
VDOL VOD Voltage Low Level 4.75 5.25 V
VPH PROG Program Voltage High Level 21.5 24.5 V
VpL PROG Voltage Low Level 0.2 V
VEAH EA Program or Verify Voltage High Level 21.5 24.5 V
VEAL EA Voltage Low Level 5.25 V
100 VDD High Voltage Supply Current 30.0 mA
IPROG PROG High Voltage Supply Current 16.0 mA
lEA EA High Voltage Supply Current 1.0 mA
8741A Erasure Characteristics


WAVEFORMS FOR PROGRAMMING
COMBINATION PROGRAMiVERIFY MODE (EPROM'S ONLY)
f-----~---'-- PROGRAM -------~~--VER'FY ':.....t-I'>----- PROGRAM ----
TESTO
-- -< NEXT ADDR C VALID
DBO-DB, J--
DATA TO BE PROGRAMMED VALID
ADDRESS (8-9) VALID ADDRESS ADDRESS
Voo +25 ____________ t_V_DD_W_-~-~W-T---'-------..;..----..;..------
+:: ________ ---=fY-TIDW tpw two
PROG +5----------- r------ ~ ' ___ J - --""\~-----
VERIFY MODE (ROM/EPROM)
RESET ~ / \'1.-. __ ---J \'------'/ \~--
DBO-OB7 ==>---
ADDRESS 10-71 VALID ---< AD_N~_~_~_SS_-JX ~_~_~T_:_AA_L~_~.J>-
The .s741 A EPROM can be programmed by either of two Intel products:
r-~--~ · ---L-A-ST-~\/r + ~\/r---N-,E-~-,T


I" I I i
" I
, I
I ' I
,
'i'! .
.-..:::. .




The Intellec Series 11/85 Model 225 Microcomputer Development System is a performance enhanced , com- plete microcomputer development system integrated into one compact package. The Model 225 includes a CPU with 64K bytes of RAM , 4K bytes of ROM , a 2\JOO-character CRT, detachable full ASCII keyboard with cursor controls and upperllower case capability, and a 250K-byte floppy disk drive. Powerful ISIS·II Disk Operating System software allows the Model 225 to be used quickly and efficiently for assembling and debugging programs for Intel 's MCS-86, MCS-85, MCS-80, or MCS-48 microprocessor familie s. ISIS-II per- forms all file handling operations for the user, leaving him free to concentrate on the details of his own application . When used with an optional in-circuit emulator (lCETM) module, the Model 225 provides all of the hardware and software development tools necessary for the rapid development of a microcom puter- based product. Optional storage peripherals provide over 2 million bytes of floppy disk , and 7.3 million of hard disk storage capacity .
The foll owing are trademarks of Intel Corporation and may be used only to identify Intel products: expo Inlellec. Multibus . i. iS BC . Multimodule. ICE. iSBX. PROMPT. ieS . Library Manager: Promware . Insite. MeS . RMX. Intel. Megachassi s, UP!. Intelevision. Micromap . ~Scope and 'he combination of ICE. ieS. iS BC. iS BX. MeS. or RMX and a numerical suffix. © Intel Corporation 1980 10-1 121599-001 Rev. A


FUNCTIONAL DESCRIPTION
high technology LSI components. Known as the integrated processor card (IPC), it occupies the first slot in the cardcage. A second slave CPU card is responsible for all remaining I/O control including the CRT and keyboard interface. This card, mounted on the rear panel, also contains its own microprocessor, RAM and ROM memory, and 1/0 interface logic, thus, in effect, creating a dual processor envi"ronment. Known as the 1/0 con- troller (IOC), the slave CPU card communicates with the ~PC over an 8-bit bidirectional data bus.
The Intellec Series 11/85 Model 225 is a highly- integrated microcomputer development system consisting of a CRT chassis with a 6-slot cardcage, power supply, fans, cables, single floppy disk drive, and two printed circuit cards. A separate, full ASCII keyboard is connected with a cable. A block diagram of the Model 225 is shown in Figure1.
Expansion - Five remaining slots in the cardcage are available for system expansion. Additional expansion of 4 slots can be achieved through the addition of an Intellec Series II expansion chassis.
CPU Cards - The master CPU card contains its own microprocessor, memory, I/O, interrupt and bus interface circuitry implemented with Intel's
CONTROL I t
8259A • I I
8·LEVEL K?
64K BYTES 4K BYTES PRIORITY RAM ROM PANEL INTERRUPT CONTROL 8259A
CHANNELO CHANNEL1 ~ GENERATOR & REAL·TIME CLOCK 8251A 8251A 8253A
I I ? INTELLEC BUS ;J I I
BUS PRIORITY SYSTEM CONTROLLER 8080A·2 8085A·2 BIDIRECTIONAL
8219 RESOLUTION CLOCKS CPU CPU DRIVER 1 I I CABLE BUS ? -.:.II ~ Y cp 9
8041A t f t
,.. t ~ IOC BUS ,J ... , ,..
.... ".. .... ".. 8 ! ! f
? PIO BUS ?
8271 8275 TAPE FLOPPY CRT KEYBOARD PRINTER TAPE CONTROLLER CONTROLLER PUNCH READER
Figure 1. Intellec Series 11/85 Model 225 Microcomputer Development System Block Diagram
8228 8253


troller. The master processor on the IPC transfers a character for display to the 10C, where it is stored in RAM. The CRT controller reads a line at a time into its line buffer through an Intel 8257 DMA controller and then feeds one character at a time to the character generator to produce the video signal. Timing for the CRT control is provided by an Intel 8253 interval timer. The screen display is formatted as 25 rows of 80 characters. The full set of ASCII characters is displayed, including lower case alphas.
The heart of the IPC is an Intel NMOS 8-bit micro- processor, the 8085A-2, running at 4.0 MHz. 64K bytes of RAM memory are provided on the board using 16K RAMs. 4K of ROM is provided, pre- programmed with system bootstrap "self-test" diagnostics and the Intellec Series 11/85 System Monitor. The eight-level vectored priority inter- rupt system allows interrupts to be individually masked. Using Intel's versatile 8259A interrupt controller, the interrupt system may be user pro- grammed to respond to individual needs.
Keyboard - The keyboard interfaces directly to the 10C processor via an 8-bit data bus. The keyboard contains an Intel UPI_41TM Universal Peripheral Interface, which scans the keyboard, encodes the characters, and buffers the characters to provide N-key rollover. The keyboard itself is a high quality typewriter style keyboard containing the full ASCII character set. An upperllower case switch allows the system to be used for document preparation. Cursor control keys are also provided.
IPC Serial Channels - The I/O subsystem in the Model 225 consists of two parts: the 10C card and two serial channels on the IPC itself. Each serial channel is RS232 compatible and is capable of run- ning asynchronously from 110 to 9600 baud or syn- chronously from 150 to 56K baud. Both may be connected to a user defined data set or terminal. One channel contains current loop adapters. Both channels are implemented using Intel's 8251 A USART. They can be programmed to perform a variety of I/O functions. Baud rate selection is accomplished through an Intel 8253 interval timer. The 8253 also serves as a real-time clock for the entire system. I/O activity through both serial channels is signaled to the system through a second 8259A interrupt controller, operating in a polled mode nested to the primary 8259A.
A IJPI-41 Universal Peripheral Interface on the 10C board provides interface for other standard Intellec peripherals including a printer, high speed paper tape reader, high speed paper tape punch, and universal PROM programmer. Com- munication between the IPC and 10C is maintained over a separate 8-bit bidirectional data bus. Con- nectors for the four devices named above, as weli as the two serial channels, are mounted directly on the 10C itself.
IOC Interface - The remainder of system I/O activity takes place in the 10C. The 10C provides interface for the CRT, keyboard, and standard Intellec peripherals including printer, high speed paper tape reader/punch, and universal PROM programmer. The 10C contains its own independ- ent microprocessor, an 8080A-2. The CPU controls all I/O operations as well as supervising communications with the IPC, 8K bytes of ROM contain all I/O control firmware. 8K bytes of RAM are used for CRT screen refresh storage. These do not occupy space in Intellec Series II main memory since the 10C is a totally independent microcomputer subsystem.
User control is maintained through a front panel, conSisting of a power switch and indicator, reset/boot switch, run/halt light, and eight inter- rupt switches and indicators. The front panel cir- cuit board is attached directly to the IPC, allowing the eight interrupt switches to connect to the primary 8259A, as well as to the Intellec Series II bus.
Integral CRT
The integral floppy disk is controlled by an Intel 8271 single chip, programmable floppy disk con- troller. It transfers data via an Intel 8257 DMA con- troller between an 10C RAM buffer and the diskette. The 8271 handles reading and writing of data, formatting diskettes, and reading status, all upon appropriate commands from the 10C microprocessor.
Display - The CRT is a 12-inch raster scan type monitor with a 50/60 Hz vertical scan rate and 15.5kHz horizontal scan rate. Controls are pro- vided for brightness and contrast adjustments. The interface to the CRT is provided through an Intel 8275 single-chip programmable CRT con-


and memory by operating at different priority levels. Resolution of bus exchanges is syn- chronized by a bus clock signal derived independently from processor clocks. Read/write transfers may take place at rates up to 5 MHz. The bus structure is suitable for use with any Intel microcomputer family.
All Intellec Series 11/85 models implement the industry standard MUL TIBUS protocol. The MULTIBUS protocol enables several bus masters, such as CPU and DMA devices, to share the bus
RAM - 470 ns max PROM - 540 ns max
8085A-2 based, operating at 4.0 MHz. RAM - 64K on the CPU card ROM - 4K (2K in monitor, 2K in boot/diagnostic) Bus - MULTIBUS™ bus, maximum transfer rate of 5 MHz Clocks - Host processor, crystal controlled at 4.0 MHz, bus clock, crystal controlled at 9.8304 MHz
Floppy Disk System Capacity -
250K bytes (formatted) Floppy Disk System Transfer Rate -
160K bits/sec Floppy Disk System Access Time -
Track to Track: 10 ms max Average Random Positioning: 260 ms Rotational Speed: 360 rpm Average Rotational Latency: 83 ms Recording Mode: FM
Two Serial I/O Channels, RS232C, at 110-9600 baud (asynchronous) or 150-56K baud (synchronous). Baud rates and serial format fully programmable using Intel 8251A USARTs. Serial Channel 1 addi- tionally provided with 20 mA current loop. Parallel I/O interfaces provided for paper tape punch, paper tape reader, printer, and UPP-103 Universal PROM Programmer.
Interrupts
8-level, maskable, nested priority interrupt net- work initiated from front panel or user selected devices.
Width -17.37 in. (44.12 cm) Height -15.81 in. (40.16 cm) Depth -19.13 in. (48.59 cm) Weight - 731b. (33 kg)
Standard capability on MUL TIBUS interface; implemented for user selected DMA devices through optional DMA module-maximum transfer rate ot5 MHz.
Width -17.37 in. (44.12 cm) Height - 3.0 in. (7.62 cm) Depth - 9.0 in. (22.86 cm) Weight - 6 lb. (3 kg)


Equipment Supplied
Model 225 Chassis including:
Integrated Processor Card (IPC) 1/0 Controller Board (laC) CRT ROM-Resident System Monitor Detachable keyboard ISIS-II System Diskette with MCS-80 I MCS-85
Typical Volts Amps System Supplied Supplied Requirements
Macroassembler ISIS-II CREDIT Diskette CRT-Based Text Editor
+ 5± 5% 30.0 17.0 +12 ± 5% 2.5 1.1 -12±5% 0.3 0.1 -10 ± 5% 1.0 0.08 + 15 ± 5%' 1.5 1.5 +24±5%' 1.7 1.7
A Guide to Microcomputer Development Systems, 9800558
'Not available on bus.
Intellec® Series 1/ Model 22X/23X Instal/ation Manual, 9800559
ISIS-I/ System User's Guide, 9800306
Intellec(~ Series 1/ Hardware Reference Manual, 9800556
8080/8085 Assembly Language Programming Manual, 9800301
110V, 60 Hz - 5.9 Amp 220V, 50 Hz - 3.0 Amp
ISIS-II 8080/8085 Assembler Operator's Manual, 9800292
Intel/ec'~ Series 1/ Systems Monitor Source Listing, 9800605
Intel/ec'" Series II Schematic Drawings, 9800554
ISIS-I/ CREDIT (CRT-Based Text Editor) User's Guide, 9800902
Additional manuals may be ordered from any Intel sales representative or distributor office, or from Intel Literature Department, 3065 Bowers Avenue, Santa Clara, California 95051.
Operating Temperature -16°C to 32°C
(61 ° F to 90°F) Humidity - 20% to 80%
MDS-225' Intellec' Series 11/85 Model 225
Microcomputer Development System (11 OV 160 Hz)
MDS-226' Intellec' Series 11/85 Model 226
Microcomputer Development System (220V 150 Hz)
"'MDS" is an ordering code only, a~d is not used as a product name or trademark. MDS") is a registered trademark of Mohawk Data Sciences Corp.




Complete low cost design aid and EPROM programmer for revolutionary MCS·48 single component computers
27 on·chip TTL compatible expandable 110 lines
Simplifies microcomputing, allowing user to enter, run, debug, and save machine language programs with calculator·like ease
Utilizes two removable 8·bit MCS·48 CPUs
8748 CPU with erasable, reprogram· mabie on·chip program memory 8035 CPU with off·chip program memory
Integral keyboard and displays (no tele· typewriter or CRT terminal required)
1 K·byte erasable, reprogram mabie on· chip (8748), expandable program memo ory, 1 K·byte RAM in PROMPT system
64 bytes RAM on·chip, expandable register memory
Includes comprehensive design library
The Intellec Prompt 48 MCS-48 Microcomputer Design Aid is a low cost, fully-assembled design aid for the revolu- tionary 8748 single component microcomputer. PROMPT 48 simplifies the programming of MCS-48 systems - pro- grams may be entered and debugged with calculator-like ease on the large, informative display and keyboard panel. The comprehensive design library with tutorial manual is ideal for newcomers to microcomputing. PROMPT 48's panel connector allows easy access to 1/0 ports and system bus. Thus users can expand program memory beyond the 1K bytes provided internally.
INlIl COIIPORATMlN ASSIIoIES NO RESPONSllmy fOR THE US[ Of ANY CmCIJITRY OTHER THAN CIRCUITRY EIoflOO[O IN AN INTEL PllOOUCT. NO OTHER CIRCUIT PATENT LICENSES ARE IMPI.[O. " INTEl COIIPORATlON, )979 10-7 AFN-00352A ~01


FEATURES
real time - after each instruction the MCS-48 program counter is compared against pending breakpoint!\. If no break is encountered, execution resumes. The go single step (GO SINGLE STEP) mode exercises one instruction at a time. Commands are like sentences, with param- eters separated by [i] NEXT. Eadh command ends with
The 8748 is the first microcomputer fully integrated on one component. All elements of a computing system are provided, including CPU, RAM, I/O, timer, interrupts, and erasable, reprogram mabie nonvolatile program memory.
[i] EXECUTE/END. In addition to the PROMPT basic commands, thirteen functions simplify programming. Each is started merely by pressing a hex datalfunction key and entering parameters as required, as shown in Table 1.
PROMPT's programming socket programs this revolu· tionary " smart PROM"-the 8748-in a highly reliable, convenient manner. A fail·safe interlock ensures the device is properly inserted before applying program- ming pulses. Each location may be individually pro- grammed, one byte at a time. A read-before-write programming algorithm prevents device damage by inadvertently programming unerased memory.
The execution socket accepts either an 8035 or an 8748 MCS-48 processor. Both are supplied with each PROMPT 48, and either can serve as heart of the PROMPT system. There are no processors within the PROMPT 48 mainframe, which instead contains monitor ROM and RAM, user RAM, peripherals, drivers, and sophisticated control circuitry. Once a processor is seated in the execution socket and power is applied, the PROMPT system comes to life. Various access modes may be selected such as program execution from PROMPT system RAM, or from on-chip PROM. Thus pro- grams may first be executed from PROMPT RAM with the 8035 processor. When debugging is complete, the 8035 (execution socket) processor can program the 8748 (programming socket) processor. Finally, a programmed 8748 processor .may be exercised by itself from the execution socket. The execution socket processor runs either monitor or user programs.
The system reset command initializes the PROMPT system and enters the monitor. The monitor interrupt command exits a user program gracefully, preserving system status and entering the monitor. The user inter- rupt command causes an interrupt only if the PROMPT system is running a user program. A comprehensive system monitor resides in four 1 K-byte read only memories. It drives the PROMPT keyboard and displays and responds to commands and functions. fhe top 16 bytes of on-Chip program memory must be used by the PROMPT system to switch between monitor and user programs. It requires one level of the MCS-48 eight-level stack.
PROMPT 48's commands are grouped and color-coded to simplify access to the 8748's separate program and data memory. Registers, data memory, or program mem- ory, may be examined and modified with the examine and modify commands. Then either the next or previous register and memory locations may be accessed with one keystroke. Programs may be exercised in three modes. The go no break (GO NO BREAK) runs in real time. The go with break (GO WITH BREAK) mode is not


An optional cable, PROMPT-SER, directly connects the PROMPT system to virtually any terminal via a rear access slot.
I}] Port 2 map
Allows specification of direction of each pin on port 2. Port 2 is multiplexed to address external program memory and expand 110. Thus it must\be buffered; the P2 map com- mand establishes the direction of buffering.
Programs 8748 EPROMs. Sweeps through register, data, or program memory searching for byte matches. Start· ing and ending memory addresses are spe- cified.
Sweeps through register, data, or program memory searching for word matches. Start- ing and ending memory addresses are spe- cified.
[!] Hex calculator
Computes hexadecimal sums and differ- ences.
I2l 8748 program lor debug
Similar to program EPROM, but ensures that the top of program memory contains moni- tor re-entry code for debugging.
Verifies any portions of EPROM program memory against PROMPT memory.
Allows blocks of regi ster, data, or program memory to be moved.
Specifies one of six access modes for PRO- MPT 48. For example EPROM, PROMPT RAM, or external program memory, and a variety of input/output options may be selected.
Allows any or all of the eight breakpoints to be set and cleared.
Clears portions of regi ster, data, or program memory.
Dumps register, data, or program memory to PROMPT's serial channel: for example, a teletypewriter paper tape punch.
Enters (reads) register, data, or program memory from PROMPT's serial channel.
Fetches programs from EPROM to PROMPT RAM.
Table 1_ PROMPT 48 Commands and Functions
Easy access to the pins of the executing processor is provided via the 110 ports and bus connector. Only the EA external access, SS single step, and X1, X2 clock inputs are reserved for the PROMPT system.
Program or data memory may be expanded beyond that provided on-chip or in the PROMPT system. 1/0 ports may be expanded, as with the 8243, or peripheral con- trollers may be memory-mapped. The 1/0 ports and Bus connector allows the execution socket processor to be directly interfaced to prototype systems, yet be con- trolled from the PROMPT panel.
plays completely control PROMPT 48-a teletypewriter or CRT terminal is not needed. A hyphen prompting character appears whenever a command or function can be entered. Addresses and data are shown whenever examining registers and memory. Parameters for com- mands and functions are also shown.


FUNCTIONAL DESCRIPTION
Compatibility - For systems requiring additional com- patibility, the MCS-48 can be expanded with the new 8243 110 expander, 8155 I/O and 256-byte RAM, 8755 110 and 2K-byte EPROM, or 8355 110 and 2K ROM devices. MCS-48 processors readily Interface to MCS-80/85 peripherals and standard memories.
"PROMPT" stands for PROgraMming Tool. It Is a pro- grammer for 8748 EPROMs, and a versatile aid for debugging MCS-48 programs. Programs can be entered via its Integral panel keyboard, programming socket, or serial channel. Almost any terminal can be Interfaced to the serial channel, Including a teletypewriter, CRT, or an
Intellec microcomputer development system. Intellec PROMPT 48 simplifies the programming of MCS-48 systems. Like the 8748 It Is radically new, highly In- tegrated, and expandable. Like the MCS·48 family, it Is low cost, and Ideal for small applications and programs. It Is a design aid, not a development system with sophisticated software and peripherals.
PROMPT 48 is a complefe, fully assembled and powered microcomputer system including program memory, data memory, 110, and system monitor beyond that available on MCS-48 single component computers. 1 K bytes of PROMPT system RAM serve as "writable program mem- ory" - a ROM simulator for the program memory on each MCS-48 computer. 256 bytes of PROMPT system RAM serve as "external data memory," beyond the 64 register bytes on each MCS-48 computer. Users may fur- ther expand program or data memory via the panel 110 ports and bus connector.
PROMPT 48 comes complete with two of Intel's revolu- tionary MCS-48 processors: an 8748-4 Single Compo- nent 8-Blt Microcomputer and and 8035-4 Single Compo- nent 8-Blt Microcomputer. Advances In n-channel MOS technology allow Intal, for the first tima to integrate Into one 40-pin component all computer functions: 8-blt CPU 1 K x 8-blt EPROM/ROM program memory 64 x 8-bit RAM data memory 27 Input/output lines 8-blt timer/event counter
Programming Programs written first In assembly language, are entered In machine language and debugged with calculator-like ease on the large, Informative display and keyboard panel. Most MCS-48 operations can be specified with only two keystrokes. Once entered, routines can be exercised one Instruction (single step) or many Instructions at a time. The principal MCS-48 register - the accumulator - Is displayed while single stepping. Programs can be executed in real time (GO NO BREAK) or with as many as eight different break- points (GO WITH BREAK).
Performance - More than 90 instructions - each one or two cycles - make the single chip MCS-48 equal in performance to most multi-chip microprocessors. The MCS-48 Is an efficient controller and arithmetic pro- cessor, with extensive bit handling, binary, and BCD arithmetic instructions. These are encoded for minimum program length; 70% are single byte opera- tion codes, and none Is more than two bytes.
PROMPT 48 can be fully controlled either by the panel keyboard and displays, or remotely by a serial channel. Thus a teletypewriter or CRT can be used but neither Is required.
Flexibility - Three interchangeable, pin-compatible devices offer flexibility and low cost in development and production, as follows: 8748 - with user-programmable and erasable EPROM program memory for prototype and pre-productions systems. 8048 - with factory-programmed mask ROM memory for low-cost, high volume production. 8035 - without program memory, for use with external program memories.
Access The PROMPT panel 110 ports and bus connector allow easy access to all MCS-48 pins except those reserved for control by the PROMPT system, namely EA external access, SS Single step, and X1, X2 clock inputs.
Circuitry - Each MCS-48 processor operates on a single + 5V supply, with internal oscillator and clock driver, and circuitry for Interrupts and resets. Extra cir- cuitry is inthe 8048 ROM processor to allow low power standby operation. The 64 x 8 RAM data memory can be independently powered.
PROMPT 48 may be expanded beyond the resources on both the MCS-48 single component computer and the PROMPT system. External program and data memory may be Interfaced and input/out ports added with the 8243 110 expander.


concepts. PROMPT's handy, pocket-sized reference card let can be affixed to the mainframe. Programming pads aid in the organization and documentation of pro- grams. These features, plus a comprehensive design library of manuals, articles, and application notes, make the Intellec PROMPT 48 ideal for the newcomer to mlcrocomputlng.
The PROMPT 48 manual Includes chapters for the reader with little or no programming experience. Topics treated range from number systems to microcomputer hardware design. A novel, unifying set of tutorial diagrams - MICROMAPS - simplify microcomputer
User Interrupt - causes an Interrupt only If the PROMPT system Is running a user program.
Timing Basic Instruction - 2.5 ,..s Cycle Time - tCY = 2.5,..s Clock - 6 MHz ± 0.1%
The processor traps to location 316. The MCS-48 timer/- event counter is not used by the PROMPT system and is available to the user. Either timer flag or interrupt will signal when overflow has occurred. The timer interrupt can be used only in the go-no-break (real time) mode.
Memory Bytes The 8748 contains 64 bytes of register memory, no ex- ternal data memory, and 1024 bytes of RAM program memory. The PROMPT system provides 256 bytes of ex- ternal data memory, and 1024 bytes of RAM program memory. PROMPT RAM program memory can be used in place of the on-chip EPROM program memory; thus programs less than 1024 bytes may be designed. For larger programs additional memory can be directly In- terfaced to the MCS-48 bus via the PROMPT panel I/O ports and bus connector.
EPROM Programming PROMPT 48 provides a programming socket to directly program 8748s. Programs are loaded Into the PROMPT RAM program memory via keyboard. EPROM, teletype- writer, or other serial interface. A fail-safe interlock ensures programming pulses are applied only if the device is properly inserted. Inadvertant reprogramming is prevented by a read-before-write programming algo- rithm. Each location may be individually programmed, one byte at a time.
Memory Maximum On Chip In PROMPT 48
Reglsler 64 64 0 Dala 3328 0 256 Program 4006 1024 EPROM 1024 RAM
Panel 1/0 Ports and Bus Connectors All MCS-48 pins, except five, are accessible on the I/O ports and bus connector. The five reserved for PROMPT system control are EA external access, SS single step, X1, X2 crystal Inputs, and 5V. Due to internal buffering of the MCS-48 bus, access times will be negligibly degraded by the PROMPT system. Since MCS-48 pro- cessors do not communicate internal address gate status, bus data must be driven out If neither PSEN nor RD is asserted.
1/0 Ports All MCS-48 I/O ports are accessible on the PROMPT panel connector.
Bus - A true bidirectional 8-bit port with associated strobes. If the bidirectional feature is not needed, bus can serve as either a statically latched output port or a non-latching Input port. Input and output lines cannot be mixed.
Ports 1 and 2 - Data written to these 8-bit ports is latched and remains unchanged until written. As Inputs these lines are not latching. The lines of ports 1 and 2 are called quasi bidirectional. A special output structure allows each line of port 1 and half of port 2 to serve as an input, an output, or both. Any mix of input, output, and both lines is allowed.
Both user programs and the PROMPT monitor enjoy ac- cess to system devices: serial I/O, panel displays, and keyboard. These are memory-mapped to program memory addresses beyond 2K.
Serial I/O - The serial I/O port (data 82016, control 821 16) Is defined by software and jumpers for 110 baud, 20 mA current loop, but can easily be jumpered for other baud rates and RS232C levels. Asynchronous or synchronous transmission, data format, control characters, and par- ity can be programmed.
TO, n, and INT - Three pins that can serve as Inputs. TO can be designated as a clock output. Input/output can be expanded via the PROMPT panel connector with a special I/O expander (8243) or standard peripherals.
Panel Displays - Eight display ports (data 810-8171sl allow each of the panel displays to be written from user programs. Data written on a display device will time out after a fixed interval. Displays must be refreshed on a polled or interrupt-driven basis. User programs can call software drivers which provide this capability.
Reset and Interrupts Relit - Initializes the PROMPT system and enters the monitor. Monitor Interrupt - exits a user program gracefully, preserving system status and entering the monitor.
Memory Configuration


Keyboard -. Software Is used to debounce the panel
Panel 110 Ports and Bus Connector - 3M 3425 Flat Crimp. A complete cable set Including wlrewrap header for prototyplng Is included with each PROMPT.
keyboard (data 81016). The monitor's Input routines (see Software Drivers) provide this debouncing and can be called from user programs.
Commands
PROMPT 48 mainframe with two MCS-48 processors (8748, 8035), display/keyboard, EPROM programmer, power supply, cabinet, and ROM-based monitor. 110 V AC power cable 110 or 220 V AC Fuse Panel 110 ports Bus connector cable set
Single step} With break Go No break
{ Register} Examine/modify Data Memory Program Open previous/clear/Emtry [!] Next 0 Execute/End
Physical Characteristics Height - 5.3 in. (13.5 cm) max Width - 17 in. (43.2 cm) Depth - 17 in. (43.2 cm) max Weight - 21 lb. (9.6 kg)
iii Port 2 map lil Program EPROM (8748) I!l Search (R, 0 or P)' memory for 1 byte, optional
mask IL Search (R, 0 or P) memory for 2 bytes, optional
mask Ii] Hexadecimal calculator +,- [] 8748 program EPROM for debug IiJ Compare EPROM with memory Ii] Move memory (R, 0 or P) -00 Access
Electrical Characteristics Po' 'er Requirements - either 115 or 230V AC (± 10%) may be switch selected on the mainframe. 1.8 amps max current (at 125 V AC). Frequency - 47-63 Hz
Ii] Breakpoint ~ Clear memory (R, 0 or P) Ii!] Dump memory (R, 0 or P) IEJ Enter (read) memory (R, 0 or P) If] Fetch EPROM program memory
Environmental Characteristics Operating Temperature - O·C to + 40·C Non·Operatlng Temperature - 20·C to + 65·C
Reference Manuals 9800402 - Intellec PROMPT 48 User's Manual (SUPPLIED) 9800270 - MCS·48 User's Manual (SUPPLIED) 9800255 - MCS-48 and UPI-41 Assembly Language Programming M~nual (SUPPLIED)
Nole *R, D, or P is register, data, or program.
Software Drivers Panel Keyboard In - KBIN, KDBIN Panel Display Out - DGS6, DGOUT, HXOUT, BLK, REFS, ENREF Serial Channel - CI, CO, RI, PO, CSTS
Reference manuals are shipped with each product only if deSignated SUPPLIED (see above). Manuals may be ordered from any Intel sales representative, distributor office or from Intel Literature Department, 3065 Bowers Avenue, Santa Ciara, California 95051.
Connectors Serial 110 - 3M 3462·0001 Flat Crimp/AMP 88106·1 Flat Crimp/ TI H312113 Solder/AMP 1·583485-5 Solder.
Part Number Description
PROMPT-48 or Intellec PROMPT 48 MCS-48 micro- PROMPT-48-220V computer design aid. Complete with
two MCS·48 processors (8748 and 8305), EPROM programmer, integral keyboard; displays, and system monitor in ROM.
PROMPT-SER Serial cable for connecting PROMPT to TTY, CRT


Extends Intellec microcomputer develop- ment system debug power to user con- figured system via external cable and 40-pln plug, replacing system MCS-48 device
Collects bus, register, and MCS-48 status information on instructions emulated
Emulates user system MCS-48 device in real time
Provides capability to examine and alter MCS-48 registers, memory, and flag values, and to examine pin and port values
Provides hardware comparators for user designated break conditions
Integrates hardware and software efforts early to save development time
The ICE-49 MCS-48 In-Circuit Emulator module is an Intellec-resident module that interfaces with any MCS-48 system_ The MCS-48 family consists of the 8049, 8048, 8748, 8039, 8035, and 8021 microcomputers_ The ICE-49 module inter- faces with an MCS-48 system through a cable terminating in an MCS-48 pin-compatible plug which replaces the MCS-48 device in the sytem_ With the ICE-49 plug in place, the designer has the capability to execute the system In. real time while collecting up to 255 instruction cycles of real-time trace data. In addition, he can single step the system program to monitor more closely the program logic during execution. Static RAM memory is available through the ICE-49 module to emulate MCS-48 program and data memory_ The designer can display and alter the contents of data and replacement RAM control memory, internal MCS-48 registers and flags and I/O ports. Powerful debug capability is extended into the MCS-48 system while ICE-49 debug hardware and software remain inside the Intellec system. Sym- bolic reference capability allows the designer to use meaningful symbols rather than absolute values when examining and modifying memory, registers, flags, and I/O ports in this system.
'*EM1 emulator board is also required.


FUNCTIONAL DESCRIPTION
The user prototype need consist of no more than an MCS-48 socket and timing logic to begin integration of software and hardware development efforts. Through the ICE-49 module mapping capabilities, Intellec system resources can be accessed to replace prototype memo ory. Hardware designs can be tested using the system software to drive the final product. Thus, the system in· tegration phase, which can be costly when attemptin.g to mesh completed hardware and software products, becomes a convenient two·way debug tool when begun early in the design cycle.
The ICE-49 module provides the user with the ability to debug a full prototype or production system wi.thout introduCing extraneous hardware or software test tools. The module connects to the user system through the socket provided for the MCS-48 device in the user system. Intellec memory is used for the execution of the ICE-49 software. The Intellec console and file handling capabilities provide the designer with the ability to com· municate with the ICE-49 module and display informa· tion on the operation of the prototype system. The ICE-49 module block diagram is shown in Figure 1.
The ICE-49 module captures trace information while the designer is executing programs in real time. The instruc· tions executed, program counter, port values for bus 0, port 1 and port 2, and the values of selected MCS-48 status lines are stored for the last 255 instruction cycles executed. When reirieved for dispiay, code is disassem· bled for user convenience. This provides data for deter· mining how the user system was reacting prior to emu· lation break, and is available whether the break was user initiated or the result of an error condition. For more detailed information on the actions of internal registers, flags, or other system operations, the user may operate in single or multiple step sequences tailored to system debug needs.
In conjunction with the ISIS·II diskette operating system, the ICE-49 module can run extensive system diagnostics without operator intervention. The designer or test engineer can define a comp!ete diagnostic eX6i- cise, which is stored in a file on the diskette. When actio vated with an ISIS·II submit command, this file can instruct the ICE-49 module to execute the diagnostic routine and store the results in another file on the diskette. Results are available to the designer at his con· venience. In this way, routine diagnostics and long term testing may be done without tying up valuable man· power.
CONTROL PROCESSOR BOARD
USER SOCKET I
IINTERNAL I TIMER II CONTROL I f ,--=-::::.:-:..:., P ROG R AM UJ
SYNC 1
II I I I I I I I I I I
~ !
~ I z
8080 CONTROL PROCESSOR
~ I
P1
~ I
P2A 8049 OR 8048 WIINTERNAL MONITOR P~~I______ =,:;:-:-_---"
~ 1 !2 I
I I II I L ~ L ~
PAD
Figure 1. ICE-49 Module Block Diagram


Intel 8080 to communicate with the Intellec host pro- cessor via a common memory space. The 8080 also con- trols an internallCE-49 bus for intramodule communica- tion. ICE-49 hardware consists of two PC boards, the controller board, and the emulator board, all of which reside in the Intellec chassis. A cable interfaces the ICE-49 boards to the MCS-48 system. The cable ter- minates in a MCS-48 pin compatible plug which replaces any MCS-48 device in the user system. The ICE-49 module block diagram is shown in Figure 1.
The 8049, 8748 and 8048 contain internal program and data memory. Both program and data memory can be expanded using external memory devices.
Internal Memory - When the MCS-48 microcomputer is replaced by the ICE-49 socKet in a system, the ICE-49 module supplies static RAM memory as a replacement for the internal microcomputer memory. The ICE-49 module has enough RAM memory available to emulate up to the total 4K control memory capability of the sys- tem_ The ICE-49 module also provides for up to 384 bytes of data memory.
Trace Buffer - While the ICE-49 module is executing the user program, it is monitoring port, program counter, data, and status lines. Values for each instruc- tion cycle executed are stored in a 255 x 44 real-time RAM trace buffer. A resetable timer resident on the con- troller board counts instruction cycles.
External Memory - The ICE-49 module separates replacement control memory into sixteen 256-byte blocKs. Replacement external data memory consists of one 256-byte block. Each block of memory can be de- fined separately as supplied by the user system or sup- plied by the ICE-49 module. The user may assign ICE-49 equivalent memory to take the place of external memory not yet supplied in his system.
The ICE-49 module talks to the Intellec system as a peripheral device. The controller board receives com- mands from the Intellec system and responds through the parameter block. Three 15-bit hardware breakpoint registers are available for loading by the user. While in emUlation mode, a hardware comparator is constantly monitoring address and status lines for a match to ter- minate an emulation. The breakpoint registers provide a signal when a match is detected. The user may disable the emulation break capability and use the signal to syn- chronize other debug tools. The controller board returns real-time trace data, MCS-48 register, flag, and pin values, and ICE-49 status information, to a control block in the Intellec system when emulation is terminated. This information is available to the user through the ICE-49 interrogation commands. Error conditions, when present, are automatically displayed on the Intellec system console. The controller board also contains static RAM memory, which can be used to emulate MCS-48 program and data memory in real time. 4K of memory is available in sixteen 256-byte pages to emu- late MCS-48 PROM or PROM program memory. A 256- byte page of data memory is available to access in place of MCS-48 external data memory. The controller board address map directs the ICE-49 module to access either replacement ICE-49 memory or actual user system ex- ternal memory in 256-byte segments based on informa- tion provided by the user.
ICE-49 software provides symbolic definition of all MCS-48 registers, flags, and selected MCS-48 pins. Symbolically defined pseudo registers provide access to the sense of MCS-48 flip flops which enable time, counter, interrupt, and flag-01lIag-1 options. In addition, the user may reference locations in program and data memory, or their contents, symbolically. The user sym- bol table generated along with the object file during a program assembly may be loaded to Intellec memory for access during emulation. The user is encouraged to add to this symbol table any additional symbolic values for memory addresses, constants, or variables he may find useful during system debugging. Symbols may be sub- stituted for numeric values in any of the ICE-49 com- mands. Symbolic reference is a great advantage to the system designer. He is no longer burdened with the need to recall or look up those addresses of key loca- tions in his program that can change with each assem- bly. Meaningful symbols from his source program may be used instead. For example, the command:
begins execution of the program at the address refer- enced by the label START in the designers assembly program. A breakpoint is set to occur the first time the microprocessor writes to the external data memory location referenced by RSL T. The designer does not have to be concerned with the physical locations of START and RSL T. The ICE-49 software driver supplies them automatically from information stored in the symbol table.
The emulator board contains the 8049* and peripheral logiC required to emulate the MCS-48 device in the user system. A software selectable 6 MHz or 3 MHz clock drives the emulated MCS-48 device. This clock can be disabled and replaced with a user supplied TTL clock in the user system.
Hardware The ICE-49 module is a microcomputer system utilizing Intel's 8049 or 804818748 microcomputer as its nucleus. The 8049 provides the 8049, 8039 emulation character- istics. The 804818748 provides the 8748180481803518021 emulation characteristics. The ICE-49 module uses an
·Use 8048 with internal monitor program when emulating 8748/80481 803518021.


Cable Card
The cable card is included for cable driving. It transmits address and data bus information to the user system through a 40·pin connector which plugs into the user system in the socket designed for the MCS·48 device.
Display Prints contents of memory, MCS·48 device registers, 1/0 ports, flags, pins, real·time trace data, symbol table, or other diagnostic data on list device. Change Alters contents of memory, register, output port, or flag. Sets or alters break· pOints and display registers. Map Defines memory status. Base Establishes mode of display for output data. Suffix Establishes mode of display input data.
The ICE·49 software driver Is a RAM·based program which provides the user with an easy to use command language (see Table 1, Table 2, and Table 3) for defining breakpoints, initiating real·time emulation or single step operation, and interrogating and altering user system status recorded during emulation. The ICE·49 command language contains a broad range of modifiers to provide the user with maximum flexibility in defining the opera· tion to be performed. The ICE·49 software driver is available on diskette and operates in 32K of Intellec RAM memory.
Table 2. ICE·49 Interrogation Commands
Load Fetches user symbol table and object code from input device. Save Sends user symbol table and object code to output device. Define Enters symbol name and value to user symbol table. Move Moves block of memory data to another area of memory. list Defines list device. Exit Returns program control to ISIS·II. Evaluate Converts expression to equivalent values in binary, octal, decimal, and hex. Remove Deletes symbols from symbol table. Reset Reinltiallzes ICE·49 hardware.
Enable Activates breakpOint and display regis· ters for use with go and step com· mands. Go Initiates real·time emulation and allows user to specify breakpoints and data retrieval. Step Initiates emulation in single instruction Increments. Each step is followed by register dump. User may optionally tailor other diagnostic activity to his needs. Interrupt Emulates user system interrupt.
Table 1. ICE·49 Emulation Commands
Table 3. ICE·49 Utility Commands
System Clock
ICE·49 Operating Environment
Crystal controlled 6.0 MHz internal, 3.0 MHz internal or user supplied TTL external: software selectable.
Required Hardware Intellec microcomputer development system System console Intellec diskette operating system ICE·49 Module
Width - 12.00 In. (30.48 cm) Height - 6.75 in. (17.15 cm) Depth - 0.50 in. (1.27 cm) Weight - 8.00 lb. (3.64 kg)
Required Software System monitor ISIS·II
Equipment Supplied
DC Power Requirements Vee = +5V ±5% lee = 10A mal(; 7.0A typ Voo = + 12V ±5% 100 = 79 mA max; 45 mA typ Vss = -10V ±5% Iss = 20 mA max
Printed circuit boards (control board, emulator board) Interface cables and buffer module ICE·49 software, diskette·based version (single density or double density) 8048 with internal monitor program
Command Operation · Command Operation · Command Operation


EM1 8021 EMULATION BOARD
Connects to prototype system through 8021 pin compatible plug
Based on 8748 - user programmablel erasable EPROM 8·bit computer
On·card 3.0 M Hz or external TTL driven clock
Operates with ICE·49™ module to provide full in·circuit debugging of 8021 prototype system
The EM1 emulator board is a ready-to-use 4" x 7" microcomputer circuit assembly that emulates the Intel 8021 microcomputer. A 12-inch flat-cable assembly connects the board to the 8021 socket in a prototype system. The board is designed so that it can be mounted either as a stand-alone unit, or within the prototype assembly.
The 8021 microcomputer has 1 K x 8 mask-programmable ROM program memory and 64 by 8 RAM data memory. The EM1 is controlled by an Intel 8748, with 1 K of EPROM program memory and a 64 byte data memory. The EPROM can be programmed and erased repeatedly during hardware and software development. The EM1 has several ancillary circuits that perform the following functions which are specific to ttie 8021:
Zero crossing detector Crystal controlled clock/buffer Port 0 simulator
For prototype debugging, the 8748 can be removed from its socket and replaced with a cable to an ICE-49 module. When used with the EM1, ICE-49 module emulates the 8021 in real-time, or single-steps the 8021 program at the user's command. A full range of capabilities for examining and modifying 8021 memory and status are supplied through ICE-49 module.


HARDWARE
Zero Cross Detection Simulator
The zero cross detection simulator enables the 8748's T1 Input to detect zero-crossings. The circuitry provides a high level signal on a positive crossing and a low level signal on a negative crossing of zero to the T1 Input of the 8748.
The EM1 emulation board uses the 8748 to perform the emulation.
Port 0 of the 8021 Is a quasi"-bldlrectlonal port. The PO simulator converts the data bus of the 8748 Into a quasi- bidirectional port.
The 8021 resets on a logic HIGH level signal. However, the 8748 resets on a logic LOW level, thus an Inverter Is provided on the EM1 to make the two chips compatible.
The EM 1 allows user to select an on-board oscillator or a TTL clock driven from the 8021 user's prototype system via a Camblon Suitcase jumper.
Resistors are provided to simulate the optional pull-up resistors on T1 input and Port 0 of the 8021. A removable resistor pack is used on Port O. The T1 input pull up can be Installed by soldering In a 50K resistor.
On-Board External TIL Clock
"A bidirectional port which serves as an Input port. out- put port, or both even though outputs are statically latched.
When emulating the 8021 with EM1, the user must observe the 8021 Instruction set.
P10 - P17 P20P28
r______________ ~A~LE~ __________________ ~
8748 OR 4()'PIN PLUG
40 LINES
8021 CABLE
28 LINES
PROG r-1 CRYSTAL
PLUG
CABLE TO
r__________ ....... __ -""XTAL 1
12 INCHES FLAT CABLE
ICE-49 MODULE
CONTROL
CLOCK
Tlr-~----- ....... ----~ r-----------~--~Tl
RESET t--.-----------------------o< 1------1---1 RESET
RE~ET BUFFER I 28·PIN r- - -.., SOCKET I OPTIONAL I LP~L~ ...J
L2!!!I~ .J
Jumper Poaltlon · State


SPECIFICATIONS
Crystal controlled 3.0 MHz on board or user supplied TIL external clock: hardware jumper selectable.
Physical Characteristics
Required Hardware:
Width: 7.0 in (17.78 cm) Height: 4.0 in. (10.16 cm) Depth: 0.75 in. (1.91 cm) Weight: < 1.0 Ibs. (0.45 kg)
Required Hardware:
EM1 emulation board Intellec Microcomputer Development System con· figurated with ICE·49 module
DC Power:
Vcc5V ±5% Icc 300 mA (max.)
EM1 printed circuit board
12" long flat cable terminating in 28·pin plug, pin com· patible with 8021
Description
MDS·EM1
10-19 AFN·00801 A·03


Provides Intel® 8755A - 2K x 8 EPROM
Connects directly into prototype system through Intel® 8022* pin compatible socket
EPROM functional and electrical equivalent of Intel® 8022 - single component 8·bit computer
The EM2 emulator board is a ready·te-use 4.25" x 2.75" microcomputer circuit assembly that emulates the Intell!> 8022 single chip microcomputer. The emulator board is designed to plug directly into the 8022 socket. No Interfacing and interconnection cables are necessary. Power is obtained from the user's system.
The EM2 emulator board provides the user a full EPROM functional and electrical equivalent of the 8022 single compo· nent 8·bit microcomputer.
The EM2 emulator board consists of an Intell!> 8022 emulator chip and an Intell!> 8755A, providing the EM2 emulator board with a 2K x 8 EPROM program memory which can be programmed and erased repeatedly during hardware and software development.
The 8022E emulator chip is a modified version of the 8022 intended for use in design support systems. Instead of using resident ROM memory as the 8022, the 8022E uses an external 2K EPROM 8755A memory for program storage, allowing easy program modification.
·See Intell!! 8022 Data Sheet.
1()"20 AFN-ooaooA-ol


EM2 BLOCK DIAGRAM
P28
P27
P25
P24
VAREF
PROD
ANI
P23
ANO
P22
P21
TO
P20
VTH
P17
2048 EPROM .----r-l MEMORY
POO
P18
P15
POI
P02
P14
P03
P13
4(J.PIN SOCKET
8755A
P04
P12
P05
8022 EMULATOR CHIP
P08
P07
RESET
ALE
XTAL2
XTALI
SUBST
SQUARE SOLDER PAD
PIN DESCRIPTION
nation Pin II Function
Deslg· nation Pin II Function
24 Input used to Initialize the processor by clearing status flip-flops and setting the program counter to zero.
Vss 20 Circuit GND potential.
40 + 5V circuit power supply.
A/D converter GND potential. Also establishes the lower limit of the con- version range.
37 Output strobe for Intell!> 8243 I/O ex- pander.
10-17 8·bit open-drain port with comparator Inputs. The switching threshold is set externally by VTH. Optional pull-up reo slstors may be added via ROM mask selection. (The emulator board has switch selection of this option.)
AID + 5V power supply.
Substrate pin used with a bypass capa- citor to stabilize the substrate voltage and improve AID accuracy.
VTH 9 Port 0 threshold reference pin.
P10-P17 25-32 8-bit quasi·bidirectlonal port. Port 1
4 AID converter reference voltage. Estab- lishes the upper limit of the conversion range.
P20-P27 33-36 8-bit quasi-bidirectional port.
Port 2 38-39 P20-P23 also serve as a 4-bit I/O ex- 1-2 pander for Intell!> 8243.
6,5 Analog inputs to AID converter. Soft- ware selectable on-chip via SEL ANO and SEL AN1 instructions.
TO 8 Interrupt input and input pin testable using the conditional transfer Instruc- tions JTO and JNTO. Initiates an inter- rupt following a low level input if inter- rupt is enabled. Interrupt Is disabled after a reset.
18 Address Latch Enable. Signal occur- ring once every 30 input input clocks (once every single cycle instruction), used as an output clock.
T1 19 Input pin testable using the JT1 and JNT1 conditional transfer instructions. Can be designated the timer/event counter input using the STRT CNT in- struction. Also serves as the zero-cross detection input to allow zero-crossover sensing of slowly moving AC Inputs. Optional pull-up resistor may be added via ROM mask selection.
22 One side of crystal, inductor, or re- sistor input for internal oscillator. Also Input for external frequency source. (Not TTL compatible.)
23 Other side of timing control element. This pin Is not connected when an ex- ternal frequency source is used.


The 8755A EPROM is erased when exposed to light with wavelengths shorter than approximately 4000 Ang- stroms (A). Sunlight and certain fluorescent lamps have wavelengths in the 3000A to 4000A range. If the 8755A is to be exposed to sunlight or room fluorescent lighting for extended periods, then opaque labels should be placed over the window to prevent unintentional erasure.
the Intel® 8755A EPROM can be programmed using any o/the modules listed in Table 1.
UPP-1P3 Universal PROM Programmer. Requires UPP-955, which in- cludes 8755A Personality Card with 40-pin adapter socket.
. PROMPT-48 . Intellec® MCS-48 Microcom- puter Design Aid. Requires PROMPT-475 Programming Adapter.
The recommended erasure procedure is exposure to ultraviolet light which has a wavelength of 2537 A. The integrated dose (UV intensity multiplied by exposure time) for erasure should be a minimum of 15W-sec/cm. The erasure time with this dosage is approximately 15 to 20 minutes using an ultraviolet lamp with a 12,000" W/em2 power rating. Place the 8755A within one inch of the lamp during erasure. Some lamps include a filter which should be removed before erasure.
PI'lOMPT-80/85 Intellec® 8080/8085 Microcom- puter Design Aid. Requires PROMPT-975 Programming Adapter.
Table 1_ 8755A Proramming Module
Operating Environment
.Intef" 8755A EPROM Programming
UPp:103 "'ROMPT-48 PI'IOMPT-80/85
lntellec Microcomputer Development System
Vcc=5V ±5% Icc = 300 mA (maximum)
8048 Assembler ISIS-II Diskette Operating System
Operating Temperature - 0 to 55°C
EM2 Printed Circuit Board EM2 Reference Manual
Operating Humidity - Up to 95% relative humidity without condensation
MDS-EM2 8022 Emulation Board


u.S. AND CANADIAN SALES OFFICES
3065 Bowers Avenue Santa Clara, California 95051 Tel: (408) 987-8080 "TWX: 910·338-0026 TELEX: 34-8372
OREGON
ALABAMA
FLORIDA (cont.)
Intel Corp. 303 Williams Avenue, S.W. Suite 1422 Huntsville 35801 Tel: (205) 533·9353
Intel Corp. 5151 Adanson Street, Suite 203 Orlando 32804 Tel: (305) 628-2393 TWX: 810-853-9219
Intel Corp. 502 Earth City Plaza Suite 121 Earth City 63045 Tel: (314) 291-1990
Intel Corp_ 10700 S.W. Beaverton Hillsdale Highway Suite 324 Bea erton 97005 Tel: (503) 641-8086 TWX: 910-467·8741
GEORGIA
Technical Representatives, Inc." 502 Earth City Plaza Suite 201 Earth City 63045 Tel: (314) 291-0001
Intel Corp. 10210 N. 25th Avenue, Suite 11 Phoenix 85021 Tel: (602) 997-9695
Intel Corp. 3300 Holcomb Bridge Rd. Norcross 30092
Intel Corp.' 275 Commerce Or. 200 Office Center Suite 300 Fort WaShington 19034 Tel: (215) 542-9444 TWX: 510-661·2077
Technical Representatives, Inc.' VSW Bldg. Suite 560 406 W. 31st Street Kansas City 64111 Tel: (816) 756-3575 TWX: 910-771-0025
BFA 4426 North Saddle Bag Trail Scottsdale 85251 Tel: (602) 994-5400
Intel Corp.* 2550 Golf Road, Suite 815 Rolling Meadows 60008 Tel: (312) 981-7200 TWX: 910-651-5881
NEW JERSEY
Intel Corp." 201 Penn Center Boulevard Suite 301W Pittsburgh 15235 Tel: (412) 823-4970
Intel Corp. 7670 Opportunity Rd. Suite 135 San Diego 92111 Tel: (714) 268-3563
Technical Representatives 1502 North Linde Street Bloomington 61701 Tel: (309) 829-8080
Intel Corp.' Raritan Plaza 2nd Floor Raritan Center Edison 08817 Tel: (201) 225-3000 TWX: 710-480-6238
Q.E.D. Electronics 300 N. York Road Hatboro 19040 Tel: (215) 674-9600
Intel Corp." 2000 East 4th Street Suite 100 Santa Ana 92705 Tel: (714) 835·9642 TWX: 910-595-1114
Intel Corp. 9101 Wesleyan Road Suite 204 Indianapolis 46268 Tel: (317) 299-0623
TEXAS
BFA Corporation 1704 Moon N.E., Suite 7 Las Cruces 87112 Tel: (505) 523-0601 TWX: 910-983-0543
Intel Corp.' 2925 L.B.J. Freeway Suite 175 Dallas 75234 Tel: (214) 241-9521 TWX: 910-860-5617
Intel Corp,- 5530 Corbin Avenue Suite 120 Tarzana 91356 Tel. (213) 986·9510 TWX: 910-495-2045
Technical Representatives, Inc. St. Andrews Building 1930 St. Andrews Drive N.E. Cedar Rapids 52405 Tel: (319) 393-5510
BFA Corporation 3705 Westerfield, N.E. Albuquerque 87111 Tel: (505) 292-1212 TWX: 910-989-1157
Intel Corp." 6420 Richmond Ave. Suite 280 Houston 77057 Tel: (713) 784-3400 TWX: 910-881·2490
Intel Corp,' 3375 Scott Blvd. Santa Clara 95051 Tel: (408) 987·8086 TWX: 910-339·927~ 910-338·0255
Intel Corp. 9393 W. 110th St., Ste. 265 Overland Park 66210 Tel: (913) 642-8080
Intel Corp" 300 Motor Pkwy. Hauppauge 11787 Tel: (516) 231-3300' TWX: 510-227-6236
Industrial Digital Systems Corp. 5925· Sovereign Suite 101 Houston 77036 Tel: (713) 988-9421
Earle Associates, Inc. 4617 Ruffner Street Suite 202 San Diego 92111 Tel: (714) 278-5441
Technical Representatives, Inc. 8245 Nieman Road, Suite 100 Lenexa 66214 Tel: (913) 888-0212, 3, & 4 TWX: 910-749-6412
Intel Corp. 80 Washington SI. Poughkeepsie 12601 Tel: (914) 473-2303 TWX: 510-248-0060
Inlel Corp. 313 E. Anderson Lane Suite 314 Austin 78752 Tel: (512) 454-3628
Mac-I P.O. Box 1420 Cupertino 95014 Tel: (408) 257-9880
Technical Representatives, Inc. 360 N. Rock Road Suite 4 Wichita 67206 Tel: (316) 681-0242
Mac-I 558 Valley Way Calaveras Business Park Milpitas 95035 Tel: (408) 946-8885
Intel Corp." 2255 Lyell Avenue Lower Floor East Suite Rochester 14606 Tel: (716) 254-6120 TWX: 510-253-7391
Intel Corp. Suite 114, Bldg. 3 1603116th Ave. N.E. Bellevue 98005 Tel: (206) 453-8086 TWX: 910-443-3002
Intel Corp." 7257 Parkway Drive Hanover 21076 Tel: (301) 796-7500 TWX: 710-862·1944
Mac-I P.O. Box 8763 Fountain Valley 92708 Tel: (714) 839-3341
Measurement Technology, Inc.
59 Northern Boulevard Great Neck 11021 Tel: (516) 482-3500
Mac-I 1321 Centinela Avenue Suite 1 Santa Monica 90404 Tel: (213) 829-4797
Mesa Inc. 16021 Industrial Dr. Gaithersburg 20760 Tel: (301) 948·4350
Intel Corp. 150 S_ Sunnyslope Rd. Brookfield 53005 Tel: (414) 784-9060
T-Squared 4054 Newcourt Avenue Syracuse 13206 Tel: (315) 463-8592 TWX: 710-541-0554
Mac-I 20121 Ventura Blvd., Suite 240E Woodland Hills 91364 Tel: (213) 347-5900
Intel Corp. * 27 Industrial Ave. Chelmsford 01824 Tel: (617) 667·8126 TWX: 710-343-6333
T-Squared 2 E. Main Victor 14564 Tel: (716) 924-9101 TWX: 510·254-8542
Intel Semiconductor Corp." Suite 233, Bell Mews 39 Highway 7, Bells Corners Ottawa, Ontario K2H 8R2 Tel: (613) 829-9714 TELEX: 053-4115
EMC Corp. 381 Elliot Street Newton 02164 Tel: (617) 244-4740 TWX: 922531
Intel Corp. * 650 S. Cherry Street Suite 720 Denver 80222 Tel: (303) 321-8086 TWX: 910-931-2289
Intel Corp. 154 Huffman Mill Rd. Burlington 27215 Tel: (919) 584-3631
Intel Semiconductor Corp. 50 Galaxy Blvd. Unit 12 Rexdale, Ontario M9W 4Y5 Tel: (416) 675-2105 TELEX: 06983574
OHIO
CONNECTICUT
Intel Corp.' 26500 Northwestern Hwy. Suite 401 Southfield 48075 Tel: (313) 353-0920 TWX: 810-244-4915
Intel Corp. Peacock Alley 36 Padanaram Road Danbury 06810 Tel: (203) 792-8366 TWX: 710-456-1199
Intet Corp.' 6500 Poe Avenue Dayton 45415 Tel: (513) 890-5350 TWX: 810-450-2528
Multilek, Inc. * 15 Grenfell Crescent Ottawa, Ontario K2G OG3 Tel: (613) 226-2365 TELEX: 053-4585
Intel Corp.* Chagrin-Brainard Bldg., No. 300 28001 Chagrin Blvd. Cleveland 44122 Tel: (216) 464·2736 TWX: 810-427-9298
Intel Corp. 7401 Metro Blvd. Suite 355 Edina 55435 Tel: (612) 835-6722 TWX: 910-576-2867
Intel Corp. 1001 N.W. 62nd Street, Suite 406 Ft. Lauderdale 33309 Tel: (305) 771-0600 TWX: 51Q..956-9407
September 1980


inter 3065 Bowers Avenue Santa Clara, California 95051 Tel: (408) 987-11080 TWX: 91().338·0026 TELEX: 34-8372
ALABAMA
COLORADO (cont.)
tHamllton/Avnet Electronics 4812 Commercial Drive N.W. Huntsville 35805 Tel: (205) 837·7210
Wyle Distribution Group 451 E. 124th Avenue Thornton 80241 Tel: (303) 457·WYLE TWX: 910·931·0510
tHamllton/Avnet Electronics 485 Gradle Drive Carmel 46032 Tel: (317) 844·9333
tHamllto~/Avnet Electronics 13743 Shoreline Ct. Earth City, 63045 Tel: (314) 344·1200 TWX: 91()'762-O608
tPloneer/Huntsvllle 1207 Putman Drive NW Huntsville 35605 Tel: (205) 837·9033 TWX: 810·726·2197
Pioneer/Indiana 6408 Castleplace Drive Indianapolis 46250 Tel: (317) 649·7300 TWX: 810·260·1794
NEW HAMPSHIRE
t Arrow Electronics 12 Beaumont Road Wallingford 08512 Tel: (203) 285·7741 TWX: 710-476-0162
tArrow Electronics 1 Perimeter Drive Manchester 03103 Tel: (603) 868·6968 TWX: 710·220·1564
KANSAS
tHamlltonfAvnet ElectroniCS 9219 Quivira Road Overland Park 66215 Tel: (913) 888·8900
261~ s. 21st Street Phoenix 85034 Tel: (602) 275·7851
tHamllton/Avnet Electronics Commerce Industrial Park Commerce Drive Danbury 08810 Tel: (203) 797·2800 TWX: 71().456-9974
tArrow ElectroniCS Pleasant VaHey Avenue Moorestown 08057 Tel: (215) 928·1600 TWX: 710·897·0829
tWyle Distribution Group 8155 N. 24th Avenue Phoenix 85021 Tel: (602) 995·9165 TWX: 91()'951-4282
tComponent Specialties, Inc. 8369 Nieman Road Lenexa 66214 Tel: (913) 492·3555
tHarvey ElectroniCS 112 Main Street Norwalk 06851 Tel: (203) 853-1515 TWX: 71().468·3373 TWX: 71()'393-8770 FLORIDA
t Arrow Electronics 285 Midland Avenue Saddle Brook 07662 Tel: (201) 797·5800 TWX: 71()'998·2206
CALIFORNIA
Arrow Electronics, Inc. 4801 Benson Avenue Baltimore 21227 Tal: (301,247·S200
Arrow Electronics, Inc. 9511 Ridge Haven Court Ser! Diego 92123 Tel: (714) 56!5-48oo
tHamiitoniAvnel Eiectronics 1 Keystone Ave. Bldg. 36 Cherry Hili 08003 Tel: (609) 424·0100 TWX: 710-897·1405
tArrow Electronics 1001 N.W. 62nd Street Suite 108 Ft. lauderdale 33309 Tel: (305) 776-7790 TWX: 510·955·9458
tHamiiton/Avnet Electronics 7235 Standard Drive Hanover 21076 Tel: (301) 796·5684 TWX: 71()'862·1881
Arrow Electronics, Inc. 720 Palomar Avenue Sunnyvale, California 94086 Tel: (408) 739·3011 TWX: 91().339·9371
tPioneer/Washington 9100 Gaither Road Gaithersburg 20760 Tel: (301) 948·0710 TWX: 710·828'()545
tHarvey Electronics 45 Route 46 Pinebrook 07058 Tel: (201) 227·1282 TWX: 71().734-4382
tAvnet Electronics 350 McCormick Avenue Costa Mesa 92626 Tel: (714) 754-6051 TWX: 91()'59!5-1926
tArrow ElectroniCS 115 Palm Bay Road, NW Suite 10, Bldg. 200 Palm Bay 32905 Tel: (305) 725·1480 TWX: 51().959-8337
HamlltonfAvnet ElectroniCS 10 Industrial Road Fairfield 07006 Tel: (201) 575·3390 TWX: 710·734·4438
Hamllton/Avnet Electronics 1175 Bordeaux Dr. Sunnyvale 94086 Tel: (408) 743·3300 TWX: 910-339·9332
tHamliton/Avnet Electronics 6800 Northwest 20th Ave. Ft. Lauderdale 33309 Tel: (305) 971·2900 TWX: 51()'955-3097
tHamilton/Avnet Electronics 50 Tower Office Park Woburn 01601 Tel: (617) 273·7500 TWX: 710·393-0382
tHamllton/Avnet Electronics 8917 Complex Drive San Diego 92123 Tel: (714) 571-7923 TWX: 910·335·1218
Hamllton/Avnet Electronics 3197 Tech. Drive North St. Petersburg 33702 Tel: (813) 578·3930 TWX: 810·863-0374
tArrow Electronics 960 Commerce Way Woburn 01601 Tel: (617) 933·8130 TWX: 71()'393·6770
tAlilance Electronics Inc. 11030 Cochiti S.E. Albuquerque 67123 Tel: (505) 292·3360 TWX: 91()'989·1151
tHamliton/Avnet Electronics 10912 W. Washington Blvd. Culver City 90230 Tel: (213) 558·2193 TWX: 910·340-6364 or 7073 t Hamilton Electro Sales 3170 Pullman Street Costa Me.a 92626 Tel: (714) 641-4100 TWX: 910·595·2638
tPloneeriOrlando 6220 S. Orange Blossom Trail Suite 412 Orlando 32809 Tel: (305) 859·3600 TWX: 81().85().0177
Harvey/Boston 44 Hartwell Ave. Lexington 02173 Tel: (617) 861·9200 TWX: 710·326·6617
tHamiltonfAvnet Electronics 2524 Baylor Drive, S.E. Albuquerque 87119 Tel: (505) 765·1500
·MICHIGAN
tArrow Electronics 3000 South Winton Road Rochester 14623 Tel: (716) 275·0300 TWX: 510·253·4766
tArrow ElectroniCS 3810 Varsity Drive Ann Arbor 48104 Tel: (313) 971·8220 TWX: 810·223-6020
Arrow Electronics 2979 Pacific Drive Norcross 30071 Tel: (404) 449-8252 TWX: 810·757·4213
tWyle Distribution Group 124 Maryland Street EI Segundo 90245 Tel: (213) 322·3826 TWX: 910-348-7140 or 7111
tArrow Electronics 7705 Maltlage Drive Liverpool 13068 Tel: (315) 652·1000 TWX: 710·545-0230
tPloneer/Michigan 13485 Stamford Livonia 48150 Tel: (313) 525·1800 TWX: 810·242·3271
tHamiltonfAvnet Electronics 6700 1-85 Access Road, No. 11 Suite 1E Norcross 30071 Tel: (404) 448·0800
tWyle Distribution Group 9525 Chesapeake Dr. San Diego 92123 Tel: (714) 565·9171 TWX: 910-335·1590
Arrow Electronics 20 Oser Avenue Hauppauge 11787 Tel: (516)231·1000 TWX: 51().227-6623
tHamilton/Avnet ElectroniCS 32487 Schoolcraft Road Livonia 48150 Tel: (313) 522-4700 TWX: 810·242-8775
tWyle Distribution Group 3000 Bowers Avenue Santa Clara 95052 Tel: (408) 727·2500 TWX: 910·338-0451 or 0298
Arrow Electronics 492 Lunt Avenue P.O. Box 94248 Schaumburg 60172 Tel: (312) 893·9420 TWX: 910·222·1607
tHamilton/Avnet Electronics 333 Metro Park Rochester 14623 Tel: (716) 475·9130 TWX: 51().253·5470
t Arrow Electronics 5230 W. 73rd Street Edina 55435 Tel: (612) 830-1800 TWX: 910·756·2726
Wyle Distribution Group 17872 Cowan Avenue Irvine 92714 Tel: (714) 641·1611
tHamiltonfAvnet Electronics 3901 No. 25th Avenue Schiller Park 60176 Tel: (312) 678·6310 TWX: 910·227.()()60
tHamiltonlAvnet Electronics 16 Corporate Circle E. Syracuse 13057 Tel: (315) 437·2641
tlndustrial Components 5229 Edina Industrial Blvd. Minneapolis 55435 Tel: (612) 831·2885 TWX: 910·756-3153
tWyle Distribution Group 6777 E. 50th Avenue Commerce City 80022 Tel: (303) 287·9811 TWX: 91()'931·0510
tHamiltonlAvnet ElectroniCS 5 Hub Drive Melville, Long Island 11746 Tel: (516) 454·6000 TWX: 51().252-O893
Pioneer/Chicago 1551 Carmen Drive Elk Grove 60007 Tel: (312) 437·9860 TWX: 910·222·1834
tHamllton/Avnet Electronics 7449 Cahill Road Edina 55435 Tel: (612) 941·3801 TWX: 910·576·2720
tHamliton/Avnet Electronics 8785 E. Orchard Road Suite 708 Englewood 80111 Tel: (303) 534·t212 TWX: 91()'931·0510
tMicrocomputer System Technical Demonstrator Centers
September 1980 · tHamllton/Avnst Electronics


u.s. AND CANADIAN DISTRIBUTORS
3065 Bowers Avenue Santa Clara, California 95051 Tel: (408) 987-8080 lWX: 910-338-0028 TELEX: 34-8372
PENNSYLVANIA
WASHINGTON (cant.)
Harvey Electronics P.O. Box 1208 Blnghampton 13902 Tel: (80n 748-82t 1 lWX: 510.252.0893
tArrow ElectronicS 4297 Greenlburg Pike Sult83114 Pittsburgh 15221 Tel: (412) 351-4000
tWyle Dlltrlbutlon Group 1750 132nd Avenue NE Bellevue 98006 Tel: (208) 453-8300 lWX: 91(1.443.2526
tHlmliton/Avnet Eleotronlcl 2870 Sabourin Stre.t St. Laurent H4S 1 M2 Tel: (514) 331-8443 lWX: 610-421-3731
tHarvey Electronics 60 Crossways Park WIst Woodbury 11797 Tel: (518) 921·8700 lWX: 510·221-2184
Pioneer/Pittsburgh 259 Kappa Drive Plttlburgh 15238 Tel: (412) 782·2300 TWX: 710.795-3122
Zantronlo. 5010 Plre Stre.t Montrell H4P 1 P3 Tel: (614) 735-8381 lWX: 05-827·535
tArrow Electronics 430 W, Rawlon AvenUI Oak Creek 53154 T.I: (414) 764-eeoo TWX: 91Q.338.Q028
Harvey/Rocheetar UO Fairport Park Fairport 14450 Tel: (718) 381-7070 TWX: 510.253-7001
Pioneer/Delaware Valley 281 Gibraltar Road Horaham 19044 Tel: (215) 674-4000 lWX: 510-885-8718
tHamlltonJAvnlt ElectronlCI 2975 Moorland Road New Berlin 83151 Tel: (414) 764-4510 lWX: 910·282·1162
TEXAS
Arrow Electronic. 938 Burke Street Wlnston·Salam 27102 Tel: (919) 725-8711 lWX: 51MI22-4785
Arrow Electronics 13715 Gamma Road Dallal 75234 Tel: (214) 388-7500 TWX: 91Q.66105495
ALBERTA
tL.A. V.rah Ltd. 4742 14th Street N.E. Calgary T2D 8L7 Tel: (403) 230·1235 lWX: 018-258-97
PloneeriCarollna 108 Industrial Ave. Greensboro 27406 Tel: (919) 273-4441 lWX: 51Q.925-1114
Arrow Electronics, Inc. 10700 Corporate Drive, Suite 100 Stafford 71471 Tel: (713) 491-4100
Component Specialties Inc. 8222 Jamestown Drive Suite 115 AuoUn 78758 Tol: (512) 637·8922 lWX: 910.674·1320 tComponent Splelaltle., Inc. 10807 Shady Trail, Suite 101 Dallal 75220 Tel: (214) 357-8511 lWX: 910-881-4999
ZantroniC8 9224 27th Avenue Edmonton ,'aN 1 B2 Tel: (403) 483·3014 Zintronlc8 3851 210t N.E. Calgary T2E 6T5 Tel: (403) 230·1422
tHamllton/Avnel Electronics 2803 Industrial Drive Raleigh 27809 Tol: (919) 829-8030
Arrow Electronics 7820 McEwen Road Centorville 45459 Tel: (513) 435-5583 lWX: 810.459·1811
tComponent Specialties, Inc. 8585 Commerce Park Drive, lulte 590 Houston 77038 Tel: (713) 771-7237 TWX: 91Q.981·2422 Hamllton/Avnet Electronics 2401 Rulland AUltln 78758 Tel: (612) 837·8911
tL.A. V.rah Ltd. 2077 Alberta Strael Vancouver V5V 1 C4 Tel: (804) 873-3211 TWX: 61Q.929·1086
Arrow Electronics 8238 Cochran Rd. Solon 44139 Tel: (216) 248-3990 lWX: 810·427-9409
Zenironici 550 Comble St. Vancouver VeB 2N7 Tol: (804) 889·2533 lWX: 04-5077-89
Arrow Electronics 10 Knollerslt Dr. Cincinnati 45237 Tel: (513) 761·5432 TWX: 81Q.481·2870
tHamilton/Avnet ElectroniCS 2111 W. Walnut Hili Lane Irving 78062 Tel: (214) 661-4111 TWX: 910·880-&371 tHamllton/Avnet Electronics 3939 Ann Arbor Drive Houston 17083 Tel: (713) 780·1711
tHamliton/Avnet Electronics 954 Senate Drive Dayton 45459 Tel: (513) 433.Q610 lWX: 910.340·2531
L.A. Varah 1·1832 King Edward Street Winnipeg R2R ON1 Tel: (204) 633-6190 TWX: 07·55-385 Zentronlcl 590 Berry St. Winnipeg R3H OS1 Tel: (204) 775-8881
tHamliton/Avnll Electronics 4588 Emery Indultrl_1 Parkway Warrensville Helghtl 44128 Tel: (216) 831·3500 lWX: 610·427-9452
tHamllton/Avnet ElectroniCS 1585 We.t 2100 South Salt Lake City 841.19 Tel: (601) 972·2800
tPloneer/Daylon 1900 Troy Sireet Dayton 454().i Tel: (513) 236-9900 TWX: 810.458-1622
tPloneer/Cleveland 4800 E. 1310t Street Cloveland 44105 Tel: (216) 587·3500 lWX: 810·422·2210
tAlmacJStroum ElectroniCS 5811 Sixth Ave. South Se.ttle 89108 Tel: (208) 763-2300 TWX: 910·444·2087
tHamliton/Avnel Electronics 1735 Courtwood Cre808nt Ott.wa K2C 3J2 rei: (613) 226·1700 lWX: 053-4971
Arrow Electronics, Inc, Electronics Distribution Division 1058 Andover Park East Tukwila 98189 Tel: (208) 575.Q907
tComponents SpeCialties, Inc. 7920 E. 40th Street TulIa 74145 Tel: (918) 684-2820 lWX: 910-845·2215
tL.A. Varah, Ltd. 505 Kenora Avenue Hamilton L8E 3P2 TIl: (416) 661-9311 TWX: 081·8349
tHamllton/Avnet ElectronlCB 14212 N.E. 21st Street Bellevue 88005 Tel: (208) 453-5844
tZentronl08 141 Catharine Street Ottawa K2P 1C3 Tel: (613) 238-8411 TWX: 083-3636
OREGON tAlmaclStroum Electronics 8022 S.W. Nimbus, Bldg. 7 Beaverton 97005 Tol: (503) 641-9070
tZlntronlol 1355 Meveralde Drive Mlllleeluga, OntariO LOT 1C9 Tel: (416) 678-9000 Telex: 08-983-857
tHamllton/Avnet Electronics 8024 SW Jean Rd. Bldg. C, Suite 10 Lake Oswego 97034 Tel: (503) 835-7848
tMlcrocomputer System Technical eemonstrator Cantara
NEW YORK (contJ


3085 Bowers Avenue INTERNATIONAL SALES AND MARKETING OFFICES Santa Clara, California 95051 Tol: (408)987-8080 TWX: 910·338-0026 TELEX: 34-6372
ARGENTINA
FINLAND
JAPAN
SOUTH AFRICA
Micro Sistemas S,A 9 De Julio 561 Cordoba Tel: 54·51·32·880 TELEX: 51837 Blcea
Oy Finlronic AS Melkonkalu 24 A SF·002'0 Helsinki 21 Tel: 0·6926022 TELEX: 124 224 Flron SF
Asahl Electronics Co, Ltd. KMM Bldg. Room 407 2·14·1 Asano. Kokura Klta·Ku, KitokyuShu Cily 802 Tel: (093) 511·6471 TELEX: AECKY 7126·16
Electronic Building Elements Pine Square 18th Street Hazelwood. Pretoria 0001 Tel: 789221 TELEX: 30181SA
A.J.F. Systems & Components Ply, Ltd. 310 Queen Street Melbourne Victoria 3000 Tel: TELEX:
Hamitton·Avnet Electronics Japan Ltd. YU and YOU Bldg. 1·4 Horidome·Cho Nihonbashi Tel: (03) 662·991 I TELEX: 2523774
Celdis SA' 53, Rue Charles Frerot F·94250 Gentilly Tel: (1) 581 0020 TELEX: 200 485
Interface SA Ronda San Pedro 22, 3 0 Barcelona 10 Tel: 301 7851 TWX: 51508
Ayoyo Electric Corp. Konwa Bldg. 1·12·22, Tsukiji, 1·Chome Chuo·Ku, Tokyo 104 Tel: (03) 543·7711
Warburton Franki Corporale Headquarters 372 Eastern Valley Way Chatswood, New South Wales 2067 Tel: 407·3261 TELEX: AA 21299
Feutrier Rue des Trois Glorieuses F·42270 SI. Priest·en·Jarez Tel: (77) 74 67 33 TELEX: 3000 21
ITT SESA Miguel Angel 16 Madrid 10 Tel: (1l4190957 TELEX: 27707127461
Tokyo Electron Ltd. No.1 Higashikata·Machi M idori·Ku, Yokohama 226 Tel: (045) 471·8811 TELEX: 781·4473
MetrologleO La Tour d'Asnleres 4, Avenue Laurent Cely 92606·Asnieres Tel: 791 44 44 TELEX: 611448
SWEDEN
AB Gosta Backstrom Box 12009 10221 Stockholm Tel: (08) 541 080 TELEX: 10135
Bacher Elektrontsche Geraele GmbH Rolenmulgasse 26 A 1120 Vienna Tel: 10222) 83 63 96 TELEX: 10')'532
KOREA K0,aiT, Dig::a: Room 909 Woonam Bldg. 7, '·KA Bongre·Dong Chung·Ku Seoul Tel: 23·8123 TELEX: K23542 HANSINT
Tekelec Airtronlc' Cite des Bruyeres Rue Carle Vernet F·92310 Sevres Tel: (1) 534 75 35 TELEX: 204552
Reklrsch Eleklronik Garaele GmbH Lichtensteinstrasse 97 A1COO Vienna Tel: \222) 347646 TELEX: 74759
Nordisk Electronlk AB Box 27301 S-10254 Stockholm Tel: (08) 635040 TELEX: 10547
Leewood International, Inc. C.P.O. Box 4046 112-25, Sokong·Oong Chung·Ku, Seoul 100 Tel: 28·5927 CABLE: "LEEWOOD" Seoul
SWITZERLAND
BELGIUM
Electronic 2000 Vertriebs GmbH Neumarkter Sirasse 75 0·8000 Munich 80 Tel: (089) 434061 TELEX: 522561
Induslrade AG Gemsenstrasse 2 Postcheck 80 . 21190 CH·8021 ZUrich Tel: (01) 60 22 30 TELEX: 56788
Inalco Belgium SA Ave. des Croix de Guerre 94 81120 Brussels Tel: (02) 216 01 60 TELEX: 25441
Jermyn GmbH Postfach 1180 0·6077 Cam berg Tel: (06434) 231 TELEX: 484426
Proveedora Electronlca, SA (Proesal Prol. Moctezuma Ole. 24 Col. Romero de Terreros Apdo. Postal 21-139 Mexico 21. D.F. TELEX: 017·72402 SAuLME
TAIWAN
Icotron SA 0511·Av, Mutlnga3650 6 Andar Pirltuba·Sao Paulo Tel: 261·0211 TELEX: 1011) 222 ICO BA
Taiwan Automation Co.' 3d Floor #75, Section 4 Nanking East Road Talpel Tel: 771·0940 TELEX: 11942 TAIAUTO
Kontron Elektronik GmbH Breslauerstrasse 2 8057 Echlng B 0·8000 Munich Tel: (89) 319,011 TELEX: 522122
Inelco Nether. Camp. Sys. BV Turfstekerstraat 63 Aalsmeer 14310 Tel: (2977) 28855 TELEX: 14693
TURKEY
DIN Av. Vic, Mc kenna 204 Casilla 6055 Santiago Tel: 227564 TELEX: 3520003
Neye Enatechnlk GmbH Schillerstrasse 14 D·2085 Quickborn·Hamburg Tel: 104'06) 6'2' TELEX: 02,'3590
Turkelek Electronics Apapurk Boulevard 169 Ankara Tel: 189483
Koning & Hartman Koperwerf 30 2544 EN Den Haag Tel: (70) 210.101 TELEX: 31528
CHINA
GREECE
Comway Microsystems Ltd. Market Street 68·Bracknell, BerkshIre Tel: (344) 51654 TELEX: 847201
C.M. Technologies 525 UniverSIty Avenue Suite A·40 Palo Alto, CA 94301
American Technical Enterprises P.O, Box 156 Athens Tel: 30·1·8811271
W. K. McLean Ltd. P.O. Box 18·065 Glenn Innes, Auckland, 6 Tel: 587·037 TELEX: NZ2763 KOSFY
G.E.C. Semiconductors Ltd. East Lane North Wembley Middlesex HA9 7PP Tel: (01)904·9303/908·4111 TELEX: 28817
HONG KONG
International Computer Machines Carrera 7 No. 72·34 Apdo·Aereo 19403 Bogota 1 Tel: 211·7282 TELEX: 7'3'4INCO
Schmidt & Co. 281F Wing on Center Conn aught Road Hong Kong Tel: 5·455·644 TELEX: 74766 Schmc Hx
Nordlsk Elektronlk (Norge) AIS Postoffice Box 122 Smedsvlngen 4 1364 Hvalstad Tel: 02786210 TELEX: 17546
Jermyn industries Vestry Estate Sevenoaks, Kent Tel: (0732) 501.44 TELEX: 95142
INDIA
Cyprus Eltrom Electronics P,O. Box 5393 Nicosia Tel: 21·27982
Mlcronic Devices 1041109C, Nlrmal Industrial Estate Sian (E) Bombay 400022, India Tel: 486·170 TELEX: 011·5947 MDEV IN
Rapid Recall, Ltd. 6 Soho Mills Ind. Park Wooburn Green Bucks, England Tel: (6285) 24961 TELEX: 849439
Ditram Componentes E Electronica LDA Av. Miguel Bombarda, 133 Lisboa 1 Tel: (19) 545313 TELEX: 14347 GESPIC
STL·Lyngso Komponent AIS Ostmarken 4 OK·2860 Soborg Tel: 10') 67 00 77 TELEX: 22990
Eastronics Ltd.' 11 Rozanis Street P.O, Box 39300 Tel Aviv 61390 Tel: 475151 TELEX: 33638
Genera! Engineers Associates Blk 3, 1003·1008, 10th Floor P.S.A. Multi·Storey Complex Telok BlangahlPasir Panjang Singapore 5 Tel: 271·3163 TELEX: AS23987 GENERCO
Scandinavian Semiconductor Supply AIS Nannasgade 18 OK·2200 Copenhagen Tel: (01) 83 50 90 TELEX' 19037
Eleclronicos TTlCA C.A. Apartado 3223 Caracas 101 Tel: 718·100 TELEX: 21795 TElETIPOS
Eledra 3S S,P.A,· Vlale Elvezia, 18 120154 Milan Tel: (02) 34.93.041·31.85.441 TELEX: 332332
September 1980 · 30·1·8219470 · Componentes y Clrcuitos


3065 Bowers Avenue INTERNATIONAL SALES AND MARKETING OFFICES Santa Clara, California 95051 Tel: (408) 98N!080 "TWX: 910·338·0026 TELEX: 34-6372
AUSTRALIA
GERMANY
ITALY
SWEDEN
Intel Semiconductor Ply., Ltd. Suite 2, Level 15, North Point 100 Miller Street North Sydney, NSW, 2060 Tel: 450-847 TELEX: AA 20097
Intel Semiconductor GmbH· Seldlstrasse 27 8000 M uenchen 2 Tel: (089) 53 691 TELEX: 523 177
Intel Corporation Italla, S.p.A. Corso Semplone 39 1·20145 Milano Tel: 2134.93267 TELEX: 311271
Intel Sweden A.e." Box 20092 Alpvagen 17 $·16120 Bromma Tel: (08) 96 53 90 TELEX: 12261
lritel Semiconductor GmbH Mainzer Strasse 75 6200 Wiesbaden 1 Tel: (06121) 700874 TELEX; 04186183
BELGIUM
Intel Japan K.K. * Flower Hitl·Shlnmachi East Bldg. 1·23·9, Shinmachl, Setagaya·ku Tokyo 154 Tel: (03) 426·9261 TELEX: 781·28426
Intel Corporation S.A. Rue du Moulin a Papler 51 Bolte 1 8·1160 Brussels Tel: (02) 660 30 10 TELEX: 24814
Intel Semiconductor A.G. Forchstrasse 95 CH 8032 Zurich Tel: 1·554502 TELEX: 55789 ich ch
Intel Semiconductor GmbH Wernerstrasse 67 P.O. Box 1460 7012 Fellbach Tel: (0711) 580082 TELEX: 7254626
UNITED KINGDOM
DENMARK
Intel Semiconductor B.V. Cometongebouw Westblaak 106 3012 Km Rotterdam Tel: (10) 149122 TELEX: 22283
Intel Corporation (U.K.) Ltd. * 5 Hospital Street Nantwich, Cheshire CW5 5RE Tel: (0270) 62 65 60 TELEX: 36620
Intel Denmark AlS· Lyngbyvej 32 2nd Floor DK·21oo Copenhagen East Tel: (01) 182000 TELEX: 195e7
Intel Semiconductor GmbH Hohenzollern Strasse 5 3000 Hannover 1 Tel: (0511) 327081 TELEX: 923625
Intel Corporation (U.K.) Ltd. Dorcan House Eldlne Drive Swlndon, Wiltshire SN3 3TU Tel: (0793) 26101 TELEX: 444447 INT SWN
Intel Semiconductor GmbH Oberrathstrasse 2 4000 Duesseldorf 30 Tel: (0211) 651054·6 TELEX: 8586977
Intel Finland OY Sentnerlkuja 3 SF • 00400 Helsinki 40 Tel: (0) 558531 TELEX: 123332
Intel Norway AIS FI.O. Box 92 Hvamveien 4 N·2013 Skjetten Tel: (2) 742 420 TELEX: 18018
FRANCE
Intel Semiconductor Ltd. 99·105 Des Voeux Rd., Central 16F, Unit B Hong Kong Tel: 5·450·847 TELEX: 63869
Intel Corporation, S.A.R.L.· 5 Place de 18 Balance Sllie 223 94528 Rungis Cedex Tel: (01) 687 22 21 TELEX: 270475
Intel Semiconductor Ltd.· FI.O. Box 2404 Haifa Tol: 9721452 4261 TELEX: 92246511
.. Field Application Location
September 1980


u.s. AND CANADIAN SERVICE OFFICES
3065 Bowers Avenue Santa Clara, California 95051 Tel: (408)987-8080 TWX: 91().338'()()26 TELEX: 34-6372
MASSACHUSETIS
TEXAS
Intel Corp. 1601 Old Bayshore Hwy. Suite 345 Burlingame 94010 Tel: (415)892-4782 TWX: 910·375-3310
Intel Corp. 27 Industrial Avenue Chelmsford 01824 Tel: (617) 667-8126 TWX: 710·343·6333
Intel Corp. 313 E. Anderson Lane Suite 314 Austin 78752 Tel: (512)454-3628 TWX: 91()'874·1347
Intel Corp. 2000 E. 4th Street Suite 100 Santa Ana 92705 Tel: (714)835-9842 TWX: 91()'595·1114
Intel Corp. 2925 L.B.J. Freeway Suite 175 Dallas 75234 Tel: (214)241·2820 TWX: 91()'860·5617
Intel Corp. 26500 Northwestern Hwy. Suite 401 Southfield 48075 Tel: (313)353.()92O TWX: 81()'244-4915
Intel Corp. 7670 Opportunity Road San Diego 92111 Tel: (714)268·3563
Intel Corp. 6420 Richmond Avenue Suite 280 Houston 77057 Tel: (713)784·1300 TWX: 910·881·2490
Intel Corp. 7401 Metro Blvd. Suite 355 Edina 55435 Tel: (612)835-6722 TWX: 91 ()'576·2867
Intel Corp. 3375 Scott Blvd. Santa Clara 95051 Tel: (408)987-8086
Intel Corp. 5630 Corbin Avenue Sulle 120 Tarzana 91356 Tel: (213)98,6-9510
Intel Corp. 7700 Leesburg Pike Suite 412 Falls Church 22043 Tel: (703) 734-9707 TWX: 710·931·0625
Intel Corp. 502 Earth City Plaza Suite 121 Earth City 63045 Tel: (314)291,1990
WASHINGTON
Intel Corp. 650 South Cherry Suite 720 . Denver, 80222
Intel Corp. 1603 116th Ave. N.E. Suite 114 Bellevue 98005 Tel: (206)232·7823 TWX: 910-443-3002
Intel Corp. 2450 Lemoine Avenue FI. Lee 07024 Tel: (201)947·6267 TWX: 71().991·6593
WISCONSIN
Intel Corp. 1001 N.W. 62nd Street Suite 406 Ft. Lauderdale 33309 Tel: (305)77Hl600 TWX: 51().956·9407
Intel Corp. Chagrin-Brainard Bldg. #210 28001 Chagrin Blvd. Cleveland 44122 Tel: (216)464·2736 TWX: 81().427·9298
Intel Corp. 150 S. Sunnyslope Road Suite 148 Brookfield 53005 Tel: (414) 784·9060
ILLINOIS
Intel Corp. 6500 Poe Avenue Dayton 45414 Tel: (513)690-5350 TWX: 810·450·2528
Intel Corp. 50 Galaxy Blvd. Unit 12 Rexdale, Ontario M9W4Y5 Tel: (416)675·2105 Telex: 069-83574
Intel Corp. 2550 Golf Road Suite 815 Roiling Meadows 60008 Tel: (312)981-7230 TWX: 910·253-1825 '
KANSAS
Intel Corp. 10700 S.W. Beaverton-Hillsdale Hwy. Bldg, 2, Suite 324 Beaverton 97005 Tel: (503)641-8086 TWX: 910·467-8741
Intel Corp. 39 Hwy. 7, Bells Corners Ottawa, Ontario K2H 8R2 Tel: (613)829·9714 Telex: 053-4115
Intel Corp. 9393 W. 110th Street Suite 265 Overland Park 66210 Tel: (913)642-8080
PENNSYLVANIA
Intel Corp. 275 Commerce Drive 200 Office Center Suite 300 Fort Washington 19034 Tel: (215)542·9444 TWX: 510-651·2077
Intel Corp. 7257 Parkway Drive Hanover 21076 Tel: (301) 79t1-7500 TWX: 710-862·1944
September 1980 · *Fleld Application Location


Pages referenced in this manual — manufacturer, support and downloads.
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.