MC68HC908AP16CFA MOTOROLA [Motorola, Inc], MC68HC908AP16CFA Datasheet - Page 373

no-image

MC68HC908AP16CFA

Manufacturer Part Number
MC68HC908AP16CFA
Description
Microcontrollers
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
18.4 Port C
18.4.1 Port C Data Register (PTC)
MC68HC908AP Family — Rev. 2.5
MOTOROLA
Alternative Function:
Address:
Port C is an 8-bit special-function port that shares one of its pins with the
IRQ2, four of its pins with the SPI module, and two of its pins with the
IRSCI module.
The port C data register contains a data latch for each of the eight port C
pins.
PTC[7:0] — Port C Data Bits
IRQ2 — IRQ2 input pin
MISO, MOSI, SS, and SPSCK — SPI Data I/O, Select, and Clock Pins
Reset:
Read:
Write:
These read/write bits are software-programmable. Data direction of
each port C pin is under the control of the corresponding bit in data
direction register C. Reset has no effect on port C data.
The PTC0/IRQ2 pin is always available as input pin to the IRQ2
module. Care must be taken to available unwanted interrupts when
this pin is used as general purpose I/O. PTC0/IRQ2 pin has an
internal pullup, and can be disabled by setting the PUC0ENB bit in the
IRQ2 status and control register (INTSCR2).
These pins are the SPI data in/out, select, and clock pins. Setting the
SPE bit in the SPI control register (SPCR) configures PTC2/MISO,
PTC3/MOSI, PTC4/SS, and PTC5/SPSCK pins for SPI function and
overrides any control from the port I/O logic.
Freescale Semiconductor, Inc.
For More Information On This Product,
SCRxD
$0002
PTC7
Bit 7
Figure 18-9. Port C Data Register (PTC)
Go to: www.freescale.com
SCTxD
PTC6
6
SPSCK
PTC5
5
Unaffected by reset
PTC4
SS
4
PTC3
MOSI
3
PTC2
MISO
2
Input/Output (I/O) Ports
PTC1
1
Data Sheet
PTC0
IRQ2
Bit 0
Port C
373

Related parts for MC68HC908AP16CFA