Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

sine wave ups with Lcd interface using 16F73

Status
Not open for further replies.

chravi75

Newbie
Newbie level 3
Joined
Apr 20, 2013
Messages
4
Helped
0
Reputation
0
Reaction score
1
Trophy points
1,281
Activity points
1,302
; SINE WAVE INVERTER WITH CHARGER

; With TABLE READ and 1XCCP OUT for PWM
CD4081 Gated O/P
; Using PIC16F73 - WITH LCD ONLY





LIST P=16F73,
include "P16F73.inc"
__FUSES _HS_OSC & _PWRTE_ON & _WDT_OFF & _CP_ALL

errorlevel -301,-302,-306

; ***** Variables Definitions *****

selfcheck macro a, bxx
movlw bxx
xorwf a,0
btfsc status,z
endm


selfcheckR macro C,D
movf C,0
xorwf D,0
btfsc status,z
endm

;***** RAM Ddefination ********

RAMbase equ 0x20
cblock RAMbase

PW
CHG_I
r_22
r_23
chg_on
VOLT
COUNT_1
COUNT_2
OL_TRIP
R_29
CHG_DUTY
CHG
r_2C
r_2F
r_30
r_31
S_TEMP
PC_TEMP
TEMP
r_35
r_36
R_37 ;FOR DELAY_1S COUNT
R_38 ;FOR DELAY_1S COUNT
r_39
r_3A
r_3B
r_3C
r_3D
r_3E
r_3F
r_40
r_41
r_42
r_43
r_45
r_46
r_47
r_48
r_49
r_4A
r_4B
r_4C
r_4D
r_4F
r_50
r_51
r_53
r_54
r_56
r_58
r_59
r_70
r_71
r_72
r_73
r_74
r_75
DUTY
BAT_VOLT
OV_LOAD
AC_MAIN
CHG_STAGE
CHG_DELAY
r222
r333
r444
r555
r666
R777
Rxxx
PW_TIMER
PW_BIT
BCDCAL
DUMMY
DUMMY2
TENS
ONES
HUNS
R33
CHAR
R_310
R_560

ENDC


RS EQU 3
EN EQU 2
#DEFINE LCDPORT PORTB

;*******DEFINATION*****************
#DEFINE INV_SW PORTB,1
#DEFINE trickle PORTB,2
#DEFINE MAIN_LED PORTB,3
#DEFINE INV_LED PORTB,4
#DEFINE LB_LED PORTB,5
#DEFINE OL_LED PORTB,6
#DEFINE CHG_LED PORTB,7
#DEFINE UPS PORTC,4
#DEFINE BUZZER PORTC,5
#DEFINE FAN PORTC,6
#DEFINE RELAY PORTC,7

;********************************
; 0.0196V=1 byte *
;********************************



ORG 0x0000
GOTO MAIN_START

ORG 0x0004

;BTFSC CHG,1
;GOTO LED_IND
MOVWF R_72
MOVF STATUS,W
MOVWF R_70 ;satus_temp
MOVF PCLATH,W ;pc_temp
MOVWF R_71
CLRF PCLATH
BTFSC STATUS,RP0
GOTO Label_0002
GOTO Label_0004



Label_0002 MOVF R_72,W
BCF STATUS,RP0
MOVWF R_72
BSF STATUS,RP0
MOVF R_70,W
BCF STATUS,RP0
MOVWF R_70
BSF STATUS,RP0
MOVF R_71,W
BCF STATUS,RP0
MOVWF R_71



Label_0004 BTFSC R_22,5
GOTO Label_000B
MOVLW 0x81
BSF STATUS,RP0
MOVWF T2CON
BCF STATUS,RP0
BCF R_22,6
CLRF R_48
GOTO Label_000C

Label_000B BCF STATUS,Z
movlw 0X0B ;added for table read
subwf duty,w
BTFSS STATUS,Z
GOTO Label_000C
BCF STATUS,Z
MOVF 0x48,W
BTFSC STATUS,Z
BCF R_22,6
BTFSC STATUS,Z
GOTO Label_000C
MOVWF R_41
BSF R_22,6
BSF STATUS,RP0
INCF T2CON,f
BCF STATUS,RP0

Label_000C BCF STATUS,Z
movlw 0X01
subwf duty,w ;added for table read
BTFSS STATUS,Z
GOTO Label_000D
BTFSS R_43,0
GOTO Label_000E
BCF PORTC,2 ;CCP1 out
CLRF CCP1CON
CLRF CCPR1L
CLRF CCPR1H
MOVLW 0x0C
MOVWF CCP1CON
BCF R_43,0
BCF PORTC,1
BSF PORTC,3
MOVF R_45,W
MOVWF R_46
BTFSC R_43,1
BSF R_43,2
BTFSS R_43,1
BCF R_43,2
BTFSC R_22,1
GOTO Label_000F
DECFSZ R_4A,f
BTFSS R_43,2
BSF R_22,1
BTFSS R_43,2
GOTO Label_000F
DECF R_51,f
;MOVLW 0x79
MOVLW 0x40 ;64.8% DUTY
SUBWF R_51,W
;MOVLW 0x79
MOVLW 0x40 ;64.8% DUTY
BTFSS STATUS,C
MOVWF R_51
GOTO Label_000D

Label_000E BCF PORTC,2
CLRF CCP1CON
CLRF CCPR1L
CLRF CCPR1H
MOVLW 0x0C
MOVWF CCP1CON
BSF PORTC,1
BCF PORTC,3
BSF R_43,0
MOVF 0x45,W
MOVWF R_46
BTFSC R_43,1
BSF R_43,2
BTFSS R_43,1
BCF R_43,2
BTFSS R_22,1
GOTO Label_000D

Label_000F BCF STATUS,C
RRF R_46,f
BCF STATUS,C
RRF R_46,f
BTFSS R_43,2
GOTO Label_0010
MOVF R_46,W
SUBWF R_51,f
;MOVLW 0x79
MOVLW 0x40 ;64.8% DUTY
BTFSS STATUS,C
MOVWF R_51
MOVF R_51,W
SUBLW 0x3F
;SUBLW 0x78
;MOVLW 0x79
MOVLW 0x40 ;64.8% DUTY ??????????
BTFSC STATUS,C
MOVWF 0x51
GOTO Label_000D

Label_0010 MOVF R_46,W
ADDWF R_51,f
BTFSC STATUS,C
GOTO Label_0011
MOVLW 0xFF
SUBWF R_51,W
BTFSS STATUS , C
GOTO Label_000D
MOVLW 0xFE
MOVWF R_51

Label_000D CLRF R_53
movlw 0X07
movwf pclath
call table1
MOVWF R_3A
BCF STATUS,C
RRF R_3A,f
BCF STATUS,C
RRF R_3A,W
MOVWF R_3B
BCF STATUS,C
RRF R_3B,W
MOVWF R_3C
BCF STATUS,C
RRF R_3C,W
MOVWF R_3D
BCF STATUS,C
RRF R_3D,W
MOVWF R_3E
BCF STATUS,C
RRF R_3E,W
MOVWF R_3F
BCF STATUS,C
RRF R_3F,W
MOVWF R_40
COMF R_51,W
MOVWF R_58
DECF R_58,f
;movlw 0X60 ;?????????????????
MOVLW 0x80
SUBWF R_58,W
BTFSC STATUS,C
GOTO Label_0012

Label_001A MOVLW 0x40
SUBWF R_58,W
BTFSC STATUS,C
GOTO Label_0013

Label_001B MOVLW 0x20
SUBWF R_58,W
BTFSC STATUS,C
GOTO Label_0014

Label_001C MOVLW 0x10
SUBWF R_58,W
BTFSC STATUS,C
GOTO Label_0015

Label_001D MOVLW 0x08
SUBWF R_58,W
BTFSC STATUS,C
GOTO Label_0016

Label_001E MOVLW 0x04
SUBWF R_58,W
BTFSC STATUS,C
GOTO Label_0017

Label_001F MOVLW 0x02
SUBWF R_58,W
BTFSC STATUS,C
GOTO Label_0018
GOTO Label_0019

Label_0012 MOVF R_3A,W
ADDWF R_53,f
BTFSC STATUS,C
GOTO Label_0011
MOVLW 0x80
SUBWF R_58 , f
GOTO Label_001A

Label_0013 MOVF R_3B,W
ADDWF R_53,f
BTFSC STATUS,C
GOTO Label_0011
MOVLW 0x40
SUBWF R_58,f
GOTO Label_001B

Label_0014 MOVF R_3C,W
ADDWF R_53,f
BTFSC STATUS , C
GOTO Label_0011
MOVLW 0x20
SUBWF R_58,f
GOTO Label_001C

Label_0015 MOVF R_3D,W
ADDWF R_53,f
BTFSC STATUS,C
GOTO Label_0011
MOVLW 0x10
SUBWF R_58,f
GOTO Label_001D
Label_0016 MOVF R_3E,W
ADDWF R_53,f
BTFSC STATUS,C
GOTO Label_0011
MOVLW 0x08
SUBWF R_58,f
GOTO Label_001E

Label_0017 MOVF R_3F,W
ADDWF R_53,f
BTFSC STATUS,C
GOTO Label_0011
MOVLW 0x04
SUBWF R_58,f
GOTO Label_001F
Label_0018 MOVF R_40,W
ADDWF R_53,f
BTFSC STATUS,C
GOTO Label_0011

Label_0019 BTFSC R_43,0
GOTO Label_0020
BCF PORTC,2 ;CCP1 out
CLRF CCPR1L
MOVF R_53,W
MOVWF CCPR1L
GOTO Label_0021

Label_0020 BCF PORTC,2
CLRF CCPR1L
MOVF R_53,W
MOVWF CCPR1L
 

bcf BUZZER
movlw 0XFF
movwf r222
lp_210 decfsz r222,1
goto lp_210

DECFSZ R333,F
GOTO LP_0
DECFSZ R444,1
GOTO GOLI_BUZZER
BCF BUZZER
MOVLW 0XFF
MOVWF R444
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF

CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF

CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF

CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S
btfsc INV_SW
goto INVERTER_OFF
CALL DELAY_2S

LP_311 btfsc INV_SW
goto INVERTER_OFF

DECFSZ R555,1
GOTO GOLI_BUZZER
BCF BUZZER
goto main_check_2



MAIN_ON:
bcf trickle
BCF INTCON,GIE
BCF STATUS,RP0
CLRF CCPR1L
CLRF CCP1CON
CALL DELAY5MSL
CLRF R_42
CLRF R_70
CLRF R_72
CLRF R_3A
CLRF R_3B
CLRF R_3C
CLRF R_3D
CLRF R_3E
CLRF R_3F
CLRF R_40
MOVLW 0x81 ;d129'
MOVWF R_23
MOVLW 0x32
MOVWF R_47

BCF R_22,5
BCF R_22,1
BCF R_22,4

CLRF R_43
;CLRF OL_TRIP

BCF STATUS, RP0 ;select bank0
CLRF CCPR1L
CLRF R_45
CLRF R_46
MOVLW 0xFF
MOVWF R_4A
MOVLW 0x02
MOVWF R_2F
BCF PORTC,0 ;H/L LOGIC
BCF PORTC,1 ;CH-1
BCF PORTC,2 ;PWM
BCF PORTC,3 ;CH-2
BCF FAN ;PORTC,6 FAN OFF

CLRF R_42
MOVLW 0XFF
MOVWF R_42
LP_45 DECFSZ R_42,1
GOTO LP_45
nop
;BCF LB_LED ;PORTB,5
;BCF OL_LED ;PORTB,6
;BSF MAIN_LED ;PORTB,3 MAIN LED ON
;BCF INV_LED ;PORTB,4
BCF RELAY ;PORTC,7 RELAY OFF
CALL PAGE_1
CALL MAIN_CHG_ON
CALL DELAY_1S
CHARGING:

BSF FAN ;PORTC,6 FAN ON
BSF CHG,1 ;set chg bit to ensure charging is ON
BSF CHG_ON,1 ;make chg.on bit high
;BSF CHG_LED ;PORTB,7 chg-led on
MOVLW d'01'
MOVWF PW

BCF VOLT,1
BSF STATUS,RP0
MOVLW d'166' ;6kHz CHARGING PWM
MOVWF PR2
BCF STATUS,RP0
;MOVLW d'40' ;d'85' 50% DUTY/d'40' 24% DUTY
MOVF PW,W
MOVWF CCPR1L
BCF CCP1CON,4
BCF CCP1CON,5
BCF CCP1CON,0
BCF CCP1CON,1
BSF CCP1CON,2
BSF CCP1CON,3

MOVLW b'00000101'
MOVWF T2CON
BSF PORTC,1 ;CH-1
BSF PORTC,3 ;CH-2

MOVLW d'255'
MOVWF COUNT_1
MOVLW d'03'
MOVWF COUNT_2
BSF CHG_STAGE,1

MOVLW 0XFF ;0X64 FOR DELAY CHARGING
MOVWF CHG_DELAY

movlw 0X80 ;Rxx PW DELAY VALUE
movwf Rxxx


CHARGING_SET:
BTFSS CHG,1
;goto trickle_chg ;??????? trickle
GOTO CHG_RESTORE
;BTFSS CHG_LED ;PORTB,7
;GOTO LED_OFF
LP_1F ;DECFSZ COUNT_1,1
GOTO PUTU
MOVLW d'255'
MOVWF COUNT_1
DECFSZ COUNT_2,1

GOTO PUTU
;BCF CHG_LED ;PORTB,7
MOVLW d'255'
MOVWF COUNT_1
MOVLW d'03'
MOVWF COUNT_2

GOTO PUTU

LED_OFF:
DECFSZ COUNT_1,1
GOTO PUTU ;GOTO LED_OFF
MOVLW d'255'
MOVWF COUNT_1
DECFSZ COUNT_2,1

GOTO PUTU
;BSF CHG_LED ;PORTB,7
MOVLW d'255'
MOVWF COUNT_1
MOVLW d'03'
MOVWF COUNT_2

GOTO PUTU ;CHECK THE CHG STAGE

CHARGING_SET_3: ;1st - STEP / DELAY START
MOVLW b'10011001'
MOVWF ADCON0 ;FOSC/8,A-D is ON,RA-3,Channel-3 selected
CLRF ADRES
MOVLW 0X1A
MOVWF R_42
LP_1DA DECFSZ R_42,1
GOTO LP_1DA
BSF ADCON0,GO
LP_1EA BTFSC ADCON0,GO
GOTO LP_1EA
MOVF ADRES,W
MOVWF CHG_I
BCF STATUS,C
BCF STATUS,Z
BCF STATUS,DC
MOVF CHG_I,W
SUBLW d'51' ;d'102' ;MAX CHARGING VALUE
BTFSC STATUS,C

GOTO INC_PW_1
BCF CHG_STAGE,1
GOTO CHARGING_SET_2

PUTU: BTFSC CHG_STAGE,1 ;BIT SET WHEN DELAY CHG
GOTO CHARGING_SET_3
GOTO CHARGING_SET_2

INC_PW_1:
DECFSZ CHG_DELAY,1
GOTO MAIN_FAILURE_CHECK
MOVLW 0XFF ;0X64 DELAY CHG TIME
MOVWF CHG_DELAY
SELFCHECK PW,d'100' ;MAX ALLOWABLE PW 95% d'140'
GOTO CHARGING_SET_2
INCF PW,1
MOVF PW,W
MOVWF CCPR1L
GOTO MAIN_FAILURE_CHECK


CHARGING_SET_2:
BTFSC PW_BIT,1
GOTO GULTI
BSF PW_BIT,1
MOVLW 0X80
MOVWF PW_TIMER
GULTI DECFSZ PW_TIMER,1
GOTO BATT_CHG_STATUS
BCF PW_BIT,1
MOVLW b'10011001'
MOVWF ADCON0 ;FOSC/8,A-D is ON,RA-3,Channel-3 selected
CLRF ADRES
MOVLW 0X1A
MOVWF R_42
LP_1D DECFSZ R_42,1
GOTO LP_1D
BSF ADCON0,GO
LP_1E BTFSC ADCON0,GO
GOTO LP_1E
MOVF ADRES,W
MOVWF CHG_I
BCF STATUS,C
BCF STATUS,Z
BCF STATUS,DC
MOVF CHG_I,W
SUBLW d'51' ;d'102' ;MAX CHARGING CURRENT VALUE
BTFSC STATUS,C
GOTO INC_PW
GOTO DEC_PW


INC_PW:
SELFCHECK pw,d'100' ;original PW,d'110' ;MAX ALLOWABLE PW 95% d'140'
GOTO BATT_CHG_STATUS
;call delay1u6

INCF PW,1
MOVF PW,W
MOVWF CCPR1L
;CALL DELAY40
GOTO BATT_CHG_STATUS

DEC_PW:
SELFCHECK pw,d'40' ;original value PW,d'80'
GOTO BATT_CHG_STATUS
;call delay1u6

DECF PW,1
MOVF PW,W
MOVWF CCPR1L
;CALL DELAY40
GOTO BATT_CHG_STATUS

BATT_CHG_STATUS:
CLRF R_42
MOVLW 0XFF ;SENSING BATT VOLT FOR CHG_CUT
MOVWF R_42
LP_1H DECFSZ R_42,1
GOTO LP_1H
MOVLW b'10010001' ;SELECTED RA2,PIN4
MOVWF ADCON0
MOVLW 0X1A
MOVWF R_42
LP_1I DECFSZ R_42,1
GOTO LP_1I
BSF ADCON0,GO
LP_1J BTFSC ADCON0,GO
GOTO LP_1J
MOVF ADRES,W
MOVWF BAT_VOLT
MOVF BAT_VOLT,W
BCF STATUS,C
;SUBLW d'187' ;VOLT SELECTED 14.2V
SUBLW d'178' ;VOLT SELECTED 13.5V
BTFSS STATUS,C
GOTO CHG_OFF ;>13.5V / 14V
;goto trickle_chg ;????? trickle

MAIN_FAILURE_CHECK: ;<13.5V
CLRF R_42
MOVLW 0XFF ;SENSING MAIN_VOLT
MOVWF R_42
LP_46 DECFSZ R_42,1
GOTO LP_46
MOVLW b'10000001' ;SELECTED RA0,PIN2
MOVWF ADCON0
MOVLW 0X1A
MOVWF R_42
LP_47 DECFSZ R_42,1
GOTO LP_47
BSF ADCON0,GO
LP_48 BTFSC ADCON0,GO
GOTO LP_48
MOVF ADRES,W
CLRF AC_MAIN
MOVWF AC_MAIN

BTFSC UPS ;PORTC,4
GOTO H_UPS_MODE
GOTO UPS_MODE

UPS_MODE:
MOVF AC_MAIN,W
BCF STATUS,C
SUBLW d'53' ;d'76' ;175V / 1.5V at pin2
BTFSS STATUS,C
GOTO CHARGING_SET
GOTO INV_START ;<175V

H_UPS_MODE: ;INVERTER MODE
MOVF AC_MAIN,W
BCF STATUS,C
SUBLW d'27' ;d'49' ;120V / 1.24V at pin2
BTFSS STATUS,C
GOTO CHARGING_SET ;>120V
GOTO INV_START ;<120V

MAIN_FAILURE_CHECK_lp: ;<13.5V
CLRF R_42
MOVLW 0XFF ;SENSING MAIN_VOLT
MOVWF R_42
LP_466 DECFSZ R_42,1
GOTO LP_466
MOVLW b'10000001' ;SELECTED RA0,PIN2
MOVWF ADCON0
MOVLW 0X1A
MOVWF R_42
LP_477 DECFSZ R_42,1
GOTO LP_477
BSF ADCON0,GO
LP_488 BTFSC ADCON0,GO
GOTO LP_488
MOVF ADRES,W
CLRF AC_MAIN
MOVWF AC_MAIN

BTFSC UPS ;PORTC,4
GOTO H_UPS_MODE_2
GOTO UPS_MODE_2

UPS_MODE_2:
MOVF AC_MAIN,W
BCF STATUS,C
SUBLW d'53' ;d'76' ;175V / 1.5V at pin2
BTFSS STATUS,C
RETURN
GOTO INV_START ;<175V

H_UPS_MODE_2: ;INVERTER MODE
MOVF AC_MAIN,W
BCF STATUS,C
SUBLW d'27' ;d'49' ;120V / 1.24V at pin2
BTFSS STATUS,C
GOTO CHARGING_SET ;>120V
GOTO INV_START ;<120V



CHG_OFF:
CALL PAGE_1
CALL MAIN_CHGD
bsf trickle
BCF CHG,1
;BSF CHG_LED ;PORTB,7 CHG LED ON
BCF FAN ;PORTC,6 FAN OFF
CLRF CCPR1L
CLRF CCP1CON
CLRF T2CON
BCF PORTC,1
BCF PORTC,2
BCF PORTC,3
GOTO MAIN_FAILURE_CHECK

TRICKLE_CHG:
BCF CHG,1
;BSF CHG_LED ;PORTB,7 CHG LED ON
BCF FAN ;PORTC,6 FAN OFF
movlw 0X80
movwf Rxxx
read_amp:
CLRF R_42
MOVLW 0XFF ;SENSING CHG CURRENT
MOVWF R_42
LP_1C2 DECFSZ R_42,1
GOTO LP_1C2
MOVLW b'10011001'
MOVWF ADCON0 ;FOSC/8,A-D is ON,RA-3,Channel-3 selected
CLRF ADRES
MOVLW 0X1A
MOVWF R_42
LP_1D2 DECFSZ R_42,1
GOTO LP_1D2
BSF ADCON0,GO
LP_1E2 BTFSC ADCON0,GO
GOTO LP_1E2
MOVF ADRES,W
MOVWF CHG_I
BCF STATUS,C
MOVF CHG_I,W
SUBLW d'127' ;MAX CHARGING VALUE
BTFSC STATUS,C
GOTO DEC_PW_2

read_volt:
CLRF R_42
MOVLW 0XFF ;SENSING BATT VOLT FOR CHG_CUT
MOVWF R_42
LP_1H2 DECFSZ R_42,1
GOTO LP_1H2
MOVLW b'10010001' ;SELECTED RA2,PIN4
MOVWF ADCON0
MOVLW 0X1A
MOVWF R_42
LP_1I2 DECFSZ R_42,1
GOTO LP_1I2
BSF ADCON0,GO
LP_1J2 BTFSC ADCON0,GO
GOTO LP_1J2
MOVF ADRES,W
MOVWF BAT_VOLT
MOVF BAT_VOLT,W
BCF STATUS,C
SUBLW d'175' ;VOLT SELECTED 14V
;SUBLW d'168' ;d'163' ;VOLT SELECTED 13.5V
BTFSS STATUS,C
GOTO DEC_TRICKLE_DUTY ;>13.5V / 14V
GOTO INC_TRICKLE_DUTY

GOTO MAIN_FAILURE_CHECK

DEC_PW_2:
;SELFCHECK PW,d'01'
;GOTO READ_VOLT
DECF PW,1
MOVF PW,W
MOVWF CCPR1L
CALL DELAY40
GOTO READ_VOLT

INC_TRICKLE_DUTY:
SELFCHECK PW,d'110'
GOTO MAIN_FAILURE_CHECK
call delay1u6
 
Do you have the full details of the inverter including the diagram.
 

yes i have i am unable to post the full file ,shortly i will post it
 

i have seen the diagram with pic16f72 can you send the hexfile or source code because i can't see where it is posted on the forum
 

the source code you posted may not be complete,what do you say?
 

Nice work Chravi,
Please, is the code complete? can we get the c code, also I don't see declaration for LCD in the code.
Please explain more.
 

Asad bhai the file is too big to post ,if you need it please post your mail id
 

Declaration for LCD is given at the last stage of program,hex file,schematic,pcb file posted
 

good work chravi but show the PCB files
My email ID is [email address deleted by moderator]
 

Yeah, where is the full code in C ?


_____________________________________________________
**broken link removed**
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top