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 support@ccsinfo.com

RS232 on 12f675
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jul 29, 2004 12:05 pm     Reply with quote

Quote:
any suggestions?

Yes. The things that we said to do in a previous day
still apply in the present day.
http://www.ccsinfo.com/forum/viewtopic.php?t=19928&postdays=0&postorder=asc&start=16
djpark



Joined: 02 Mar 2004
Posts: 49

View user's profile Send private message

PostPosted: Fri Jul 30, 2004 10:04 pm     Reply with quote

young wrote:
Thank you for help, how to "Double check the accuracy of the internal "crystal""? How do I know if it has about 3% or better reliaility for reliable comms?


The datasheet says the internal RC oscillator is "Precision Internal 4 MHz oscillator factory calibrated to ±1%" and the value is stored at the last byte of the flash.

If you look at the asm output from ccs, you will see that the first instruction at powerup is to call this calibration routine and you can be assured that it is calibrated.

ccs will allow you to setup 38400 baud, but you will get garbage at receiving side. So far all the 12F675 I have have shown very good result of sending continuous data stream at 19200 baud.

One thing to remember is that the software serial driver is very sensitive to the timing and if you have timer interrupt in the middle of transmit, you will get corrupted output, even at 9600 baud. So be sure to arrange your application to send data in between any interrupt.

-- dj
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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