# include "config.h"
# define CYCLE_DATA 100; # define DUTY_C_D 50;
int main(void) { PINSEL0 = 0X00080000; PWMPR = 110591; PWMMCR = 0X02; PWMMR0 = CYCLE_DATA; PWMMR6 = DUTY_C_D; PWMLER = 0X41; PWMPCR = 0X4000; PWMTCR = 0X09; while(1); return(0); }
为什么无法产生pwm波,而我若把PWMPR设为99,0,之类的都可以啊:( |