Q about PWM

king_esp
Posts: 2
Joined: Mon Jan 18, 2016 9:48 am

Q about PWM

Postby king_esp » Tue Jan 26, 2016 6:29 pm

All,

如下测试代码,在示波器上测量到 GPIO12--15 上输出方波,但频率在跳动,1K 持续几秒会跳到10K以上,然后又回到1K,是否代码有误?谢谢
light_param.pwm_duty[0]=11111;
light_param.pwm_duty[1]=11111;
light_param.pwm_duty[2]=11111;
light_param.pwm_duty[3]=11111;
light_param.pwm_duty[4]=11111;

pwm_init(1000,light_param.pwm_duty,5,io_info);

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Q about PWM

Postby ESP_Faye » Wed Jan 27, 2016 4:47 pm

您好,

请问您是使用 ESP8266_NONOS_SDK 还是 ESP8266_RTOS_SDK ?

您是基于我司提供的 example 改了如上代码,其他仍然是默认的吗?

能否提供波形截图以供分析?

感谢您对 ESP8266 的关注!

Who is online

Users browsing this forum: No registered users and 3 guests