ediamondsrt
Junior Member level 3
[SOLVED] PIC16F628 | Hi-Tech | Interrupt based UART Problem
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.
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
Code:
TXSTA = 0x24;
SYNC = 0;
SPEN = 1;
TXEN = 1;
BRGH = 1;
SPBRG = 129;
SREN = 0;
RCIE = 1; // Interrupt Enable
CREN = 1;
GIE = 1;
Transmission works Perfectly and even polling based receiving works fine can anybody give me code for interrupt based routine please.
Last edited: