23.2.3.5 Debug Operation

When run-time debugging, this peripheral will continue normal operation. Halting the CPU in Debugging mode will halt normal operation of the peripheral.

This peripheral can be forced to operate with halted CPU by writing a '1' to the Debug Run bit (DBGRUN) in the Debug Control register of the peripheral (peripheral.DBGCTRL).

When the Fault Detection bit (FAULTDET in TCDn.DBGCTRL) is written to '1' and the CPU is halted in Debug mode, an event/fault is created on both input event channels. These events/faults will last as long as the break and can serve as a safeguard in Debug mode, e.g. by forcing external components OFF.

If the peripheral is configured to require periodical service by the CPU through interrupts or similar, improper operation or data loss may result during halted debugging.