For Nuvoton's 8051 chips, can the timer be stopped during single-step execution in Keil Debug mode?
A
a_ziliu - Senior Member
, May 31, 2021|
0
10677
0
Keil can turn off the peripheral clock in Debug mode to achieve the effect of stopping the Timer in a single-step. However, after this setting is made, the peripherals will have no action during single-step execution such as PWM output.
To suspend the Timer in Debug mode, please follow the steps below:
(1) Click the ”Options for target” icon
(2) Click the Settings button
(3) Uncheck “Enable PCLK”