Jump to content
Sign in to follow this  

RS232 Routines

Recommended Posts

I am using C2C Version 4.1


Have managed to get the serial routines to work fine at 9600 baud and Clock 4MHz.


If I change the clock to 10MHz using PRAGMAs the serial routines stop working.


Changing the clock with PRAGMA does however correct the delay routines to delay the correct length of time. It only seems to be the serial routines that dont work.


Has anyone managed to get these routines working at the higher clock speed?



Share this post

Link to post
Share on other sites
Guest HansV

I've got it running on a 20MHz 16F877

I've had no problems on 16F84 chips@20 MHz.


The only problem with the 16F877 I've had was in a

printf() function I wrote. I had to add a small delay between

bytes, or else the RX-side (A pc running hyperterminal :D ) would lose sync somewhere between bytes. I suspect this has something to do with the crystal being not 100% accurate, or windoze XP losing some bits ;)


If you have a scope, see if there's anything coming out of your uC



Share this post

Link to post
Share on other sites
Guest Ross



question: Did you end up using the USART for the serial communications or did you use another Port?



Share this post

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...