adwnis123
Full Member level 4
- Joined
- Jun 19, 2014
- Messages
- 214
- Helped
- 0
- Reputation
- 0
- Reaction score
- 1
- Trophy points
- 18
- Activity points
- 1,737
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.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?