|
Please find answers to your questions in line:
Is it not possible to map an endpoint to any of the other pins such as PA, PC, D0, PE ?
• We don't map an endpoint to any of the port pins. We just mention the endpoint details in the descriptor file. If host PC sends some data to endpoint then that data will be written to the endpoint buffer over USB D+ and D- lines. You don't need to map any port pins to endpoint.
If not with an endpoint, how does one utilize PA, PC, D0, A0, PE ?
I am explaining you the usage of these port pins by assuming that you need to interface an external device (let say FPGA) to FX2LP. Then you can interface FPGA to Slave FIFO interface of FX2LP.
• In Slave FIFO mode, Port A has a mix of fixed function pins for the Slave FIFO interface and alternate functions.
• In Slave FIFO mode, Port B is defined as the lower 8 bits of the FIFO data bus FD[7:0] and Port D is defined as the upper 8 bits of the FIFO data bus FD[15:8] if bus is set to be WORDWIDE.
• In Slave FIFO mode, Port C can be used as general purpose IO.
• Port E definition is determined mainly by the PORTECFG register.
• A0 and D0 are needed if you are going to add an external SRAM to FX2LP. (This is required only if the image (hex) file size is more than 16KB).
Other documentation (example: AN58069) shows using PB[7:0] rather than the documented alternate name FD[7:0].
Is there no difference between PB,PD and FD[15:0] pins?
• No difference. They are data lines in both Slave FIFO and GPIF mode. You can use them as GPIOs if you are not interfacing anything to FX2LP.
Thanks,
Sai Krishna.
|