/*
 * PWM3.c
 *
 *  Created on: 2019-8-26
 *      Author: charles_cai
 */
#include"main.h"

#ifndef PWM3_C_
#define PWM3_C_

void Init_pwm3()
{
	PP3H =0;
	PP3L = 99;//设置周期

	PWM30H =0;
	PWM30L =20;//设置PWM30的占空比

	PWM31H =0;
	PWM31L =40;//设置PWM30的占空比

	PWM32H =0;
	PWM32L =60;//设置PWM30的占空比

	PWM33H =0;
	PWM33L =80;//设置PWM30的占空比

	PWM3CTL =0x0F;//4个PWM输出全开
}

#endif /* PWM3_C_ */
