Author: Not specified Language: c
Description: Not specified Timestamp: 2018-03-20 00:15:42 +0000
View raw paste Reply
#include <xc.h>

#pragma config FOSC = INTRC_NOCLKOUT
#pragma config WDTE = OFF
#pragma config IESO = OFF
#pragma config FCMEN = OFF

void main (void){
    TXSTAbits.TXEN=1;
    TXSTAbits.BRGH=0;
    RCSTAbits.SPEN=1;
    RCSTAbits.CREN=1;

    SPBRG=52;

    while(1){
        while(PIR1bits.TXIF!=1);
            TXREG = 'U';
    }
}
View raw paste Reply