A program-controlled unit is described. The program-controlled unit has a central
processing unit (CPU), peripheral units that are connected to the CPU via an internal
bus, and debug resources that can be used to trace and influence operations taking
place in the program-controlled unit. The program-controlled unit that is described
is characterized in that the debug resources and the peripheral units, which output
data from the program-controlled unit and/or can receive and pass on data which
is supplied to the program-controlled unit from the outside, are connected to one
another via a second internal bus. The data that is to be transmitted between the
debug resources and devices provided outside the program-controlled unit are transmitted
via the second internal bus and individual, a plurality of, or all the peripheral
units connected thereto.