Microcontroller › PIC › serial communication using PIC18f4550 › if your output is at the
if your output is at the hyperterminal:
1) check com port baud rate
2) check if the port you’re trying to connect is being used by other program.
3) check if your config bits is applied in the project setting
if you have access to oscilloscope:
1) probe the tx pin if its tranmitting
i have tested above code, and its working.
if its too hard, consider using the following built in function for mikroc:
char string; //put any size here
USART_init(9600); //set baud rate, built in
USART_Write(string); //transmit each character one by one
USART_Write(0x0d); //put a carriage return after finishing transmission
hope this help