Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. volkswagenb

    How to point to a #defined list of numbers ?

    Thanks guys, I'm actually using the Atmel AVR studio compiler. I read that I must use a special library to retain the table in flash only and to be able to read the values. That's the thing with embedded processors, that you're pretty limited by the hardware. There's only so much "C" can do...
  2. volkswagenb

    How to point to a #defined list of numbers ?

    hmm, well, it doesn't work. it attempts to allocate this space in RAM... The program flunks once the data is more than 2k. Thanks anywayz.. ;)
  3. volkswagenb

    How to point to a #defined list of numbers ?

    Thanks for your answer cpjust, now that makes sense. Although Im' wondering if this data ends up in RAM or FLASH (im'programing a uP with 2k RAM and 32kFLASH). I guess i'll try to make it 3k of data, then ill'know... -Thanks again :)
  4. volkswagenb

    How to point to a #defined list of numbers ?

    Hello, everyone :), one question, I am defining a list of numbers like this: #define stuff (0, 0,255, 0, 0,255,\ 5, 5,255, 5, 5,255) And am declaring this pointer: UINT16 *pattern_pointer; And would like to use these numbers at run time from a function, this is what...
  5. volkswagenb

    Setting memory address directly into pointer? (newby)

    Thanks a lot xwb !, sorry I'm replying so late. I also hadn't figured out that getting a warning for "pointing to different types" wasn't necessarily bad, if that is what you need to do. -Im still trying to fully understand pointers. -thanks again :)
  6. volkswagenb

    Setting memory address directly into pointer? (newby)

    Hello everyone, am new to this forum, and i've been programming with C for a couple of years on and off now. I'm basically trying to read a byte from a specific memory address, by using: UINT8 value; UINT8 *apointer; apointer=0x1080; value = *apointer -But I get a 'type mismatch' error...

Part and Inventory Search

Back
Top