thank you i fully understand now
Type: Posts; User: username101
thank you i fully understand now
and
"at position 0xE3" is acceptable C code?
so for example
char table[256] = { ... (at position 0xE4) 0x37, (at position 0xE3) 0x36 ... };
and just do that for all 256 positions?
thank you very much for all of your help
How can i create a lookup table in c without using files.
for example, if the char value is 0xE4 change it to 0x37. but there are 256 original differnt values.
can you help me please.
so how could i round it, so that 3.5 goes to 4 and 3.49 goes to 3?
that seems to of worked. thank you.
Just one more thing. how dose the float round to the char? ie up or down or what?
hello Todd Burch,
what do you meen by ???
this is what i've got, an ADC that dose this
conversionH = ADC0L; // read ADC0H data
x = (char) (64*(pow(2,(conversionH/256))-1));
...
I shal try that now. thanks
also how would i go about converting the float (result) into a char, unless the is another way to do log base 2 in C?
I am trying to perform 2 math equations in C and send the result as a char
x = 64*(pow(2,(conversionH/256))-1); // this is 64*(2^(conversionh/256)-1)
ConversionH is a char
...