MC68HC908JG16FA MOTOROLA [Motorola, Inc], MC68HC908JG16FA Datasheet - Page 264

no-image

MC68HC908JG16FA

Manufacturer Part Number
MC68HC908JG16FA
Description
Microcontrollers
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
Input/Output (I/O) Ports
14.5.2 Data Direction Register C
Technical Data
264
NOTE:
Address:
Data direction register C 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[1: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 14-10
Reset:
Read:
Write:
These read/write bits control port C data direction. Reset clears
DDRC[1:0], configuring all port C pins as inputs.
Freescale Semiconductor, Inc.
For More Information On This Product,
1 = Corresponding port C pin configured as output
0 = Corresponding port C pin configured as input
READ DDRC ($0006)
WRITE DDRC ($0006)
WRITE PTC ($0002)
READ PTC ($0002)
$0006
Bit 7
0
0
Figure 14-9. Data Direction Register C (DDRC)
Go to: www.freescale.com
shows the port C I/O logic.
Input/Output (I/O) Ports
6
0
0
Figure 14-10. Port C I/O Circuit
RESET
5
0
0
DDRCx
PTCx
4
0
0
3
0
0
MC68HC908JG16
2
0
0
DDRC1
1
0
MOTOROLA
Rev. 1.0
DDRC0
Bit 0
0
PTCx

Related parts for MC68HC908JG16FA