Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
program PWM_16F877A
'PWM with PIC16F877A
'Frequency of PWM: 5kHz
'Duty Cycle: 50%
'Language: BASIC
'Compiler: mikroBASIC PRO for PIC v3.20
'Programmer: Syed Tahmid Mahbub
main:
PWM1_Init(5000) 'Initialize PWM (using CCP module) at 5kHz
PWM1_Set_Duty(128) 'Set duty cycle at 50%
PWM1_Start()
while true
wend
end.