English
Language : 

MC68CK331CAG16 Datasheet, PDF (76/84 Pages) Freescale Semiconductor, Inc – 32-Bit Modular Microcontroller
Freescale Semiconductor, Inc.
DDRGP/PORTGP — Port GP Data Direction Register/Port GP Data Register
$YFF906
15
14
13
12
11
10
9
8
7
DDGP7 DDGP6 DDGP5 DDGP4 DDGP3 DDGP2 DDGP1 DDGP0 PGP7
RESET:
0
0
0
0
0
0
0
0
0
6
PGP6
0
5
PGP5
0
4
PGP4
0
3
PGP3
0
2
PGP2
0
1
PGP1
0
0
PGP0
0
When GPT pins are used as an 8-bit port, DDRGP determines whether pins are input or output and
PORTGP holds the 8-bit data.
DDRGP[7:0] — Port GP Data Direction Register
0 = Input only
1 = Output
Each bit in DDRGP determines whether the corresponding PORTGP bit is input or output.
OC1M/OC1D — OC1 Action Mask Register/OC1 Action Data Register
$YFF908
15
11
10
9
8
7
3
2
1
0
OC1M
0
0
0
OC1D
0
0
0
RESET:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
All OC outputs can be controlled by the action of OC1. OC1M contains a mask that determines which
pins are affected. OC1D determines what the outputs are.
OC1M[5:1] — OC1 Mask Field
0 = Corresponding output compare pin is not affected by OC1 compare.
1 = Corresponding output compare pin is affected by OC1 compare.
OC1M[5:1] correspond to OC[5:1].
OC1D[5:1] — OC1 Data Field
0 = If OC1 mask bit is set, clear the corresponding output compare pin on OC1 match.
1 = If OC1 mask bit is set, set the corresponding output compare pin on OC1 match.
OC1D[5:1] correspond to OC[5:1].
TCNT — Timer Counter Register
$YFF90A
TCNT is the 16-bit free-running counter associated with the input capture, output compare, and pulse
accumulator functions of the GPT module.
PACTL/PACNT — Pulse Accumulator Control Register/Counter
$YFF90C
15
14
13
12
11
10
9
8
7
0
PAIS PAEN PAMOD PEDGE PCLKS I4/O5
PACLK
PACNT
RESET:
U
0
0
0
U
0
0
0
0
0
0
0
0
0
0
0
PACTL enables the pulse accumulator and selects either event counting or gated mode. In event count-
ing mode, PACNT is incremented each time an event occurs. In gated mode, it is incremented by an
internal clock.
PAIS — PAI Pin State (Read Only)
PAEN — Pulse Accumulator System Enable
0 = Pulse accumulator disabled
1 = Pulse accumulator enabled
76
For More Information On This Product,
MC68331TS/D
Go to: www.freescale.com