|
![]() Development Tools
![]() how to create 4K byte array without xdata?
|
| next newest topic | next oldest topic |
| Author | Topic: how to create 4K byte array without xdata? |
|
yatink New Member |
hii I'm using C8051F005. In my project I have and array of 4096 bytes. When I tried to declare it in program it gave me an error that data too large. When I tried to declare it in code memory, it doesn't gave me any error. But when I tried to edit the elements of that array, they won't get edited. At the end all elements in array remains 00H. I want to know how to create array of this huge size? Thanks in advance. IP: Logged |
|
Scotty Member |
Hi yatink, I'm using C8051F005. In my project I have and array of 4096 bytes. When I tried to declare it in code memory, it doesn't gave me any error. But when I tried to edit the elements of that array, they won't get edited. Regards, Scotty IP: Logged |
|
worknhard9062 Member |
As you all know external in chip ram is 800 bytes only so I can't use xdata in my application. Hm, if my datasheet is correct the F005 has 2kB of on-chip XRAM. Scotty, I just hope yatink understands this too! ------------------ IP: Logged |
|
erikm Member |
So I suggest you use a external RAM. Usage is described in chapter 12 of datasheet. I'd suggest, instead, to use a chip with enough internal XRAM (you can find up to 8k). Erik IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?