RE: [avr-gcc-list] Regression tests

2005-11-16 Thread Klaus Rudolph
Hi Mark, Can you simulate devices attached other than an AVR in this simulator? For instance, I would like to simulate being attached to a SPI RTC, some flash memory, and a number of devices attached via pins. If I could somehow write code to simulate those, I would be the happiest person!

Re: [avr-gcc-list] how to infer lsl instruction...

2005-11-16 Thread Royce Pereira
Hi On Wed, 16 Nov 2005 13:00:03 +0530, varsha [EMAIL PROTECTED] wrote: Hello all, i'm using avr-gcc (GCC) 3.4.3 compiler and Atmega 16 as a MCU. for crc calculation i'm using inline assembly code. for example.. __asm__ __volatile__ ( lsl r11\n\t rol r12\n\t rol r13

Re: [avr-gcc-list] how to infer lsl instruction...

2005-11-16 Thread Lars Noschinski
* varsha [EMAIL PROTECTED] [2005-11-16 09:54]: __asm__ __volatile__ ( lsl r11\n\t rol r12\n\t rol r13\n\t rol r15 ); but compiler doesn't generate lsl instruction... it generates something like this.. 1514: bb 0cadd r11, r11 1516:

Re: [avr-gcc-list] how to infer lsl instruction...

2005-11-16 Thread Eric Pasquier
If you take a look to the 8-bits AVR Instruction Set document, you can see that LSL Rd is implemented as ADD Rd,Rd, and ROL Rd as ADC Rd,RD. There are no specific instructions LSL or ROL. Welcome to the RISC world (REDUCED Instruction Set Computers) ! Best regards, Eric. - Original

Re: [avr-gcc-list] AVR assembly for fast bit bang

2005-11-16 Thread Mike S.
Thanks to all for the replies! I learned a lot! I decided to use the SPI module, it works fine! Best Regards Bruno On 11/10/05, David Brown [EMAIL PROTECTED] wrote: I suspect you misunderstand what optomization means, especially when applied to a small microcontroller. Choosing -Os (or -O2,

Re: [avr-gcc-list] how to infer lsl instruction...

2005-11-16 Thread David Brown
Hi On Wed, 16 Nov 2005 13:00:03 +0530, varsha [EMAIL PROTECTED] wrote: Hello all, i'm using avr-gcc (GCC) 3.4.3 compiler and Atmega 16 as a MCU. for crc calculation i'm using inline assembly code. for example.. __asm__ __volatile__ ( lsl r11\n\t rol r12

[avr-gcc-list] Problem with debbuggin with AVRStudio, WinAvr and JtagIce mkII

2005-11-16 Thread antonioromano
Hi, I'm new here. I'm working with ATmega128, Stk500, stk501 and jTagIce mkII. i have installed on my windows XP AvrStudio 4.12 and WinAvr 20050214. WinAvr uses Avr-Gcc 3.4.3 and GDB 6.1. I have a problem with the following code: #include avr/io.h int somma(int a, int b) {

RE: [avr-gcc-list] Problem with debbuggin with AVRStudio, WinAvr and JtagIce mkII

2005-11-16 Thread Dave Hansen
From: [EMAIL PROTECTED] [...] #include avr/io.h int somma(int a, int b) { return a+b; } int main () { int e = 10; int r = 1; r = somma(e,r); r=r+1; return r; } it's a stupid program.

Re: RE: [avr-gcc-list] Problem with debbuggin with AVRStudio, WinAvr and JtagIce mkII

2005-11-16 Thread antonioromano
Problem is most serious. The Push and Pop and Ret operation does not functioning corretly. When i do the Push and Pop operation the stack does unchage. thanks - Visita http://domini.interfree.it, il sito di Interfree dove

[avr-gcc-list] solve problem

2005-11-16 Thread antonioromano
I solve the problem of debbugging on atmega128. I must set off the fuse of compatibility mode atmega103. thanks foor all, Antonio - Visita http://domini.interfree.it, il sito di Interfree dove trovare soluzioni semplici e

[avr-gcc-list] Gamepad

2005-11-16 Thread Sumeet Pal Singh
HI Sorry for putting this mail here, but I thought since this mailing list deals with avr u people will be electronics hobbist and may help me. I am designing a robot for a competition. It is manual and needs a controller, for which I figured to use a gamepad, sony/dreamcast, but thhe problem is

Re: [avr-gcc-list] Gamepad

2005-11-16 Thread Daniel O'Connor
On Thu, 17 Nov 2005 05:45, Sumeet Pal Singh wrote: Sorry for putting this mail here, but I thought since this mailing list deals with avr u people will be electronics hobbist and may help me. I am designing a robot for a competition. It is manual and needs a controller, for which I figured to

Re: [avr-gcc-list] Problem with debbuggin with AVRStudio, WinAvr and JtagIce mkII

2005-11-16 Thread Joerg Wunsch
[EMAIL PROTECTED] wrote: The Push and Pop and Ret operation does not functioning corretly. When i do the Push and Pop operation the stack does unchage. Try reading the FAQ... I bet you forgot to turn off the M103C fuse.