English
Language : 

MC68HC705CT4 Datasheet, PDF (56/152 Pages) Freescale Semiconductor, Inc – General Release Specification
Freescale Semiconductor, Inc.
Parallel Input/Output (I/O)
7.4 Port B
Port B is an 8-bit bidirectional port. The port B data register is at $0001
and the data direction register (DDR) is at $0005. Reset does not affect
the data registers, but clears the data direction registers, thereby
returning the ports to inputs. Writing a logic 1 to a DDR bit sets the
corresponding port bit to output mode.
7.5 Port C
Port C is an 8-bit bidirectional port. The port C data register is at $0002
and the data direction register (DDR) is at $0006. Reset does not affect
the data registers, but clears the data direction registers, thereby
returning the ports to inputs. Writing a logic 1 to a DDR bit sets the
corresponding port pin to output mode. Each of the port C pins has an
optional pullup device. When the DDR bit is cleared and the pullup
device is enabled, the pin will be a pullup and an interrupt pin. The edge-
or edge- and level-sensitivity of the IRQ pin also pertains to the enabled
port C pins. Care needs to be taken when using port C pins that have the
pullup enabled. Before switching from an output to an input, the data
should be preconditioned to a logic 1 to prevent an interrupt from
occurring. Port C bit 7 is also shared with the PWM output. When PC7
is used as the PWM output, its pullup option should not be selected (see
Figure 7-1).
VDD
VDD
DISABLED MASK OPTION (PC7PU)
DDR BIT
ENABLED
PC7
IRQ
SCHMITT
TRIGGER
NORMAL PORT CIRCUITRY
AS SHOWN IN FIGURE 7-2
(PC7 ADDS PWM)
FROM ALL OTHER PORT C PINS
Figure 7-1. Port C Pullup Option
TO INTERRUPT
LOGIC
General Release Specification
MC68HC705CT4 — Rev. 2.0
56
Parallel Input/Output (I/O)
MOTOROLA
For More Information On This Product,
Go to: www.freescale.com