EasyManua.ls Logo

NXP Semiconductors UM11227 - Port B Data Register (PTBD); Port B Pin Pull Enable Register (PTBE); Port B Data Direction Register (PTBDD)

NXP Semiconductors UM11227
205 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
NXP Semiconductors
UM11227
NTM88 family of tire pressure monitor sensors
UM11227 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
User manual Rev. 6 — 24 April 2020
67 / 205
10.12.1.5 Port B data register (PTBD)
Table 30. Port B data register (PTBD) (address $0004)
Bit 7 6 5 4 3 2 1 0
R 0 0 0 0 0 0
W
PTBD1 PTBD0
Reset ($00) 0 0 0 0 0 0 0 0
Table 31. PTBD register field descriptions
Field Description
1:0
PTBD[1:0]
PTBD[1:0] – For port B pins that are inputs, reads return the logic level on the pin. For port B pins that are
configured as outputs, reads return the last value 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 the corresponding MCU pin.
Reset forces PTBD to all 0s, but these 0s are not driven out the corresponding pins because reset also
configures all port pins as high-impedance inputs with pullups disabled.
Each bit 0 = pin inactive or connected to ground; Result of Reset
Each bit 1 = pin active or connected to V
DD(A)
0 0 = Result of Reset
10.12.1.6 Port B pin pull enable register (PTBE)
Table 32. Port B pin pull enable register (PTBE) (address $0005)
Bit 7 6 5 4 3 2 1 0
R 0 0 0 0 0 0
W
PTBPE1 PTBPE0
Reset ($00) 0 0 0 0 0 0 0 0
Table 33. PTBE register field descriptions
Field Description
1:0
PTBPE[1:0]
PTBPE[1:0] – Each bit selects the internal pullup device is enabled for the associated PTB pin. For port B
pins that are configured as outputs, these bits have no effect and the internal pullup devices are disabled.
Each bit 0 = Internal pullup device disabled for port B bit n; Result of Reset
Each bit 1 = Internal pullup device enabled for port B bit n.
0 0 = Result of Reset
10.12.1.7 Port B data direction register (PTBDD)
Table 34. Port B data direction (PTBDD) (address $0007)
Bit 7 6 5 4 3 2 1 0
R 0 0 0 0 0 0
W
PTBDD1 PTBDD0
Reset ($00) 0 0 0 0 0 0 0 0

Table of Contents