|
|
@ -333,40 +333,40 @@ P1_SKIP EQU 3Fh |
|
|
|
ApwmFET_on MACRO |
|
|
|
setb P1.ApwmFET |
|
|
|
IF FETON_DELAY == 0 |
|
|
|
clr P1.AcomFET |
|
|
|
setb P1.AcomFET |
|
|
|
ENDIF |
|
|
|
ENDM |
|
|
|
ApwmFET_off MACRO |
|
|
|
IF FETON_DELAY != 0 |
|
|
|
clr P1.ApwmFET |
|
|
|
ELSE |
|
|
|
setb P1.AcomFET |
|
|
|
clr P1.AcomFET |
|
|
|
ENDIF |
|
|
|
ENDM |
|
|
|
BpwmFET_on MACRO |
|
|
|
setb P1.BpwmFET |
|
|
|
IF FETON_DELAY == 0 |
|
|
|
clr P1.BcomFET |
|
|
|
setb P1.BcomFET |
|
|
|
ENDIF |
|
|
|
ENDM |
|
|
|
BpwmFET_off MACRO |
|
|
|
IF FETON_DELAY != 0 |
|
|
|
clr P1.BpwmFET |
|
|
|
ELSE |
|
|
|
setb P1.BcomFET |
|
|
|
clr P1.BcomFET |
|
|
|
ENDIF |
|
|
|
ENDM |
|
|
|
CpwmFET_on MACRO |
|
|
|
setb P1.CpwmFET |
|
|
|
IF FETON_DELAY == 0 |
|
|
|
clr P1.CcomFET |
|
|
|
setb P1.CcomFET |
|
|
|
ENDIF |
|
|
|
ENDM |
|
|
|
CpwmFET_off MACRO |
|
|
|
IF FETON_DELAY != 0 |
|
|
|
clr P1.CpwmFET |
|
|
|
ELSE |
|
|
|
setb P1.CcomFET |
|
|
|
clr P1.CcomFET |
|
|
|
ENDIF |
|
|
|
ENDM |
|
|
|
All_pwmFETs_Off MACRO |
|
|
@ -375,9 +375,9 @@ IF FETON_DELAY != 0 |
|
|
|
clr P1.BpwmFET |
|
|
|
clr P1.CpwmFET |
|
|
|
ELSE |
|
|
|
setb P1.AcomFET |
|
|
|
setb P1.BcomFET |
|
|
|
setb P1.CcomFET |
|
|
|
clr P1.AcomFET |
|
|
|
clr P1.BcomFET |
|
|
|
clr P1.CcomFET |
|
|
|
ENDIF |
|
|
|
ENDM |
|
|
|
|
|
|
@ -385,38 +385,38 @@ AcomFET_on MACRO |
|
|
|
IF FETON_DELAY == 0 |
|
|
|
clr P1.ApwmFET |
|
|
|
ENDIF |
|
|
|
clr P1.AcomFET |
|
|
|
setb P1.AcomFET |
|
|
|
ENDM |
|
|
|
AcomFET_off MACRO |
|
|
|
setb P1.AcomFET |
|
|
|
clr P1.AcomFET |
|
|
|
ENDM |
|
|
|
BcomFET_on MACRO |
|
|
|
IF FETON_DELAY == 0 |
|
|
|
clr P1.BpwmFET |
|
|
|
ENDIF |
|
|
|
clr P1.BcomFET |
|
|
|
setb P1.BcomFET |
|
|
|
ENDM |
|
|
|
BcomFET_off MACRO |
|
|
|
setb P1.BcomFET |
|
|
|
clr P1.BcomFET |
|
|
|
ENDM |
|
|
|
CcomFET_on MACRO |
|
|
|
IF FETON_DELAY == 0 |
|
|
|
clr P1.CpwmFET |
|
|
|
ENDIF |
|
|
|
clr P1.CcomFET |
|
|
|
setb P1.CcomFET |
|
|
|
ENDM |
|
|
|
CcomFET_off MACRO |
|
|
|
setb P1.CcomFET |
|
|
|
clr P1.CcomFET |
|
|
|
ENDM |
|
|
|
All_comFETs_Off MACRO |
|
|
|
setb P1.AcomFET |
|
|
|
setb P1.BcomFET |
|
|
|
setb P1.CcomFET |
|
|
|
clr P1.AcomFET |
|
|
|
clr P1.BcomFET |
|
|
|
clr P1.CcomFET |
|
|
|
ENDM |
|
|
|
|
|
|
|
Set_Pwm_A MACRO |
|
|
|
IF FETON_DELAY == 0 |
|
|
|
clr P1.AcomFET |
|
|
|
setb P1.AcomFET |
|
|
|
mov P1SKIP, #3Eh |
|
|
|
ELSE |
|
|
|
mov P1SKIP, #3Ch |
|
|
@ -424,7 +424,7 @@ ENDIF |
|
|
|
ENDM |
|
|
|
Set_Pwm_B MACRO |
|
|
|
IF FETON_DELAY == 0 |
|
|
|
clr P1.BcomFET |
|
|
|
setb P1.BcomFET |
|
|
|
mov P1SKIP, #3Bh |
|
|
|
ELSE |
|
|
|
mov P1SKIP, #33h |
|
|
@ -432,7 +432,7 @@ ENDIF |
|
|
|
ENDM |
|
|
|
Set_Pwm_C MACRO |
|
|
|
IF FETON_DELAY == 0 |
|
|
|
clr P1.CcomFET |
|
|
|
setb P1.CcomFET |
|
|
|
mov P1SKIP, #2Fh |
|
|
|
ELSE |
|
|
|
mov P1SKIP, #0Fh |
|
|
|