Post Created date
Sending strings via UART fails on ATMega2560
Hi all,   thanks a lot for all you hints. I got this sorted out with help from the avr-gcc mailing list. My avr-gcc seems ok. The problem was the "-j .text" option given to...
Thursday, 4 December 2014 - 15:56
Sending strings via UART fails on ATMega2560
joeymorin wrote: I repeat: joeymorin wrote: Post the .lss     Hi Joey,   please excuse my ignorance. But what is that? All I have in my project dir is   -rw-r...
Thursday, 4 December 2014 - 00:57
Sending strings via UART fails on ATMega2560
Hi all,   the following code should build (no ISR needed)!?   #define F_CPU 16000000UL  /* 16 MHz CPU clock */ #include "Global.h" #include <util/delay.h> #...
Wednesday, 3 December 2014 - 20:58
Sending strings via UART fails on ATMega2560
theusch wrote: ??? Functions <util/delay.h>: Convenience functions for busy-wait delay loops Functions void _delay_ms (double __ms)   That's _delay_ms(). ...
Wednesday, 3 December 2014 - 00:30
Sending strings via UART fails on ATMega2560
Additional info! My Makefile looks like so:   # AVR-GCC Makefile PROJECT=toggle_led SOURCES=main.c Serial.c HEADERS=Serial.h CC=avr-gcc OBJCOPY=avr-objcopy MMCU=atmega2560...
Tuesday, 2 December 2014 - 21:57
Sending strings via UART fails on ATMega2560
Hi theusch,   thanks for your response. Tool chain is    avr-gcc -v Using built-in specs. COLLECT_GCC=avr-gcc COLLECT_LTO_WRAPPER=/usr/local/avr/libexec/gcc/avr/4.5...
Tuesday, 2 December 2014 - 21:52
PORT C as digital inputs
Hi Stefan and all, Thanks for your helpful comments! sternst wrote:And for reading the input use PINC (not PORTC). That was the problem! It's working now! Thanks a lot, Andreas
Monday, 26 July 2010 - 08:34
Fast PWM and UART interrupts
bobgardner wrote:Try this: set port pin to output and set it low BEFORE initing the pwm. Then later, when disabling the pwm, the 'pwm override' of that output will be removed,...
Tuesday, 2 March 2010 - 21:35
Fast PWM and UART interrupts
Hi all, one final question regardingthis timer issue. One of the serial command has the purpose of stopping the PWM on PB1 (OC1A). I do this as follows: // stop timer 1 fast...
Tuesday, 2 March 2010 - 21:12
Fast PWM and UART interrupts
theusch wrote: Compare to: TCNT1 = 0; ICR1 = 1234; OCR1A = 9876; OCR1B = 5432; TIFR = (1 << OCIE1A); TIMSK = (1 << OCIE1A); // or |= TCCR1A = (1 << WGM10) | (...
Tuesday, 2 March 2010 - 20:53
Fast PWM and UART interrupts
theusch wrote:Let's see the ISR for the timer. Oh, sorry! It's already a bit late here. My idea was that no ISR was necessray in "Fast PWM" mode. May be I am mistaken on that. My...
Tuesday, 2 March 2010 - 19:44
Fast PWM and UART interrupts
theusch wrote:Let's see the ISR for the timer. Which AVR model are you using? Set the prescaler (which starts the timer) last in the setup sequence, or set all bits at once. You...
Tuesday, 2 March 2010 - 19:35

Pages