8 port f, 1 port f data register (ptf), Port f – Freescale Semiconductor MC68HC08KH12 User Manual

Page 202: Port f data register (ptf), 19 port f data register (ptf)

Advertising
background image

Advance Information

MC68HC(7)08KH12

Rev. 1.1

202

Freescale Semiconductor

12.8 Port F

Port F is an 8-bit general-purpose bidirectional I/O port that shares its
pins with the keyboard interrupt module (KBI). All Port F pins have built-
in schmitt triggered input and software configurable pull-up.

12.8.1 Port F Data Register (PTF)

The port F data register contains a data latch for each of the eight port F
pins.

PTF[7:0] — Port F Data Bits

These read/write bits are software programmable. Data direction of
each port F pin is under the control of the corresponding bit in data
direction register F. Reset has no effect on port F data.

The port-F keyboard interrupt enable bits, KBFIE7—KBFIE0, in the
port-F keyboard interrupt enable register (KBFIER), enable the port F
pins as external interrupt pins.

See Section 15. Keyboard Interrupt

Module (KBI)

.

The PFPE[7:0] bits in the port F keyboard pull-up enable register enable
individual pull-ups on port F pins if the respective pin is configured as an
input.

(See 15.6.3.3 Port-F Pull-up Enable Register

.)

Address:

$0009

Bit 7

6

5

4

3

2

1

Bit 0

Read:

PTF7

PTF6

PTF5

PTF4

PTF3

PTF2

PTF1

PTF0

Write:

Reset:

Unaffected by reset

Alternate

Function:

KBF7

KBF6

KBF5

KBF4

KBF3

KBF2

KBF1

KBF0

Figure 12-19. Port F Data Register (PTF)

Advertising