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

no-image

MC68HC711G5

Manufacturer Part Number
MC68HC711G5
Description
High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcontroller
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
MC68HC11G5
controlled by the DDRA bits whether IC3, IC2, and IC1 are enabled or not. Port A bits 3 – 7 are
controlled by the DDRA bits only when the associated output compare functions are disabled.
Enabling an output compare function forces the corresponding port bit to be an output, irrespective
of the state of the DDRA bit. Using any pins of Port A for timer functions has no effect on the ability
to read these pins as inputs (because input sensing logic is always connected to the port pins).
The OC2, OC3, OC4, and OC5 lines out of Port A are enabled by pairs of control bits in the TCTL1
register. The output compare 1 function is unique in that it allows automatic timer control of any
combination of the five most significant bits of Port A regardless of whether or not they are being
used for another timer function. The OC1 function gains control of Port A bits by setting the
corresponding bits in the OC1M control register. The IC1, IC2, IC3, and IC4 input of Port A are
enabled by pairs of control bits in the TCTL2 register. (See SECTION 6: PROGRAMMABLE
TIMER, REAL TIME INTERRUPT AND PULSE ACCUMULATOR.)
The IC4 function and OC5 function share the same Port A bit and they are selected by the I4/O5
bit in the PACTL register. The pulse accumulator system is enabled, on Port A bit 7 as an input, by
setting the PAEN bit in the PACTL register. Even while the pulse accumulator is enabled, Port A bit
7 may be configured as an output controlled by OC1 or as a general purpose output.
4.4.1
READ:
WRITE:
RESET:
Note:
4.4.2
READ:
WRITE:
RESET:
Alternate Pin Function:
Data Register (PORTA )
Data Direction Register (DDRA )
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).
Writes do NOT change pin state when pin is configured for timer output.
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.
$1001
RESET:
and/or:
$1000
DDA7
7
0
PA7
PA1
OC1
7
0
DDA6
6
0
PA6
OC2
OC1
6
0
DDA5
5
0
INPUT/OUTPUT PORTS
PA5
OC3
OC1
5
0
DDA4
4
0
PA4
OC4
OC1
4
0
DDA3
3
0
OC5/IC4
PA3
OC1
3
0
DDA2
2
0
PA2
IC1
2
0
DDA1
1
0
PA1
IC2
1
0
DDA0
0
0
PA0
IC3
0
0
DDRA
MOTOROLA
PORTA
4-3

Related parts for MC68HC711G5