PA 8257/8257-5 PROGRAMMABLE DMA CONTROLLER = MCS-85® Compatible 8257-5 a Single TTL Clock a 4-Channel DMA Controller = Single +5V Supply a Priority DMA Request Logic = Auto Load Mode w Channel Inhibit Logic a Available in EXPRESS a Terminal Count and Modulo 128 - Standard Temperature Range Outputs The Intel’ 8257 is a 4-channel direct memory access (DMA) controller. It is specifically designed to simplify the transfer of data at high speeds for the Intel® microcomputer systems. Its primary function is to generate, upon a peripheral request, a sequential memory address which will allow the peripheral to read or write data directly to or from memory. Acquisition of the system bus in accomplished via the CPU's hold function. The 8257 has priority logic that resolves the peripherals requests and issues a composite hold request to the CPU. It maintains the OMA cycle count for each channel and outputs a control signal to notify the peripheral that the programmed number of OMA cycles is complete. Other output control signals simplify sectored data transfers. The 8257 represents a significant savings in component count for OMA-based microcomputer systems and greatly simplifies the transfer of data at high speed between peripherals and memories. — oro 3 RRS Figure 2. Pin Configuration intel 8257/8257-5 FUNCTIONAL DESCRIPTION Block Diagram Description 1. DMA Channels Genera! The 8257 provides four separate DMA channels (labeled The 8257 is a programmable, Direct Memory Access CH-0 to CH-3). Each channel includes two sixteen-bit (DMA) device which, when coupled with a single Intel® registers: (1) a DMA address register, and (2) a termi- 8212 I/O port device, provides a complete four-channel nal count register. Both registers must be initialized DMA controller for use in Intel® microcomputer systems. before a channel is enabled. The DMA address register is After being initialized by software, the 8257 can transfer a loaded with the address of the first memory location to be block of data, containing up to 16,384 bytes, between accessed. The value loaded into the low-order 14-bits of memory and a peripheral device directly, without further the terminal count register specifies the number of DMA intervention required of the CPU. Upon receiving a DMA cycles minus one before the Terminal Count (TC) output transfer request from an enabled peripheral, the 8257: is activated. For instance, a terminal count of 0 would cause the TC output to be active in the first DMA cycle for 1. Acquires control of the system bus. that channel. In general, if N = the number of desired DMA cycles, load the value N-1 into the low-order 14-bits of the 2. Acknowledges that requesting peripheral which is terminal count register. The most significant two bits of the connected to the highest priority channel. terminal count register specify the type of DMA operation 3. Outputs the least significant eight bits of thememory for that channel. address onto system address lines Ao-A7, Outputs the most significant eight bits of the memory address to the 8212 I/O port via.the data bus (the 8212 places these address bits on lines Ag-Ay5), and 4. Generates the appropriate memory and !/O read/ write control signals that cause the peripheral to receive or deposit a data byte directly from or to the addressed location in memory. The 8257 will retain control of the system bus and repeat the transfer sequence, as long asa peripheral maintains its DMA request. Thus, the 8257 can transfer a block of data to/from a high speed peripheral (e.g., a sector of dataona floppy disk) in a single “burst”. When the specified number of data bytes have been transferred, the 8257 activates its Terminal Count (TC) output. informing the CPU that the operation is complete. The 8257 offers three different modes of operation: (1) OMA read, which causes data to be transferred from memory to a peripheral; (2) OMA write, which causes data to be transferred trom a peripheral to memory; and (3) DMA verify, which does not actually involve the transter of data. When an 8257 channel is in the DMA verify mode, it will respond the same as described for transfer operations, except that no memory or I/O read/write contro! signals will be generated, thus preventing the transter of data. The 8257, however, will gain control of the system bus and will acknowledge the peripherals OMA request for each DMA cycle. The peripheral can use these acknowledge signals to enable an internal access of each byte of a data block in order to execute some verification procedure, such as the accumulation of a CRC (Cyclic Redundancy Code) checkword. For example, a block of DMA verity cycles might follow a block of DMA read cycles (memory to peripheral) to allow the peripheral to verify its Figure 3. 8257 Block Diagram Showing DMA newly acquired data Channels 2-104 ‘AFN-018400 ~ intel 8257/8257-5, These two bits are not modified during can be changed between OMA blocks. a DMA cycle, but [ess | ov | ree oF ows oPenarion Each channel accepts a DMA Request (DRQn) input and Verity DMA Cycle provides a DMA Acknowledge (DACKn) output Write OMA Cycle Read OMA Cycle (DRQ 0-DRQ 3) (legal) OMA Request: These are individual asynchronous chan- nel request inputs used by the peripherals to obtain a DMA cycle. If not in the rotating priority mode then DRQ 0 has the highest priority and ORQ 3 has the lowest. A request can be generated by raising the request line and holding it high until OMA acknowledge. For multiple OMA cycles (Burst Mode) the request line is held high until the OMA acknowledge of the last cycle arrives. (DACK 0 - DACK 3) DMA Acknowledge: An active low level on the acknow!- edge output informs the peripheral connected to that channel that it has been selected for a DMA cycle. The DACK output acts as a “chip select” for the peripheral device requesting service. This line goes active (low) and inactive (high) once for each byte transferred even if a burst of data is being transferred. 2. Oata Bus Buffer This three-state, bi-directional, eight bit buffer interfaces the 8257 to the system data bus. {Dq-0;) Data Bus Lines: These are bi-directional three-state lines. When the 8257 is being programmed by the CPU, eight- bits of data for a DMA address register, a terminal count register or the Mode Set register are received on the data bus. When the CPU reads a OMA address register, a terminal count register or the Status register, the data is sent to the CPU over the data bus. During DMA cycles (when the 8257 is the bus master), the 8257 will output the most significant eight-bits of the memory address (from ‘one of the OMA address registers! to the 8212 latch viathe data bus. These address bits will be transferred at the beginning of the DMA cycle; the bus will then be released to handle the memory data transfer during the balance of Figure 4. 8257 Block Diagram Showing Data Bus the DMA cycle. Buffer 2-105 ‘AFN.016400 8257/8257-5 3. Read/Write Logic Ag-Ad) When the CPU is programming or reading one of the Address Lines: These least significant four address lines 8257's registers (i.e., when the 8257 is a “slave” device on are bi-directional. In the “slave” mode they are inputs the system bus), the Read/Write Logic accepts the /O which select one of the registers to be read or Read (I/F) or /O Write (OW) signal, decodes the least Programmed. In the “master” mode, they are outputs significant four address bits, (Ag-A3), and either writes which constitute the least significant four bits of the 16-bit the contents of the data bus into the addressed register memory address generated by the 8257. (it TOW is true) or places the contents of the addressed register onto the data bus (if TOR is true). (cs) During DMA cycles (i.e., when the 8257 is the bus Chip Select: An active-low input which enables the 1/O master”), the Read/Write Logic generates the 1/O read Read or I/O Write input when the 8257 is being read or and memory write (OMA write cycle) or I/O Write and programmed in the “slave” mode. In the “master” mode, memory read (DMA read cycle) signals which control the CS is automatically disabled to prevent the chip from data link with the peripheral that has been granted the selecting itself while performing the OMA function. DMA cycle. Note that during DMA transfers Non-DMA I/O devices 4. Control Logic should be de-selected (disabled) using “AEN” signal to This block controls the sequence of operations during all inhibit 1/O device decoding of the memory address as an erroneous device address. OMA cycles by generating the appropriate control signals and the 16-bit address that specifies the memory location (WOR) to be accessed 1/O Read: An active-low, bi-directional three-state line. In the “slave” mode, it is an input which allows the 8-bit Status register or the upper/lower byte of a 16-bit DMA address register or terminal count register to be read. In the “master” mode, I/OR is a control output which is used to access data from a peripheral during the DMA write cycle. (wow) 1/0 Write: An active-low, bi-directional three-state line. In the “slave” mode, it is an input which allows the contents of the data bus to be loaded into the 8-bit mode set register or the upper/lower byte of a 16-bit DMA address register or terminal count register. In the “master” mode, i/OWis a control output which allows data to be output to a peripheral during a DMA read cycle (CLK) Clock Input: Generally from an Intel® 8224 Clock Gen- erator device. (¢2 TTL) or Intel® 8085A CLK output (RESET) Reset: An asynchronous input (generally from an 8224 or 8085 device) which disables all DMA channels by Figure 5. 8257 Block Diagram Showing clearing the mode register and 3-states all control lines. Read/Write Logic Function 2-106 ‘AFN-918400 intel 8257/8257-5 (Ag-Ar) (Tc) Address Lines: These four address lines are three-state Terminal Count: This output notifies the currently should be outputs which constitute bits 4 through 7 of the 16-bit selected peripheral that the present OMA cycle memory address generated by the 8257 during all OMA the last cycle for this data block. If the TC STOP bit in the Mode Set register is set, the selected channel will be cycles. automatically disabled at the end of that OMA cycle. TCis activated when the 14-bit value in the selected channel's (READY) terminal count register equals zero. Recall that the low- Ready: This asynchronous input is used to elongate the order 14-bits of the terminal count register should be memory read and write cycles in the 8257 with wait loaded with the values (n-1), where n =the desired number states if the selected memory requires longer cycles. of the DMA cycles. READY must conform to specified setup and hold times. (MARK) Modulo 128 Mark: This output notifies the selected (HRQ) peripheral that the current OMA cycle is the 128th cycle Hold Request: This output requests control of the since the previous MARK output. MARK always occurs at system bus. In systems with only one 8257, HRQ will 128 (and all multiples of 128) cycles trom the end of the normally be applied to the HOLD input on the CPU. HRQ data block. Only if the total number of DMA cycles (n) is must conform to specified setup and hold times. evenly divisable by 128 (and the terminal count register was loaded with n-1), will MARK occur at 128 (and each (HLDA) succeeding multiple of 128) cycles from the beginning of Hold Acknowledge: This input from the CPU indicates the data block. that the 8257 has acquired control of the system bus (MEMR) Memory Read: This active-low three-state output is used to read data from the addressed memory location during OMA Read cycles. (MEMW) Memory Write: This active-low three-state output is used to write data into the addressed memory location during DMA Write cycles. (ADSTB) Address Strobe: This output strobes the most significant byte of the memory address into the 8212 device from the data bus. (AEN) Address Enable: This output is used to disable (float) the System Data Bus and the System Control Bus. It may also be used to disable (float) the System Address Bus by use of an enable on the Address Bus drivers in systems to inhibit non-DMA devices from responding during OMA cycles. It may be further used to isolate the 6257 data bus from the System Data Bus to facilitate the transfer of the8 most significant OMA address bits over the 8257 data !/O pins without subjecting the System Data Bus to any timing constraints for the transfer. When the 8257 is used in an W/O device structure (as opposed to memory mapped), this AEN output should be used to disable the selection of an I/O device when the OMA address is onthe address bus. The I/O device selection should be determined by the DMA acknowledge outputs for the 4 Figure 6. 8257 Block Diagram Showing Control! channels. Logic and Mode Set Register 2-107 AFN-018400, intel 825718257-5 5. Mode Set Register Note that rotating priority will prevent any one channel When set, the various bits in the Mode Set register enabie from monopolizing the DMA mode; consecutive: DMA each of the four DMA channels, and allow four different cycles will service different channels if more than one options for the 8257: channel is enabled and requesting service. There is no overhead penalty associated with this mode of opera- ~ tion. All DMA operations began with Channel 0 initially assigned to the highest priority for the first DMA cycle. Enabler AUTOLOAD Enables TC STOP Extended Write Bit 5 Enables EXTENDED WRITE Enables ROTATING PRIORITY. {f the EXTENDED WRITE bitis set. the duration of both the MEMW and {7OW signals is extended by activating them The Mode Set register is normally programmed by the earlier in the DMA cycle. Data transfers within micro- CPU after the DMA address register(s) and terminal computer systems proceed asynchronously to allow count register(s) are initialized. The Mode Set Register is use of various types of memory and I/O devices with cleared by the RESET input, thus disabling all options, different access times. If a device cannot be accessed inhibiting all channels, and preventing bus conflicts on within a specific amount of time it returns a “not ready” power-up. A channel should not be left enabled unless its indication to the 8257 that causes the 8257 to insert one or OMA address and terminal count registers contain valid more wait states in its internal sequencing. Some devices values; otherwise, an inadvertent OMA request (DROQn) are fast enough to be accessed without the use of wait from a peripheral could initiate a DMA cycle that would states, but if they generate their READY response with the destroy memory data. leading edge of the i7OW or MEMW signal (which generally occurs late in the transfer sequence), they The various options which can be enabled by bits in the would normally cause the 8257 to enter a wait state Mode Set register are explained below: because it does not receive READY in time. For systems with these types of devices. the Extended Write option ‘Rotating Priority Bit 4 provides alternative timing for the 1/O and memory write In the Rotating Priority Mode, the priority of the channels signals which allows the devices to return an early READY has a circular sequence. After each DMA cycle. the and prevents the unnecessary occurrence ofwait statesin priority of each channel changes. The channel which had the 8257, thus increasing system throughput just been serviced will have the lowest priority TC Stop Bit 6 If the TC STOP bit is set, a channet is disabled (i.e., its enable bit is reset) after the Terminal Count (TC) output goes true, thus automatically preventing further OMA operation on that channel. The enable bit for that channel must be re-programmed to continue or begin another DMA operation. If the TC STOP bit is not set. the occurrence of the TC output has no effect on the channel enable bits. In this case. it is generally the responsibility of the peripheral to cease DMA requests in order to terminate a DMA operation. If the ROTATING PRIORITY bit ts not set (set to a zero). each DMA channel has a fixed priority. In the fixed priority Auto Load Bit 7 mode, Channet 0 has the highest priority and Channel 3 The Auto Load mode permits Channel 2 to be used for has the lowest priority. If the ROTATING PRIORITY bit 1s repeat block or block chaining operations, without set to a one, the priority of each channel changes after immediate software intervention between blocks. Chan- each DMA cycle (not each OMA request). Each channel nel 2 registers are initialized as usual for the first data moves up to the next highest priority assignment. while block; Channel 3 registers, however, are used to store the the channe! which has just been serviced moves to the block re-initialization parameters (DMA starting address, lowest priority assignment terminal count and OMA transfer mode). After the first block of DMA cycles is executed by Channel 2 (.e., after CHANNEL—>|CH-0|CH-1/CH-2/CH-: the TC output goes true), the parameters stored in the JUST SERVICED Channel 3 registers are transferred to Channel 2 during an “update” cycle. Note that the TC STOP feature, described CH-1 cH-2 ICH-3 |CH-0) above. has no effect on Channel 2 when the Auto Load bit is set (CH-3/CH-0/CH-1 |CH-2) 2-108 ‘AFN-018400 8257/8257-5 if the Auto Load bit is set, the initial parameters for Channel 2 are automatically duplicated in the Channel 3 registers when Channel 2 is programmed. This permits repeat block operations to be set up with the programming TC STATUS FOR CHANNEL 0 UPOATE FLAG TC STATUS FOR CHANNEL 1 of a single channel. Repeat block operations can be used |_______T¢ STATUS FOR CHANNEL 2 in applications such as CRT refreshing. Channels 2and3 TC STATUS FOR CHANNEL 3 can still be loaded with separate values if Channel 2 is loaded before loading Channel 3. Note that in the Auto Load mode, Channel 3 is still available to the user if the Channel 3 enable bit is set, but use of this channel will The TC status bits are set when the Terminal Count (TC) change the values to be auto loaded into Channel 2 at output is activated for that channel. These bits remain set update time. All that is necessary to use the Auto Load until the status register is read or the 8257 is reset. The feature for chaining operations is to reload Channel 3 UPDATE FLAG, however, is not affected by a status registers at the conclusion of each update cycle with the register read operation. The UPDATE FLAG can be new parameters for the next data block transfer cleared by resetting the 8257, by changing to the non: juto Each time that the 8257 enters an update cycle, the update load mode (i.e., by resetting the AUTO LOAD bit in the flag in the status register is set and parameters in Channel Mode Set register) or it can be left to clear itself at the 3 are transferred to Channel 2, non-destructively for completion of the update cycle. The purpose of the Channel 3. The actual re-initialization of Channel 2occurs UPDATE FLAG is to prevent the CPU from inadvertently at the beginning of the next channel 2 DMA cycle afterthe skipping a data block by overwriting a starting address or TC cycle. This will be the first OMA cycle of the new data terminal count in the Channel 3 registers before those block for Channel 2. The update flag is cleared at the parameters are properly auto-loaded into Channel 2. conclusion of this DMA cycle. For chaining operations. the update flag in the status register can be monitored by the CPU to determine when the re-initialization process The user is cautioned against reading the TC status has been completed so that the next block parameters can register and using this information to reenable chan- be safely loaded into Channel 3. nels that have not completed operation. Untess the DMA channels are Inhibited a channel could reach ter- 6. Status Register minal count (TC) between the status read and the mode The eight-bit status register indicates which channels write. DMA can be inhibited by a hardware gate on the have reached a terminal count condition and includes the HRQ line or by disabling channels with a mode word update flag described previously before reading the TC status. + PARAME tp Ly PARAMETERS, PARAMETERS, zi FOR BLOCK 1 FOR BLOCK 2 FOR BLOCK 3 CHANNEL 2 UPDATE ae =e CHANNEL 2 UPOATE ee cinta \ n Le a ft L ac aeenel [| cara ntoce2 ATA BLOCK 3—= fe \ ee st UPOATE FLAG Figure 7. Autoload Timing 2-109 ‘AFN.016400 intel 8257/8257-5 OPERATIONAL SUMMARY Programming and Reading the 8257 Registers There are four pairs of “channel registers”: each pair consisting of a 16-bit DMA address register and a 16-bit terminal count register (one pair for each channel). The 8257 also includes two “general registers": one 8-bit Mode Set register and one &-bit Status register. The Program Mode Set registers are loaded or read when the CPU executes a Register write or read instruction that addresses the 8257 device and the appropriate register within the 8257. The 8228 generates the appropriate read or write control signal (generally 1/OR or 1/OW while the CPU places a 16-bit four channels. Because the “channel registers” are 16- address on the system address bus, and either outputs the bits, two program instruction cycles are required to toad data to be written onto the system data bus or accepts the or read an entire register. The 8257 contains a first/last data being read from the data bus. All or some of the most (F/L) flip flop which toggles at the completion of each significant 12 address bits As-Ais (depending on the channel program or read operation. The F/L flip flop systems memory, I/O configuration) are usually decoded determines whether the upper or lower byte of the register {o produce the chip select (CS) input to the 8257. An I/O is to be accessed. The F/L flip flop is reset by the RESET Write input (of Memory Write in memory mapped 1/0 input and whenever the Mode Set register is loaded. To configurations, described below) specifies that the maintain proper synchronization when accessing the addressed register is to be programmed, while an I/O “channel registers” all channel command instruction Read input (or Memory Read) specifies that the addressed operations should occur in pairs, with the lower byte of a register is to be read. Address bit 3 specifies whether a register always being accessed first. Do not allow CS to “channel register” (A; = 0) or the Mode Set (program only)/Status (read only) register (A; = 1) isto be accessed. clock while either i7OR or i7OW is active, as this will cause an erroneous F/L flip flop state. In systems utilizing an The least significant three address bits, Ay-A2, indicate the interrupt structure, interrupts should be disabled prior to specific register to be accessed. When accessing the any paired programming operations to prevent an Mode Set or Status register, Ao-A2 are all zero. When interrupt from splitting them. The result of such a split accessing a channel register bit Ao differentiates between would leave the F/L F/F in the wrong state. This problem is the DMA address register (Ao = 0) and the terminal count Particularly obvious when other DMA channels are register (Ao = 1), while bits A, and A specify one of the Programmed by an interrupt structure. 8257 Register Selection ADDRESS INPUTS L *BI-DIRECTIONAL DATA BUS REGISTER BYTE FL pac as|Az] Ar |Ao Dy|06|Ds|04 |05|O2 |Dy |Oo CH-0 OMA Address LsB o{o}]ojo ° Ay | Ae | As | Ag} As | Az | Ar | Ao MSB o o} ojo 1 Ais | Ara] Ara] Ariz] Ary |Ato] Ao | Ae CH-0 Terminal Count isB oj} ojo 1 ° C7 | Ce | Cs | Ca] C3] C2 | Cr | Co MSB o}]o ° 1 1 Rd | Wr | Cy3 | Ci2] Cir] Cro | Co | Ce CH-1 DMA Address .sB nas oj{o|]1|o lal +4 o1 |Same as Channel 0 CH-1 Terminal Count se ofoja|{4 ° use ofojiajfa 1 CH-2 DMA Address ise use oj}1rlojo ell ast cee hes °1 | Same as Channel 0 CH-2 Terminal Count .sB ofr}ofa ° wsB o]+jof.s 1 CH-3 DMA Address .sB use o}a}arfo le shades °1 | Same asChannel 0 CH-3 Terminal Count .sB ofafa]a ° MsB oj;rfria 1 MODE SET (Program only) - 1{o]o]o ° au |tcs| Ew| RP |ENS |EN2]EN1 |ENO STATUS (Read only) - rfojolfo ° o | o | o | up |tc3|tc2| rc1 |TCo ‘Ag-A15: DMAStarting Address, Co-C13: Terminal Count value (N-1), RdandWr:DMAVerity (00),Write(01)orRead (10)cycleselection, AL: Auto Load, TCS: TC STOP, EW: EXTENDED WRITE, RP: ROTATING PRIORITY, EN3-ENO: CHANNEL ENABLE MASK, UP: UPDATE FLAG, TC3-TCO: TERMINAL COUNT STATUS BITS. 2-110 ‘AFN.018400 ~ 8257/8257-5 read and write commands and byte transfer occurs be- tween the selected /O device and memory. After the transfer is complete, the DACK line is set HIGH and the HR@ line is set LOW to indicate to the CPU that the bus is now free for use. ORQ must remain HIGH until DACK st is issued to be recognized and must go LOW before S4 SAMPLEOROnLINES, SETHROIFORG 1 of the transfer sequence to prevent another transfer from occuring. (See timing diagram.) Consecutive Transfers If more than one channel requests service simultaneous- ly, the transfer will occur in the same way a burst does. so SAMPLE HLOA No overhead is incurred by switching from one channel RESOLVE DR OnPRIORITIES. to another. In each S4 the DRQ lines are sampled and the highest priority request is recognized during the next transfer. A burst mode transfer in a lower priority channel! will be overridden by a higher priority request. Once the high priority transfer has completed control sv will return to the lower priority channel if its ORQ is still PRESENT ANO LATCH UPPER ADORESS active. No extra cycles are needed to execute this se- PRESENT LOWER ADORESS quence and the HRQ line remains active until all DRQ lines go LOW. Control Override 32 The continuous DMA transfer mode described above ACTIVATE READ COMMANO can be interrupted by an external device by lowering the ADVANCED WRITE COMMAND HLDA line. After each DMA transfer the 8257 samples ‘AND OACKa the HLDA line to insure that it is still active. If it is not active, the 8257 completes the current transfer, releases the HRQ line (LOW) and returns to the idle state. If DRQ lines are still active the 8257 will raise the HRQ line in 3 the third cycle and proceed normally. (See timing ACTIVATE WRITE COMMAND diagram.) ACTIVATE MARK ANO TC IF APPROPRIATE Not Ready The 8257 has a Ready input similar to the 8080A and the 8085A. The Ready line is sampled in State 3. If Ready is “ LOW the 8257 enters a wait state. Ready is sampled dur- ing every wait state. When Ready returns HIGH the 8257 proceeds to State 4 to complete the transfer. Ready is RESOLVE OROn PRIORITIES used to interface memory or I/O devices that cannot AESET HAG IF HLOA * 008 ORO + 0 meet the bus set up times required by the 8257. Speed The 8257 uses four clock cycles to transfer a byte of 1 DROn REFERS TO ANY DRO LINE ON AN ENABLED OMA CHANNEL. data. No cycles are lost in the master to master transfer maximizing bus efficiency. A 2MHz clock input will Figure 8. DMA Operation State Diagram allow the 8257 to transfer at a rate of 500K bytes/second. Memory Mapped W/O Configurations The 8257 can be connected to the system bus as amemory DMA OPERATION device instead of as an 1/O device for memory mapped 1/0 Singlé Byte Transfers configurations by connecting the system memory control lines to the 8257's ‘I/O contro! lines and the system 1/O A single byte transfer is jated by the W/O device rais- control lines to the 8257's memory control lines. ing the DRQ line of one channel of the 8257. If the chan- nel is enabled, the 8257 will output a HRQ to the CPU. This configuration permits use of the 8080's considerably The 8257 now waits until a HLDA is received insuring larger repertoire of memory instructions when reading or that the system bus is free for its use. Once HLDA is loading the 8257's registers. Note that with this received the DACK line for the requesting channel is ac- connection, the programming of the Read (bit 15) and tivated (LOW). The DACK line acts as a chip select for Write (bit 14) bits in the terminal count register will have a the requesting VO device. The 8257 then generates the different meaning 2-111 ‘AFN-018400 intel 8257/8257-5 BIT 15 BIT 14 READ WRITE OMA Verity Cycle DMA Read Cycle DMA Write Cycle Megat Figure 9. System Interface for Memory Figure 10. TC Register for Memory Mapped Mapped I/O VO Only SYSTEM APPLICATION EXAMPLES "ADDRESS BUS (OMA CONTROLLER, q 'ADORESS BUS, ¢ if a ft L DATA BUS SysTEM RAM MEMORY | TELEPHONE ‘LUNES Figure 12. High-Speed Communication Controller sets as . oo 2-112 Arw.016400 - A.C. TESTING INPUT, OUTPUT WAVEFORM A.C. TESTING LOAD CIRCUIT (wpuTiOUTPUT oben sex is AC TESTING. INPUTS ARL DRIVENAT24vFORALOGIC 1 ANDO 45V FOR ALOGIC. 0. TIMING MU ASUREMUNTS ARE MADE AT 20V FOR A LOGIC 1 AND BV FOR A LOGIC 0 Cy. INCLUDES NGCAPACITANCE Tracking Parameters signals that follow similar Signals labeled as Tracking Parameters (footnotes 1 and 5-7 under A.C. Specifications) are process but the paths through the silicon die. The propagation speed of these signals varies in the manufacturing relationship between all these parameters is constant. The variation is less than or equal to 50 ns. Suppose the following timing equation is being evaluated, Tain) + Taax 3 150 ns and only minimum specifications exist for Ta and Tg. tf Tagain) Is used, and if T, and Tg are tracking parameters, Taywax) Can be taken as Tain) + 50 ns. Taminy + Teamin” + 50ns) = 150 ns *if T, and Tg are tracking parameters WAVEFORMS—PERIPHERAL MODE — WRITE [eater —| btwast ‘cuir SELECT \ f READ AOORESS BUS \ | x a a a7 cour SELECT os 4 = 3 x ‘ Dara Bus ~ ADDRESS BUS b t 2 t i 2-113 AFN-018400_ intel 8257/8257-5 WAVEFORMS—DMA emia CONSECUTIVE CYCLES AND BURST MODE SEQUENCE so} | es] 2] sp ays sf sf. sy syst cLock Tos—| onao3 nao tw —| ! moa i Aen Tass} ADA 7 (LOWER ADR}— — — ~_—— Taos —=| DATAO 7 (UPPER AOR} — — — AOR STB. oaeKo3 EMTAOTORO— — — aemROWR— — — READY TomanK cock zi MOTE: Thechockwovetorm | - | : | fa Sse [pe ‘| | pie | | . deotemad eran. oss | St so st 2 sls st z-| os “ s s st Tee8257requiresonly oneclostmet. 7 — == ‘ A, 2-1145 : “AFN-018400 intel 8257182575 WAVEFORMS (Continued) CONTROL OVERRIDE SEQUENCE ase Mics a | \ ! i Lock oraos — =| te Ta 7 BE SF NOT READY SEQUENCE ice OAK OD \ : / MEM ADIORD MEMWRHq OWR = —— Tas ;'Im Tas Aeaoy TcMaRK EIA, 2-115 AFN-016400 intel 8257/8257-5 Figure 13. Detailed System Interface Schematic tenes tte 2-116 AFN010400 - ABSOLUTE MAXIMUM RATINGS* - 7: *NOTICE: 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 .. tion of the device at these or any other conditions above Storage Temperature .. those indicated in the operational sections of this specifi- Voltage on Any Pin cation is not implied. Exposure to absolute maximum With Respect to Ground rating conditions for extended periods may affect device Power Dissipation reliability. D.C. CHARACTERISTICS (8257: Ta = 0°C to 70°C, Vcc = 5.0V +5%, GND = OV) (8257-5: Ta = 0°C to 70°C, Voc = 5.0V +10%, GND = OV) Symbol Parameter Min. Max. Unit Test Conditions Vie Input Low Voltage -0.5 0.8 Volts Vin [input High Voltage 2.0 Vect.5_| Volts Vou Output Low Voltage 045 | Volts | fon = 1.6 mA Vou | Output High Voltage 24 Vee | Volts | lou=-150uA for AB, OB and AEN lo =-80yA for other: VaH HRQ Output High Voltage 33 Vec | Volts | ton = -80A lec Voc Current Drain | 120 mA fie Input Leakage £10 uA | OVSVin