參數(shù)資料
型號: MC68HC08KH12A
廠商: 飛思卡爾半導體(中國)有限公司
英文描述: Microcontrollers
中文描述: 微控制器
文件頁數(shù): 131/178頁
文件大?。?/td> 925K
代理商: MC68HC08KH12A
Port D
MC68HC08KH12A Data Sheet, Rev. 1.1
Freescale Semiconductor
131
When bit DDRCx is a logic one, reading address $0002 reads the PTCx data latch. When bit DDRCx is
a logic zero, reading address $0002 reads the voltage level on the pin. The data latch can always be
written, regardless of the state of its data direction bit.
Table 12-3
summarizes the operation of the port C
pins.
12.5 Port D
Port D is an 8-bit general-purpose bidirectional I/O port that shares its pins with the keyboard interrupt
module (KBI). All Port D pins have built-in schmitt triggered input.
12.5.1 Port D Data Register (PTD)
The port D data register contains a data latch for each of the eight port D pins.
PTD[7:0] — Port D Data Bits
These read/write bits are software programmable. Data direction of each port D pin is under control of
the corresponding bit in data direction register D. Reset has no effect on port D data.
The port D pullups are automatically enabled if the respective pin is configured as a keyboard interrupt.
(See
15.3.1 Port-D Keyboard Interrupt Functional Description
.)
The port-D keyboard interrupt enable bits, KBDIE7—KBDIE0, in the port-D keyboard interrupt enable
register (KBDIER), enable the port D pins as external interrupt pins. See
Chapter 15 Keyboard Interrupt
Module (KBI)
.
Table 12-3. Port C Pin Functions
DDRC Bit
PTC Bit
I/O Pin Mode
Accesses to DDRC
Read/Write
Accesses to PTC
Read
Write
0
X
(1)
1. X = don’t care
2. Hi-Z = high impedance
3. Writing affects data register, but does not affect input.
Input, Hi-Z
(2)
DDRC[4:0]
Pin
PTC[4:0]
(3)
1
X
Output
DDRC[4:0]
PTC[4:0]
PTC[4:0]
Address: $0003
Bit 7
6
5
4
3
2
1
Bit 0
Read:
PTD7
PTD6
PTD5
PTD4
PTD3
PTD2
PTD1
PTD0
Write:
Reset:
Unaffected by reset
Alternate Function:
KBD7
KBD6
KBD5
KBD4
KBD3
KBD2
KBD1
KBD0
Figure 12-10. Port D Data Register (PTD)
相關(guān)PDF資料
PDF描述
MC68HC08LT8 Microcontrollers
MC68HC08SR12 M68HC08 Microcontrollers
MC68HC11E0 HC11 Microcontrollers
MC68HC11K0 HCMOS Microcontroller Unit
MC68HC11KMNPEVS Microcontrollers
相關(guān)代理商/技術(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