At 07:26 AM 12/11/2004, Andrew Lim wrote: >I guess the code that John suggested will work very well when more data is >needed to be tranfered. Thanks guys. :) Yup, I was going to suggest the same thing. Problem is, you're into a minimum of four instructions to set up the pointers, then one instr per byte. For speed, straightline the code and don't use a loop. Don't forget the time you spend setting up the loop, and checking if you're done every time, is significant in a short loop.
Message
Re: [AVR-Chat] More efficient and space saving code
2004-12-11 by Dave VanHorn