This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

app_pwm question: maximum tick value is 32000 with 32.768Khz external LF

Hi, I'm using app_pwm with 32.768Khz external xtal. the following is my setting in sdk_config.h.

// <0=> RC
// <1=> XTAL
// <2=> Synth

#ifndef CLOCK_CONFIG_LF_SRC
#define CLOCK_CONFIG_LF_SRC 1
#endif

app_pwm_cycle_ticks_get()

the above function returns the tick value about 100% duty cycle but the returned value was 32000 nevertheless we are using 32.768Khz external xtal. 

Why?

Related