MC705P6A Motorola, MC705P6A Datasheet - Page 39

no-image

MC705P6A

Manufacturer Part Number
MC705P6A
Description
Microcontrollers
Manufacturer
Motorola
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC705P6ACDWE
Manufacturer:
Freescale Semiconductor
Quantity:
135
Part Number:
MC705P6ACDWE
Manufacturer:
FREESCALE
Quantity:
2 200
Part Number:
MC705P6ACDWE
Manufacturer:
FREESCALE
Quantity:
2 200
Part Number:
MC705P6ACDWE
Manufacturer:
MOT
Quantity:
1 000
Part Number:
MC705P6ACDWE
Manufacturer:
MOT
Quantity:
1 000
Part Number:
MC705P6ACDWE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
MC705P6ACDWE
0
Company:
Part Number:
MC705P6ACDWE
Quantity:
500
Company:
Part Number:
MC705P6ACDWE
Quantity:
466
Part Number:
MC705P6ACPE
Manufacturer:
SMC
Quantity:
2 100
Part Number:
MC705P6ACPE
Manufacturer:
FREESCAL
Quantity:
1 183
Part Number:
MC705P6ACPE
Manufacturer:
FREESCA
Quantity:
3 437
Part Number:
MC705P6ACPE
Manufacturer:
FREESCALE
Quantity:
20 000
Company:
Part Number:
MC705P6ACPE
Quantity:
1 100
Part Number:
MC705P6AMDWE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
MC705P6AMPE
Manufacturer:
Freescale Semiconductor
Quantity:
135
6.5 Port D
Port D is a 2-bit port with one bidirectional pin (PD5) and one input-only pin (PD7). Pin PD7 is shared with
the 16-bit timer. The port D data register is located at address $0003 and its data direction register (DDR)
is located at address $0007. The contents of the port D data register are indeterminate at initial powerup
and must be initialized by user software. Reset does not affect the data registers, but clears the DDRs,
thereby setting PD5 to input mode. Writing a 1 to DDR bit 5 sets PD5 to output mode (see
Port D may be used for general I/O applications regardless of the state of the 16-bit timer. Since PD7 is
an input-only line, its state can be read from the port D data register at any time.
6.6 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
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.
Freescale Semiconductor
INTERNAL HC05
INTERNAL HC05
DATA BUS
DATA BUS
WRITE $0006
WRITE $0002
READ $0006
READ $0002
WRITE $0007
WRITE $0003
READ $0007
READ $0003
RESET
RESET
(RST)
(RST)
MC68HC705P6A Advance Information Data Sheet, Rev. 2.1
DATA DIRECTION
DATA DIRECTION
Table
Figure 6-3. Port C I/O Circuitry
Figure 6-4. Port D I/O Circuitry
REGISTER BIT
REGISTER BIT
REGISTER BIT
REGISTER BIT
DATA
DATA
6-1,
Table
6-2,
Table
6-3, and
Table
6-4. The direction of a pin
OUTPUT
OUTPUT
Figure
PIN
PIN
I/O
I/O
6-4).
Port D
39

Related parts for MC705P6A