MC68HC908GT16_07 FREESCALE [Freescale Semiconductor, Inc], MC68HC908GT16_07 Datasheet - Page 130

no-image

MC68HC908GT16_07

Manufacturer Part Number
MC68HC908GT16_07
Description
Microcontrollers
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
Input/Output (I/O) Ports (PORTS)
12.4.1 Port C Data Register
The port C data register (PTC) contains a data latch for each of the seven port C pins.
PTC6–PTC0 — Port C Data Bits
12.4.2 Data Direction Register C
Data direction register C (DDRC) determines whether each port C pin is an input or an output. Writing a 1
to a DDRC bit enables the output buffer for the corresponding port C pin; a 0 disables the output buffer.
DDRC6–DDRC0 — Data Direction Register C Bits
Figure 12-11
130
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.
These read/write bits control port C data direction. Reset clears DDRC6–DDRC0, configuring all port C
pins as inputs.
1 = Corresponding port C pin configured as output
0 = Corresponding port C pin configured as input
shows the port C I/O logic.
Address:
Address:
Bit 6 and bit 5 of PTC are not available in the 42-pin shrink dual in-line
package.
Avoid glitches on port C pins by writing to the port C data register before
changing data direction register C bits from 0 to 1.
For those devices packaged in a 42-pin shrink dual in-line package, PTC5
and PTC6 are connected to ground internally. DDRC5 and DDRC6 should
be set to a 0 to configure PTC5 and PTC6 as inputs.
Reset:
Reset:
Read:
Read:
Write:
Write:
MC68HC908GT16 • MC68HC908GT8 • MC68HC08GT16 Data Sheet, Rev. 5.0
$0002
$0006
Bit 7
Bit 7
0
0
0
Figure 12-10. Data Direction Register C (DDRC)
= Unimplemented
= Unimplemented
Figure 12-9. Port C Data Register (PTC)
DDRC6
PTC6
6
6
0
DDRC5
PTC5
5
5
0
NOTE
NOTE
NOTE
DDRC4
Unaffected by reset
PTC4
4
4
0
DDRC3
PTC3
3
3
0
DDRC2
PTC2
2
2
0
DDRC1
PTC1
1
1
0
Freescale Semiconductor
DDRC0
PTC0
Bit 0
Bit 0
0

Related parts for MC68HC908GT16_07