Download Microcontrollers On Chip Debug Support

Transcript
On Chip Debug Support
C166S
OCDS Module
2.6.2
Debug Status Register DBGSR
Debug status register DBGSR contains several types of information about the current
status of the OCDS, including:
• A bit to indicate whether the debug support is enabled
• The source of the last debug event
• The system debug state
DBGSR
Debug Status Register
15
14
13
12
11
0
0
EVENT
SOURCE
rwh
Reset value 0000H
10
9
8
7
T.
E.
C.2
rwh
T.
E.
C.1
rwh
T.
E.
C.0
rwh
T.
R.
C.
rwh
6
5
4
3
2
1
0
0
0
O.
P.
S.
DEBUG
STATE
0
DBG
EN.
rwh
rwh
Field
Bits
Type Description
DEBUG_ENABLED
[0]
rwh
0
1
-
[1]
0
Reserved
DEBUG_STATE
[3:2]
rwh
Current debug state
00
User Mode
01
Software Debug Mode
10
Halt Debug Mode
11
Reserved
OCDS_P_SUSPEND [4]
rwh
0
1
-
[6:5]
0
Reserved
TRGEVT_R_CMP
[7]
rwh
0
1
Range comparison did not match
Comparison matched for the current
event
TRGEVT_E_CMP0
[8]
rwh
0
1
Equal comparison 0 did not match
Comparison matched for the current
event
TRGEVT_E_CMP1
[9]
rwh
0
1
Equal comparison 1 did not match
Comparison matched for the current
event
User’s Manual
OCDS C166S, V 1.0
OCDS is disabled
OCDS is enabled
No effect
Sensitive peripherals suspend their
operation
-19-
V 1.1, 2001-08