suwaii
Member level 4
usart mikroc
hi
i try to use PIC18F452 to send data to hyperterminal but i do not
get anything . I user hyperterminal in the mikroC compiler and i put
it in the HEX display but i do not get any thing may be the mistake
come from code.....can any one tell me what is the problem in this code
and correct it even itry to use code of example of usart in the mikroC help
but without result:
void main()
{
int chunk = 0x1E;
TRISC = 0b10101111;
SPBRG = 0b00011001;
TXSTA = 0b00100100;
do {
Usart_Write(chunk);
} while (1);
}
hi
i try to use PIC18F452 to send data to hyperterminal but i do not
get anything . I user hyperterminal in the mikroC compiler and i put
it in the HEX display but i do not get any thing may be the mistake
come from code.....can any one tell me what is the problem in this code
and correct it even itry to use code of example of usart in the mikroC help
but without result:
void main()
{
int chunk = 0x1E;
TRISC = 0b10101111;
SPBRG = 0b00011001;
TXSTA = 0b00100100;
do {
Usart_Write(chunk);
} while (1);
}