Mikroelektronika MIKROE-724 データシート

ページ / 726
436
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
HW Connection
PWM demonstration
PWM Motor Control Library
The PWM Motor Control module is available with a number of dsPIC30/33 MCUs. mikroBasic PRO for dsPIC30/33 and 
PIC24 provides a library which simplifies using the PWM Motor Control module.
Important: 
- Number of PWM modules per MCU differs from chip to chip. Please, read the appropriate datasheet before utilizing  
  this library. 
- PWM library routines require you to specify the module you want to use. To use the desired PWM module, simply    
  change the letter 
x in the routine prototype for a number from 1 to 2
Library Routines
 
- PWMx_Mc_Init 
 
- PWMx_Mc_Set_Duty 
 
- PWMx_Mc_Start 
 
- PWMx_Mc_Stop