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
  • Hi Reinhard,

    Thanks for the reply.
    We have tired to access Port0 of DS80C400 as any other ports, but unsuccessful.

    Instead we were prompt: "unidentified idenifier".
    It is also the same even if we try to declare Port 0 in the header or in the source code. We do not know the address of Port0 and it is stated in the datasht that Port0 is unaccessible and cannot be changed in the datasheet. Yet it is used for Data D0-D7 in the IC.

    Can anyone help?

    Emily

Reply
  • Hi Reinhard,

    Thanks for the reply.
    We have tired to access Port0 of DS80C400 as any other ports, but unsuccessful.

    Instead we were prompt: "unidentified idenifier".
    It is also the same even if we try to declare Port 0 in the header or in the source code. We do not know the address of Port0 and it is stated in the datasht that Port0 is unaccessible and cannot be changed in the datasheet. Yet it is used for Data D0-D7 in the IC.

    Can anyone help?

    Emily

Children