2008/10/26, Rob Hamerling <[EMAIL PROTECTED]>: > > > Hi guys, > > I have a board here with a 16F819 and LCD for a thermometer/clock which > uses a low power crystal at 32 KHz. I converted Eur's hello world sample > to this board and noticed not only slow LCD writing but also slow > updates of the counter. I suppose this is caused by the delay_any_mc > library with this slow oscillator? As the old name of delay (delay_any_mc) indicated it is independent of the MC's of the crystal. And iirc, the basic delay is even generated by the compiler.
It could be that there is a bug in either the lib or the compiler part. But it can also be the case that the pic just is that slow. 32khz means 8000 instructions per second and that is not much! (but now I think it over: the structure of delay.jal is more important in this case. In high-speed cases calling 1000 x 1 us to create 1 ms delay is the same as calling 10 x 100 us. In the low-speed case, where you do only 8 instructions per ms, the first will take much more time then the second one). Joep --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
