MC68230LS·MC68230L 10 Port Service Request Register (PSRR) - 6 I 5 4 I 3 2 I II 0 PSRR Port Interrupt Priority Control 2 1 Q. Highest ............................ Lowest - 0 o 0 H1S H2S H3S H4S 0 0 1 H2S H1S H3S H4S 0 1 0 H1S H2S H4S H3S 0 1 1 H2S H1S H4S H3S 1 0 0 H3S H4S H1S H2S 1 0 1 H3S H4S H2S H1S 1 1 0 H4S H3S H1S H2S 7 SVCRO Select Interrupt PFS Port Interrupt Priority Control The Port Service Request Register controls other functions that are common to the overall operation to the ports. It is composed of four major fields:
bit 7 is unused and is always read as 0; bits 6 and 5 define whether interrupt or DMA re- quests are generated from activity on the Hl and H3 hand- shake PinS; bits 4 and 3 determine whether two dual function pins operate as Port C or port Interrupt request I - acknowledge pins; and bits 2, 1, and 0 control the priority among all port Interrupt sources. Since bits 2, 1, and 0 affect Interrupt operation, It IS recommended that they be changed only when the affected Interrupt(s) is lare) disabled or known to remain inactive. The PSRR IS always readable and wrlteable.
1 1 1 H4S H3S H2S H1S Port A Data Direction Register (PADDR) - The Port A Data Direction Register determines the direction and buffer- Ing characteristiCS of each of the Port fj.. pins. One bit In the PADDR is aSSigned to each pin. A 0 indicates that the pin IS used as an input. while a 1 indicates It IS used as an output The PADDR is always readable and wflteable. ThiS register IS Ignored in Mode 3. __ Ali bits are reset to the 0 linput) state when the RESET pin is asserted. All bits are reset to 0 when the RESET Pin IS asserted.
PSRR 6 5 SVCRQ Select o X The PC4/ DMAREO Pin carries the PC4 function, DMA Port B Data Direction Register (PBDDR) - The PBDDR IS identical 10 the PADDR for the Port B pins and the Port B Data Register, except that thiS register IS Ignored In Modes 2 and 3. IS not used 1 0 The PC4! =D~M~A~R=E=O Pin carries the DMAREO function and IS assoclateu With double-buffered transfers con- Port C Data Direction Register (PCDDR) - The Port C Data Direction Register speCifies whether each dual-function pin that is chosen for Port C operation IS an Input 10) or an output III pin The PCDDR, along With bits that determine the respective pin's function.
also speCify the exact hardware to be accessed at the Port C Data Register address. I See the Port C Data Register descnption for more details) The PCDDR IS an a-bit register that IS readable and wflteable at all times. Its operation IS Independent of the chosen PI/ T mode These bits are cleared to 0 when the RESET Pin IS asserted. trolled by Hl Hl IS removed from the PIIT's Interrupt structure, and thus, does not cause Interrupt requests tll be generated To obtain DMAREO pulses, Port A Centrol Register bit 1 (HI SVCRO Enable) must bea 1 lIThe PC41 DMAR EO Pin carries the DMAREO function and IS assOCiated with double-buffered transfers con- trolled by H3.
H3 IS removed from the PIIT's Interrupt structure, and thUS, does not cause Interrupt requests 10 be generated To obtain DMAREO pulses, Port B Control Reglsler bit 1 IH3 SVCRO Enable) must be 1 P:lRR Port Interrupt Vector Register (PIVR) - 4 ~ Interrupt Pin Function Select o 0 The PC5/PIRO pin carries the PC5 function. The PC61 PlACK pin carries the PC6 function. o 1 The PC5/PIRO Pin carries the PIRO function The PC6/PIACK pin carries the PC6 function. o Interrupt Vector Number *' The Port Interrupt Vector Register contains the upper order SIX bits of the four port interrupt vectors The contents of this register may be read two ways:
by an ordinary read cy- cle, or by a port interrupt acknowledge bus cycle. The exact data read depends on how the cycle was initiated and other factors. Behavior dunng a port Interrupt acknowledge cycle 1 0 The PC5/PIRO Pin carries the PC5 function The PC6/ PlACK pin carries the PlACK function. 1 1 The PC5/PIRO pin carries the PIRO functton. The PC61 PlACK Pin carries the PlACK function. IS Shown In descending order left to fight. Bits 2, 1, and 0 determine port interrupt priOflty The priority IS summarized above in Table 3. ~ MOTOROLA Semiconductor Products Inc. \!.J 23