[avr-gcc-list] (Newbie)1.How to write variables which are not loaded to
Sumeet Pal Singh
[avr-gcc-list] (Newbie)1.How to write variables which are not loaded to uC but manipulated by compiler
Thu, 8 Dec 2005 06:19:03 +0530
The background to this is:
For making a line following robot, we need to output a PWM value which
is done by setting TCR1A, the value(char) having linear relationship
We decided to form an array(char), in which the value is equal to the value location.
Now what values are put in each of the array elements we wish to decide
by fixing a few variables which we will not require to change after
So, the Array=127-S\100*255;;Array=Array+1;Array=Array+2
Now I do not wish to put the variable S and these calculations in AVR.
Just the final Array can be downloaded in memory and it will work. How
to specify such variable (as S) while writing declaring the