3.10.6.5.12 DBGSW – Debug Support Switch

Name: DBGSW
Offset: 0x156
Reset: 0x00

Bit 76543210 
 DBGSECPBFCPBFOS[1:0]DBGGS[3:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bit 7 – DBGSE Debug Support Switch Enable

The debug support switch enable bit enables the debug support test mode. The selected signal group (DBGGS) overrides the normal port functionality.

The Data Direction Register (DDR) bit which corresponds to the debugging support pins (PC1, PC3, PC4, PC5, PB0, PB4) must be set in order to enable the output driver.

Bit 6 – CPBF CPU Busy Flag

This bit indicates that the CPU is busy. It will be automatically set if an interrupt is executed or if software writes the bit to ‘1’. It will be cleared if software writes the bit to ‘0’.

Bits 5:4 – CPBFOS[1:0] CPU Busy Flag Output Select

Selects the output port for the CPBF bit state. The selected port overrides the normal port functionality including the data direction register.

CPBFOS[1]CPBFOS[0]Selected Output Port
00No output port selected
01PB0
10PB4
11PC1

Bits 3:0 – DBGGS[3:0] Debugging Support Group Select

The four debug support group select bits code the group of internal signals, which are routed to the respective output pins.
DBGGS[3:0]PC1PC3PC4PC5PB0PB4
0WCOBWCOASOTBSOTAEOTBEOTA
1WCOBSOTBEOTBNBITB00
2WCOASOTAEOTANBITA00
30SSMERRSSMESM3SSMESM2SSMESM1SSMESM0
4SFIDOAWUPOAMANOASYTOAAMPOACAROA
5SFIDOBWUPOBMANOBSYTOBAMPOBCAROB
6MANFBSYTFBAMPFBCARFB00
7MANFASYTFAAMPFACARFA00
8GPIOR0[5]GPIOR0[4]GPIOR0[3]GPIOR0[2]GPIOR0[1]GPIOR0[0]
9GPIOR3[5]GPIOR3[4]GPIOR3[3]GPIOR3[2]GPIOR3[1]GPIOR3[0]
10GPIOR4[7]GPIOR4[6]GPIOR4[5]GPIOR4[4]GPIOR4[3]GPIOR4[2]
11GPIOR5[5]GPIOR5[4]GPIOR5[3]GPIOR5[2]GPIOR5[1]GPIOR5[0]
12GPIOR6[5]GPIOR6[4]GPIOR6[3]GPIOR6[2]GPIOR6[1]GPIOR6[0]
130SSMST4SSMST3SSMST2SSMST1SSMST0
14SSMSTA5SSMSTA4SSMSTA3SSMSTA2SSMSTA1SSMSTA0
15SSMSTB5SSMSTB4SSMSTB3SSMSTB2SSMSTB1SSMSTB0