⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configsmpspwm2.c

📁 Mplab C30编译器
💻 C
字号:
#if defined(__dsPIC30F__) 
#include <p30fxxxx.h>
#elif defined(__dsPIC33F__)
#include <p33Fxxxx.h>
#endif

#include "smpspwm.h"
#ifdef _PSEMIF 


/*************************************************************************
* Function Name     : ConfigSmpsPWM2
* Description       : This function configures the PWM2 Pair by writing to PWMCON2, 
*                     IOCON2, PHASE2 and TRGCON2 registers.                       
* Parameters        : unsigned int config1,unsigned int config2,unsigned int config3,
*                     unsigned int config4
* Return Value      : None 
**************************************************************************/

void ConfigSmpsPWM2(unsigned int config1,unsigned int config2,unsigned int config3,
                    unsigned int config4)
{
    PWMCON2 = config1 ; 
	IOCON2  = config2 ; 
    PHASE2  = config3 ; 
    TRGCON2 = config4 ; 
}
#else
#warning "Does not build on this target"
#endif
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -