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

#ifndef TIMER2_C_
#define TIMER2_C_

void Init_T2()
{
	PP5H =0x27;
	PP5L =0x10;//重载值计到10000，
	T2CTL0 =0x4F;//后分频器10分频，前分频是16分频，使能T2
	T2CTL1 =0;//默认往上计数

	T2H =0;
	T2L =0;
}

#endif /* TIMER2_C_ */
