2009/8/6 AlbertF <[email protected]>: > > Hi Joep, > Sorry to say, but the accuracy of your commit is far worse on a > PIC18f14k50 (48MHz), the old code was pretty good, but the new 10us is > far off. Thanks for pointing this out. It was a bug I should have avoided, not a calibration thing. Could you test the version I just committed?
> Furthermore, why are you not using the default serial library? Anyway The target clock rate is used by the compiler to calculate the delay loops and by delay.jal to calculate corrections for the code it adds. serial_hardware uses target_clock to calculate the baudrate. The hacked version of serial_hardware uses hacked_target_clock to calculate the baudrate. You can now change 'pragma target clock' to any desired value and test, independent of the real clock the cpu runs at. So... if delay works better now, you might want to test with pragma target clock at 1, 4,8 add 20 MHz at 18F... > I like the dutch foo-bar (aap,noot mies) in the code, I also use quite > often ;) Maybe we should add them to the jallib stile guide as a standard sequence. IMHO they are much better to remember then the german gramatical cases ;) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
