#include <p18f67j60.h>
void timer_us(unsigned int time);
void send_command(unsigned char command)
{ unsigned int i;
for(i=0; i<8; i++)
{
if((command&1)!=0)
{PORTAbits.RA3=0 ;
timer_us(15);
PORTAbits.RA3=1 ;
timer_us(45) ; }
else
{ PORTAbits.RA3=0 ;
timer_us(60);
}
command>>1 ;
}
}