FXTH870xD
Sensors
48
Freescale Semiconductor, Inc.
6.5
Port B Registers
Port B PTB[1:0] functions are multiplexed with the LF receiver block such that the port B GPIOs become high impedance when
the LF block has been enabled. When the LF block is disabled, port B pins operate as described here.
$0004
Bit 7
6
5
4
3
2
1
Bit 0
R
PTBD[1:0]
W
Reset:
0
0
0
0
0
0
0
0
= Reserved
Figure 33. Port B Data Register (PTBD)
Table 36. Port B Data Register Field Descriptions
Field
Description
1:0
PTBD
[1:0]
Port B Data Register Bit n
— 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.
$0005
Bit 7
6
5
4
3
2
1
Bit 0
R
PTBPE[1:0]
W
Reset:
0
0
0
0
0
0
0
0
= Reserved
Figure 34. Internal Pullup Enable for Port B Register (PTBPE)
Table 37. Port B Register Pullup Enable Field Descriptions
Field
Description
1:0
PTBPE
[1:0]
Internal Pullup Enable for Port B Bit n
— Each of these control bits determines if 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.
0
Internal pullup device disabled for port B bit n.
1
Internal pullup device enabled for port B bit n.
$0007
Bit 7
6
5
4
3
2
1
Bit 0
R
PTBDD[1:0]
W
Reset:
0
0
0
0
0
0
0
0
= Reserved
Figure 35. Data Direction for Port B Register (PTBDD)
Table 38. Port B Data Direction Field Descriptions
Field
Description
1:0
PTBDD
[1:0]
Data Direction for Port B Bit n
— These read/write bits control the direction of port B pins and what is read for PTBDD reads.
0
Input (output driver disabled) and reads return the pin value.
1
Output driver enabled for port B bit n and PTBDD reads return the contents of PTBDDn.
Содержание FXTH870 D Series
Страница 86: ...FXTH870xD Sensors 84 Freescale Semiconductor Inc Figure 57 Data Flow For Measurements...
Страница 170: ...FXTH870xD Sensors 168 Freescale Semiconductor Inc 19 Package Outline Figure 127 QFN Case Outline...
Страница 171: ...FXTH870xD Sensors Freescale Semiconductor Inc 169 Figure 128 QFN Case Outline...
Страница 172: ...FXTH870xD Sensors 170 Freescale Semiconductor Inc Figure 129 QFN Case Outline...
Страница 173: ...FXTH870xD Sensors Freescale Semiconductor Inc 171...