📄 spmc75_regs.inc
字号:
// P_TMR3_IOCtrl register //
// word set //
.DEFINE CW_TMR3_IOAMOD_Output_00 0x0000
.DEFINE CW_TMR3_IOAMOD_Output_01 0x0001
.DEFINE CW_TMR3_IOAMOD_Output_10 0x0002
.DEFINE CW_TMR3_IOAMOD_Output_11 0x0003
.DEFINE CW_TMR3_IOAMOD_Output_Hold 0x0004
.DEFINE CW_TMR3_IOBMOD_Output_00 (0x0000 << 4)
.DEFINE CW_TMR3_IOBMOD_Output_01 (0x0001 << 4)
.DEFINE CW_TMR3_IOBMOD_Output_10 (0x0002 << 4)
.DEFINE CW_TMR3_IOBMOD_Output_11 (0x0003 << 4)
.DEFINE CW_TMR3_IOBMOD_Output_Hold (0x0004 << 4)
.DEFINE CW_TMR3_IOCMOD_Output_00 (0x0000 << 8)
.DEFINE CW_TMR3_IOCMOD_Output_01 (0x0001 << 8)
.DEFINE CW_TMR3_IOCMOD_Output_10 (0x0002 << 8)
.DEFINE CW_TMR3_IOCMOD_Output_11 (0x0003 << 8)
.DEFINE CW_TMR3_IOCMOD_Output_Hold (0x0004 << 8)
// P_TMR4_IOCtrl register //
// word set //
.DEFINE CW_TMR4_IOAMOD_Output_00 0x0000
.DEFINE CW_TMR4_IOAMOD_Output_01 0x0001
.DEFINE CW_TMR4_IOAMOD_Output_10 0x0002
.DEFINE CW_TMR4_IOAMOD_Output_11 0x0003
.DEFINE CW_TMR4_IOAMOD_Output_Hold 0x0004
.DEFINE CW_TMR4_IOBMOD_Output_00 (0x0000 << 4)
.DEFINE CW_TMR4_IOBMOD_Output_01 (0x0001 << 4)
.DEFINE CW_TMR4_IOBMOD_Output_10 (0x0002 << 4)
.DEFINE CW_TMR4_IOBMOD_Output_11 (0x0003 << 4)
.DEFINE CW_TMR4_IOBMOD_Output_Hold (0x0004 << 4)
.DEFINE CW_TMR4_IOCMOD_Output_00 (0x0000 << 8)
.DEFINE CW_TMR4_IOCMOD_Output_01 (0x0001 << 8)
.DEFINE CW_TMR4_IOCMOD_Output_10 (0x0002 << 8)
.DEFINE CW_TMR4_IOCMOD_Output_11 (0x0003 << 8)
.DEFINE CW_TMR4_IOCMOD_Output_Hold (0x0004 << 8)
// P_TMR0_INT register //
// word set //
.DEFINE CW_TMR0_TGAIE_Enable 0x0001
.DEFINE CW_TMR0_TGBIE_Enable (0x0001 << 1)
.DEFINE CW_TMR0_TGCIE_Enable (0x0001 << 2)
.DEFINE CW_TMR0_TPRIE_Enable (0x0001 << 4)
.DEFINE CW_TMR0_TCVIE_Enable (0x0001 << 5)
.DEFINE CW_TMR0_TCUIE_Enable (0x0001 << 6)
.DEFINE CW_TMR0_TADSE_Enable (0x0001 << 7)
.DEFINE CW_TMR0_PDCIE_Enable (0x0001 << 8)
// P_TMR1_INT register //
// word set //
.DEFINE CW_TMR1_TGAIE_Enable 0x0001
.DEFINE CW_TMR1_TGBIE_Enable (0x0001 << 1)
.DEFINE CW_TMR1_TGCIE_Enable (0x0001 << 2)
.DEFINE CW_TMR1_TPRIE_Enable (0x0001 << 4)
.DEFINE CW_TMR1_TCVIE_Enable (0x0001 << 5)
.DEFINE CW_TMR1_TCUIE_Enable (0x0001 << 6)
.DEFINE CW_TMR1_TADSE_Enable (0x0001 << 7)
.DEFINE CW_TMR1_PDCIE_Enable (0x0001 << 8)
// P_TMR2_INT register //
// word set //
.DEFINE CW_TMR2_TGAIE_Enable 0x0001
.DEFINE CW_TMR2_TGBIE_Enable (0x0001 << 1)
.DEFINE CW_TMR2_TPRIE_Enable (0x0001 << 4)
.DEFINE CW_TMR2_TADSE_Enable (0x0001 << 7)
// P_TMR3_INT register //
// word set //
.DEFINE CW_TMR3_TGDIE_Enable (0x0001 << 3)
.DEFINE CW_TMR3_TPRIE_Enable (0x0001 << 4)
.DEFINE CW_TMR3_TADSE_Enable (0x0001 << 7)
// P_TMR4_INT register //
// word set //
.DEFINE CW_TMR4_TGDIE_Enable (0x0001 << 3)
.DEFINE CW_TMR4_TPRIE_Enable (0x0001 << 4)
.DEFINE CW_TMR4_TADSE_Enable (0x0001 << 7)
// P_TMR0_Status register //
// word set //
.DEFINE CW_TMR0_TGAIF_Enable 0x0001
.DEFINE CW_TMR0_TGBIF_Enable (0x0001 << 1)
.DEFINE CW_TMR0_TGCIF_Enable (0x0001 << 2)
.DEFINE CW_TMR0_TPRIF_Enable (0x0001 << 4)
.DEFINE CW_TMR0_TCVIF_Enable (0x0001 << 5)
.DEFINE CW_TMR0_TCUIF_Enable (0x0001 << 6)
.DEFINE CW_TMR0_TCDF_Enable (0x0001 << 7)
.DEFINE CW_TMR0_PDCIF_Enable (0x0001 << 8)
// P_TMR1_Status register //
// word set //
.DEFINE CW_TMR1_TGAIF_Enable 0x0001
.DEFINE CW_TMR1_TGBIF_Enable (0x0001 << 1)
.DEFINE CW_TMR1_TGCIF_Enable (0x0001 << 2)
.DEFINE CW_TMR1_TPRIF_Enable (0x0001 << 4)
.DEFINE CW_TMR1_TCVIF_Enable (0x0001 << 5)
.DEFINE CW_TMR1_TCUIF_Enable (0x0001 << 6)
.DEFINE CW_TMR1_TCDF_Enable (0x0001 << 7)
.DEFINE CW_TMR1_PDCIF_Enable (0x0001 << 8)
// P_TMR2_Status register //
// word set //
.DEFINE CW_TMR2_TGAIF_Enable 0x0001
.DEFINE CW_TMR2_TGBIF_Enable (0x0001 << 1)
.DEFINE CW_TMR2_TPRIF_Enable (0x0001 << 4)
.DEFINE CW_TMR2_TCDF_Enable (0x0001 << 7)
// P_TMR3_Status register //
// word set //
.DEFINE CW_TMR3_TGDIF_Enable (0x0001 << 3)
.DEFINE CW_TMR3_TPRIF_Enable (0x0001 << 4)
.DEFINE CW_TMR3_TCDF_Enable (0x0001 << 7)
// P_TMR4_Status register //
// word set //
.DEFINE CW_TMR4_TGDIF_Enable (0x0001 << 3)
.DEFINE CW_TMR4_TPRIF_Enable (0x0001 << 4)
.DEFINE CW_TMR4_TCDF_Enable (0x0001 << 7)
// P_TMR_Start register //
// word set //
.DEFINE CW_TMR_TMR0ST_Start 0x0001
.DEFINE CW_TMR_TMR1ST_Start (0x0001 << 1)
.DEFINE CW_TMR_TMR2ST_Start (0x0001 << 2)
.DEFINE CW_TMR_TMR3ST_Start (0x0001 << 3)
.DEFINE CW_TMR_TMR4ST_Start (0x0001 << 4)
// P_TMR_Output register //
// word set //
.DEFINE CW_TMR_TMR3AOE_Enable 0x0001
.DEFINE CW_TMR_TMR3BOE_Enable (0x0001 << 1)
.DEFINE CW_TMR_TMR3COE_Enable (0x0001 << 2)
.DEFINE CW_TMR_TMR3DOE_Enable (0x0001 << 3)
.DEFINE CW_TMR_TMR3EOE_Enable (0x0001 << 4)
.DEFINE CW_TMR_TMR3FOE_Enable (0x0001 << 5)
.DEFINE CW_TMR_TMR4AOE_Enable (0x0001 << 8)
.DEFINE CW_TMR_TMR4BOE_Enable (0x0001 << 9)
.DEFINE CW_TMR_TMR4COE_Enable (0x0001 << 10)
.DEFINE CW_TMR_TMR4DOE_Enable (0x0001 << 11)
.DEFINE CW_TMR_TMR4EOE_Enable (0x0001 << 12)
.DEFINE CW_TMR_TMR4FOE_Enable (0x0001 << 13)
// P_TMR3_OutputCtrl register //
// word set //
.DEFINE CW_TMR3_UOC_Mode0 0x0000
.DEFINE CW_TMR3_UOC_Mode1 0x0001
.DEFINE CW_TMR3_UOC_Mode2 0x0002
.DEFINE CW_TMR3_UOC_Mode3 0x0003
.DEFINE CW_TMR3_VOC_Mode0 (0x0000 << 2)
.DEFINE CW_TMR3_VOC_Mode1 (0x0001 << 2)
.DEFINE CW_TMR3_VOC_Mode2 (0x0002 << 2)
.DEFINE CW_TMR3_VOC_Mode3 (0x0003 << 2)
.DEFINE CW_TMR3_WOC_Mode0 (0x0000 << 4)
.DEFINE CW_TMR3_WOC_Mode1 (0x0001 << 4)
.DEFINE CW_TMR3_WOC_Mode2 (0x0002 << 4)
.DEFINE CW_TMR3_WOC_Mode3 (0x0003 << 4)
.DEFINE CW_TMR3_SYNC_NoSync (0x0000 << 6)
.DEFINE CW_TMR3_SYNC_PDR (0x0001 << 6)
.DEFINE CW_TMR3_SYNC_TGB (0x0002 << 6)
.DEFINE CW_TMR3_SYNC_TGC (0x0003 << 6)
.DEFINE CW_TMR3_UPWM_Out_HL (0x0000 << 8)
.DEFINE CW_TMR3_UPWM_Out_PWM (0x0001 << 8)
.DEFINE CW_TMR3_VPWM_Out_HL (0x0000 << 9)
.DEFINE CW_TMR3_VPWM_Out_PWM (0x0001 << 9)
.DEFINE CW_TMR3_WPWM_Out_HL (0x0000 << 10)
.DEFINE CW_TMR3_WPWM_Out_PWM (0x0001 << 10)
.DEFINE CW_TMR3_POLP_Active_Low (0x0000 << 14)
.DEFINE CW_TMR3_POLP_Active_High (0x0001 << 14)
.DEFINE CW_TMR3_DUTYMODE_UCom (0x0000 << 15)
.DEFINE CW_TMR3_DUTYMODE_Independent (0x0001 << 15)
// POLP = 1 //
.DEFINE CW_TMR3_POLP_1_UP_CPWM_UN_PWM (CW_TMR3_UOC_Mode0 | CW_TMR3_UPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_1_UP_L_UN_PWM (CW_TMR3_UOC_Mode1 | CW_TMR3_UPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_1_UP_PWM_UN_L (CW_TMR3_UOC_Mode2 | CW_TMR3_UPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_1_UP_PWM_UN_CPWM (CW_TMR3_UOC_Mode3 | CW_TMR3_UPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_1_VP_CPWM_VN_PWM (CW_TMR3_VOC_Mode0 | CW_TMR3_VPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_1_VP_L_VN_PWM (CW_TMR3_VOC_Mode1 | CW_TMR3_VPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_1_VP_PWM_VN_L (CW_TMR3_VOC_Mode2 | CW_TMR3_VPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_1_VP_PWM_VN_CPWM (CW_TMR3_VOC_Mode3 | CW_TMR3_VPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_1_WP_CPWM_WN_PWM (CW_TMR3_WOC_Mode0 | CW_TMR3_WPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_1_WP_L_WN_PWM (CW_TMR3_WOC_Mode1 | CW_TMR3_WPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_1_WP_PWM_WN_L (CW_TMR3_WOC_Mode2 | CW_TMR3_WPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_1_WP_PWM_WN_CPWM (CW_TMR3_WOC_Mode3 | CW_TMR3_WPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_1_UP_L_UN_L (CW_TMR3_UOC_Mode0 | CW_TMR3_UPWM_Out_HL)
.DEFINE CW_TMR3_POLP_1_UP_L_UN_H (CW_TMR3_UOC_Mode1 | CW_TMR3_UPWM_Out_HL)
.DEFINE CW_TMR3_POLP_1_UP_H_UN_L (CW_TMR3_UOC_Mode2 | CW_TMR3_UPWM_Out_HL)
.DEFINE CW_TMR3_POLP_1_UP_H_UN_H (CW_TMR3_UOC_Mode3 | CW_TMR3_UPWM_Out_HL)
.DEFINE CW_TMR3_POLP_1_VP_L_VN_L (CW_TMR3_VOC_Mode0 | CW_TMR3_VPWM_Out_HL)
.DEFINE CW_TMR3_POLP_1_VP_L_VN_H (CW_TMR3_VOC_Mode1 | CW_TMR3_VPWM_Out_HL)
.DEFINE CW_TMR3_POLP_1_VP_H_VN_L (CW_TMR3_VOC_Mode2 | CW_TMR3_VPWM_Out_HL)
.DEFINE CW_TMR3_POLP_1_VP_H_VN_H (CW_TMR3_VOC_Mode3 | CW_TMR3_VPWM_Out_HL)
.DEFINE CW_TMR3_POLP_1_WP_L_WN_L (CW_TMR3_WOC_Mode0 | CW_TMR3_WPWM_Out_HL)
.DEFINE CW_TMR3_POLP_1_WP_L_WN_H (CW_TMR3_WOC_Mode1 | CW_TMR3_WPWM_Out_HL)
.DEFINE CW_TMR3_POLP_1_WP_H_WN_L (CW_TMR3_WOC_Mode2 | CW_TMR3_WPWM_Out_HL)
.DEFINE CW_TMR3_POLP_1_WP_H_WN_H (CW_TMR3_WOC_Mode3 | CW_TMR3_WPWM_Out_HL)
// POLP = 0 //
.DEFINE CW_TMR3_POLP_0_UP_PWM_UN_CPWM (CW_TMR3_UOC_Mode0 | CW_TMR3_UPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_0_UP_H_UN_CPWM (CW_TMR3_UOC_Mode1 | CW_TMR3_UPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_0_UP_CPWM_UN_H (CW_TMR3_UOC_Mode2 | CW_TMR3_UPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_0_UP_CPWM_UN_PWM (CW_TMR3_UOC_Mode3 | CW_TMR3_UPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_0_VP_PWM_VN_CPWM (CW_TMR3_VOC_Mode0 | CW_TMR3_VPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_0_VP_H_VN_CPWM (CW_TMR3_VOC_Mode1 | CW_TMR3_VPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_0_VP_CPWM_VN_H (CW_TMR3_VOC_Mode2 | CW_TMR3_VPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_0_VP_CPWM_VN_PWM (CW_TMR3_VOC_Mode3 | CW_TMR3_VPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_0_WP_PWM_WN_CPWM (CW_TMR3_WOC_Mode0 | CW_TMR3_WPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_0_WP_H_WN_CPWM (CW_TMR3_WOC_Mode1 | CW_TMR3_WPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_0_WP_CPWM_WN_H (CW_TMR3_WOC_Mode2 | CW_TMR3_WPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_0_WP_CPWM_WN_PWM (CW_TMR3_WOC_Mode3 | CW_TMR3_WPWM_Out_PWM)
.DEFINE CW_TMR3_POLP_0_UP_H_UN_H (CW_TMR3_UOC_Mode0 | CW_TMR3_UPWM_Out_HL)
.DEFINE CW_TMR3_POLP_0_UP_H_UN_L (CW_TMR3_UOC_Mode1 | CW_TMR3_UPWM_Out_HL)
.DEFINE CW_TMR3_POLP_0_UP_L_UN_H (CW_TMR3_UOC_Mode2 | CW_TMR3_UPWM_Out_HL)
.DEFINE CW_TMR3_POLP_0_UP_L_UN_L (CW_TMR3_UOC_Mode3 | CW_TMR3_UPWM_Out_HL)
.DEFINE CW_TMR3_POLP_0_VP_H_VN_H (CW_TMR3_VOC_Mode0 | CW_TMR3_VPWM_Out_HL)
.DEFINE CW_TMR3_POLP_0_VP_H_VN_L (CW_TMR3_VOC_Mode1 | CW_TMR3_VPWM_Out_HL)
.DEFINE CW_TMR3_POLP_0_VP_L_VN_H (CW_TMR3_VOC_Mode2 | CW_TMR3_VPWM_Out_HL)
.DEFINE CW_TMR3_POLP_0_VP_L_VN_L (CW_TMR3_VOC_Mode3 | CW_TMR3_VPWM_Out_HL)
.DEFINE CW_TMR3_POLP_0_WP_H_WN_H (CW_TMR3_WOC_Mode0 | CW_TMR3_WPWM_Out_HL)
.DEFINE CW_TMR3_POLP_0_WP_H_WN_L (CW_TMR3_WOC_Mode1 | CW_TMR3_WPWM_Out_HL)
.DEFINE CW_TMR3_POLP_0_WP_L_WN_H (CW_TMR3_WOC_Mode2 | CW_TMR3_WPWM_Out_HL)
.DEFINE CW_TMR3_POLP_0_WP_L_WN_L (CW_TMR3_WOC_Mode3 | CW_TMR3_WPWM_Out_HL)
// P_TMR4_OutputCtrl register //
// word set //
.DEFINE CW_TMR4_UOC_Out1 0x0000
.DEFINE CW_TMR4_UOC_Out2 0x0001
.DEFINE CW_TMR4_UOC_Out3 0x0002
.DEFINE CW_TMR4_UOC_Out4 0x0003
.DEFINE CW_TMR4_VOC_Out1 (0x0000 << 2)
.DEFINE CW_TMR4_VOC_Out2 (0x0001 << 2)
.DEFINE CW_TMR4_VOC_Out3 (0x0002 << 2)
.DEFINE CW_TMR4_VOC_Out4 (0x0003 << 2)
.DEFINE CW_TMR4_WOC_Out1 (0x0000 << 4)
.DEFINE CW_TMR4_WOC_Out2 (0x0001 << 4)
.DEFINE CW_TMR4_WOC_Out3 (0x0002 << 4)
.DEFINE CW_TMR4_WOC_Out4 (0x0003 << 4)
.DEFINE CW_TMR4_SYNC_NoSync (0x0000 << 6)
.DEFINE CW_TMR4_SYNC_PDR (0x0001 << 6)
.DEFINE CW_TMR4_SYNC_TGB (0x0002 << 6)
.DEFINE CW_TMR4_SYNC_TGC (0x0003 << 6)
.DEFINE CW_TMR4_UPWM_Out_HL (0x0000 << 8)
.DEFINE CW_TMR4_UPWM_Out_PWM (0x0001 << 8)
.DEFINE CW_TMR4_VPWM_Out_HL (0x0000 << 9)
.DEFINE CW_TMR4_VPWM_Out_PWM (0x0001 << 9)
.DEFINE CW_TMR4_WPWM_Out_HL (0x0000 << 10)
.DEFINE CW_TMR4_WPWM_Out_PWM (0x0001 << 10)
.DEFINE CW_TMR4_POLP_Active_Low (0x0000 << 14)
.DEFINE CW_TMR4_POLP_Active_High (0x0001 << 14)
.DEFINE CW_TMR4_DUTYMODE_UCom (0x0000 << 15)
.DEFINE CW_TMR4_DUTYMODE_Independent (0x0001 << 15)
// P_POS0_DectCtrl register // //Timer 0 Position Detection Control Register
// word set //
.DEFINE CW_TMR0_PDCR_PDEN (0x0001 << 7)
.DEFINE CW_TMR0_PDCR_SPLMOD_Mode1 (0x0000 << 12)
.DEFINE CW_TMR0_PDCR_SPLMOD_Mode2 (0x0001 << 12)
.DEFINE CW_TMR0_PDCR_SPLMOD_Mode3 (0x0002 << 12)
.DEFINE CW_TMR0_PDCR_SPLCK_FCKdiv4 (0x0000 << 14)
.DEFINE CW_TMR0_PDCR_SPLCK_FCKdiv8 (0x0001 << 14)
.DEFINE CW_TMR0_PDCR_SPLCK_FCKdiv16 (0x0002 << 14)
.DEFINE CW_TMR0_PDCR_SPLCK_FCKdiv32 (0x0003 << 14)
// P_POS1_DectCtrl register // //Timer 1 Position Detection Control Register
// word set //
.DEFINE CW_TMR1_PDCR_PDEN (0x0001 << 7)
.DEFINE CW_TMR1_PDCR_SPLMOD_Mode1 (0x0000 << 12)
.DEFINE CW_TMR1_PDCR_SPLMOD_Mode2 (0x0001 << 12)
.DEFINE CW_TMR1_PDCR_SPLMOD_Mode3 (0x0002 << 12)
.DEFINE CW_TMR1_PDCR_SPLCK_FCKdiv4 (0x0000 << 14)
.DEFINE CW_TMR1_PDCR_SPLCK_FCKdiv8 (0x0001 << 14)
.DEFINE CW_TMR1_PDCR_SPLCK_FCKdiv16 (0x0002 << 14)
.DEFINE CW_TMR1_PDCR_SPLCK_FCKdiv32 (0x0003 << 14)
// P_POS0_DectData register // //Timer 0 Position Detection Register
// word set //
.DEFINE CW_TMR0_PDR_TIO0A 0x0001
.DEFINE CW_TMR0_PDR_TIO0B (0x0001 << 1)
.DEFINE CW_TMR0_PDR_TIO0C (0x0001 << 2)
// P_POS1_DectData register // //Timer 1 Position Detection Register
// word set //
.DEFINE CW_TMR1_PDR_TIO1A 0x0001
.DEFINE CW_TMR1_PDR_TIO1B (0x0001 << 1)
.DEFINE CW_TMR1_PDR_TIO1C (0x0001 << 2)
// P_TMR3_DeadTime register // //Timer 3 Dead Time Control Register
// word set //
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -