.....
#use rs232(UART1,baud=9600,parity=N,bits=8)
...
#define CTS PIN_C1 //Clear to send
#define RTS PIN_C2 //Request to send
.....
// ********** INICIALIZA HOST USB ***************************
void inic_host() {
output_high(RTS);
while(input(CTS)); //espero que el VDRIVE2 busque el pic
output_low(RTS); //le envio una respuesta
serial_sendbyte('S'); //envĂa un SCS (habilitar comandos en modo corto)
serial_sendbyte('C');
serial_sendbyte('S');
serial_sendbyte(0x0D); //caracter para indicar fin del comando(enter)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum