• C51: a lot of values assignment
    Hi, In my C code, I need to assign a lot of values. Like this: a1,a2,... are variables as char. v1,v2...,w1,w2...y1,y2 are constant (like 0x00, 0x01, ...etc) if (i==0){ a1 = v1; a2 = v2;...
  • assign value to flash memory
    Hi Guys How am i able to assign values to a variable i have stored in flash so that it is included in the hex file? For example: i have declared a variable volatile unsigned char code err_msgs...
  • PDATA and XDATA
    If I use PDATA for my Stack. will any of my XDATA overlap? or is Keil smart enough to prevent that? Does it mean the RAM(XDATA) I have is 2048 - 256 for pdata? MCU: AT89C51CC03 Memory Model: Compact...
  • array with pdata
    hello, i'm using AT80C31X2 uC. Keil V3.33 i've declared an array as follows: unsigned char pdata array_1[8][16]; i got an error code "error C241: 'main': auto segment too large" I've tried...
  • pdata usage
    Hi, I have used the Large data model. On compiling, Keil shows me the data and xdata usage - but not the pdata usage. My hardware has 512 bytes of pdata. Even if I move some data using the...