#include <p18f4580.h>
#include <string.h>
#include <delays.h>
#pragma config OSC = HS
#pragma config LVP = OFF
void send (unsingned char D);
void main (void)
{
unsigned char NM[]="TEST1",C;
TRISCbits.TRISC6=0;
SPBRG = 0X20;
TXSTA = 0X20;
RCSTA = 0X90;
while (1)
{
for (c=0;c<strlen(NM);c++)
send (NM[c]);
Delay10KTCYx (255);
send (0x0a)
send (0x0d)
}
}
void send (unsigned charD)
{
while (PIR1bits.TXIF==0);
TXREG=D;
}
PUT YOUR CURSOR AT MENU BUTTON AND SCROLL UP DOWN