mc68hc908gr8vp Freescale Semiconductor, Inc, mc68hc908gr8vp Datasheet - Page 150

no-image

mc68hc908gr8vp

Manufacturer Part Number
mc68hc908gr8vp
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Input/Output Ports (I/O)
16.4 Port C
Port C is a 2-bit, general-purpose bidirectional I/O port. Port C also has software configurable pullup
devices if configured as an input port.
16.4.1 Port C Data Register
The port C data register (PTC) contains a data latch for each of the two port C pins.
PTC1–PTC0 — Port C Data Bits
16.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.
150
Notes:
DDRB Bit
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.
1. X = Don’t care
2. Hi-Z = High impedance
3. Writing affects data register, but does not affect input.
0
1
Address:
Address:
Reset:
Reset:
Read:
Read:
Write:
Write:
PTB Bit
X
X
(1)
$0002
$0006
Bit 7
Bit 7
PTC is not available in a 28-pin DIP and SOIC package
0
0
0
Figure 16-10. Data Direction Register C (DDRC)
MC68HC908GR8 • MC68HC908GR4 Data Sheet, Rev. 7
= Unimplemented
= Unimplemented
I/O Pin Mode
Input, Hi-Z
Figure 16-9. Port C Data Register (PTC)
Output
6
0
6
0
0
Table 16-3. Port B Pin Functions
(2)
5
0
5
0
0
Accesses to DDRB
NOTE
DDRB5–DDRB0
DDRB5–DDRB0
Unaffected by reset
Read/Write
4
0
4
0
0
3
0
3
0
0
2
0
2
0
0
PTB5–PTB0
Read
Pin
DDRC1
PTC1
Accesses to PTB
1
1
0
Freescale Semiconductor
DDRC0
PTC0
Bit 0
Bit 0
0
PTB5–PTB0
PTB5–PTB0
Write
(3)

Related parts for mc68hc908gr8vp