MC6823UU:3-MCGHnUll() Port A or B Submode 00 (S-Bit Double-Buffered Inputl _ Port A or B Submode lX (Bit 1/01 - Mod", 0 Submode 1 X Mod., 0 SutJrnode 00 A IBI A IBI 8 Bit liD 8 Double .... 1---- Hl IH31 i-I--_~ H2 I H41 In Mode 0, simple Bit 1/0 IS available by programming Sub mode 1 X in the deSired port's control register ThiS submode In Mode 0, double-buffered Input transfers of up to a-bits are available by programming Submode 00 In the desired port's control register.
The operation of H2 and H4 may be selected Ill' programming the Port A and Port B Control Registers, lespectlvely All five double buffered Input handshake op- tlOllS, previously I"entloned In the Port General Information ,md Conventions section, are available. IS Intended for applications In which several Independent deVices must be controlled or monitored. Data written to the associated data register is single-buffered. If the data direc- tion register bit for that pin is a 1 (output), the output buffer IS enabled. If it is ° (input), data written is sllillatched, but IS not available at the pin.
Data read from the data register IS the Instantaneous value of the pin or what was written to the data register, depending on the contents of the data direc- tion register. H1IH31 IS an edge-sensitive status Input pin only and It controls no data-related function The H1SIH3S1 status bit is set following the asserted edge of the Input waveform_ It is reset by the direct method, the RESET Pin being asserted, or when the H 1 2 Enable I H34 Enable) bit IS ° For PinS used as outputs, the data path consists of a single latch driVing the output buffer Data written to the port's data register does not affect the operation of any handshake Pill, status bit, or any other aspect of the Pill.
Output pins may be used Independently of the Input transfer. However, ,ead bus cycles to the data register do remove data from the port Therefore, care should be taken to avoid processor in- Structions that perform unwanted read cycles Refer to PARALLEL PORTS Double-Buffered Input lransfers for a sample timing diagram IFigure 111. H21H4) can be programmed as a Simple status Input Iiden- tical to H1IH3)), or as an asserted or negated output The In- terlocked or pulsed handshake configurations are not available.
MODE 1 - UNIDIRECTIONAL l6-BIT MODE In Mode 1, Ports A and B are concatenated to form a Single 16-blt port The Port B Submode field controls the configuration of both ports_ The pOSSible submodes are Port A or B Submode 01 (S-Bit Double-Buffered Output) -- Port B Submode XO Double-Buffered Input Port B Submode Xl Double-Buffered Output Handshake pins H3 and H4, configured by programming the Port B Control Register, are associated With the 16-blt double-buffered transfer These 16-blt transfers, ar( enabled by the H34 Enable bit of the Port General Control Register Handshake pins Hl and H2 may be used as Simple status in- puts not related to the 16-bit data transfer or H2 may be an output Enabling of the H'l and H2 handshake pins IS done by the Hl2 Enable bit of the Port General Control Register The Port A and B Data Direction Registers operate In each sub- mode.
Along With the submode, they affect the data read and wntten at the data register according to Table 5. They also enable the output buffer associated With each port pin The DMAREO pin may be associated only With H3 Mode 1 can provide convenient, high-speed 16-blt transfers_ The Port A and B data registers are addressed for compatibility with th'e MC68000 Move Penpheral IMOVEP) instrucllon and with the MC68450 DMAC. To take advan- A IBl 8 Hl 'till H21H41 In Mode 0, double-buffered output transfers of up to a bits are available by programming submode 01 in the desired port's control register.
The operation of H2 and H4 may be selected by programming the Port A and Port B Control Registers, respectively All five double-buffered output handshake options, previously mentioned In the Port General Informallon and Conventions seCllon, are available. tage of thiS, Port A should contain the most-significant byte of data and always be read or written by the bus master first. The interlocked and pulsed handshake protocols are keyed to accesses to the Port B Data Register In Mode 1 If It IS ac- cessed last, the 16-blt double-buffered transfers proceed smoothly ® MOTOROLA Semiconductor Products Inc.
17 For pins used as Inputs, data written to the associated data register IS double-buffered and passed to the initial or final output latch, as usual, but the output buffer IS disabled. Refer to PARALLEL PORTS Double-Buffered Output Transfers for a sample timing diagram IFlgure 12)