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

AT89C52 controlling 8051 compatible chip

Friends:
I am using AT89C52 to control a chip utilizing 8051 interface (Bus compatible with 8051). Now the problem is how to set CS pin of that chip.
My idea is using: 1) P2.0 NAND ALE of AT89C52. 2) P2.0 NAND with fixed 1 to set CS.
Do you think which one is right?
Thanks.

Parents
  • Why not simply use an address line e.g. A15 as the chip select? and dependent upon wether it is /CS (active low - most likely) or CS (active high) to enable the device reset/set A15 to a 0/1 (by setting DPTR to an appropriate value) so that a 'MOVX DPTR' will select the device. I assume it also has /RD and /WR that will also need to be wired up to allow you to read/write to the device?.

    Mark.

Reply
  • Why not simply use an address line e.g. A15 as the chip select? and dependent upon wether it is /CS (active low - most likely) or CS (active high) to enable the device reset/set A15 to a 0/1 (by setting DPTR to an appropriate value) so that a 'MOVX DPTR' will select the device. I assume it also has /RD and /WR that will also need to be wired up to allow you to read/write to the device?.

    Mark.

Children