Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Shree

  • Rank
  • Birthday 01/22/1977

Contact Methods

  • Website URL
  • ICQ
  • Yahoo

Profile Information

  • Gender
  • Location
  1. Hello Dave, Thanks for that piece of advice. I have done most of the things you mentioned. Would have to try to sheild the controller though and yes its a real nice project, although there are been similar products existing here in the market, but they either have lot of failure rate or cost above $20. So if I am been able to do that, it would help ppl a lot. The cost of solar panel is also a cause of concern. Thanks alot again for your advice. Regards Shree
  2. Hello everyone, I came across this problem when I was making a small high frequency inverter of upto 50W (extremely low cost; system cost approx less then $10) for rural areas in india, where there is no electricity. The battery for this inverter would charge from a solar panel and provide energy to the load (CFL: Compact Flouroscent Lamps) in the night. I used PIC16F684 and deployed its PWM module. everything worked fine in the initial stages. But when I created a PCB, all the problems started. Now the problem is that whenever I switch On the supply, the controller keeps on reseting
  3. Hello All, Came across the code below. Could not figure out exactly what it does. Can somebody please tell me what exactly the code does. especially, the "for" is used in a different way it seems. Just confused about it . char * Somevalue(char * X, const char * Y) { char * d ; d = X; for(;*X++ = *Y++ ; return d; } Thanks & Regards Shree
  4. Hello Guys, Yes! thats what I wanted to know. Thanks a million both of you Trossin and Jorge. LUT was a mystery for me for a long time, until I thought of asking about it here. Jorge you were apt and correct about what I wanted to know about them and explained it to the point and like many others, I am a huge fan of Trossin and have been learning about PIC and C programming with his projects right from the day one. Thanks again guys for all the valuable explaination. Regards Shree
  5. Hello Jorge, Thanks alot for your reply. But I think I need to know more about the things you explained, because I couldnt grasp them. The link you forwarded was a inverter, but in PUSH PULL configuration, where as for more efficient output, I am thinking of going for a H-Bridge Configuration (as mentioned in earlier post). About the Sine wave look up table, to be more generic, the PWM pulses switching time is directly proportional to amplitude of the sinewave output signal, and since the output waveform is having a sine relation between its X and Y axis (At any given point of distanc
  6. Hi, I am trying to create a sine wave inverter using MOSFETs in H-bridge mode. DC supply 12V is switched by the MOSFETs to create a sine wave and this sine wave would be fed to a step up transformer giving 230V / 50 Hertz AC Sine wave. After I googled on how to develop this concept using a PIC, Most of the guys out there have suggested to use a sine wave PWM for the same and for generating sinewave PWM I have to use lookup table. Now I know fundamentally what is a lookup table. If I am right a LUT (lookup table) is a table which has precalculated values corresponding to the variables which ar
  7. Hello Wizards, Is it possible to use the LCD library provided with SB without any modifications for driving a LCD display of 4 lines with each line of 20 Characters (20X4)? The module which I have is implemented using driver chip S6A0073 equivalent Make: AV displays. Thanks in Advance Shree
  8. Thanks for the Caution! Would keep that in mind Regards Shree
  9. Hello David, Thanks a lot for your reply. Atleast I know now what direction I must proceed! Regards Shree
  10. Hello Wizards, I have got a requirement where by I want to charge a capacitor to 2000V in 30mSec or less. The capacitance value is 190uFD. I dont know how to calculate current required to charge this capacitor within this time and how can I check it using a controller? Regards Shree
  11. Hello, I think I figured it out! Actually the value of CCPR1L is only 8 MSBs of the 10Bit register of the period hence whatever might be the total value would be shifted right 2 places, which makes it value divide by 4. So if we have PR2+1 is 64 the CCPR1L value would indeed be 32 and thats what I was reasoning! By the way its working now! Thanks a million for being for me all the time and trying to figure it out for me. Regards Shree
  12. Dear sir, Please allow me to differ with you here. I think its the time which becomes half of the total ccp. So the freq would be double. Please correct me if I am wrong as I am a novoice. I still think that the CCPR1L's value must be half of the value of period register value in order to get a 50% duty cycle. Am I wrong? Further more I was just wondering whether the ECCP o/p keeps on running in background, allowing me to do any other jobs with my pic (like continously monitering the adc channel, making some ports high or low etc?) Thanks for your efforts and support Regards Shree
  13. Hello, Thanks so much for being a help. I think I am getting a bit of it. But I didnt get the concept of the duty cycle and the total period. Considering your example, we have a 10ms period which would load the PR2 register with a value of 155 for 1MHz clock Freq and 1:16 prescaler for TMR2. Now as said by you the ON time of the pulse is determined by 10 bits of CCPR1L and CCP1CON<5:4>. If I consider that the pulse has duty cycle of 50% i.e. it remains ON for 5mS and off for 5mS, the formula stated for getting the values in the above 10bit yeilds a result 0f
  14. Hello Wizards, Sorry for being such a confused soul. But I am going berserk trying to implement a half bridge E-PWM module in order to drive 2 MOSFETS in push pull mode. I wrote the following code: #include <system.h> #pragma CLOCK_FREQ 8000000 #pragma DATA _CONFIG, _WDT_OFF & _INTOSCIO & _CP_OFF & _PWRTE_ON & _IESO_OFF & _FCMEN_OFF & _CPD_OFF & _MCLRE_OFF & _BOR_ON void main() { //Setting up internal oscillator of 8MHz osccon.IRCF2=1; osccon.IRCF1=1; osccon.IRCF0=1; osccon.OSTS=0; osccon.SCS=0; trisc=0; portc=0; pr2=63; // 32uS=[
  • Create New...