plz any one tell me how to work with timer.
i m working with p89v51rd2. in that i m trying to a simple program which showing the numbers on led as counter.
logic of my program is when one cycle is complete of timer than number have to change.
but i m not able to do this.
TMOD=0x20; that is for timer for 2 mode which 16 bit TH1=0xf3; that is for 2400 bugd rate but convert to 9600
any one help me plz.....
Jon was thinking about defining pointer types with #define instead of a real typedef:
#define uchar unsigned char #define ucharp unsigned char* uchar a,b; ucharp ap,bp;
expands to:
unsigned char a,b; unsigned char* ap,bp;
And suddenly bp isn't a pointer anymore.