Reply by barry March 25, 20102010-03-25
--- In a..., Jan Tichavsk wrote:
Thanks heaps, that's got it. I am fairly new to programing and am totally self taught, With that, its real easy to find yourself in a corner and not knowing which way to go. As with most self taught people, what happens is you tend to only see whats worked in the past. I am still trying to understand a lot of what goes on, trying to make sense of what each operand actually does and how it effects all else around it. I am however finding it a great challenge, rather like playing a game of chess, 50 moves in advance. It has become one of the few things in life that I get a real sense of achievement out of when things come together.
Bazza.
> Instruction Set Manual: http://www.atmel.com/atmel/acrobat/doc0856.pdf .
> Also it should be mentioned in your device's manual, notes in Register
> Summary section. In the summary you can clearly see what registers are
> suitable for IN/OUT.
>
> Regards
> jnd
>
>
> 2010/3/24 barry
>
> >
> >
> > I am having trouble with timer3. Using OUT (TIMER3 REGISTER),TEMP
> > I get an error message... operand 1 out of range 0x8b(same with 0x8a,0x84
> > and 0x86) I assume that an OUT OPERAND cant go that far. So what operand
> > should be used to reach timer 3 registers.
> > Thanks Bazza.
> >
> >
> >
>
>
>
>

Reply by March 24, 20102010-03-24
Hi,

Use STS and LDS for further locations. See the holy bible doc0856 aka AVR
Instruction Set Manual: http://www.atmel.com/atmel/acrobat/doc0856.pdf .
Also it should be mentioned in your device's manual, notes in Register
Summary section. In the summary you can clearly see what registers are
suitable for IN/OUT.

Regards
jnd
2010/3/24 barry

> I am having trouble with timer3. Using OUT (TIMER3 REGISTER),TEMP
> I get an error message... operand 1 out of range 0x8b(same with 0x8a,0x84
> and 0x86) I assume that an OUT OPERAND cant go that far. So what operand
> should be used to reach timer 3 registers.
> Thanks Bazza.
>
>
>


Reply by barry March 24, 20102010-03-24
I am having trouble with timer3. Using OUT (TIMER3 REGISTER),TEMP
I get an error message... operand 1 out of range 0x8b(same with 0x8a,0x84 and 0x86) I assume that an OUT OPERAND cant go that far. So what operand should be used to reach timer 3 registers.
Thanks Bazza.