djpark
Joined: 02 Mar 2004 Posts: 49
|
|
Posted: Fri Jul 30, 2004 10:04 pm |
|
|
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 |
|