PIC16F877A interface Push Button. Using MikroC for PIC coding.
Guys, My lectures are free for everyone. If you want to support my channel, then become a Youtube member by following link below: https://www.youtube.com/channel/UCpdIWTTY36Dhyb20V4EnMiA/join Seek knowledge from the cradle to the grave /// /////////////////////////////////////////////////////**********************************///////////////////////////////// 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: 1- https://www.udemy.com/course/pic16f877a-interface-lm35-temp-sensor-mikroc-collection 2- https://www.udemy.com/course/mikroc-for-pic-libraries-with-examples-using-pic16f877a-mcu 3- https://www.udemy.com/course/mikroc-for-pic-libraries-with-examples-using-pic16f877a-mcu 4- https://www.udemy.com/course/pic-microcontroller-using-mikroc-for-pic-from-scratch 5- https://www.udemy.com/course/learn-arduino-uno-coding-using-arduino-ide ///////////////////////////////////////////////////// Hello guys, In this video I am gonna show you how to use a push button with a PIC16F877A microcontroller. Its a very basic concept but has very deep application in any sort of project that you make. To setup your hardware follow the video as under: https://www.youtube.com/watch?v=CNwoRa1Lk3U Become a Patreon and support my channel using link below: https://patreon.com/user?u=81261678 Here is the code: void main() { TRISB.F7 = 0; PORTB.F7 = 0; Delay_ms(100); TRISD.F2 = 1; PORTD.F2 = 1; Delay_ms(100); while(1) { if ( PORTD.F2 == 0 ) { delay_ms(100); if ( PORTD.F2 == 0 ) { PORTB.F7 = 1; } } else { PORTB.F7 = 0; } } }
Download
0 formatsNo download links available.