The invention provides a
clock processing circuit in a
chip debugging mode and a
clock processing method thereof. The
clock processing circuit comprises a first selector, a second selector, a latch and a logic
AND gate, the first selector is connected with the second selector, the second selector is connected with the latch, and the latch is connected with the logic
AND gate. In a
chip debugging mode, a
chip carries out special processing on the
system clock, a
system clock signal can be turned over normally, moreover, after the chip enters the dormant state, the
system clock does not stop dueto system
dormancy, the chip and a computer can normally send and receive the
signal for confirming the connection state, the chip can still work normally without exiting the debugging mode, the problem that the chip running program is interrupted in the debugging process is solved, the chip running program development process is optimized, and the development efficiency of the chip running program is improved.