thanks for reply!!!
Brother i googled and found **broken link removed** nice data but
-first problem here is it is for 68HC705J1A microcontroller but i need in 8051/8052
-secondly i used only c language for programming but the code all around i found in assembly language!!! i dont know their equalent for example
-----------------------------------------------------
Recdata ror byte
jsr highlow ;Wait for high to low Transition
brset data,PORTA,Recset
bclr 7,byte
jmp Recnext
Recset bset 7,byte
inc PAR
Recnext decx
bne Recdata ;Loop until 8 bits been received
------------------------------------------------------
wht will be equlent of ror, jsr, brset, decx commands of assembly in c
please dont forget to reply