Тёмный
No video :(

50Hz PWM generation using PIC16F877A 

Thundertronics
Подписаться 8 тыс.
Просмотров 33 тыс.
50% 1

Engineer Hossam "VEGETA" Moghrabi explains how to generate 50Hz PWM signal using PIC16F877A, and why people have hardships doing so, why is it not the straightforward method... and more!
________________________
Episode attachments:
MPlab X project file (code): mega.nz/#!SMpw...
PIC timer explanation: mega.nz/#!PFpj...
Instructables article: www.instructabl....
__________________
Please like, share, and subscribe if you liked my first video blog and think that I can produce something better in the future!

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 54   
@garychung66
@garychung66 2 месяца назад
This is one hell of a video I have never spent so much time watching it. Good tutorial !!!
@Thundertronics
@Thundertronics Месяц назад
Glad you liked it!
@ememeable
@ememeable 11 месяцев назад
God Bless You My Brother l❤ You have simplified my rock science I just could not get my head around it until you identified and solved all my queries Sincerely ejike💞
@Thundertronics
@Thundertronics 10 месяцев назад
welcome bro.
@smartsamirul5499
@smartsamirul5499 2 года назад
can you help to learn how spwm signal 50hz for sine wave inverter work perfectly ?
@RiddimDubstep
@RiddimDubstep Год назад
I can't seem to wrap my head around where the first interrupt happens. You initialised the CCP1, the Timer1 but I can't see what triggers the first interrupt, like where did you set the value in the CCP to be compared to the tickrate of the Timer1 to trigger the interrupt when Compare = Tickrate.
@Thundertronics
@Thundertronics Год назад
unfortunately, it was a long time ago and I don't remember what exactly i did. you can just see the code and try to understand it.
@RiddimDubstep
@RiddimDubstep Год назад
@@Thundertronics I think I know. First interrupt triggers because Timer1’s ADRESH and ADRESL are empty. You can also set a value in ADRESH and ADRESL then Timer1 will trigger the interrupt. Therefore you don’t even need CCP
@mohinderkaur6671
@mohinderkaur6671 Год назад
great explanation
@Thundertronics
@Thundertronics Год назад
Glad you think so!
@gibotos13
@gibotos13 8 лет назад
thank you very much sir much apreciated video + project!!
@mayconjanoca3050
@mayconjanoca3050 5 лет назад
Thanks for tutorial. Muito obrigado pelo tutorial!1
@Thundertronics
@Thundertronics 3 года назад
welcome
@bashiralao9172
@bashiralao9172 6 лет назад
The code works well and i have generated two pwm signal at ccp1 and ccp2 at 50hz but my problem is that i can't get to off ccp2 for ccp1 and vise versa, so that they wont be working at the same time. Am using it to power my two side mosfets in an inverter. PLS HELP ME
@Mr27097
@Mr27097 2 года назад
Thank you.
@Thundertronics
@Thundertronics 2 года назад
Welcome!
@bashiralao9172
@bashiralao9172 6 лет назад
How do i use ccp1 and ccp2 having the same frequency
@naiiverio
@naiiverio 8 лет назад
i clicked the "MPlab X project file (code): mega.nz/#!SMpwEDST!VsT6uPJdYp..." part of your attachment but it says it needs a decryption key. pls help. tnx
@Thundertronics
@Thundertronics 8 лет назад
+Nai Senpai I am sorry! here is the fully working link: mega.nz/#!SMpwEDST!VsT6uPJdYpIUbnEuIXLudGUtsAI45ThHi49N9umErOE I modified the link in the description too.
@wajahatali3981
@wajahatali3981 6 лет назад
which Software is this?..integrated with MPlab. Please reply ASAP.
@Thundertronics
@Thundertronics 6 лет назад
I have used Proteus for simulation and MPLab X for programming.
@What-tp8gs
@What-tp8gs 3 года назад
بارك الله فيك
@Thundertronics
@Thundertronics 3 года назад
وفيك أخي الكريم
@Thundertronics
@Thundertronics 3 года назад
@@What-tp8gs لا أعلم أخي مع الأسف. الثري-فيز صعب في الإلكترونيات ولا أدري كيف أساعدك. لكن لو لديك الدارة وتريد برمجة متحكم وقتها استعمل الأردوينو كونه سهل
@wajahatali3981
@wajahatali3981 6 лет назад
One more thing . The clock frequency you used is 20MHz. Is it Exeternal? Please reply
@Thundertronics
@Thundertronics 6 лет назад
yes
@wajahatali3981
@wajahatali3981 6 лет назад
But In your lecture You said you are using 20MHz internal . There is no internal Oscillator in PIC16f877a
@Thundertronics
@Thundertronics 6 лет назад
I definitely used an external one. the XTAL command is for it not for internal one.
@amruthuramesh3307
@amruthuramesh3307 6 лет назад
Sir can I make two pwm pulses from RC1 and RC2 with same frequency but two different Duty Cycles. With this same concept of PWM generation
@paul_reddy
@paul_reddy 2 года назад
Yes you can , use two for loop with some loop value same or different ....as on and off of bit, but high resolution you may not achieve.
@ravindratajane4001
@ravindratajane4001 6 лет назад
Sir... Please make video on software spwm using pic microcontroller 16f72 or 16f877a . Please I'm waiting,
@koyukabus27
@koyukabus27 6 лет назад
thanks for sharing. may you share full code link pls
@Ordinary._.Original
@Ordinary._.Original Год назад
in 12:42 its 819 us not 81.9?
@Thundertronics
@Thundertronics 8 месяцев назад
thanks for correction
@aasimzia9781
@aasimzia9781 7 лет назад
does not work on pic18f452. why?
@Thundertronics
@Thundertronics 7 лет назад
I didn't try it on PIC18. However, I demonstrated the concept which you can do it for your own PIC. Your PIC may have other settings for the timers and CCP modules. Read the datasheet and try to mimic what I did here using your settings. Good luck!
@ravindratajane4001
@ravindratajane4001 6 лет назад
Thank you. Very helpful... Dear Sir, Please make video on spwm using pic microcontroller. I'm face much critical to write a code for sinewave solar power ups using pic microcontroller ie. 16f72 or 16f877a. Please help me.
@70aneesh
@70aneesh 5 лет назад
I can help you....with source code of dspic30f2010....plz text me on +917012170144
@wajahatali3981
@wajahatali3981 6 лет назад
is this work for CCS c compiler?
@Thundertronics
@Thundertronics 6 лет назад
No, I guess it is just XC8.
@salvineshpadiyachi5716
@salvineshpadiyachi5716 3 года назад
hi can i have you codes please
@oliverwijesooriya2067
@oliverwijesooriya2067 5 лет назад
good explain
@Thundertronics
@Thundertronics 3 года назад
thanks
@dancemamblita7706
@dancemamblita7706 2 года назад
i just used the internal oslicator at 500KHz and used normal PWM
@Thundertronics
@Thundertronics 2 года назад
yes, if you have slow oscillator you can get it but most people will be having very high speed oscillators. this tutorial was for them.
@webdevelopmentlover725
@webdevelopmentlover725 6 лет назад
where r u from
@Thundertronics
@Thundertronics 6 лет назад
Jordan, the country next to occupied Palestine. Hope we liberate it one day.
@bashiralao9172
@bashiralao9172 6 лет назад
Common sir Little help here pls
@Thundertronics
@Thundertronics 8 лет назад
can someone donate a good channel poster? make sure it includes vegeta xD
Далее
How to Generate PWM in PIC18F using PWM Mode
27:45
Просмотров 2,2 тыс.
НЕ ИГРАЙ В ЭТУ ИГРУ! 😂 #Shorts
00:28
Просмотров 287 тыс.
Difference between Arduino and PIC microcontrollers
8:59
Programming the PIC16F84A in C with MPLAB X
14:19
Просмотров 57 тыс.
PIC microcontroller tutorial #5   PWM
9:17
Просмотров 375
How to get source code onto a PIC microcontroller
11:21
MOSFET Bootstrapping
8:44
Просмотров 126 тыс.
PIC Basics - PWM Part 1
18:47
Просмотров 13 тыс.