avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] in and out instructions


From: Trampas
Subject: RE: [avr-gcc-list] in and out instructions
Date: Mon, 27 Nov 2006 21:44:23 -0500

To answer my own question the SPMCSR is mapped to 0x37 for the in and out operations, 0x57 is the load store locations.

 

Trampas

 

 


From: address@hidden [mailto:address@hidden On Behalf Of Trampas
Sent: Monday, November 27, 2006 8:10 PM
To: 'AVR GCC List'
Subject: [avr-gcc-list] in and out instructions

 

When attempting to do inline assembly I get the error message that the address needs to be less than 64 when attempting to use in and out instructions. Specifically I was copying this line of code from the At90CAN128 datasheet.

 

Out SPMCSR, r24

 

Note that SPMCSR on the at90can128 is address 0x0057 which is greater than 64. I was wondering if the instruction set changed or something on this part?

 

For further information I have not been able to get bootloader to work on this part, and was wondering if it was a problem with the sts instruction verse the out instruction.  As far as testing the bootloader I have tried the functions in the boot.h of the latest release of WINAVR, which is 8 months or so old now, and I know there are some bug fixes to the libc but I have not been able to find a new windows port of AVR libc.

 

 

Trampas


reply via email to

[Prev in Thread] Current Thread [Next in Thread]