|
|
@ -318,12 +318,12 @@ ENDM |
|
|
|
;********************* |
|
|
|
; EQU 7 ;i |
|
|
|
; EQU 6 ;i |
|
|
|
CcomFET EQU 5 ;o |
|
|
|
CpwmFET EQU 4 ;o |
|
|
|
BcomFET EQU 3 ;o |
|
|
|
BpwmFET EQU 2 ;o |
|
|
|
AcomFET EQU 1 ;o |
|
|
|
ApwmFET EQU 0 ;o |
|
|
|
CcomFET EQU 4 ;o |
|
|
|
CpwmFET EQU 5 ;o |
|
|
|
BcomFET EQU 2 ;o |
|
|
|
BpwmFET EQU 3 ;o |
|
|
|
AcomFET EQU 0 ;o |
|
|
|
ApwmFET EQU 1 ;o |
|
|
|
|
|
|
|
P1_DIGITAL EQU (1 SHL ApwmFET)+(1 SHL BpwmFET)+(1 SHL CpwmFET)+(1 SHL AcomFET)+(1 SHL BcomFET)+(1 SHL CcomFET) |
|
|
|
P1_INIT EQU (1 SHL AcomFET)+(1 SHL BcomFET)+(1 SHL CcomFET) |
|
|
@ -332,7 +332,7 @@ P1_SKIP EQU 3Fh |
|
|
|
|
|
|
|
ApwmFET_on MACRO |
|
|
|
setb P1.ApwmFET |
|
|
|
IF FETON_DELAY == 0 |
|
|
|
IF fetoN_DELAY == 0 |
|
|
|
setb P1.AcomFET |
|
|
|
ENDIF |
|
|
|
ENDM |
|
|
@ -416,7 +416,7 @@ ENDM |
|
|
|
|
|
|
|
Set_Pwm_A MACRO |
|
|
|
IF FETON_DELAY == 0 |
|
|
|
setb P1.AcomFET |
|
|
|
set P1.AcomFET |
|
|
|
mov P1SKIP, #3Eh |
|
|
|
ELSE |
|
|
|
mov P1SKIP, #3Ch |
|
|
@ -424,7 +424,7 @@ ENDIF |
|
|
|
ENDM |
|
|
|
Set_Pwm_B MACRO |
|
|
|
IF FETON_DELAY == 0 |
|
|
|
setb P1.BcomFET |
|
|
|
set P1.BcomFET |
|
|
|
mov P1SKIP, #3Bh |
|
|
|
ELSE |
|
|
|
mov P1SKIP, #33h |
|
|
@ -432,7 +432,7 @@ ENDIF |
|
|
|
ENDM |
|
|
|
Set_Pwm_C MACRO |
|
|
|
IF FETON_DELAY == 0 |
|
|
|
setb P1.CcomFET |
|
|
|
set P1.CcomFET |
|
|
|
mov P1SKIP, #2Fh |
|
|
|
ELSE |
|
|
|
mov P1SKIP, #0Fh |
|
|
|