Difference between revisions of "Buzzer with PIC16F877A Starter Board"
Line 1: | Line 1: | ||
[[Category:Starter PIC16F877]] | [[Category:Starter PIC16F877]] | ||
+ | In this tutorial we will see how to interface a switch and buzzer with Pic16f877a starter board.<br> | ||
+ | The switch will be used to control the buzzer.<br> | ||
=Steps= | =Steps= |
Revision as of 18:24, 2 May 2016
In this tutorial we will see how to interface a switch and buzzer with Pic16f877a starter board.
The switch will be used to control the buzzer.
Steps
- Configure the PORT D0 as output .
- Configure the PORT D2 as input.
- Read the switch status.
- ON/OFF the Buzzer as per switch status.
Code