I see I see...thanks guy
Type: Posts; User: suzanne_lim
I see I see...thanks guy
may be this?
a = (a>>i)|(masca[8-i]);
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
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)
I dun understand how this can be done? can you show me? Thanks
typedef unsigned char byte;
#define PTA _PTA.Byte
#define PTA_PTA0 _PTA.Bits.PTA0
#define PTA_PTA1 _PTA.Bits.PTA1...
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...
It should be PortDataRegister.this should be data latch on the port.
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...
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
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
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...
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?
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...
I see, i see....well that should clear all the clouds...Thanks guys (or gals)...
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...
Thanks guy...U saved me
Hi,
i am just not sure whether the below way is valid and usable
I have the following 2 functions :
int func1()
{
ooo....ic ic....Now i understand.Thanks everyone.
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
Hi all,
i have a tyedef struct as following.
typedef union __Checksum
{
unsigned short sh;