You are on page 1of 1

//Acessing Individual pins.

Sample program written for


//PIC programming tutorial.
//Target device is PIC16F877A
//Compiler:HI-TECH C
//Author Anil C S : www.technoburst.blogspot.com
#include <htc.h>
main()
{
TRISB= 0b10000000 ; // declare portb.7 as input pin and potb.6 to portb.0 as
output pins

while(1)
RB6=RB7; // input output mapping

}

You might also like