This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I'm interested in using an FPGA as an external processor for an application I'm working on. The system is composed of a TMS320F28335 and a Spartan-3A FPGA, connected by a 16-bit data bus (XINTF) and an 8-bit address bus (also XINTF).
Ideally, I would like to be able to use this bus to easily send and receive data sampled from an ADC to and from the FPGA, triggered by an interrupt. All of the example programs I have seen, such as 'Example+2833xCodeRunFromXintf' in C2000Ware don't contain any simple way to directly write or read a word on the 16-bit XINTF data bus. I wish I could provide some example code, but I don't quite understand where to start with this.
Thanks,
Thomas
Tommy,
I'm trying it out right now, and am having trouble getting things to work. To write to an address in XINTF memory space, say, Zone 6, should the following code snippet result in a write being performed?
Uint16* zone6ptr = 0x00100000; // address in zone 6 as defined in spru949d.pdf /* Standard Xintf initialization code goes here */ *zone6ptr = 0xF0F0; // arbitrary test data
Thomas,
That approach should work assuming that the XINTF and GPIO MUX are properly configured.
Do you see pin activity if you put the write instruction in a loop?
-Tommy
Thomas,
You have the correct address.
The FPGA may not be seeing the XINTF activity if the settings are incorrect. For the initial debug, it would be best to probe the data pins with an oscilloscope. You should be able to see the correct logic levels on the pins.
If the logic levels are not showing up on the pins, then you should double-check the GPIO mux settings to make sure that XINTF has control over the pins and make sure that XINTF is enabled.
-Tommy