參數資料
型號: MC68HC08KH12A
廠商: 飛思卡爾半導體(中國)有限公司
英文描述: Microcontrollers
中文描述: 微控制器
文件頁數: 129/178頁
文件大?。?/td> 925K
代理商: MC68HC08KH12A
Port C
MC68HC08KH12A Data Sheet, Rev. 1.1
Freescale Semiconductor
129
Figure 12-6. Port B I/O Circuit
When bit DDRBx is a logic one, reading address $0001 reads the PTBx data latch. When bit DDRBx is a
logic zero, reading address $0001 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-2
summarizes the operation of the port B pins.
12.4 Port C
Port C is a 5-bit general-purpose bidirectional I/O port with software configurable pullups and current drive
options.
12.4.1 Port C Data Register (PTC)
The port C data register contains a data latch for each of the five port C pins.
PTC[4:0] — Port C Data Bits
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.
Table 12-2. Port B Pin Functions
DDRB Bit
PTB Bit
I/O Pin Mode
Accesses to DDRB
Read/Write
Accesses to PTB
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)
DDRB[7:0]
Pin
PTB[7:0]
(3)
1
X
Output
DDRB[7:0]
PTB[7:0]
PTB[7:0]
Address: $0002
Bit 7
6
5
4
3
2
1
Bit 0
Read:
0
0
0
PTC4
PTC3
PTC2
PTC1
PTC0
Write:
Reset:
Unaffected by reset
= Unimplemented
Figure 12-7. Port C Data Register (PTC)
READ DDRB ($0005)
WRITE DDRB ($0005)
RESET
WRITE PTB ($0001)
READ PTB ($0001)
PTBx
DDRBx
PTBx
I
相關PDF資料
PDF描述
MC68HC08LT8 Microcontrollers
MC68HC08SR12 M68HC08 Microcontrollers
MC68HC11E0 HC11 Microcontrollers
MC68HC11K0 HCMOS Microcontroller Unit
MC68HC11KMNPEVS Microcontrollers
相關代理商/技術參數
參數描述
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