Re: [avr-gcc-list] Howto put constants on fixed address

2007-12-23 Thread Joerg Wunsch
"Stu Bell" <[EMAIL PROTECTED]> wrote: > My feeling is that you are asking quite a bit too much from the > linker to expect it to "flow" code around an obstacle in the middle > of it's memory map. I agree. If at all, I'd simply use the last (upmost) ROM location for that "magic number" or "magic

RE: [avr-gcc-list] Fine Tuning code timings

2007-12-23 Thread larry barello
I just adjusted the initial bit time by a few counts to offset the delay. Subsequent bits were sampled/output through the same code path so I just continued to add the bit time to the OCxx register for the next interrupt. In my code I used TIMER3 as CPU/8. I had to adjust my initial delays by 10

Re: [avr-gcc-list] Fine Tuning code timings

2007-12-23 Thread Parthasaradhi Nayani
Hi Alex, I am not sure why you are capturing the timer1 value, unless you are using the timer for other purposes as well. If not then the easiest method is to: 1. Enable time over flow interrupt. 2. Load the timer withe the required delay for the chosen baud rate. The port pin can be made low he