.......Hello there..i encountered one problem when sending this message...that is when i am sending the
putrsUSART("ok");
over to my hyperterminal from my PICDEM 2 PLUS BOARD in MPLAB ICD 2,the data that i received is ok[00].do you know how to get it send only ok?and when i the second data is send the hyperterminal will be seeing ok[00]ok[00]..and the data keep echoing following the number of ok sent..here i attached on the code for you to have a look.so hope you can help....

#include <p18f452.h>
#include <usart.h>
#include <delays.h>

char getcharusart()
{
// Wait until the byte recieved interrupt flag (RCIF) is set on the interrupt register
while (!PIR1bits.RCIF)
continue;

//Clear the interrupt register until another byte is recieved
PIR1bits.RCIF = 0;

//Return the value stored in RCREG, which is the byte that has been recieved
return RCREG;
}


void main(void)
{
//port configuration
TRISCbits.TRISC6 = 0;
TRISCbits.TRISC7 = 1;

// configure USART
OpenUSART( USART_TX_INT_OFF &
USART_RX_INT_OFF & //usart configuration
USART_ASYNCH_MODE &
USART_EIGHT_BIT &
USART_CONT_RX &
USART_BRGH_HIGH,25 );



//All PORTB are outputs
TRISB = 0;

//Clear PORTB
PORTB = 0;

// while (1)
{
//PORTB =getcharusart();
putrsUSART("ok"); //9600,n,8,1!\r\n");

}


}