TC1796
System Units (Vol. 1 of 2)
Peripheral Control Processor (PCP)
User’s Manual
11-86
V2.0, 2007-07
PCP, V2.0
11.11.12 DEBUG, Debug Instruction
This section describes the DEBUG instruction of the PCP.
Note: Execution of the DEBUG command when not in Debug Mode will cause the PCP
to generate an “Illegal Operation” Error Exit.
DEBUG
Syntax
DEBUG EDA, DAC, RTA, SDB, cc_B
Description
Conditionally cause a debug event if condition CONDCB is
true. Optionally stop channel execution (SDB = 1) and/or
generate an external debug event (EDA = 1).
Operation
if (CONDCB = True) then
if (EDA = 1) then activate BRK_OUT pin
if (SDB = 1) then
if (RTA = 0) then
R7_CEN = 0; disable further channel invocation
else
PC = PC - 1
endif
save_context
idle
endif
if (DAC = 1)
PCP_CS > EN = 0
endif
set ES.DBE; indicate debug event
ES.PC = NextPC
ES.PN = channel_number
endif
Flags
none