mc9s12xd256 Freescale Semiconductor, Inc, mc9s12xd256 Datasheet - Page 930

no-image

mc9s12xd256

Manufacturer Part Number
mc9s12xd256
Description
Hcs12x Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc9s12xd256CAA
Manufacturer:
FREESCALE
Quantity:
3 564
Part Number:
mc9s12xd256CAA
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc9s12xd256CAA
Manufacturer:
FREESCALE
Quantity:
3 564
Part Number:
mc9s12xd256CAG
Manufacturer:
FREESCALE
Quantity:
1 540
Part Number:
mc9s12xd256CAG
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Chapter 23 DQ256 Port Integration Module (S12XDQ256PIMV2)
23.0.5.15 Port K Data Register (PORTK)
Read: Anytime. In emulation modes, read operations will return the data from the external bus, in all other
modes the data source is depending on the data direction value.
Write: Anytime. In emulation modes, write operations will also be directed to the external bus.
23.0.5.16 Port K Data Direction Register (DDRK)
Read: Anytime. In emulation modes, read operations will return the data from the external bus, in all other
modes the data source is depending on the data direction value.
Write: Anytime. In emulation modes, write operations will also be directed to the external bus.
This register controls the data direction for port K. When Port K is operating as a general purpose I/O port,
DDRK determines whether each pin is an input or output. A logic level “1” causes the associated port pin
to be an output and a logic level “0” causes the associated pin to be a high-impedance input.
930
PK[7:0]
Reset
Reset
Func.
Field
7–0
Alt.
W
W
R
R
ROMCTL
DDRK7
EWAIT
Port K — Port K pins 7–0 are associated with external bus control signals and internal memory expansion
emulation pins. These include ADDR22-ADDR16, No-Access (NOACC), External Wait (EWAIT) and instruction
pipe signals IQSTAT3-IQSTAT0. Bits 6-0 carry the external addresses in all expanded modes. In emulation or
special test mode with internal visibility enabled the address is multiplexed with the alternate functions NOACC
and IQSTAT on the respective pins. In single-chip modes the port pins can be used as general-purpose I/O. If
the data direction bits of the associated I/O pins are set to logic level “1”, a read returns the value of the port
register, otherwise the buffered pin input state is read.
PK7
or
0
0
7
7
ADDR22
NOACC
DDRK6
PK6
mux
0
0
6
6
Figure 23-18. Port K Data Direction Register (DDRK)
Figure 23-17. Port K Data Register (PORTK)
Table 23-19. PORTK Field Descriptions
ADDR21
DDRK5
MC9S12XDP512 Data Sheet, Rev. 2.17
PK5
0
0
5
5
ADDR20
DDRK4
PK4
0
0
4
4
Description
ADDR19
IQSTAT3
DDRK3
PK3
mux
0
0
3
3
ADDR18
IQSTAT2
DDRK2
PK2
mux
0
0
2
2
ADDR17
IQSTAT1
DDRK1
Freescale Semiconductor
PK1
mux
0
0
1
1
ADDR16
IQSTAT0
DDRK0
PK0
mux
0
0
0
0

Related parts for mc9s12xd256