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

📄 smpspwm.h

📁 Mplab C30编译器
💻 H
📖 第 1 页 / 共 5 页
字号:
#define PWM1_LEB_COUNT_VAL105			0x0340  /* LEB value */
#define PWM1_LEB_COUNT_VAL106			0x0348  /* LEB value */
#define PWM1_LEB_COUNT_VAL107			0x0350  /* LEB value */
#define PWM1_LEB_COUNT_VAL108			0x0358  /* LEB value */
#define PWM1_LEB_COUNT_VAL109			0x0360  /* LEB value */
#define PWM1_LEB_COUNT_VAL110			0x0368  /* LEB value */
#define PWM1_LEB_COUNT_VAL111			0x0370  /* LEB value */
#define PWM1_LEB_COUNT_VAL112			0x0378  /* LEB value */
#define PWM1_LEB_COUNT_VAL113			0x0380  /* LEB value */
#define PWM1_LEB_COUNT_VAL114			0x0388  /* LEB value */
#define PWM1_LEB_COUNT_VAL115			0x0390  /* LEB value */
#define PWM1_LEB_COUNT_VAL116			0x0398  /* LEB value */
#define PWM1_LEB_COUNT_VAL117			0x03A0  /* LEB value */
#define PWM1_LEB_COUNT_VAL118			0x03A8  /* LEB value */
#define PWM1_LEB_COUNT_VAL119			0x03B0  /* LEB value */
#define PWM1_LEB_COUNT_VAL120			0x03B8  /* LEB value */
#define PWM1_LEB_COUNT_VAL121			0x03C0  /* LEB value */
#define PWM1_LEB_COUNT_VAL122			0x03C8  /* LEB value */
#define PWM1_LEB_COUNT_VAL123			0x03D0  /* LEB value */
#define PWM1_LEB_COUNT_VAL124			0x03D8  /* LEB value */
#define PWM1_LEB_COUNT_VAL125			0x03E0  /* LEB value */
#define PWM1_LEB_COUNT_VAL126			0x03E8  /* LEB value */
#define PWM1_LEB_COUNT_VAL127			0x03F0  /* LEB value */
#define PWM1_LEB_COUNT_VAL128			0x03F8  /* LEB value */


/*----------------------------------------------------------------------------------------------------*/
/* LEBCON2 Configuration Bit Definitions : */
/*----------------------------------------------------------------------------------------------------*/

#define PWM2_H_LEB_RISE_TRIG_EN			0x8000  /* Rising edge of PWMH will trigger LEB counter */
#define PWM2_H_LEB_RISE_TRIG_DIS		0x0000  /* LEB ignores rising edge of PWMH */

#define PWM2_H_LEB_FALL_TRIG_EN			0x4000  /* Falling edge of PWMH will trigger LEB counter */
#define PWM2_H_LEB_FALL_TRIG_DIS		0x0000  /* LEB ignores Falling edge of PWMH */

#define PWM2_L_LEB_RISE_TRIG_EN			0x2000  /* Rising edge of PWML will trigger LEB counter */
#define PWM2_L_LEB_RISE_TRIG_DIS		0x0000  /* LEB ignores rising edge of PWML */

#define PWM2_L_LEB_FALL_TRIG_EN			0x1000  /* Falling edge of PWML will trigger LEB counter */
#define PWM2_L_LEB_FALL_TRIG_DIS		0x0000  /* LEB ignores Falling edge of PWML */

#define PWM2_LEB_FLT_IP_EN				0x0800  /* LEB is applied to the selected fault Input */
#define PWM2_LEB_FLT_IP_DIS				0x0000  /* LEB is not applied to the selected fault Input */ 

#define PWM2_LEB_CL_IP_EN				0x0400  /* LEB is applied to the selected Current Limit Input */
#define PWM2_LEB_CL_IP_DIS				0x0000  /* LEB is not applied to the selected Current Limit Input */

#define PWM2_LEB_COUNT_VAL1				0x0000  /* LEB value */
#define PWM2_LEB_COUNT_VAL2				0x0008  /* LEB value */
#define PWM2_LEB_COUNT_VAL3				0x0018  /* LEB value */
#define PWM2_LEB_COUNT_VAL4				0x0020  /* LEB value */
#define PWM2_LEB_COUNT_VAL5				0x0028  /* LEB value */
#define PWM2_LEB_COUNT_VAL6				0x0030  /* LEB value */
#define PWM2_LEB_COUNT_VAL7				0x0038  /* LEB value */
#define PWM2_LEB_COUNT_VAL8				0x0040  /* LEB value */
#define PWM2_LEB_COUNT_VAL9				0x0048  /* LEB value */
#define PWM2_LEB_COUNT_VAL10			0x0050  /* LEB value */
#define PWM2_LEB_COUNT_VAL11			0x0058  /* LEB value */
#define PWM2_LEB_COUNT_VAL12			0x0060  /* LEB value */
#define PWM2_LEB_COUNT_VAL13			0x0068  /* LEB value */
#define PWM2_LEB_COUNT_VAL14			0x0070  /* LEB value */
#define PWM2_LEB_COUNT_VAL16			0x0078  /* LEB value */
#define PWM2_LEB_COUNT_VAL17			0x0080  /* LEB value */
#define PWM2_LEB_COUNT_VAL18			0x0088  /* LEB value */
#define PWM2_LEB_COUNT_VAL19			0x0090  /* LEB value */
#define PWM2_LEB_COUNT_VAL20			0x0098  /* LEB value */
#define PWM2_LEB_COUNT_VAL21			0x00A0  /* LEB value */
#define PWM2_LEB_COUNT_VAL22			0x00A8  /* LEB value */
#define PWM2_LEB_COUNT_VAL23			0x00B0  /* LEB value */
#define PWM2_LEB_COUNT_VAL24			0x00B8  /* LEB value */
#define PWM2_LEB_COUNT_VAL25			0x00C0  /* LEB value */
#define PWM2_LEB_COUNT_VAL26			0x00C8  /* LEB value */
#define PWM2_LEB_COUNT_VAL27			0x00D0  /* LEB value */
#define PWM2_LEB_COUNT_VAL28			0x00D8  /* LEB value */
#define PWM2_LEB_COUNT_VAL29			0x00E0  /* LEB value */
#define PWM2_LEB_COUNT_VAL30			0x00E8  /* LEB value */
#define PWM2_LEB_COUNT_VAL31			0x00F0  /* LEB value */
#define PWM2_LEB_COUNT_VAL32			0x00F8  /* LEB value */
#define PWM2_LEB_COUNT_VAL33			0x0100  /* LEB value */
#define PWM2_LEB_COUNT_VAL34			0x0108  /* LEB value */
#define PWM2_LEB_COUNT_VAL35			0x0110  /* LEB value */
#define PWM2_LEB_COUNT_VAL36			0x0118  /* LEB value */
#define PWM2_LEB_COUNT_VAL37			0x0120  /* LEB value */
#define PWM2_LEB_COUNT_VAL38			0x0128  /* LEB value */
#define PWM2_LEB_COUNT_VAL39			0x0130  /* LEB value */
#define PWM2_LEB_COUNT_VAL40			0x0138  /* LEB value */
#define PWM2_LEB_COUNT_VAL41			0x0140  /* LEB value */
#define PWM2_LEB_COUNT_VAL42			0x0148  /* LEB value */
#define PWM2_LEB_COUNT_VAL43			0x0150  /* LEB value */
#define PWM2_LEB_COUNT_VAL44			0x0158  /* LEB value */
#define PWM2_LEB_COUNT_VAL45			0x0160  /* LEB value */
#define PWM2_LEB_COUNT_VAL46			0x0168  /* LEB value */
#define PWM2_LEB_COUNT_VAL47			0x0170  /* LEB value */
#define PWM2_LEB_COUNT_VAL48			0x0178  /* LEB value */
#define PWM2_LEB_COUNT_VAL49			0x0180  /* LEB value */
#define PWM2_LEB_COUNT_VAL50			0x0188  /* LEB value */
#define PWM2_LEB_COUNT_VAL51			0x0190  /* LEB value */
#define PWM2_LEB_COUNT_VAL52			0x0198  /* LEB value */
#define PWM2_LEB_COUNT_VAL53			0x01A0  /* LEB value */
#define PWM2_LEB_COUNT_VAL54			0x01A8  /* LEB value */
#define PWM2_LEB_COUNT_VAL55			0x01B0  /* LEB value */
#define PWM2_LEB_COUNT_VAL56			0x01B8  /* LEB value */
#define PWM2_LEB_COUNT_VAL57			0x01C0  /* LEB value */
#define PWM2_LEB_COUNT_VAL58			0x01C8  /* LEB value */
#define PWM2_LEB_COUNT_VAL59			0x01D0  /* LEB value */
#define PWM2_LEB_COUNT_VAL60			0x01D8  /* LEB value */
#define PWM2_LEB_COUNT_VAL61			0x01E0  /* LEB value */
#define PWM2_LEB_COUNT_VAL62			0x01E8  /* LEB value */
#define PWM2_LEB_COUNT_VAL63			0x01F0  /* LEB value */
#define PWM2_LEB_COUNT_VAL64			0x01F8  /* LEB value */
#define PWM2_LEB_COUNT_VAL65			0x0200  /* LEB value */
#define PWM2_LEB_COUNT_VAL66			0x0208  /* LEB value */
#define PWM2_LEB_COUNT_VAL67			0x0210  /* LEB value */
#define PWM2_LEB_COUNT_VAL68			0x0218  /* LEB value */
#define PWM2_LEB_COUNT_VAL69			0x0220  /* LEB value */
#define PWM2_LEB_COUNT_VAL70			0x0228  /* LEB value */
#define PWM2_LEB_COUNT_VAL71			0x0230  /* LEB value */
#define PWM2_LEB_COUNT_VAL72			0x0238  /* LEB value */
#define PWM2_LEB_COUNT_VAL73			0x0240  /* LEB value */
#define PWM2_LEB_COUNT_VAL74			0x0248  /* LEB value */
#define PWM2_LEB_COUNT_VAL75			0x0250  /* LEB value */
#define PWM2_LEB_COUNT_VAL76			0x0258  /* LEB value */
#define PWM2_LEB_COUNT_VAL77			0x0260  /* LEB value */
#define PWM2_LEB_COUNT_VAL78			0x0268  /* LEB value */
#define PWM2_LEB_COUNT_VAL79			0x0270  /* LEB value */
#define PWM2_LEB_COUNT_VAL80			0x0278  /* LEB value */
#define PWM2_LEB_COUNT_VAL81			0x0280  /* LEB value */
#define PWM2_LEB_COUNT_VAL82			0x0288  /* LEB value */
#define PWM2_LEB_COUNT_VAL83			0x0290  /* LEB value */
#define PWM2_LEB_COUNT_VAL84			0x0298  /* LEB value */
#define PWM2_LEB_COUNT_VAL85			0x02A0  /* LEB value */
#define PWM2_LEB_COUNT_VAL86			0x02A8  /* LEB value */
#define PWM2_LEB_COUNT_VAL87			0x02B0  /* LEB value */
#define PWM2_LEB_COUNT_VAL88			0x02B8  /* LEB value */
#define PWM2_LEB_COUNT_VAL89			0x02C0  /* LEB value */
#define PWM2_LEB_COUNT_VAL90			0x02C8  /* LEB value */
#define PWM2_LEB_COUNT_VAL91			0x02D0  /* LEB value */
#define PWM2_LEB_COUNT_VAL92			0x02D8  /* LEB value */
#define PWM2_LEB_COUNT_VAL93			0x02E0  /* LEB value */
#define PWM2_LEB_COUNT_VAL94			0x02E8  /* LEB value */
#define PWM2_LEB_COUNT_VAL95			0x02F0  /* LEB value */
#define PWM2_LEB_COUNT_VAL96			0x02F8  /* LEB value */
#define PWM2_LEB_COUNT_VAL97			0x0300  /* LEB value */
#define PWM2_LEB_COUNT_VAL98			0x0308  /* LEB value */
#define PWM2_LEB_COUNT_VAL99			0x0310  /* LEB value */
#define PWM2_LEB_COUNT_VAL100			0x0318  /* LEB value */
#define PWM2_LEB_COUNT_VAL101			0x0320  /* LEB value */
#define PWM2_LEB_COUNT_VAL102			0x0328  /* LEB value */
#define PWM2_LEB_COUNT_VAL103			0x0330  /* LEB value */
#define PWM2_LEB_COUNT_VAL104			0x0338  /* LEB value */
#define PWM2_LEB_COUNT_VAL105			0x0340  /* LEB value */
#define PWM2_LEB_COUNT_VAL106			0x0348  /* LEB value */
#define PWM2_LEB_COUNT_VAL107			0x0350  /* LEB value */
#define PWM2_LEB_COUNT_VAL108			0x0358  /* LEB value */
#define PWM2_LEB_COUNT_VAL109			0x0360  /* LEB value */
#define PWM2_LEB_COUNT_VAL110			0x0368  /* LEB value */
#define PWM2_LEB_COUNT_VAL111			0x0370  /* LEB value */
#define PWM2_LEB_COUNT_VAL112			0x0378  /* LEB value */
#define PWM2_LEB_COUNT_VAL113			0x0380  /* LEB value */
#define PWM2_LEB_COUNT_VAL114			0x0388  /* LEB value */
#define PWM2_LEB_COUNT_VAL115			0x0390  /* LEB value */
#define PWM2_LEB_COUNT_VAL116			0x0398  /* LEB value */
#define PWM2_LEB_COUNT_VAL117			0x03A0  /* LEB value */
#define PWM2_LEB_COUNT_VAL118			0x03A8  /* LEB value */
#define PWM2_LEB_COUNT_VAL119			0x03B0  /* LEB value */
#define PWM2_LEB_COUNT_VAL120			0x03B8  /* LEB value */
#define PWM2_LEB_COUNT_VAL121			0x03C0  /* LEB value */
#define PWM2_LEB_COUNT_VAL122			0x03C8  /* LEB value */
#define PWM2_LEB_COUNT_VAL123			0x03D0  /* LEB value */
#define PWM2_LEB_COUNT_VAL124			0x03D8  /* LEB value */
#define PWM2_LEB_COUNT_VAL125			0x03E0  /* LEB value */
#define PWM2_LEB_COUNT_VAL126			0x03E8  /* LEB value */
#define PWM2_LEB_COUNT_VAL127			0x03F0  /* LEB value */
#define PWM2_LEB_COUNT_VAL128			0x03F8  /* LEB value */

/*----------------------------------------------------------------------------------------------------*/
/* LEBCON3 Configuration Bit Definitions : */
/*----------------------------------------------------------------------------------------------------*/

#define PWM3_H_LEB_RISE_TRIG_EN			0x8000  /* Rising edge of PWMH will trigger LEB counter */
#define PWM3_H_LEB_RISE_TRIG_DIS		0x0000  /* LEB ignores rising edge of PWMH */

#define PWM3_H_LEB_FALL_TRIG_EN			0x4000  /* Falling edge of PWMH will trigger LEB counter */
#define PWM3_H_LEB_FALL_TRIG_DIS		0x0000  /* LEB ignores Falling edge of PWMH */

#define PWM3_L_LEB_RISE_TRIG_EN			0x2000  /* Rising edge of PWML will trigger LEB counter */
#define PWM3_L_LEB_RISE_TRIG_DIS		0x0000  /* LEB ignores rising edge of PWML */

#define PWM3_L_LEB_FALL_TRIG_EN			0x1000  /* Falling edge of PWML will trigger LEB counter */
#define PWM3_L_LEB_FALL_TRIG_DIS		0x0000  /* LEB ignores Falling edge of PWML */

#define PWM3_LEB_FLT_IP_EN				0x0800  /* LEB is applied to the selected fault Input */
#define PWM3_LEB_FLT_IP_DIS				0x0000  /* LEB is not applied to the selected fault Input */ 

#define PWM3_LEB_CL_IP_EN				0x0400  /* LEB is applied to the selected Current Limit Input */
#define PWM3_LEB_CL_IP_DIS				0x0000  /* LEB is not applied to the selected Current Limit Input */

#define PWM3_LEB_COUNT_VAL1				0x0000  /* LEB value */
#define PWM3_LEB_COUNT_VAL2				0x0008  /* LEB value */
#define PWM3_LEB_COUNT_VAL3				0x0018  /* LEB value */
#define PWM3_LEB_COUNT_VAL4				0x0020  /* LEB value */
#define PWM3_LEB_COUNT_VAL5				0x0028  /* LEB value */
#define PWM3_LEB_COUNT_VAL6				0x0030  /* LEB value */
#define PWM3_LEB_COUNT_VAL7				0x0038  /* LEB value */
#define PWM3_LEB_COUNT_VAL8				0x0040  /* LEB value */
#define PWM3_LEB_COUNT_VAL9				0x0048  /* LEB value */
#define PWM3_LEB_COUNT_VAL10			0x0050  /* LEB value */
#define PWM3_LEB_COUNT_VAL11			0x0058  /* LEB value */
#define PWM3_LEB_COUNT_VAL12			0x0060  /* LEB value */
#define PWM3_LEB_COUNT_VAL13			0x0068  /* LEB value */
#define PWM3_LEB_COUNT_VAL14			0x0070  /* LEB value */
#define PWM3_LEB_COUNT_VAL16			0x0078  /* LEB value */
#define PWM3_L

⌨️ 快捷键说明

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