Hi Wayne, Based on the 1-min measurements, it looks that your oscillator could be off by 0,7% +/- 1,07%. The 2 min measurements are perfect, and indicate it is probably better. And since serial should work within 5%, clock deviation seems not the cause of the serial failure. I'm running out of idea's...
Joep 2009/11/14 Wayne <[email protected]> > > Joep Suijs wrote: > > Hi Wayne, > > > > I am curious about the speed your pic is running while the baudrate is > off. > > Maybe you can create a pulse (a la 'blink a led') and check it out with > an > > oscilloscope. Or take a long delay, say one minute, and try to measure > the > > time with a watch. > > Joep > > OK. Multiple passes > 1 minute delay > Start - Stop > 51:08 - 52.08 > 54:14 - 55:13 > 55:31 - 56:30 > 57:04 - 58:03 > 58:16 - 59:16 > 00:20 - 01:20 > 02:23 - 03:23 > > 2 minute delay > 18:43 - 20:43 > 23:02 - 25:02 > > Let me know id you need anything else. > > Wayne > > > 2009/11/14 Wayne <[email protected]> > > > >> Joep Suijs wrote: > >>> Hi Wayne, > >>> > >>> The resonators I have were purchased from a guy that sold parts to > users > >>>> on the piclist. So I would think that they are OK. He is now teaching > >>>> at a College in Arizona. > >>>> > >>>> > >>> I don't meant that the parts where wrong, just that resonators are > >>> inaccurate compared to crystals. But forget it - I rechecked some > >> resonator > >>> specs and they specify an accuracy of 0,5%. So well within the limits > >>> required for serial comms. > >> Joep > >> > >> I am treating this as a learning experience so I will continue > checking. > >> > >> First test with a 3 Terminal 4.00 Mhz resonator. Tried 2 different > >> ones and got the same result from both. Garbage charactors. > >> > >> Second Test with 2 different 2 Terminal 4.00 MHz resonator with 22pf > >> caps. Both output the same series of characters as test 1. > >> > >> Third Test. Removed the 22pf caps. The output changed from the other > >> two tests. This time the output was a series of readable numbers and > >> only numbers. > >> > >> Sadly, that is not what I am sending to the LCD. > >> > >> Tests 1 & 2 were what I had been seeing since I started working on the > >> k107 library. Thinking it was anything but baud rate I kept trying > >> everything else I could think of to get it working. Rob mentioned a 20 > >> MHZ crystal in a post and that me thinking. I looked at all the sample > >> programs and saw that most, if not all, were using high baud rates AND > >> High clock frequencies. That's when I borrowed a 20 MHZ resonator and > >> finally got it running. > >> > >> Regards > >> > >> Wayne > >> > >> -- Give a man a fish, feed him for a day. > >> Teach a man to fish, feed him for life. > >> > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jallib?hl=en -~----------~----~----~----~------~----~------~--~---
