For Nuvoton's 8051 chips, can the timer be stopped during single-step execution in Keil Debug mode?
Posted: 31 May 2021, 16:11
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”
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”