参数资料
型号: M68HC05M68H
厂商: Motorola, Inc.
英文描述: HCMOS Microcontroller Unit
中文描述: HCMOS微控制器
文件页数: 56/130页
文件大小: 1541K
代理商: M68HC05M68H
Input/Output Ports
Advance Information
MC68HC705P6A
Rev. 2.0
56
Input/Output Ports
MOTOROLA
6.7 I/O Port Programming
Each pin on port A through port D (except pin 7 of port D) can be
programmed as an input or an output under software control as shown
in
Table 6-1
,
Table 6-2
,
Table 6-3
, and
Table 6-4
. The direction of a pin
is determined by the state of its corresponding bit in the associated port
data direction register (DDR). A pin is configured as an output if its
corresponding DDR bit is set to a logic 1. A pin is configured as an input
if its corresponding DDR bit is cleared to a logic 0.
Table 6-1. Port A I/O Functions
DDRA
I/O Pin Mode
Accesses to
DDRA @ $0004
Accesses to Data
Register @ $0000
Read/Write
Read
Write
0
IN, Hi-Z
DDRA0
DDRA7
I/O Pin
See Note
1
OUT
DDRA0
DDRA7
PA0
PA7
PA0
PA7
Note: Does not affect input, but stored to data register
Table 6-2. Port B I/O Functions
DDRB
I/O Pin Mode
Accesses to
DDRB @ $0005
Accesses to Data
Register @ $0001
Read/Write
Read
Write
0
IN, Hi-Z
DDRB5
DDRB7
I/O Pin
See Note
1
OUT
DDRB5
DDRB7
PB5
PB7
PB5
PB7
Note: Does not affect input, but stored to data register
Table 6-3. Port C I/O Functions
DDRC
I/O Pin Mode
Accesses to
DDRC @ $0006
Accesses to Data
Register @ $0002
Read/Write
Read
Write
0
IN, Hi-Z
DDRC0
DDRC7
I/O Pin
See Note
1
OUT
DDRC0
DDRC7
PC0
PC7
PC0
PC7
Note: Does not affect input, but stored to data register
相关PDF资料
PDF描述
M68HC11K 8-BIT MICROCONTROLLER
M68HC711CFD CONFIG REGISTER PROGRAMMING FOR EEPROM-BASED MHC MICROCONTROLLERS
M68HC711CFG CONFIG REGISTER PROGRAMMING FOR EEPROM-BASED MHC MICROCONTROLLERS
M68SDIL12 The MC68HC912DT128A microcontroller unit (MCU) is a 16-bit device composed of standard on-chip peripherals including a 16-bit central processing unit
M68ADP912DG128PV The MC68HC912DT128A microcontroller unit (MCU) is a 16-bit device composed of standard on-chip peripherals including a 16-bit central processing unit
相关代理商/技术参数
参数描述
M68HC08 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:Microcontrollers
M68HC08M6 制造商:MOTOROLA 制造商全称:Motorola, Inc 功能描述:HCMOS Microcontroller Unit
M68HC08M68H 制造商:MOTOROLA 制造商全称:Motorola, Inc 功能描述:HCMOS Microcontroller Unit
M68HC11 制造商:MOTOROLA 制造商全称:Motorola, Inc 功能描述:CONFIG Register Programming for EEPROM-based M68HC11 Microcontrollers
M68HC11_03 制造商:MOTOROLA 制造商全称:Motorola, Inc 功能描述:8-channel, 8-bit analog-to-digital (A/D) converter