Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

To blink led on and off

#include<pic.h>

Void main()

Int i ;

TRIS B =0; /// port b as o/p

While(1)

PORTB=0X00;

For( i=0;i<100;i++);

PORTB = 0XFF;

For( i=0;i<100;i++);

You might also like