Search:

Type: Posts; User: username101

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    13,348

    thank you i fully understand now

    thank you i fully understand now
  2. Replies
    7
    Views
    13,348

    and "at position 0xE3" is acceptable C code?

    and

    "at position 0xE3" is acceptable C code?
  3. Replies
    7
    Views
    13,348

    so for example char table[256] = { ... (at...

    so for example



    char table[256] = { ... (at position 0xE4) 0x37, (at position 0xE3) 0x36 ... };

    and just do that for all 256 positions?
  4. Thread: Maths in C

    by username101
    Replies
    16
    Views
    3,909

    thank you very much for all of your help

    thank you very much for all of your help
  5. Replies
    7
    Views
    13,348

    Making a lookup table?

    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.
  6. Thread: Maths in C

    by username101
    Replies
    16
    Views
    3,909

    so how could i round it, so that 3.5 goes to 4...

    so how could i round it, so that 3.5 goes to 4 and 3.49 goes to 3?
  7. Thread: Maths in C

    by username101
    Replies
    16
    Views
    3,909

    that seems to of worked. thank you. Just one...

    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?
  8. Thread: Maths in C

    by username101
    Replies
    16
    Views
    3,909

    hello Todd Burch, what do you meen by ???

    hello Todd Burch,

    what do you meen by ???
  9. Thread: Maths in C

    by username101
    Replies
    16
    Views
    3,909

    this is what i've got, an ADC that dose this ...

    this is what i've got, an ADC that dose this


    conversionH = ADC0L; // read ADC0H data

    x = (char) (64*(pow(2,(conversionH/256))-1));

    ...
  10. Thread: Maths in C

    by username101
    Replies
    16
    Views
    3,909

    I shal try that now. thanks also how would i...

    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?
  11. Thread: Maths in C

    by username101
    Replies
    16
    Views
    3,909

    Maths 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
    ...
Results 1 to 11 of 11