Search:

Type: Posts; User: pyroknife

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Ahh I don't know those 2 languages. Is there a...

    Ahh I don't know those 2 languages. Is there a disadvantage to using C?
  2. I will be using C to program the...

    I will be using C to program the microcontrollers. What language will "ease the implementation?"
  3. How important is objective oriented programming and Debugging for microcontrollers?

    How important is objective based programming and Debugging for programming microcontrollers?

    There's a chapter in my book called "objective oriented programming" and another called "Debugging...
  4. Replies
    5
    Views
    37,489

    Ok this is probably a stupid question. But, if I...

    Ok this is probably a stupid question. But, if I don't want to compile a part of the program, while can't I just take that part out and keep it in another file?

    Does Debug actually tell you where...
  5. Replies
    5
    Views
    37,489

    What exactly does #ifdef DEBUG do?

    What does DEBUG do?
    My book talks about it, but I really don't understand what the point is in having the program debug.
  6. Replies
    16
    Views
    1,734

    Never mind, I don't think my previous question...

    Never mind, I don't think my previous question can be answered since a variable int can have many different sizes.
  7. Replies
    16
    Views
    1,734

    Oh thank you. What if we defined: int...

    Oh thank you.

    What if we defined:
    int buf[100]

    What would be the size of *buf now?
  8. Replies
    16
    Views
    1,734

    Oh okay, but did you have to define *buf=char?

    Oh okay, but did you have to define *buf=char?
  9. Replies
    16
    Views
    1,734

    Wiat why is sizeof(*buf)=1? Was that something...

    Wiat why is sizeof(*buf)=1? Was that something defined?
  10. Replies
    16
    Views
    1,734

    Can you explain what that means? I still don't...

    Can you explain what that means? I still don't get it. Doesn't that always give 1.
  11. Replies
    16
    Views
    1,734

    How are data and dataEntry defined? struct...

    How are data and dataEntry defined?

    struct dataEntry
    .
    .
    .

    struct dataEntry data?
  12. Replies
    16
    Views
    1,734

    Don't understand this 'sizeof' expression.

    This is copied from my C book: "Finally,
    if data is defined as an array of struct dataEntry elements, the expression
    sizeof (data) / sizeof (struct dataEntry)
    gives the number of elements...
  13. A PIC is a req for the project I'm doing. Can you...

    A PIC is a req for the project I'm doing. Can you program a PIC microcontroller with C?
  14. I will be using an arduino microcontroller. They...

    I will be using an arduino microcontroller. They have their own language, but they said I can use C.
    It's for a mechatronics class I am taking next semester and we'll be doing a project. However, I...
  15. How much of C do you have to know before programming microcontrollers?

    I'm learning C on my own time. I'm going at a pretty fast pace, but I'm highlighting most of the important things or at least, what I think is important so I can refer back to it later. I struggle...
  16. Replies
    14
    Views
    1,164

    Thank you guys. THis explanation really helped. ...

    Thank you guys. THis explanation really helped.
    I forgot in the while argument that #>0, where # is represented in decimal and not binary.
  17. Replies
    14
    Views
    1,164

    0*2^0+1*2^1=2

    0*2^0+1*2^1=2
  18. Replies
    14
    Views
    1,164

    Does this have anything to do with bits=~0? ...

    Does this have anything to do with bits=~0?

    What if you had bits=101. Wouldn't this yield size=1, since the while loops well terminate once it hits the "0" in "101."
  19. Replies
    14
    Views
    1,164

    Yes, I think I understand that, but why does bits...

    Yes, I think I understand that, but why does bits have to be >0?
    A bit can be 0 or 1. So why is it exclusively 1 in this case?
    Is it because before the while loop bits is set equal to ~0?
  20. Replies
    14
    Views
    1,164

    Help with programming with bits

    THe problem statement asks "Given that the expression ~0 produces an integer that contains all 1s, write a functioncalled int_size that returns the number of bits contained in an int on your...
  21. Replies
    15
    Views
    2,279

    Okay thanks. and if an int is defined as...

    Okay thanks.
    and if an int is defined as w1=0525u, what does the 0 in the front and u in the end mean?

    u, I think means unsigned, but I haven't seen what the 0 means.
  22. Replies
    15
    Views
    2,279

    Thanks. What does the "0x" stand for in...

    Thanks. What does the "0x" stand for in "0xFFFFFFFE" again?
    Is it just some notation for hexidecimal?
  23. Replies
    15
    Views
    2,279

    What's going on in this binary operation?

    w1 &= 0xFFFFFFFE;


    The book says it "For
    example, to set the low-order bit of an int called w1 to 0, you can AND w1 with an int
    consisting of all 1s except for a single 0 in the rightmost bit"...
  24. Replies
    9
    Views
    1,040

    I get what it's doing, but I'm having a hard time...

    I get what it's doing, but I'm having a hard time putting it in words.

    As you previously described, you are changing the values of what the pointers point to, but not what the pointers point to....
  25. Replies
    9
    Views
    1,040

    Yes, I see what you guys are talking about. Isn't...

    Yes, I see what you guys are talking about. Isn't that what I said in the above post (quote)? Or am I wrong? I thought what I wrote above is what you guys are saying.
Results 1 to 25 of 40
Page 1 of 2 1 2