Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Timer1 error

2007-11-23 by John Samperi

At 06:21 AM 22/11/2007, you wrote:
>operand 2 out of range and gives me the address of the counter registers
>
>in r6,TCNT1L
>in r7,TCNT1H

Depending on which processor you are using, TCNT1 could be
memory mapped and therefore you need to use LDS and STS
instead of IN/OUT.

You can also use a macro from AVR001 LOAD and STORE and it
will automatically switch in the correct instruction.

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.