Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Code C - [expand] 1 2 UART1_Init(38400); Delay_ms(200);
Feasibility depends on the oscillator frequency. 8 or 16 MHz e.g. works, also special UART crystal frequencies like 3.69 or 7.37 MHz.
Try this
Code C - [expand] 1 2 UART1_Init(38400); Delay_ms(200);
What do you mean with "decimal frequencies"? Do you refer to mikroC Software UART library?When I try decimal frequencies with the software and not through hardware oscillators, it does not work! Why??
What's your crystal/oscillator frequency?I get strange characters at the terminal!!! Why is that?
What do you mean with "decimal frequencies"? Do you refer to mikroC Software UART library?
What's your crystal/oscillator frequency?
16 MHz sounds reasonable, as previously mentioned. Unfortunately there's no fast internal oscillator with PIC16F877A, so I wonder how you are generating the 16 MHz?
As mentioned by FvM, 4 MHz Clock cannot be used to get 38400 bps baud. You need 16 Mhz Fosc. Either replace the crystal on board or use 9600 bps baudrate with 4 MHz crystal. INTRCOSC can provide max 8 MHz.
Set it to 16 MHz and on the left side drop down list for OSC type choose HS.
Zip and post the complete mikroC project files.
Thank you! Again strange characters I get!!!Try these.