Joep Suijs wrote:
> 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...
> 

I wonder if it could be the chip itself. Of the 3 k107 backpacks I have 
2 are using the 16f268a and 1 a 16f648a.  None of the boards have a 
crystal/resonator.

I have a 16f648a and another 16f628a.  I'll try each of them and see if 
they will run on 4 Mhz.  Both internal and with a resonator.

I have all but one function in the library but... I am thinking of 
changing the library to conserve space.  Before I revise it I need some 
help .

The go to column function can be done inline by doing

var byte column[] = "?x15"
for COUNT (column) using i loop
   serial_sw_write(column[i])
end loop

But to call it as a procedure/function I have to pass 2 column numbers
ie columns are numbered 00-19.  I can't figure out how to so that.

If I could pass a pointer to column[] to the routine would be the way 
but I have not seen that used in jal.

Suggestions welcomed!

Regards

Wayne

> 
> 
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to