MUXl23UU:l-MllXl2)(IL l() TABLE 5 - MODE 1 PORT DATA PATHS Mode Register Register DDR=O DDR=1 DDR-O DDR-l Read Port AI B Write Port AI B 1, Port B FIL,D.B FOL FOL, S.B. FOL, S. B. Submode XO Note 3 Note 2 Note 2 1, Port B Pin FOL IOLlFOL, IOLlFOL, Submode Xl Note 3 DB, DB, Note 1 Note 1 Note 1 Data written to Port A goes to a temporary latch. When the Port B data register IS later wrrtten, Port A data IS transferred to lOll FOL Note 2: Data IS latched In the output data registers (final output latch I and will be single buffered at the pin If the DDR IS 1 The output buffers will be turned off If the DDR IS 0 Note 3:
The output drrvers that connect the final output latch to the pins are turned on. AbbreViations IOL - Initial Output Latch FOL - Final Output Latch FI L - Final Input Latch S.B. - Single Buffered D.B. - Double Buffered DDR - Data Drrectlon Register Port B Submode XO (16-Bit Double-Buffered Input) - Port B Submode Xl (l6-Bit Double-Buffered Output) - .... ..--HI t-t--_H2 ~ I A ,,,,1 K MLlrlt> 1 Purl B SutH!HHlt' Xl - J-t---H) t-~-H2 ~A"'''IB r----V' ' Il:il 1161 latdlt)t1. l),lUtJlt' Bufteff'(i Input I- H 3 _I----H.1 '--- LJlllA)It' Huitt-or ~'d Output t--- H3 ,--104-_H.l '--- In Mode 1 Port B Submode XQ, double-buffered Input transfers of up to 16 bits may be obtained.
The level of all 16 pins IS asynchronously latched with the asserted edge of f-l3. The processor may check H3S status bit to determine If new dda IS present The DMAREO pin may be used to signal a DMA controller'to empty the Input buffers. Regardless of the bus master, Port A data should be read frrst (Actually, Port A data need not be read at all.
I Port B data should be read last The operation of the Internal handshake controller, the H3S bit, and DMAREO are keyed to the reading of the Port B data register !The MC68450 DMAC can be programmed to perform the exact transfers needed for compatibility With the PlfT ) H4 may be programmed for all five of the handShake options mentioned In the Port General Information and Con- ventions section For pins used as outputs, the data path consists of a single latch drrvlng the output buffer. Data wrrtten to the port's data register does not affect the operation of any handshake pin, status bit, or any other aspect of the PlfT, Thus, output pins may be used ,ndependently of the Input transfer.
However, read bus cycles to the Port B Data Register do remove data, so care should be taken to avoid unwanted read cycles Refer to PAR/\LLEL PORTS Double Buffered Inpu) Transfers for a sample timing diagram (Figure 111 In Mode 1 Port B Submode Xl, double buffered output transfers of up to 16 bits may be obtamed Data IS wlltten by the bus master (processor or DMA controller) In twc bvtes The frrst byte (most-slgn,f,cantlls wrrtten to the Port A Delta Register It IS stored In a temporar,.
latch until the nex t byte IS wrrtten to the Port B Data Register Then all 16 bits df,' transferred to the final output latches of Ports A and B Both options for Interpretation of the H3S status bit, ment,o"ed In Port General Information and Comments section, dre available and apply to the 16-blt port as a whc'le The DMAREO pin may be used to Signal a DMA controller to transfer another word to the port output latches !The MC68450 DMAC can be programmed ta perform the exact transfers needed for compatibility With the PI/ T I H4 may be programmed for all five of the handshake options mentioned In the Port General 'Information and Comments secllOn IS double-buffered and passed 10 the mltlal or final output latch, as usual, but the output buffer IS disabled Refer to PARALLEL PORTS Double-Buffered Input/Out- put Transfer for a sample tlrrilng diagram (Figure 121 For pins used as inputs, data wrrtten to either data register ~ MOTOROLA Semiconductor Products Inc.
'C:Y 18