M68360QUADS-040 Hardware User’s Manual
OPERATING INSTRUCTIONS
25
3.4.22
Port B Data Direction Register
The port B data direction register (PBDIR) has different functions according to the configuration of the port
pins. If a pin is general purpose I/O pin, the value in the PBDIR for that pin defines the direction of the pin.
If a pin is dedicated peripheral interface pin, the value in the PBDIR for that pin may select one of two
dedicated functions of the pin. The PBDIR must be initialized to ’0000F’. Pins 10 to 17 are connected to
the ADI port data bus, therefore their direction must be changed by software according to the data flow.
3.4.23
Port B Pin Assignment Register
The port B pin assignment register (PBPAR) configures the function of the port pins. If the value in the
PBPAR for a pin is ’0’, the pin is general purpose I/O, otherwise the pin is a dedicated peripheral interface
pin. The PBPAR must be initialized to ’0000F’.
3.4.24
Port C Data Register
Port C of the slave QUICC is a 12 bit port, and each pin may be configured as general purpose I/O pin or
as dedicated peripheral interface pin, with interrupt capability. The Port C data register (PCDAT) can be
read to check the data at the pin. If a port pin is configured as general purpose output pin, the value in the
PCDAT for that pin is driven onto the pin. It is recommended to initialize PCDAT to ’000’ before configuring
the other port registers.
3.4.25
Port C Data Direction Register
The port C data direction register (PCDIR) has different functions according to the configuration of the port
pins. If a pin is general purpose I/O pin, the value in the PCDIR for that pin defines the direction of the pin.
If a pin is dedicated peripheral interface pin, the value in the PCDIR for that pin may select one of three
dedicated functions of the pin. The PCDIR must be initialized to ’000’.
3.4.26
Port C Pin Assignment Register
The port C pin assignment register (PCPAR) configures the function of the port pins, along with PCDIR and
PCSO. The PCPAR must be initialized to ’000’.
3.4.27
Port C Special Options Register
The port C special options register (PCSO) configures the CDx and CTSx pins. Port C can detect changes
on the CTS and CD lines and assert the corresponding interrupt while the SCC simultaneously uses those
lines. The PCSO must be initialized to ’030’.
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..