Type in the full discussion title or a part of it.
Discussion Title Created date
Avr assembly inline code
Hi! I need an inline assembly function code that saves the stack pointer in registers R25 and R24 plus jumps to a function foo.. This code is NOT working to me: http://pastebin....
Tuesday, 10 April 2012 - 14:41
GPIO on both falling and rising; How to distinguish
I cannot find a status flag signalling the edge(s) on which the GPIO interrupt occurred (on AVRXMEGA). On other arch (e.g. LPC17xx) some flag registers signal the transitions (...
Wednesday, 4 April 2012 - 14:40
AVR studio, GNU gcc, et. al.
Hi all, I'm developing on an Xmega with a rather working environment on linux. My code makes use of C++, so I had to tweak the toolchain to match this. In particular i had to fix...
Tuesday, 27 March 2012 - 13:31
Xmega power states
Hi freaks, reading the sheet for an Xmega (doc8134.pdf), I see plenty of sleep states. I'd like to know that is the least power consuming, provided I can restore the state to...
Friday, 25 November 2011 - 11:06
Absolute time reference through timers interrupts
Hi folks, I'm messing with timers on different hw (and on an xmega256 among them). I'm looking for a general solution to precise/perfect absolute time management through a single...
Monday, 25 July 2011 - 13:49
xmega uart plus ftdi
Hi, I'm trying to interface my xmega256a3 uart with serial to usb converter FTDI FT232RL. My code is entirely taken from avr1307 tech note. The xmega runs with the internal clock...
Wednesday, 10 November 2010 - 16:54
Know code size and data size
Hi forum, I'm trying to figure out the real size of a binary when loaded in the avr. once I've linked I obtain my application foo.elf. from that I perform the following operations...
Friday, 8 October 2010 - 13:07
user button interrupt twice
I'm working on an xmega256a3, using Port F6 (pin 54) pin as input interrupt. the pin can be short-circuited to ground by pressing a user button. The interrupt is configured with...
Wednesday, 29 September 2010 - 14:04
avr-libc/avr-as Registers assignation [LDI with R13]
I'm compiling some code with avr-as; in my code I try this ldi R13, 33 which results in this error Error: register number above 15 required Switching to using a register higher...
Monday, 27 September 2010 - 09:19
how to recall assembly from c code
I have an asm file (foo.asm) with foo: ldi R5, 2 and a header file (asm.h) with extern void cfoo(void) asm("foo"); How to use the function from within a standard C...
Thursday, 23 September 2010 - 14:07
avra 2 avr-as assembler asm assembly code conversion
Hi all, I've been looking around but couldn't find a good way to deal with Atmel ASM code to be linked againts avr-as/avr-gcc compiled sources. In the end I wrote this small bash...
Thursday, 23 September 2010 - 09:49
Losing time with AVR
I know it's an outdated topic, but it's bugging me since I can't find a proper way (except for timers which work fine), to configure a "clock_delay" function that can perform an...
Wednesday, 15 September 2010 - 08:20

Pages