两驱闭环 2010年11月4日
两驱闭环 2010年11月4日
// 程序 中调节量以注清
#include machine.h
#include h8_3048.h
#include math.h
#define TIMER_CYCLE 3071 /* Timer cycle: 1 ms */
/* When using cy/8, */
/* cy/8 = 325.5 [ns] */
/* Thus TIMER_CYCLE = */
/* 1[ms] / 325.5[ns] */
/* = 3072 */
#define PWM_CYCLE 30721// 49151 /* PWM cycle: 16 ms */
原创力文档

文档评论(0)