50Hz PWM generation using PIC16F877A

preview_player
Показать описание
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:

__________________

Please like, share, and subscribe if you liked my first video blog and think that I can produce something better in the future!
Рекомендации по теме
Комментарии
Автор

This is one hell of a video I have never spent so much time watching it. Good tutorial !!!

garychung
Автор

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💞

ememeable
Автор

can you help to learn how spwm signal 50hz for sine wave inverter work perfectly ?

skalgotrading
Автор

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.

RiddimDubstep
Автор

thank you very much sir much apreciated video + project!!

gibotos
Автор

To generate the interrupt, CCPR1H:CCPR1L needs to be equal to TMR1. You initialize TMR1 to 0, however I didn’t see the CCPR register get initialized. The local variable isn’t the same as the SFR. So idk how that first interrupt is being generated. Perhaps value of CCR1H and CCPR1L are initialized to 0 on start up/reset so it powers up and goes right into the interrupt since 0 equals 0. I can’t think of any other way that first interrupt generates. After that you handle the loading of CCPR1H and CCPR1L appropriately.

sergioaguinaga
Автор

Thanks for tutorial. Muito obrigado pelo tutorial!1

mayconjanoca
Автор

thanks for sharing. may you share full code link pls

koyukabus
Автор

which Software is this?..integrated with MPlab. Please reply ASAP.

wajahatali
Автор

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

bashiralao
Автор

One more thing . The clock frequency you used is 20MHz. Is it Exeternal? Please reply

wajahatali
Автор

How do i use ccp1 and ccp2 having the same frequency

bashiralao
Автор

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

amruthuramesh
Автор

Sir...
Please make video on software spwm using pic microcontroller 16f72 or 16f877a . Please I'm waiting,

ravindratajane
Автор

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.

ravindratajane
Автор

i just used the internal oslicator at 500KHz and used normal PWM

dancemamblita
Автор

can someone donate a good channel poster? make sure it includes vegeta xD

Thundertronics