29.14 ATmega324PB Boundary-scan Order

The table below shows the Scan order between TDI and TDO when the Boundary-scan Chain is selected as data path. Bit 0 is the LSB; the first bit scanned in, and the first bit scanned out. The scan order follows the pin-out order as far as possible. Therefore, the bits of Port A are scanned in the opposite bit order of the other ports.

Exceptions from the rules are the scan chains for the analog circuits, which constitute the most significant bits of the scan chain regardless of which physical pin they are connected to. In Figure 29-5, PXn. Data corresponds to FF0, PXn. Control corresponds to FF1, and PXn. Pullup_enable corresponds to FF2. Bit 2, 3, 4, and 5 of Port C is not in the scan chain, since these pins constitute the TAP pins when the JTAG is enabled.

Table 29-2. ATmega324PB Boundary-scan Order
Bit NumberSignal NameModule
58PB7.DataPort B
57PB7.Control
56RSTTReset Logic (Observe Only)
55PE0.DataPort E
54PE0.Control
53PE1.Data
52PE1.Control
51PE2.Data
50PE2.Control
49PE3.Data
48PE3.Control
47PE4.Data
46PE4.Control
45PE5.Data
44PE5.Control
43PE6.Data
42PE6.Control
41PE7.Data
40PE7.Control
39PD0.DataPort D
38PD0.Control
37PD1.Data
36PD1.Control
35PD2.Data
34PD2.Control
33PD3.Data
32PD3.Control
31PD4.Data
30PD4.Control
29PD5.Data
28PD5.Control
27PD6.Data
26PD6.Control
25PD7.Data
24PD7.Control
23PC0.DataPort C
22PC0.Control
21PC1.Data
20PC1.Control
19PC6.Data
18PC6.Control
17PC7.Data
16PC7.Control
15PA7.DataPort A
14PA7.Control
13PA6.Data
12PA6.Control
11PA5.Data
10PA5.Control
9PA4.Data
8PA4.Control
7PA3.Data
6PA3.Control
5PA2.Data
4PA2.Control
3PA1.Data
2PA1.Control
1PA0.Data
0PA0.Control