The Data,idata,xdata,pdata difference of 51

Source: Internet
Author: User
 DATA: fixed refers to the front 0x00-0x7f 128 RAM, can use the ACC direct read and write, the fastest, the generated code is also minimal. idata: fixed refers to the previous 0X00-0XFF 256 RAM, where the top 128 and data 128 exactly the same, only because the way the access is different. The idata is accessed using a pointer similar to C. The statements in the assembly are: MOX ACC, @Rx.

XDATA: external expansion ram, generally refers to the external 0x0000-0xffff space, with dptr access.

PDATA: External expansion Ram low 256 bytes, address appears in A0-a7 read and write, with Movx ACC, @Rx Read and write. This is very special, and C51 as if there is a bug, it is recommended to use less. But also has his merit, the concrete usage belongs to the intermediate question.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.