C8051F040/1/2/3/4/5/6/7
25.1. Boundary Scan
The DR in the Boundary Scan path is an 134-bit shift register. The Boundary DR provides control and
observability of all the device pins as well as the SFR bus and Weak Pullup feature via the EXTEST and
SAMPLE commands.
Table 25.1. Boundary Data Register Bit Definitions
EXTEST provides access to both capture and update actions, while Sample only performs a capture.
Bit
Action Target
0
Capture Reset Enable from MCU
Update Reset Enable to /RST pin
1
Capture Reset input from /RST pin
Update Reset output to /RST pin
2
Capture Reset Enable from MCU
Update Reset Enable to /RST pin
3
Capture Reset input from /RST pin
Update Reset output to /RST pin
4
Capture CANRX output enable to pin
Update CANRX output enable to pin
5
Capture CANRX input from pin
Update CANRX output to pin
6
Capture CANTX output enable to pin
Update CANTX output enable to pin
7
Capture CANTX input from pin
Update CANTX output to pin
8
Capture External Clock from XTAL1 pin
Update Not used
9
Capture Weak pullup enable from MCU
Update Weak pullup enable to Port Pins
10, 12, 14, 16, 18, Capture P0.n output enable from MCU (e.g. Bit6=P0.0, Bit8=P0.1, etc.)
20, 22, 24
Update P0.n output enable to pin (e.g. Bit6=P0.0oe, Bit8=P0.1oe, etc.)
11, 13, 15, 17, 19, Capture P0.n input from pin (e.g. Bit7=P0.0, Bit9=P0.1, etc.)
21, 23, 25
Update P0.n output to pin (e.g. Bit7=P0.0, Bit9=P0.1, etc.)
26, 28, 30, 32, 34, Capture P1.n output enable from MCU
36, 38, 40
Update P1.n output enable to pin
27, 29, 31, 33, 35, Capture P1.n input from pin
37, 39, 41
Update P1.n output to pin
42, 44, 46, 48, 50, Capture P2.n output enable from MCU
52, 54, 56
Update P2.n output enable to pin
43, 45, 47, 49, 51, Capture P2.n input from pin
53, 55, 57
Update P2.n output to pin
58, 60, 62, 64, 66, Capture P3.n output enable from MCU
68, 70, 72
Update P3.n output enable to pin
59, 61, 63, 65, 67, Capture P3.n input from pin
69, 71, 73
Update P3.n output to pin
74, 76, 78, 80, 82, Capture P4.n output enable from MCU
84, 86, 88
Update P4.n output enable to pin
318
Rev. 1.5