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

How to use Port 0 (DS80C400)

We are using PORT0 of DS80C400 as DATA0-DATA7 singals.
We want to write data using PORT0 to external DAC. We are using Peripheral Chip enable 3
(PCE3 in Port5.7 -> Address: 0x0E00000)

Questions:
1)How to write data to Port0?

2)Sample: (Since don't know how to use Port0)

char xdata *ADDR; // ADDR is used as PORT0
ADDR = 0x0E00000; // address of PCE3
*ADDR = 0xAA; // data to send

We expect Port5.7 (address: 0x0E00000) to be set low (activate low) after the above is 3 command is run. But the Port5.7 did not do anything.

Parents
  • Re-reading all your posts, it becomes increasingly clear that you have a terminology problem there. Contrary to what you write, you're not actually trying to use Port0 as a port. You're planning on memory-mapping that DAC chip. That means you're just using perfectly ordinary memory accesses to external XDATA memory.

    You seriously need to re-read all the relevant data sheets, and a generic 8051 manual, making sure you actually understand all the terms used in those documents before you proceed. You may even have to re-think the choice of the DS80C400 as your microcontroller.

Reply
  • Re-reading all your posts, it becomes increasingly clear that you have a terminology problem there. Contrary to what you write, you're not actually trying to use Port0 as a port. You're planning on memory-mapping that DAC chip. That means you're just using perfectly ordinary memory accesses to external XDATA memory.

    You seriously need to re-read all the relevant data sheets, and a generic 8051 manual, making sure you actually understand all the terms used in those documents before you proceed. You may even have to re-think the choice of the DS80C400 as your microcontroller.

Children