Type in the full discussion title or a part of it.
Discussion Title Created date
Initializing a union
Hello boys & girls I want to initialize a union that I use for holding a lot of flags. This is the union: union LCD_ConfigFlagsType { unsigned int all; // 16 flags...
Friday, 21 October 2005 - 11:42
Polymorphism with WinAVR?
This thing has been bothering me for some time now... I have a program where I load variables of varying sizes from EEPROM. I use a special function for this. I need to use...
Friday, 14 October 2005 - 16:19
wrong result in signed division
Not really sure if this is a bug or just C behaviour. This code gives the wrong result for a division, unless I use type casting. int temp; uint16_t MOTOR_CURRENT_CAL; ... //...
Wednesday, 28 September 2005 - 16:04
preprocessor length-of-string function
Is there a preprocessor function that returns the length of a string (constant)? I have some code where I define a string using a macro: #define LCDrespondsOK "LCD responds on...
Sunday, 25 September 2005 - 14:43
32-bit var from four 8-bit var's
This should be a very common "problem" with GCC. I want to assign a 32-bit variable a value constructed from four 8-bit variables. This could be done as var32 = var8_1 + var8_2*...
Friday, 16 September 2005 - 14:38
struct's in EEPROM, wtf?
I want to put configuration data in the EEPROM of an ATmega8. I also want to do checksum calculations on the data. I declare a struct and a variable of that type: typedef struct...
Friday, 16 September 2005 - 12:37
multi-channel capture w/ one capture unit?
I'm making a small mega8-based system for controlling stuff through I2C. The input is 3 signals from an RC receiver. Those signals are, as you might know, pulses repeated at...
Monday, 29 August 2005 - 20:18
optimized negative check?
I'm doing a check for negative, like this: if (controlsignal...
Tuesday, 23 August 2005 - 21:53
interrupts disabled in SIGNAL() ?
Are interrupts automatically disabled in SIGNAL() or INTERRUPT() functions? The AVR automatically globally disables interrupts when one occurs, but is this also the case in C?
Monday, 22 August 2005 - 18:51
avrdude error w/ STK500 v.2
I recently purchased an STK500 from Atmel, but it seems like avrdude cannot program it correctly. The output looks like this: avrdude -p atmega8 -P com2 -c stk500 -v -v -U...
Sunday, 21 August 2005 - 17:50
AVR GCC vs commercial compilers
Hi freaks I'm working with a digital servo project, based on a ATmega8. I started programming the mega8 in assembler (AVR studio) but now I realize I might have to switch to C....
Sunday, 21 August 2005 - 16:33