filmov
tv
MikroC for PIC PWM library a basic introduction and how to use. Demonstration using Proteus.

Показать описание
Hello Guys,
Welcome to learning microcontrollers,
Guys I have been making lectures on electronics and embedded system since 2019 for free for everyone on youtube.
My videos are based on powerpoint presentations for the viewers for easy understanding of the circuit.
Now you guys have a chance to support my channel by buying these presentations.
The file contains over 180 project presentations.
This will allow me to buy new sensor and modules to make new and better videos for you guys.
Names of the patreons will be in my next video.
Link to patreon page:
/////////////////////////////////////////////////////**********************************///////////////////////////////// Hello guys,
Welcome to Learning Microcontrollers youtube Channel,
Guys I have also compiled course on Udemy as well. Where you will learn under my direct supervision in a more supervised way.
Here is the links to the courses I have on Udemy, By taking any of these courses you will be supporting my channel aswell.
This will help me to make more videos with better hardware in the future. I hope you look forward to it.
Courses Links:
PWM stands for Pulse Width Modulation, PWM is a technique by which you can give pulses to control speed of motors or brightness of LEDs etc.
This video will give you a basic understanding of how to use MikroC for PIC built in PWM library. It works on all PIC microcontroller having PWM pins including PIC16F877A, PIC18F452, PIC18f4620, PIC32 series, PIC 24 series,PIC10 series and PIC12 series.
MikroC for PIC program is as under:
int read1;
void main() {
PWM1_Init(5000); /// 5000 Hz
ADC_Init();
while(1)
{
read1 = ADC_Read(0); //// ADC is max at 1024
read1 = read1 / 4;
PWM1_Start();
PWM1_Set_Duty(read1); /// 255 is max output
}
}
Welcome to learning microcontrollers,
Guys I have been making lectures on electronics and embedded system since 2019 for free for everyone on youtube.
My videos are based on powerpoint presentations for the viewers for easy understanding of the circuit.
Now you guys have a chance to support my channel by buying these presentations.
The file contains over 180 project presentations.
This will allow me to buy new sensor and modules to make new and better videos for you guys.
Names of the patreons will be in my next video.
Link to patreon page:
/////////////////////////////////////////////////////**********************************///////////////////////////////// Hello guys,
Welcome to Learning Microcontrollers youtube Channel,
Guys I have also compiled course on Udemy as well. Where you will learn under my direct supervision in a more supervised way.
Here is the links to the courses I have on Udemy, By taking any of these courses you will be supporting my channel aswell.
This will help me to make more videos with better hardware in the future. I hope you look forward to it.
Courses Links:
PWM stands for Pulse Width Modulation, PWM is a technique by which you can give pulses to control speed of motors or brightness of LEDs etc.
This video will give you a basic understanding of how to use MikroC for PIC built in PWM library. It works on all PIC microcontroller having PWM pins including PIC16F877A, PIC18F452, PIC18f4620, PIC32 series, PIC 24 series,PIC10 series and PIC12 series.
MikroC for PIC program is as under:
int read1;
void main() {
PWM1_Init(5000); /// 5000 Hz
ADC_Init();
while(1)
{
read1 = ADC_Read(0); //// ADC is max at 1024
read1 = read1 / 4;
PWM1_Start();
PWM1_Set_Duty(read1); /// 255 is max output
}
}