This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem with XDATA

Hi!

XDATA is not working properly in P89v664 microcontroller.It is compiling well but in target board not showing result.
but same program (using XDATA)working for p89v51rd .

Here we are using Flash magic version 4.24

Please suggest me to solve this problem.

with regards,
mani

Parents
  • example code:

    #include<p89v66x.h>
    #include<sbc.h>

    xdata unsigned char *c ="ELECT";

    void main()
    {

    init_lcd(); AUXR = 0x03; while(1) { write(0x80,0); printlcd(c); }
    }

    Actual project code I am not giving here, but for clarifying my doubt am sending example code i.e displaying string of characters to 16x2 LCD display. The above code is working without XDATA .But I need 1.2KB data memory.thats wat I want to use XDATA .Already I used regulary for p89v51rd series.But I didn’t face any problem .Using p89v664 only problem coming.

Reply
  • example code:

    #include<p89v66x.h>
    #include<sbc.h>

    xdata unsigned char *c ="ELECT";

    void main()
    {

    init_lcd(); AUXR = 0x03; while(1) { write(0x80,0); printlcd(c); }
    }

    Actual project code I am not giving here, but for clarifying my doubt am sending example code i.e displaying string of characters to 16x2 LCD display. The above code is working without XDATA .But I need 1.2KB data memory.thats wat I want to use XDATA .Already I used regulary for p89v51rd series.But I didn’t face any problem .Using p89v664 only problem coming.

Children