kmp84
Joined: 02 Feb 2010 Posts: 350
|
18F25k22 high speed baud problem |
Posted: Fri Jan 24, 2014 3:20 am |
|
|
Hi all developers,
I have problem with baud rate on PIC18F25k22 for speed above 19200 bps.
My compiler ver. 4.140
Code: |
#include <18F25k22.h>
#fuses HSH,PLLEN,CPB,EBTRB,PROTECT,NOFCMEN,PUT,MCLR
#use delay(clock=64000000) //64 MHz = f.osc(16mhz).x4 (PLL)
#use rs232(baud=115200,xmit=PIN_C6,rcv=PIN_C7,errors)
void main(void){
setup_oscillator(OSC_PLL_ON);
delay_ms(300);
printf("\n\rTEST Print on HW_USART.....");
for(;;)
{
}
} |
Thanks for your interest about my problem! |
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19513
|
|
Posted: Fri Jan 24, 2014 3:25 am |
|
|
Have a look at this thread:
<http://www.ccsinfo.com/forum/viewtopic.php?t=51769>
However there have also been several reports of baud rate problems when the CPU clock is this high, that are not documented in the errata (yet...). There is a bug with several other chips when the clock is this fast, and some of these chips seem to show the same problem...
Best Wishes |
|