📄 pwm12.h
字号:
#define PWM_DTA23 0xFFD7 /*Dead time Unit A PreScale select value */
#define PWM_DTA24 0xFFD8 /*Dead time Unit A PreScale select value */
#define PWM_DTA25 0xFFD9 /*Dead time Unit A PreScale select value */
#define PWM_DTA26 0xFFDA /*Dead time Unit A PreScale select value */
#define PWM_DTA27 0xFFDB /*Dead time Unit A PreScale select value */
#define PWM_DTA28 0xFFDC /*Dead time Unit A PreScale select value */
#define PWM_DTA29 0xFFDD /*Dead time Unit A PreScale select value */
#define PWM_DTA30 0xFFDE /*Dead time Unit A PreScale select value */
#define PWM_DTA31 0xFFDF /*Dead time Unit A PreScale select value */
#define PWM_DTA32 0xFFE0 /*Dead time Unit A PreScale select value */
#define PWM_DTA33 0xFFE1 /*Dead time Unit A PreScale select value */
#define PWM_DTA34 0xFFE2 /*Dead time Unit A PreScale select value */
#define PWM_DTA35 0xFFE3 /*Dead time Unit A PreScale select value */
#define PWM_DTA36 0xFFE4 /*Dead time Unit A PreScale select value */
#define PWM_DTA37 0xFFE5 /*Dead time Unit A PreScale select value */
#define PWM_DTA38 0xFFE6 /*Dead time Unit A PreScale select value */
#define PWM_DTA39 0xFFE7 /*Dead time Unit A PreScale select value */
#define PWM_DTA40 0xFFE8 /*Dead time Unit A PreScale select value */
#define PWM_DTA41 0xFFE9 /*Dead time Unit A PreScale select value */
#define PWM_DTA42 0xFFEA /*Dead time Unit A PreScale select value */
#define PWM_DTA43 0xFFEB /*Dead time Unit A PreScale select value */
#define PWM_DTA44 0xFFEC /*Dead time Unit A PreScale select value */
#define PWM_DTA45 0xFFED /*Dead time Unit A PreScale select value */
#define PWM_DTA46 0xFFEE /*Dead time Unit A PreScale select value */
#define PWM_DTA47 0xFFEF /*Dead time Unit A PreScale select value */
#define PWM_DTA48 0xFFF0 /*Dead time Unit A PreScale select value */
#define PWM_DTA49 0xFFF1 /*Dead time Unit A PreScale select value */
#define PWM_DTA50 0xFFF2 /*Dead time Unit A PreScale select value */
#define PWM_DTA51 0xFFF3 /*Dead time Unit A PreScale select value */
#define PWM_DTA52 0xFFF4 /*Dead time Unit A PreScale select value */
#define PWM_DTA53 0xFFF5 /*Dead time Unit A PreScale select value */
#define PWM_DTA54 0xFFF6 /*Dead time Unit A PreScale select value */
#define PWM_DTA55 0xFFF7 /*Dead time Unit A PreScale select value */
#define PWM_DTA56 0xFFF8 /*Dead time Unit A PreScale select value */
#define PWM_DTA57 0xFFF9 /*Dead time Unit A PreScale select value */
#define PWM_DTA58 0xFFFA /*Dead time Unit A PreScale select value */
#define PWM_DTA59 0xFFFB /*Dead time Unit A PreScale select value */
#define PWM_DTA60 0xFFFC /*Dead time Unit A PreScale select value */
#define PWM_DTA61 0xFFFD /*Dead time Unit A PreScale select value */
#define PWM_DTA62 0xFFFE /*Dead time Unit A PreScale select value */
#define PWM_DTA63 0xFFFF /*Dead time Unit A PreScale select value */
#define PWM_DTB0 0xC0FF /*Dead time Unit B PreScale select value */
#define PWM_DTB1 0xC1FF /*Dead time Unit B PreScale select value */
#define PWM_DTB2 0xC2FF /*Dead time Unit B PreScale select value */
#define PWM_DTB3 0xC3FF /*Dead time Unit B PreScale select value */
#define PWM_DTB4 0xC4FF /*Dead time Unit B PreScale select value */
#define PWM_DTB5 0xC5FF /*Dead time Unit B PreScale select value */
#define PWM_DTB6 0xC6FF /*Dead time Unit B PreScale select value */
#define PWM_DTB7 0xC7FF /*Dead time Unit B PreScale select value */
#define PWM_DTB8 0xC8FF /*Dead time Unit B PreScale select value */
#define PWM_DTB9 0xC9FF /*Dead time Unit B PreScale select value */
#define PWM_DTB10 0xCAFF /*Dead time Unit B PreScale select value */
#define PWM_DTB11 0xCBFF /*Dead time Unit B PreScale select value */
#define PWM_DTB12 0xCCFF /*Dead time Unit B PreScale select value */
#define PWM_DTB13 0xCDFF /*Dead time Unit B PreScale select value */
#define PWM_DTB14 0xCEFF /*Dead time Unit B PreScale select value */
#define PWM_DTB15 0xCFFF /*Dead time Unit B PreScale select value */
#define PWM_DTB16 0xD0FF /*Dead time Unit B PreScale select value */
#define PWM_DTB17 0xD1FF /*Dead time Unit B PreScale select value */
#define PWM_DTB18 0xD2FF /*Dead time Unit B PreScale select value */
#define PWM_DTB19 0xD3FF /*Dead time Unit B PreScale select value */
#define PWM_DTB20 0xD4FF /*Dead time Unit B PreScale select value */
#define PWM_DTB21 0xD5FF /*Dead time Unit B PreScale select value */
#define PWM_DTB22 0xD6FF /*Dead time Unit B PreScale select value */
#define PWM_DTB23 0xD7FF /*Dead time Unit B PreScale select value */
#define PWM_DTB24 0xD8FF /*Dead time Unit B PreScale select value */
#define PWM_DTB25 0xD9FF /*Dead time Unit B PreScale select value */
#define PWM_DTB26 0xDAFF /*Dead time Unit B PreScale select value */
#define PWM_DTB27 0xDBFF /*Dead time Unit B PreScale select value */
#define PWM_DTB28 0xDCFF /*Dead time Unit B PreScale select value */
#define PWM_DTB29 0xDDFF /*Dead time Unit B PreScale select value */
#define PWM_DTB30 0xDEFF /*Dead time Unit B PreScale select value */
#define PWM_DTB31 0xDFFF /*Dead time Unit B PreScale select value */
#define PWM_DTB32 0xE0FF /*Dead time Unit B PreScale select value */
#define PWM_DTB33 0xE1FF /*Dead time Unit B PreScale select value */
#define PWM_DTB34 0xE2FF /*Dead time Unit B PreScale select value */
#define PWM_DTB35 0xE3FF /*Dead time Unit B PreScale select value */
#define PWM_DTB36 0xE4FF /*Dead time Unit B PreScale select value */
#define PWM_DTB37 0xE5FF /*Dead time Unit B PreScale select value */
#define PWM_DTB38 0xE6FF /*Dead time Unit B PreScale select value */
#define PWM_DTB39 0xE7FF /*Dead time Unit B PreScale select value */
#define PWM_DTB40 0xE8FF /*Dead time Unit B PreScale select value */
#define PWM_DTB41 0xE9FF /*Dead time Unit B PreScale select value */
#define PWM_DTB42 0xEAFF /*Dead time Unit B PreScale select value */
#define PWM_DTB43 0xEBFF /*Dead time Unit B PreScale select value */
#define PWM_DTB44 0xECFF /*Dead time Unit B PreScale select value */
#define PWM_DTB45 0xEDFF /*Dead time Unit B PreScale select value */
#define PWM_DTB46 0xEEFF /*Dead time Unit B PreScale select value */
#define PWM_DTB47 0xEFFF /*Dead time Unit B PreScale select value */
#define PWM_DTB48 0xF0FF /*Dead time Unit B PreScale select value */
#define PWM_DTB49 0xF1FF /*Dead time Unit B PreScale select value */
#define PWM_DTB50 0xF2FF /*Dead time Unit B PreScale select value */
#define PWM_DTB51 0xF3FF /*Dead time Unit B PreScale select value */
#define PWM_DTB52 0xF4FF /*Dead time Unit B PreScale select value */
#define PWM_DTB53 0xF5FF /*Dead time Unit B PreScale select value */
#define PWM_DTB54 0xF6FF /*Dead time Unit B PreScale select value */
#define PWM_DTB55 0xF7FF /*Dead time Unit B PreScale select value */
#define PWM_DTB56 0xF8FF /*Dead time Unit B PreScale select value */
#define PWM_DTB57 0xF9FF /*Dead time Unit B PreScale select value */
#define PWM_DTB58 0xFAFF /*Dead time Unit B PreScale select value */
#define PWM_DTB59 0xFBFF /*Dead time Unit B PreScale select value */
#define PWM_DTB60 0xFCFF /*Dead time Unit B PreScale select value */
#define PWM_DTB61 0xFDFF /*Dead time Unit B PreScale select value */
#define PWM_DTB62 0xFEFF /*Dead time Unit B PreScale select value */
#define PWM_DTB63 0xFFFF /*Dead time Unit B PreScale select value */
/* DTCON2 Configuration Bit Definitions */
#define PWM_DTS3A_UA 0x00DF /*Dead time for channel 3 to get Active controlled by unit A*/
#define PWM_DTS3I_UA 0x00EF /*Dead time for channel 3 to get Inactive controlled by unit A*/
#define PWM_DTS2A_UA 0x00F7 /*Dead time for channel 2 to get Active controlled by unit A*/
#define PWM_DTS2I_UA 0x00FB /*Dead time for channel 2 to get Inactive controlled by unit A*/
#define PWM_DTS1A_UA 0x00FD /*Dead time for channel 1 to get Active controlled by unit A*/
#define PWM_DTS1I_UA 0x00FE /*Dead time for channel 1 to get Inactive controlled by unit A*/
#define PWM_DTS3A_UB 0x00FF /*Dead time for channel 3 to get Active controlled by unit B*/
#define PWM_DTS3I_UB 0x00FF /*Dead time for channel 3 to get Inactive controlled by unit B*/
#define PWM_DTS2A_UB 0x00FF /*Dead time for channel 2 to get Active controlled by unit B*/
#define PWM_DTS2I_UB 0x00FF /*Dead time for channel 2 to get Inactive controlled by unit B*/
#define PWM_DTS1A_UB 0x00FF /*Dead time for channel 1 to get Active controlled by unit B*/
#define PWM_DTS1I_UB 0x00FF /*Dead time for channel 1 to get Inactive controlled by unit B*/
/* OVDCON Configuration Bit Definitions */
#define PWM_GEN_3H 0xFFFF /*controlled by the PWM generator.*/
#define PWM_GEN_2H 0xFFFF /*controlled by the PWM generator.*/
#define PWM_GEN_1H 0xFFFF /*controlled by the PWM generator.*/
#define PWM_GEN_3L 0xFFFF /*controlled by the PWM generator.*/
#define PWM_GEN_2L 0xFFFF /*controlled by the PWM generator.*/
#define PWM_GEN_1L 0xFFFF /*controlled by the PWM generator.*/
#define PWM_POUT_3H 0xDFFF /*controlled by the value in the corresponding POUT bit.*/
#define PWM_POUT_3L 0xEFFF /*controlled by the value in the corresponding POUT bit.*/
#define PWM_POUT_2H 0xF7FF /*controlled by the value in the corresponding POUT bit.*/
#define PWM_POUT_2L 0xFBFF /*controlled by the value in the corresponding POUT bit.*/
#define PWM_POUT_1H 0xFDFF /*controlled by the value in the corresponding POUT bit.*/
#define PWM_POUT_1L 0xFEFF /*controlled by the value in the corresponding POUT bit.*/
#define PWM_POUT3H_ACT 0xFFFF /*I/O pin is driven ACTIVE when the corresponding POVDxx bit is cleared.*/
#define PWM_POUT3H_INACT 0xFFDF /*I/O pin is driven INACTIVE when the corresponding POVDxx bit is cleared.*/
#define PWM_POUT3L_ACT 0xFFFF /*I/O pin is driven ACTIVE when the corresponding POVDxx bit is cleared.*/
#define PWM_POUT3L_INACT 0xFFEF /*I/O pin is driven INACTIVE when the corresponding POVDxx bit is cleared.*/
#define PWM_POUT2H_ACT 0xFFFF /*I/O pin is driven ACTIVE when the corresponding POVDxx bit is cleared.*/
#define PWM_POUT2H_INACT 0xFFF7 /*I/O pin is driven INACTIVE when the corresponding POVDxx bit is cleared.*/
#define PWM_POUT2L_ACT 0xFFFF /*I/O pin is driven ACTIVE when the corresponding POVDxx bit is cleared.*/
#define PWM_POUT2L_INACT 0xFFFB /*I/O pin is driven INACTIVE when corresponding POVDxx bit is cleared.*/
#define PWM_POUT1H_ACT 0xFFFF /*I/O pin is driven ACTIVE when the corresponding POVDxx bit is cleared.*/
#define PWM_POUT1H_INACT 0xFFFD /*I/O pin is driven INACTIVE when the corresponding POVDxx bit is cleared.*/
#define PWM_POUT1L_ACT 0xFFFF /*I/O pin is driven ACTIVE when the corresponding POVDxx bit is cleared.*/
#define PWM_POUT1L_INACT 0xFFFE /*I/O pin is driven INACTIVE when corresponding POVDxx bit is cleared.*/
/* Enable/Disable PWM Interrupt */
#define PWM_INT_EN 0xFFFF /*Enable PWM interrupt*/
#define PWM_INT_DIS 0xFFF7 /*Disable PWM interrupt*/
/* Enable/Disable FaultA Interrupt */
#define PWM_FLTA_EN_INT 0xFFFF /*Enable Fault A Interrupt */
#define PWM_FLTA_DIS_INT 0xFF7F /*Disable Fault A Interrupt */
/* Setting the priority of PWM interrupt */
#define PWM_INT_PR0 0xFFF8 /*period interrupt priority 0*/
#define PWM_INT_PR1 0xFFF9 /*period interrupt priority 1*/
#define PWM_INT_PR2 0xFFFA /*period interrupt priority 2*/
#define PWM_INT_PR3 0xFFFB /*period interrupt priority 3*/
#define PWM_INT_PR4 0xFFFC /*period interrupt priority 4*/
#define PWM_INT_PR5 0xFFFD /*period interrupt priority 5*/
#define PWM_INT_PR6 0xFFFE /*period interrupt priority 6*/
#define PWM_INT_PR7 0xFFFF /*period interrupt priority 7*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -