Port B Data Register (Port_Ptbd); Port C Data Register (Port_Ptcd) - NXP Semiconductors MC9S08SU16 Reference Manual

Table of Contents

Advertisement

Field
PTAD
Port A Data Register Bits
For port A pins that are configured as inputs, a read returns the logic level on the pin.
For port A pins that are configured as outputs, a read returns the last value that was written to this register.
Writes are latched into all bits of this register. For port A pins that are configured as outputs, the logic level
is driven out of the corresponding MCU pin.

8.5.2 Port B Data Register (PORT_PTBD)

Reading and writing of parallel I/O is accomplished through this register.
When a digital peripheral module or system function is selected and enabled on a pin,
reads of this register still returns the pin value of the associated pin if PORT_PTBDD[n]
= 0 (n=1-7). When a shared analog function is selected for a pin, all digital pin functions
are disabled. A read of this register returns a value of 0 for any bits that have shared
analog functions enabled.
A write of valid data to this register must occur before setting the direction control bit of
an associated port pin. This ensures that the pin will not be driven with an incorrect data
value.
Address: 0h base + 1h offset = 1h
Bit
7
Read
Write
Reset
0
Field
PTBD
Port B Data Register Bits
For port B pins that are configured as inputs, a read returns the logic level on the pin.
For port B pins that are configured as outputs, a read returns the last value that was written to this register.
Writes are latched into all bits of this register. For port B pins that are configured as outputs, the logic level
is driven out of the corresponding MCU pin.

8.5.3 Port C Data Register (PORT_PTCD)

Reading and writing of parallel I/O is accomplished through this register.
NXP Semiconductors
PORT_PTAD field descriptions
6
5
0
0
PORT_PTBD field descriptions
MC9S08SU16 Reference Manual, Rev. 5, 4/2017
Description
4
3
PTBD
0
0
Description
Chapter 8 Port Control (PORT)
2
1
0
0
0
0
87

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc9s08su16vfkMc9s08su8vfk

Table of Contents