void main()
{
char m=32; // miss out non-printing control characters
UART1_Init(4800);
Delay_ms(100);
while(1)
{
UART1_Write(m);
m+=1;
if(m==127)
{
m=32; // fix syntax error and miss out non-printing control characters
}
}
}
Note that I changed the double == to single = within the if braces
Why are you using an ancient version of the non-pro compiler? Upgrade to the latest mikroC pro compiler (v5.8.0) is free.
I have changed USART to UART1 for serial functions to suit current compiler. You will need to change back if you insist on using the old version.
i change my compiler to micro c pro. and use your code.
(My PIC Micro is 16F877A)
but Micro can't Send Characters to PC with out press a key from hyperterminal.