/*
#include	<pic.h>
#include	<sys.h>
#include 	<htc.h>
#include 	<conio.h>
#include 	<stdio.h>
#include 	<stdio.h>
#include 	<ctype.h>
#include 	<string.h>
#include 	<math.h>
*/
#include	<pic.h>
void delay(int i)
{
	while(i--);
}
main()
{
	TRISA=0;
	TRISB = 0b10000001;

	while(1) {
		PORTA=0;
		PORTB=0;
		RA1=1;  //stato1
		RB3=1;
		delay(10);
		RA1=0;	//stato2
		RA2=1;
		delay(10);
		RA2=0;	//stato3
		RA3=1;
		delay(10);
		RB3=0;	//stato4
		RB1=1;
		delay(10);
		RB1=0;	//stato5
		RB2=1;
		delay(10);
		RB2=0;	//stato6
		RB3=1;
		delay(10);

	}
}

