tag:blogger.com,1999:blog-6338993703407602171.post3726675155882840828..comments2024-03-28T00:52:40.857-07:00Comments on Tahmid's blog: Sine Wave Generation and Implementation using dsPIC33FJ Tahmidhttp://www.blogger.com/profile/09117804893438710050noreply@blogger.comBlogger31125tag:blogger.com,1999:blog-6338993703407602171.post-54613660792292386392019-01-15T07:36:39.350-08:002019-01-15T07:36:39.350-08:00A very good article. Thanks to the author. A very good article. Thanks to the author. homework helphttps://homeworkfor.me/noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-67266830554291174282018-12-30T10:57:40.077-08:002018-12-30T10:57:40.077-08:00This is very useful information for me. Thank you ...This is very useful information for me. Thank you very much!paper writinghttp://papercoach.net/noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-20434017012205893212018-12-30T09:55:46.292-08:002018-12-30T09:55:46.292-08:00Thanks for your post it is very interesting for me...Thanks for your post it is very interesting for me!write my paper for mehttps://writepaperfor.me/noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-21131755856877394362018-04-27T10:22:41.398-07:002018-04-27T10:22:41.398-07:00dsPIC is my choice for critical and big projects. ...dsPIC is my choice for critical and big projects. it's more powerful! but for simple projects, i've using 16F and 18F series! tahmid have good projects!!!!!lord aldebaranhttps://www.blogger.com/profile/10253519853734150147noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-32713028874441693662018-04-27T10:18:24.946-07:002018-04-27T10:18:24.946-07:00I've using dsPIC33FJ32GP204 and dsPIC33FJ32GP2...I've using dsPIC33FJ32GP204 and dsPIC33FJ32GP202 give the same warnings and errorslord aldebaranhttps://www.blogger.com/profile/10253519853734150147noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-62214610040303589272018-04-27T10:15:54.277-07:002018-04-27T10:15:54.277-07:00Following errors appears in proteus simulation:
[...Following errors appears in proteus simulation: <br />[DSPIC33LP OC1] PWM (No Fault): New PWM duty cycle is zero. Pin remains low until (at least) start of next period. [U1]<br /><br />[DSPIC33LP OC1] PWM (No Fault): New PWM duty cycle never ends as OC1R>PRy. Pin stays high until start of next period. [U1]<br />lord aldebaranhttps://www.blogger.com/profile/10253519853734150147noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-54375067439787258902017-10-08T10:46:03.431-07:002017-10-08T10:46:03.431-07:00Open it in Google docs. It will then open in pdf.
...Open it in Google docs. It will then open in pdf.<br />Darshhttps://www.blogger.com/profile/04836979544176919690noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-38890695081938255372017-08-17T14:14:52.768-07:002017-08-17T14:14:52.768-07:00Hello Tamid, you are doing amazingly great. I seri...Hello Tamid, you are doing amazingly great. I seriously need your assistance. I am trying to follow your thread for pure sine-wave, but I am using pic18f2520. I however got 100Hz, 229Vac but I have tried all possible means within my understanding to reduce my frequency, instead my voltage reduces while my frequency become unstable. I am very sure my configuration is not right. Find below my configuration, your counsel would help. <br />const float dutyCycle[100]={<br /><br />0,7,15,23,31,39,46,54,62,69,77,84,92,99,106,113,120,127,133,<br />140,146,153,159,165,171,176,182,187,192,197,202,206,211,215,219,222,226,229,232,235,237,<br />240,242,243,245,246,247,248,249,250,250,249,248,247,246,245,244,243,242,240,237,235,232,<br />229,226,222,219,215,211,206,202,197,192,187,182,176,171,165,159,153,146,140,133,127,120,<br />113,106,99,92,84,77,69,62,54,46,39,31,23,15,7<br /><br />};<br /><br />void InitTimer2()<br />{<br /> T2CON = 0x0C; <br /> TMR2IE_bit = 1;<br /> PR2 = 249;<br /> INTCON = 0xC0; <br />}<br />void pwms_init()<br />{<br /> trisc1_bit =0;trisc2_bit =0;<br /> portc.f1 = 0;portc.f2 = 0;<br /> CCP1CON=CCP2CON=0;<br /> CCP1CON = 0x0F;<br /> CCP2CON = 0x0F;<br /> CCPR1L = CCPR2L = 0; <br /> ajiri = 0;<br />}<br /><br />void Interrupt()<br />{<br /> if(TMR2IF_bit)<br /> {<br /> TMR2IF_bit = 0;<br /> if(ajiri==0)<br /><br /> {<br /> gate3=1;gate2=0;gate1++;<br /> if(gate1<100)<br /><br /> {<br /> CCPR2L=0;<br /> CCP2CON.DC1B1=CCP2CON.DC1B0=0;<br /> CCP1CON.DC1B0=CCP1CON.DC1B1=1;<br /> CCPR1L=dutyCycle[gate1]*adder;<br /> }<br /><br /> if(gate1==99)<br /><br /> {<br /> gate1=0;ajiri=1;gate3=0;<br /> }<br /> }<br /><br /> if(ajiri==1)<br /> {<br /> gate2=1;gate3=0;gate4++;<br /> if(gate4<100)<br /><br /> {<br /> CCPR1L=0;<br /> CCP1CON.DC1B0=CCP1CON.DC1B1=0;<br /> CCP2CON.DC1B1=CCP2CON.DC1B0=1;<br /> CCPR2L=dutyCycle[gate4]*adder;<br /> }<br /><br /> if(gate4==99)<br /><br /> {<br /> gate4=0;ajiri=0;gate2=0;<br /> }<br /> }<br /> }<br /> <br />}<br />Anonymoushttps://www.blogger.com/profile/17479858271472401206noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-39261687721051396732017-04-12T00:18:59.850-07:002017-04-12T00:18:59.850-07:00This is awesome, dude thanks. I have been looking...This is awesome, dude thanks. I have been looking for a tutorial like this for days. Anonymoushttps://www.blogger.com/profile/09152674976149760292noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-26326999882723160582016-07-04T03:03:00.228-07:002016-07-04T03:03:00.228-07:00Page is not displaying the implementation method. ...Page is not displaying the implementation method. It is only displaying comments. Please fix it.Anonymoushttps://www.blogger.com/profile/14352096921411927051noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-32605537323947903362016-04-16T05:37:16.879-07:002016-04-16T05:37:16.879-07:00Hi Tahmid,
I am not able to view this file. Could ...Hi Tahmid,<br />I am not able to view this file. Could you upload it again<br />Ananthihttps://www.blogger.com/profile/04440045731573832884noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-35418737396746325182015-09-26T11:53:55.025-07:002015-09-26T11:53:55.025-07:00Hi Tahmid,
Great work.
I have doubt in indexing of...Hi Tahmid,<br />Great work.<br />I have doubt in indexing of array (in the the code) sin_table[Result]. <br />when value of Phase goes beyond 16-bit then it will become 0. when Value of Phase reaches 65500 then value of result variable is 500.<br />In next increment Phase value will overflow and Result value will be 0.<br /><br />So with this condition it will index 511 location.<br /><br />Please clear this doubt.<br />sdevhttps://www.blogger.com/profile/08374534443127431680noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-71291329168054031102015-05-04T02:34:29.827-07:002015-05-04T02:34:29.827-07:00Hi Tahmid,
Great work.
Wondering if there is any ...Hi Tahmid,<br /><br />Great work.<br />Wondering if there is any dead-time in this code!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-46259851796361062312015-04-30T02:01:48.459-07:002015-04-30T02:01:48.459-07:00Hi
I have a doubt in the calculation. Please help ...Hi<br />I have a doubt in the calculation. Please help me understand!<br /><br />PWM_Freq = 25KHz <br />Tpwm = 40us<br /><br />Tpwm * No of Values in the sine table = 10ms (Half cycle of 50Hz sine wave)<br /><br />Thus I got the number of values to be 250<br /><br />But how could a table value of 256 be afforded?<br /><br />I don't get this. According to the calculation the frequency gets 48.8Hz. Is this precision okay or my calculation is wrong?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-48344780166567479342014-04-21T03:47:24.456-07:002014-04-21T03:47:24.456-07:00dear tahmid,
Its really a great work and very help...dear tahmid,<br />Its really a great work and very helpful. Actually i am new in microcontroller. i want to generate code using dspic33ep. I already modify the code and got 50hz signal. But there is a problem with 20khz signal. I am not sure why its not working. Can you please help me regarding this problem. I am really trying to fix but i couldn't. If you want i can post the code. It will be great help for me if you have some time. thank youAnonymoushttps://www.blogger.com/profile/02875479923532385278noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-2471402130862481162014-04-02T12:51:37.504-07:002014-04-02T12:51:37.504-07:00As'salam o Alaikum!
Syed Tahmid Mahbub,
I am...As'salam o Alaikum!<br /><br />Syed Tahmid Mahbub,<br /><br />I am Muhammad Javed.<br /><br />I sure that you have test this inverter, on load its output voltage is stable or not?<br /><br /><br />And Please give me the complete drive circuit?<br /><br /><br />Regard,<br /><br />Muhammad JavedMuhammad Saadhttps://www.blogger.com/profile/02586344174202009115noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-32137514202233983772013-10-26T22:57:07.704-07:002013-10-26T22:57:07.704-07:00I haven't tried it yet.I haven't tried it yet.Tahmidhttps://www.blogger.com/profile/09117804893438710050noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-41162981458828754822013-10-25T04:25:38.747-07:002013-10-25T04:25:38.747-07:00Dear Tahmid
Thanks for ur kind replay. i was wonde...Dear Tahmid<br />Thanks for ur kind replay. i was wondering about feedback control with PID. Did u try it with Dspic? It would be very helpful if u attach a code sample for that. ThanksSankarhttps://www.blogger.com/profile/03101398682968790508noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-11768451982419043662013-10-22T12:20:41.900-07:002013-10-22T12:20:41.900-07:00DSPIC is faster and more powerful than PIC16. So, ...DSPIC is faster and more powerful than PIC16. So, if you generate sine wave with dsPIC, you can do more things than you can with a PIC16. For example, you can create a cleaner sine wave. You can do more control with the dsPIC, such as having it as a central controller controlling everything to greater precision. You can have quicker and smoother feedback. You can implement PID. You can change amplitude and frequency on the fly. If you were going for a 2-stage (DC link) inverter, the dsPIC could handle both sides (DC-DC and DC-AC) as well as other control/monitoring circuits. You can see the benefits of using the dsPIC. Now it's up to the designer to decide if that is required. If so, then the dsPIC can be used. If not, then the designer can stick with PIC16 or PIC 18.<br /><br />Moreover, with prices dropping, the dsPIC is not that much more expensive, but offers greater flexibility and processing power.<br /><br />Regards,<br />Tahmid.Tahmidhttps://www.blogger.com/profile/09117804893438710050noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-24973035304836385602013-10-22T12:15:58.775-07:002013-10-22T12:15:58.775-07:00Go to this page: http://tahmidmc.blogspot.com/p/bl...Go to this page: <a rel="nofollow">http://tahmidmc.blogspot.com/p/blog-page.html</a><br /><br />Look under the section "SPWM and sine wave generation and inverter"<br /><br />There are articles/tutorials there covering sine wave generation using PICTahmidhttps://www.blogger.com/profile/09117804893438710050noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-37796740417136232312013-10-15T21:55:29.150-07:002013-10-15T21:55:29.150-07:00This is a nice tutorial on dspic SPWM. Question is...This is a nice tutorial on dspic SPWM. Question is, if it is possible to create in a simple 16F series why DSPIC? On 16F Sires we take average amplitude and Correct with PI feedback control, which works fine for most domestic use. If dspic is there, it needs Point by Point sampling and compensate the duty with respect to volt and current ( Microchip App note AN1279) . This is a nice approach using Pwm module in dspic33f and would be fruitful if we get something practical :). Thanks for sharing ur hard work on Public.Sankarhttps://www.blogger.com/profile/03101398682968790508noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-38597140401156078632013-10-07T12:28:08.477-07:002013-10-07T12:28:08.477-07:00hi tahmid
i have question how can we produce 50 hz...hi tahmid<br />i have question how can we produce 50 hz sine wave in picAnonymoushttps://www.blogger.com/profile/03001733002961859165noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-64925252577030084152013-09-06T18:18:36.873-07:002013-09-06T18:18:36.873-07:00You can ask your questions on a forum like www.eda...You can ask your questions on a forum like www.edaboard.com<br /><br />You can give me the link so that I can take a look at it.<br /><br />I'm sorry but I can't give enough time now to Skype. Work load at university is quite high.<br /><br />Regards,<br />Tahmid.Tahmidhttps://www.blogger.com/profile/09117804893438710050noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-14820241564573884732013-09-06T18:17:27.119-07:002013-09-06T18:17:27.119-07:00I prefer you upload it online somewhere so that ot...I prefer you upload it online somewhere so that others can see it and benefit from it and the discussions here.<br /><br />However, if you feel uncomfortable making your files public, you can email them to me at inferno-rage@hotmail.com<br /><br />Regards,<br />Tahmid.Tahmidhttps://www.blogger.com/profile/09117804893438710050noreply@blogger.comtag:blogger.com,1999:blog-6338993703407602171.post-89419148244226136402013-08-30T05:03:23.894-07:002013-08-30T05:03:23.894-07:00Hi,
Thanks for the reply.
Can you pls give me ur E...Hi,<br />Thanks for the reply.<br />Can you pls give me ur Email ID??<br />So that I can send you the schematic of MOSFET driving circuit as well as some other important files.<br /><br />Regards<br />Dhaval Anonymousnoreply@blogger.com