Problem in interfacing C files withan assembly file in uVision2 IDE
Reny Rymond
I've tried to process the data obtained from the host(PC) (which is obtained using C code)using certain assembler functions to speed up the data transfer.I'm using CY68013A-FX2LP controller.
I did the following :
In C code(globally)
unsigned char d_low;
extern void write(void)
In assembly code
extrn DATA(d_low)
public write
cseg at 2000h
write:
mov dptr,#4000h
mov a,d_low
movx @dptr,a
ret
END
But the data I send couldn't read back correctly...Can anyone pls tell me the solution?
Read-Only
Author Reinhard Keil
Posted 19-Jun-2006 07:00 GMT
Toolset C51
RE: Problem in interfacing C files withan assembly file in uVision2 IDE
Reinhard Keil
Your code looks OK to me. Remains the question: is there memory available at CODE 0x2000 / XDATA 0x4000.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.