89c51 problem

Status
Not open for further replies.

esconele

New Member
hello,
i'm using 89c51 to interface with at88sc1608 for smart card reader
and i'm new to C language i want to define stack pointer for 32 location
and some variables like array of 8 bytes like in assembly
atrbuf equ 68h
atrptr equ 70h
trcbuf equ 78h
recptr equ 7fh
these are the indirectely assesible location how i can declare these in C and
push acc
push psw
push b

and
mov r0,#68h
here:
clr a
mov @r0,a
inc r0
mov a,r0
cjne a,#c6h,here
hoe i can convert this into C
 
Sample Code For At88sc1608

Hello,
Any One Having Samle Program For At88sc1608 In C Pls Send Me The Link Or Any One Having Idea Aboute It Pls. Reply.
Thank You.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…