參數(shù)資料
型號: MC68HC08KH12A
廠商: 飛思卡爾半導體(中國)有限公司
英文描述: Microcontrollers
中文描述: 微控制器
文件頁數(shù): 130/178頁
文件大小: 925K
代理商: MC68HC08KH12A
Input/Output (I/O) Ports
MC68HC08KH12A Data Sheet, Rev. 1.1
130
Freescale Semiconductor
The port C pullup enable bit, PCP, in the port option control register (POC) enables pullups on port C pins
if the respective pin is configured as an input. (See
12.8 Port Options
.)
The LED direct drive bit, LDD, in the port option control register (POC) controls the drive options for
Port C.
12.4.2 Data Direction Register C (DDRC)
Data direction register C determines whether each port C pin is an input or an output. Writing a logic one
to a DDRC bit enables the output buffer for the corresponding port C pin; a logic zero disables the output
buffer.
DDRC[4:0] — Data Direction Register C Bits
These read/write bits control port C data direction. Reset clears DDRC[4:0], configuring all port C pins
as inputs.
1 = Corresponding port C pin configured as output
0 = Corresponding port C pin configured as input
NOTE
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 12-9
shows the port C I/O logic.
Figure 12-9. Port C I/O Circuit
Address: $0006
Bit 7
6
5
4
3
2
1
Bit 0
Read:
0
0
0
DDRC4
DDRC3
DDRC2
DDRC1
DDRC0
Write:
Reset:
0
0
0
0
0
0
0
0
= Unimplemented
Figure 12-8. Data Direction Register C (DDRC)
READ DDRC ($0006)
WRITE DDRC ($0006)
RESET
WRITE PTC ($0002)
READ PTC ($0002)
PTCx
DDRCx
PTCx
I
相關PDF資料
PDF描述
MC68HC08LT8 Microcontrollers
MC68HC08SR12 M68HC08 Microcontrollers
MC68HC11E0 HC11 Microcontrollers
MC68HC11K0 HCMOS Microcontroller Unit
MC68HC11KMNPEVS Microcontrollers
相關代理商/技術(shù)參數(shù)
參數(shù)描述
MC68HC08KL8B 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:General Release Specification
MC68HC08KL8FB 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:General Release Specification
MC68HC08KX8 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:Microcontrollers
MC68HC08LJ12 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Addendum to MC68HC908LJ12 Technical Data
MC68HC08LJ12CFB 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Addendum to MC68HC908LJ12 Technical Data