Search:

Type: Posts; User: suzanne_lim

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    54,485

    I see I see...thanks guy

    I see I see...thanks guy
  2. Replies
    4
    Views
    1,017

    may be this? a = (a>>i)|(masca[8-i]);

    may be this?

    a = (a>>i)|(masca[8-i]);
  3. Replies
    14
    Views
    54,485

    clearing array

    hi all

    i have a question. if i have and array and have already initialize it as follow


    unsigned char data[5] = {0};

    how do i clear it after i have used it?

    lets say
  4. Replies
    8
    Views
    1,377

    Thanks Dave. By the way, can you tell me when...

    Thanks Dave.

    By the way, can you tell me when to use & and when to use &&. I'm a bit confuse. Let say if i want to check for whether a pin is high do i




    if (PORT && PINMASK)
  5. Replies
    8
    Views
    1,377

    I dun understand how this can be done? can you...

    I dun understand how this can be done? can you show me? Thanks
  6. Replies
    8
    Views
    1,377

    typedef unsigned char byte; #define PTA ...

    typedef unsigned char byte;


    #define PTA _PTA.Byte
    #define PTA_PTA0 _PTA.Bits.PTA0
    #define PTA_PTA1 _PTA.Bits.PTA1...
  7. Replies
    8
    Views
    1,377

    Embedded programming

    hi guys....

    I am writing a program. In this program, i have a function which is universal. I am using the GPIO to do serial data sending to several devices connected to my MCU using several pins...
  8. Replies
    5
    Views
    1,295

    It should be PortDataRegister.this should be data...

    It should be PortDataRegister.this should be data latch on the port.
  9. Replies
    5
    Views
    1,295

    Masking(or ...)

    hi all,


    I am currently doing some embedded programming on microcontroller. What i don't understand is how do i test a pin in a particular port if it is high or low in C?
    lets say i want to see...
  10. Replies
    22
    Views
    11,054

    wow....thanks guys/gals for your time and your...

    wow....thanks guys/gals for your time and your infos....btw i am using cypress CY8C27443 microprocessor. i think i'll start off with the bit thing. I keep all update. thanks
  11. Replies
    22
    Views
    11,054

    Unfortunately.....I am the "THEM"..... :p I...

    Unfortunately.....I am the "THEM"..... :p

    I see....i'll take a look at all the comment u guys gave....Do please give more suggestion if u have.....Thanks :D
  12. Replies
    22
    Views
    11,054

    Well...i'm kinda fresh in C programming... So i'm...

    Well...i'm kinda fresh in C programming... So i'm weak in handling the ROMs and RAMs.....Can i know what goes into the RAM and what goes into the ROM...
  13. Replies
    22
    Views
    11,054

    I am not sure whether #define goes into RAM or...

    I am not sure whether #define goes into RAM or ROM coz i have plenty of defines. Maybe i can trim this off a bit?
  14. Replies
    22
    Views
    11,054

    Ways to save RAM when RAM is very limited

    Hi,


    Can anyone be kind enough to tell me how to saved usage of RAM when RAM is very limited? I am writing codes to a microcontroller and the RAM is extremely limited. I have almost used up the...
  15. Replies
    4
    Views
    1,540

    I see, i see....well that should clear all the...

    I see, i see....well that should clear all the clouds...Thanks guys (or gals)...
  16. Replies
    4
    Views
    1,540

    Never encounter such coding

    Hi all,

    i have never encounter a code that is written this way. From my experience, isn't a code is suppose to end when ; is encounter? So why is the following code has a \ after ; . can someone...
  17. Thread: function

    by suzanne_lim
    Replies
    3
    Views
    945

    Thanks guy...U saved me

    Thanks guy...U saved me
  18. Thread: function

    by suzanne_lim
    Replies
    3
    Views
    945

    function

    Hi,

    i am just not sure whether the below way is valid and usable

    I have the following 2 functions :



    int func1()
    {
  19. Replies
    6
    Views
    1,240

    ooo....ic ic....Now i understand.Thanks everyone.

    ooo....ic ic....Now i understand.Thanks everyone.
  20. Replies
    6
    Views
    1,240

    hi quzah for (i = 0;i

    hi quzah



    for (i = 0;i<8;i++)
    PacketSend[i] ;
    //do other things with the data as a normal array


    this part is not important. What i try to ask is whether
  21. Replies
    6
    Views
    1,240

    Struct and array

    Hi all,

    i have a tyedef struct as following.




    typedef union __Checksum
    {
    unsigned short sh;
Results 1 to 21 of 21