(Created page with "Category:Starter PIC16F877 =Code= <html> <script src="https://gist.github.com/sharanago/0d6c8619bc40351dd7a3d476f7f82840.js"></script> </html> =Demo= File:Pic16f877a b...")
 
Line 1: Line 1:
 
[[Category:Starter PIC16F877]]
 
[[Category:Starter PIC16F877]]
 +
 +
=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=
 
=Code=

Revision as of 18:00, 27 April 2016


Steps

  1. Configure the PORT D0 as output .
  2. Configure the PORT D2 as input.
  3. Read the switch status.
  4. ON/OFF the Buzzer as per switch status.

Code

Demo

Pic16f877a buzzer.gif