I am trying to interface the C6416 DSK with ADC0804. ADC0804 is an 8-bit Analog to Digital Converter and I am reading its 8-bits on the lowest 8 data pins(70-63) of the External Memory Interface (J4). I have grounded the DC_DET of External Peripheral Interface(J3) to enable J3. Till now i am facing a lot of problems in interfacing these.
1. First I want to know how can I set the external memory interface in read and write modes. I thought bit 0 and 1 of CPLD's DC_REG can be used to set the external memory interface in read and write modes but it didn't work as i tried setting and clearing these bits but still some garbage value was written in the CE2 of EMIFA after i had filled 0s in it.
2. Secondly I am using pointers to read and write from the CE2 of EMIFA. So, am i required to select CE2 or is it selected by default, so a conflict between CE0 (SDRAM) and CE2 can be avoided (if any).