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 Reply Children
No data