CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

18F25k22 high speed baud problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kmp84



Joined: 02 Feb 2010
Posts: 354

View user's profile Send private message

18F25k22 high speed baud problem
PostPosted: Fri Jan 24, 2014 3:20 am     Reply with quote

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: 19537

View user's profile Send private message

PostPosted: Fri Jan 24, 2014 3:25 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group