Its not a problem,these pins should low during charging.The main problem which I have to face is that,the OSC3,OSC4 become LOW condition containing 0 volts during Charging
These pins are high for a while,till chg led start blinking.while the OSC1,OSC2 remain in working condition containing 1.5 volts each.
Pnjbtr can you kindly post the entire code in c, or is it available somewhere on this thread (other than asm)I see 50% duty cycle of pwm pulse in inverter mode at 2.4v at RA0.
RA0 is for feed back(output volt control).
PWM frequency in inverter mode is 3.2khz at each channel.
And 6.2khz at charging.
---------- Post added at 15:37 ---------- Previous post was at 15:07 ----------
"sublw" in asm is equal ADC_VALUE in c.
for example asm code,
And in cCode:LEVEL_49 bcf PORTB,5 movf BATTV,w btfsc STATUS,Z goto LEVEL_50 ...........
Code:void main() { TRISA=0xFF; //SET PORT A AS INPUT TRISC = 0X00; //SET PORT C AS OUTPUT ............... }
pls am intrested in the pic16f72 pure sinewave inverter schematic circuit diagrams & code thanks. xxxxxxxx@xxxxx.xxx
Sorry whole code in C can not now.Pnjbtr can you kindly post the entire code in c, or is it available somewhere on this thread (other than asm)
Although modulated frequency in these kind of sine inverters is from 6 to 15 khz, with CRGO silicon core but actual frequency is 50 or 60 Hz for electrical appliances.Some some clear. Not fully. I hope to learn regarding carrier frequency and other tidbits later on.
@picgak
Sorry whole code in C can not now.
This project is output of reverse engineering.
@mosfet12
Although modulated frequency in these kind of sine inverters is from 6 to 15 khz, with CRGO silicon core but actual frequency is 50 or 60 Hz for electrical appliances.
@picgak
Sorry whole code in C can not now.
This project is output of reverse engineering.
@mosfet12
Although modulated frequency in these kind of sine inverters is from 6 to 15 khz, with CRGO silicon core but actual frequency is 50 or 60 Hz for electrical appliances.
btfsc 0x51,7
addwf 0x53,f
rrf 0x53,f
rrf 0x52,f
[I][B] retlw .0[/B][/I]
addlw .166
addlw .255
addlw .255
addlw .255
addlw .255
movlw .10
RETLW= Return with Literal in WThere's retlw .0 in this pieces of code. I think it'll return and load 0 value to w register. So the remaining code will not being used. Am I right?
btfsc 0x51,4
addwf 0x53,f
rrf 0x53,f
rrf 0x52,f
btfsc 0x51,5
addwf 0x53,f
rrf 0x53,f
rrf 0x52,f
btfsc 0x51,6
addwf 0x53,f
rrf 0x53,f
rrf 0x52,f
btfsc 0x51,7
addwf 0x53,f
rrf 0x53,f
rrf 0x52,f
retlw .0
end
But next instruction addlw .255,i think not suitable because how can we,
add 166+255 in 8 bit register(d=255 or 0xFF).
retlw 0 ;the micro will return to wherever the sub-routine was called from
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?