PCD is a C Compiler for Microchip's 24bit opcode family of microcontrollers, which include the dsPIC30, dsPIC33 and PIC24 families. The compiler is specifically designed to meet the unique needs of the dsPIC® microcontroller. This allows developers to quickly design applications software in a more readable, high-level language
去CCS下載使用手冊就有函數使用方式
These options lets the user configure the Motor Control Pulse Width Modulator (MCPWM) module. The MCPWM is used to generate a periodic pulse waveform which is useful is motor control and power control applications. The options for these functions vary depending on the chip and are listed in the device header file. Relevant Functions: setup_motor_pwm(pwm,options, timebase); Configures the motor control PWM module. setup_motor_pwm_duty(pwm,unit,time) Configures the motor control PWM unit duty. set_motor_pwm_event(pwm,time) Configures the PWM event on the motor control unit. setup_motor_unit(pwm,unit,options, active_deadtime, inactive_deadtime); Configures the motor control PWM unit. get_motor_pmw_event(pwm); Returns the PWM event on the motor control unit.