mpc5604的pwm配置谁有啊
mpc5604的pwm配置谁有啊RE:mpc5604的pwm配置谁有啊
void initEMIOS_0ch11(void) /* EMIOS 0 CH 21: Output Pulse Width Modulation */{ //PA11
EMIOS_0.CH.CADR.R=0; /* Leading edge when channel counter bus=250*/
EMIOS_0.CH.CBDR.R=0; /* Trailing edge when channel counter bus=500*/
EMIOS_0.CH.CCR.B.BSL=0x0; /* Use counter bus A (default) */
EMIOS_0.CH.CCR.B.EDPOL=1; /* Polarity-leading edge sets output/trailing clears*/
EMIOS_0.CH.CCR.B.MODE=0x60;/* Mode is OPWM Buffered */
SIU.PCR.R=0x0600; /* MPC56xxS: Assign EMIOS_0 ch 21 to pad PE5*/
}
emios0模块的通道11配置
页:
[1]