Hello,
I am Using PIC16F628A and Hi-Tech Compiler for MPLAB I want to write routine for UART in which i want Receiving interrupt based,
Here is Initialization i have done for UART. . . .
Transmission works Perfectly and even polling based receiving works fine can anybody give me code for interrupt based routine please.
I am Using PIC16F628A and Hi-Tech Compiler for MPLAB I want to write routine for UART in which i want Receiving interrupt based,
Here is Initialization i have done for UART. . . .
Transmission works Perfectly and even polling based receiving works fine can anybody give me code for interrupt based routine please.
Rich (BB code):
TXSTA = 0x24;
SYNC = 0;
SPEN = 1;
TXEN = 1;
BRGH = 1;
SPBRG = 129;
SREN = 0;
RCIE = 1; // Interrupt Enable
CREN = 1;
GIE = 1;