參數(shù)資料
型號: MC68HC05G3
廠商: MOTOROLA INC
元件分類: 微控制器/微處理器
英文描述: 8-BIT, OTPROM, 2 MHz, MICROCONTROLLER, PQFP80
封裝: QFP-80
文件頁數(shù): 94/128頁
文件大?。?/td> 290K
代理商: MC68HC05G3
Page 58
MOTOROLA
Section 6: INPUT/OUTPUT PORTS
MC68HC05G3 (705G4) Specification Rev. 1.1
6.4
PORT D
Port D is an 8-bit bidirectional general-purpose port. The data direction of a port D pin is
determined by its corresponding DDRD bit.
When a bit is programmed as an output by the corresponding DDRD bit, data in the PORTD
data register becomes output data to the pin and it is returned for CPU read of PORTD
register.
When a bit is programmed as input by the corresponding DDRD bit, the pin level is read by
the CPU.
6.4.1
PORT D DATA REGISTER (PORTD)
READ:
anytime
(returns pin level if DDR set to input; returns output data latch if DDR set to
output)
WRITE:
anytime
(data stored in an internal latch; drives pin only if DDR set for output)
RESET:
becomes high impedance inputs
6.4.2
PORT D DATA DIRECTION REGISTER (DDRD)
READ:
anytime (when OPTM = 1)
WRITE:
anytime (when OPTM = 1)
RESET:
cleared to $00 (all general-purpose I/O configured for input)
DDRD
x
Port D Data Direction Register Bit
x
0 - configure I/O pin PD
x to input
1 - configure I/O pin PD
x to output
PD7
$0003
PD6
PD5
PD4
PD3
PD2
PD1
PD0
PORTD
B7
B6
B5
B4
B3
B2
B1
B0
UUUUUUUU
RESET:
DDRD7
option
map
$0003
DDRD6 DDRD5 DDRD4 DDRD3 DDRD2 DDRD1 DDRD0
DDRD
B7
B6
B5
B4
B3
B2
B1
B0
00000000
RESET:
相關(guān)PDF資料
PDF描述
MC68HC705J5ACJP 8-BIT, OTPROM, 2.1 MHz, MICROCONTROLLER, PDIP16
MC68HC705J5ACP 8-BIT, OTPROM, 2.1 MHz, MICROCONTROLLER, PDIP20
MC68HC05J5AJDW 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PDSO16
MC68HRC705J5ACDW 8-BIT, OTPROM, 2.1 MHz, MICROCONTROLLER, PDSO20
MC68HRC05J5ADW 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PDSO20
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MC68HC05J1 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:HCMOS MICROCONTROLLER UNIT
MC68HC05J1A 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontrollers
MC68HC05J1ACDW 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontrollers
MC68HC05J1ACP 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontrollers
MC68HC05J1ADW 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontrollers