"sublw" in asm is equal ADC_VALUE in c.I simulated the code ,the purse width is too small.and feedback is not working.How does the adc readings interact with the purse width to adjust the output voltage can any body explain this aspect of the code.
LEVEL_49 bcf PORTB,5
movf BATTV,w
btfsc STATUS,Z
goto LEVEL_50
bcf 0x2D,3
sublw .154
btfss STATUS,C
goto LEVEL_50
bsf 0x2D,3
movf BATTV,w
sublw .148 ;here we set adc value 148=2.90v
btfss STATUS,C
goto LEVEL_50
call LEVEL_29
bsf 0x2D,3
goto LEVEL_46
void main()
{
TRISA=0xFF; //SET PORT A AS INPUT
TRISC = 0X00; //SET PORT C AS OUTPUT
while(1)
{
Read_Adc(); // Read Analog input
if (Adc<148) // if adc less then 148=2.90v
{
PortC.F0 = 0; //bit RC0 = low
}
if (Adc>165) //or adc is more then 165=3.23v
{
PortC.F=1; //RC0= high
}
}
}
Taner's designs are based on PIC16F876 are available on other thread here: https://www.edaboard.com/threads/96053/ Post #188can anybody repost Mr Taner's design again coz i cant find it in prev posts!!!!!
hi, i am swapon. please help me pic16f72 sinewave inverter i am wait for u.
Since you joined the forum in sept 2010, You posted a photo of the inverter in your first post yesterday and "anyone help me" in the second post today . Anything else you have to say or thatz all?any one help me
Please refer a link or a thread or a post about which design u have constructed and what problems u have with the charger section.hi pranam & every body, i made this sinewave inverting is working,but i have feel some problem with charging cut off,
can u explain me?
Can you explain a bit in detail why you need specifically the square wave design?...by the way, you have a lot discussions, and info about PWM (quazi sine) inverters too in this forum..Just use the search option.bro i need sqare wave using 16f72
sir it is very helpful all you posted about the inverter . I search a lot on but i did not get a design on pic based inverter only on ckt of this inverter but i dont have skills to program the is so i search for code of it but did not find finally now i get the code THANK YOU FOR SHARING THIS HEAR
I noted that many members have complain regarding charging.i did not build it but i will make it soon. if you want to to get smart charging then use 2 scr based transformer primary control charging ckt bypass the relay and connect
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?