mc68hc708mp16 Freescale Semiconductor, Inc, mc68hc708mp16 Datasheet - Page 325

no-image

mc68hc708mp16

Manufacturer Part Number
mc68hc708mp16
Description
M68hc08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc68hc708mp16CFU
Manufacturer:
FRE/MOT
Quantity:
20 000
15.5.2 Data Direction Register C
MC68HC708MP16
Freescale Semiconductor
NOTE:
Rev. 3.1
Address:
Data direction register C (DDRC) determines whether each port C pin is
an input or an output. Writing a logic 1 to a DDRC bit enables the output
buffer for the corresponding port C pin; a logic 0 disables the output
buffer.
DDRC[6:0] — Data Direction Register C Bits
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.
Figure 15-10
Reset:
Read:
Write:
These read/write bits control port C data direction. Reset clears
DDRC[6:0], configuring all port C pins as inputs.
1 = Corresponding port C pin configured as output
0 = Corresponding port C pin configured as input
READ DDRC ($0008)
WRITE DDRC ($0008)
WRITE PTC ($0002)
READ PTC ($0002)
$0006
Bit 7
0
0
Figure 15-9. Data Direction Register C (DDRC)
shows the port C I/O logic.
Input/Output (I/O) Ports
= Unimplemented
DDRC6
6
0
Figure 15-10. Port C I/O Circuit
RESET
DDRC5
5
0
DDRC4
DDRCx
PTCx
4
0
DDRC3
3
0
DDRC2
2
0
Input/Output (I/O) Ports
DDRC1
1
0
Technical Data
DDRC0
Bit 0
0
PTCx
325

Related parts for mc68hc708mp16