Page 1 of 1

8258的PWM3的设置问题

Posted: Mon Jul 27, 2020 11:16 am
by dadou_arsen
我设置8258的PWM3(PD2)为PWM输出,但是只有1.8v的电压输出,这是为什么呢?

Code: Select all

	
	#define ColorTemperatureN  3
	#define TempPinN     GPIO_PD2
	 
	pwm_set_mode(ColorTemperatureN, 0, 0);
	pwm_set(ColorTemperatureN  ,PWM_FRE, PWM_FRE);
	pwm_start(ColorTemperatureN );
	gpio_set_output_en(TempPinN, 1);