MC68HC711G5 MOTOROLA [Motorola, Inc], MC68HC711G5 Datasheet - Page 49

no-image

MC68HC711G5

Manufacturer Part Number
MC68HC711G5
Description
High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcontroller
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
MC68HC11G5
Port J is a general purpose 4-bit I/O port which also supports some of the timer functions (see
SECTION 6: PROGRAMMABLE TIMER, REAL TIME INTERRUPT AND PULSE
ACCUMULATOR). Two of the pins are used for input capture/output compare. One of the pins is
used as a clock input for the timer counter registers. The one remaining pin is for general purpose
I/O. Any channels not used for timers may be used as general purpose I/O.
Bit 0 of Port J is used as the TCK input or for general purpose I/O. The data direction is always under
the control of DDRJ bit 0, whether TCK is enabled or not. If the pin is configured as an output by DDRJ
bit 0, the output data in Port J bit 0 becomes the input data to TCK.
Bits 1 and 2 of Port J is used for output compare or input capture or as general purpose I/O. If the
associated output compare is not enabled, the data directions of these pins are dependent on DDRJ
bits 1 and 2. If an output compare is enabled, the associated pin is configured automatically as an
output. If a pin is programmed as an output and input capture is enabled, the output data becomes
the input data to the input capture.
Bit 3 of Port J is a general purpose I/O pin and the data direction of the pin is determined by the state
of DDRJ bit 3. All DDRJ bits are cleared at reset.
4.12.1
READ:
WRITE:
RESET:
4.12.2
READ:
WRITE:
RESET:
4.12
Alternate Pin Function:
PORT J
Data Register (PORTJ)
Data Direction Register (DDRJ)
RESET:
Any time (inputs return pin levels, outputs return pin driver input levels).
Data stored in an internal latch (drives pins only if configured as outputs).
General purpose high impedance inputs ($00).
Any time.
Any time.
$00 (all general purpose I/O configured for input only).
0 – Bits set to zero configure the corresponding I/O pins as inputs.
1 – Bits set to one configure the corresponding I/O pins as outputs.
$1032
RESET:
$1031
0
7
0
0
7
0
6
0
0
6
0
0
5
0
0
INPUT/OUTPUT PORTS
5
0
0
4
0
0
4
0
0
DDJ3
3
0
PJ3
3
0
DDJ2
2
0
O7/I6
PJ2
2
0
DDJ1
1
0
O6/I5
PJ1
1
0
DDJ0
0
0
TCK
PJ0
0
0
DDRJ
MOTOROLA
PORTJ
4-11

Related parts for MC68HC711G5