You are on page 1of 1

#include <16f628.

h> // Selecciona el PIC #fuses XT,NOWDT,NOPROTECT,NOLVP,PUT,BROWNOUT cin #use delay(cloc =4000000) // Velocidad del Cristal : 4 Mhz #use standard_io(b) #use rs232(baud=9600, xmit=PIN_B2, rcv=PIN_B1) char Keypress=' '; #int_rda void serial_isr() { Keypress=0x00; if( bhit()){ Keypress=getc(); if(Keypress!=0x00){ putchar( eypress); eypress=0x00; } } } void main() { enable_interrupts(global); enable_interrupts(int_rda); printf("\r\n\Listen on RS232 (Int)\r\n"); do { } while (TRUE); }

// Opciones de configura

// Definicin del RS232

You might also like