Type in the full discussion title or a part of it.
Discussion Title Created date
ATMEGA Code Protection
I have read through the device documentation and scanned many posts here but I want to bounce my understanding of the protection settings off the forum. First, I'm using an...
Wednesday, 12 August 2009 - 21:18
Power-up Failure
The ATMEGA32M1 that I'm using fails to run at power-up. If I yank on the RESET input, it comes alive. I have searched the forum for like problems and found a few, but the answer...
Friday, 17 July 2009 - 07:54
All strings are not created equal.
Why is it that the two string initializations below do not achieve the same result? unsigned char str[6] main(){ strcpy(str,"hello"); str[0]='h'; str[1]='e'; str[2]='l'; str[3]='l...
Saturday, 30 May 2009 - 00:37
sizeof struct ?
Can the sizeof function be used to determine the size of an array of structures? I would like it to return the number of structs in the array. All attempts have resulted in...
Wednesday, 27 May 2009 - 22:52
Making a structure external?
If I have a structure: struct MYSTRUCT{ U8 A, B[5]; int (*ptr)(float); }; struct MYSTRUCT MYDATA[] = { {1,"hey",&f1}, {2,"there",&f2} }; How can I make the array of...
Monday, 25 May 2009 - 23:05
Generic Function Pointers ??
How can I declare and use a generic function pointer where the function parameters may be of any type and the return is of any type. For example, instead of float (*func_ptr)(char...
Monday, 25 May 2009 - 18:08
Controlling sprintf
Is there some means to use a variable for the floating point width in the following sprintf statement? unsigned char temp[20]; float flt; sprintf(temp,"5.1f",flt); (the percent...
Thursday, 21 May 2009 - 22:40
Storing and executing simple formulas???
I'm envisioning an array of structures and I would like to store in each structure a simple formula. For example, MyStruct[1].formula = A*B MyStruct[2].formula = A-10 MyStruct[3]....
Wednesday, 20 May 2009 - 21:10
SRAM nearing capacity.....help!
My 2K of SRAM is 91% full. Looking though the .map file and focusing on the .data and .bss entries, it seems as though various functions are behind this useage. Here is the .data...
Monday, 18 May 2009 - 20:31
sprintf help
For this sprintf statement: char temp[16]; float VAR; sprintf(temp,"VAR %f",VAR); I'm getting this warning: ../VIC1.c:287: warning: format '%f' expects type 'double', but argument...
Tuesday, 3 March 2009 - 16:46
16-bit Timer - Seems like it will pop to soon.
Consider the 16-bit AVR Timer in CTC mode. In CTC mode it will count to a compare value and then restart. The count is contained in TCNT1L and TCNT1H. There are two compare...
Sunday, 1 March 2009 - 00:07
Floating Point and mixed data type math help
What is the right way to deal with a mix of data types like this? float M; unsigned char K=240, P=3; signed char T=2; M = K/(P * (T+273.15) * 2.0677); Is it necessary to cast...
Saturday, 21 February 2009 - 02:10

Pages