
Semtech 2006
www.semtech.com
12-2
XE8805/05A
12.1 Features
Input / output / analog port, 8 bits wide
Each bit can be set individually for input or output
Each bit can be set individually for open-drain or push-pull
Each bit can be set individually for pull-up or not (for input or open-drain mode)
In open-drain mode, pull-up is not active when corresponding pad is set to zero
The 8 pads can be connected by pairs to four internal analog lines (4 line analog bus)
Two internal freq. (cpuck and 32 kHz) can be output on PB[2] and PB[3]
Product dependant:
Two PWM signal can be output on pads PB[0] and PB[1]
The synchronous serial interface (USRT) uses pads PB[5], PB[4]
The UART interface uses pads PB[6] and PB[7] for Tx and Rx
12.2 Overview
Port B is a multi-purpose 8 bit Input/output port. In addition to digital functions, all pins can be used for analog
signals. All port terminals can be selected by pairs as digital input or output or as analog to share one of four
possible analog lines.
12.3 Register map
Pos.
RegPBOut
rw
reset
description in digital mode
description in analog mode
7 – 0
PBOut[7-0]
r w
0 resetpconf
Pad PB[7-0] output value
Analog bus selection for pad PB[7-0]
Table 12-1: RegPBOut
Pos.
RegPBIn
rw
reset
description in digital mode
description in analog mode
7 – 0
PBIn[7-0]
r w
Pad PB[7-0] input status
Unused
Table 12-2: RegPBIn
Pos.
RegPBDir
rw
reset
description in digital mode
description in analog mode
7 – 0
PBDir [7-0]
r w
0 resetpconf
Pad PB[7-0] direction (0=input)
Analog bus selection for pad PB[7-0]
Table 12-3: RegPBDir
Pos.
RegPBOpen
rw
reset
description in digital mode
description in analog mode
7 – 0
PBOpen[7-0]
r w
0 resetpconf
Pad PB[7-0] open drain (1 = open
drain)
Unused
Table 12-4: RegPBOpen
Pos.
RegPBPullup
rw
reset
description in digital mode
description in analog mode
7 –0
PBPullup[7]
r w
0 resetpconf
Pull-up for pad PB[7-0] (1=active)
Connect pad PB[7-0] on selected ana
bus
Table 12-5: RegPBPullup
Pos.
RegPBAna
rw
reset
description in digital mode
description in analog mode
7 – 4
--
r
0000
Unused
3
PBAna [3]
r w
0 resetpconf
Set PB[7:6] in analog mode
2
PBAna [2]
r w
0 resetpconf
Set PB[5:4] in analog mode
1
PBAna [1]
r w
0 resetpconf
Set PB[3:2] in analog mode
0
PBAna [0]
r w
0 resetpconf
Set PB[1:0] in analog mode
Table 12-6: RegPBAna
Not
Recommended
for
New
Designs