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

Indexing large arrays

I want to have an array that is larger an 65535 bytes. I need to be able to address this array a byte at a time.

Can I simply use a index that is defined as a long? Do I have to break the array up into two parts - the first 64K and "the rest"? What is the best way to do this?

Thanks in advance.

Parents
  • I guess that answers my question. I would have to use one of the 8031 ports to manufacture an A16 signal whenever I wanted to reach a memory location between 64K and 128K.

    Then I would write a set of read/write routines that would decode an address value (defined as a long) into the port driven A16 and the uC generated A0 to A15.

    Does the 8051 support more address lines than the 8031?

Reply
  • I guess that answers my question. I would have to use one of the 8031 ports to manufacture an A16 signal whenever I wanted to reach a memory location between 64K and 128K.

    Then I would write a set of read/write routines that would decode an address value (defined as a long) into the port driven A16 and the uC generated A0 to A15.

    Does the 8051 support more address lines than the 8031?

Children