Hello,
I am currently working to get a FT232H cable (http://www.ftdichip.com/Support/Documen … 232H-B.pdf) working as JTAG-interface.
I have it partially working, but I am stuck in the configuration details of the FTDI driver.
ftdi_layout_init
From my understanding the first parameter is 16 bits, telling the initial state of a give pin. I assume that the 16bits are mapped to ADBUS0-ADBUS7 and ACBUS0-ACBUS7. But in which order I have to map them from MSB to LSB: D7…D0 C7…C0, or D0—D7 C0…C7, or C7…C0 D7…D0, or C0—C7 D0…D7 ??
How I configure one of the tri-state PINs to High-Z?
The second parameter is direction, What does ‘1’ mean? Input or Output ?
By further reading the documentation I assume, that also the direction is just an initial setting and can be changed later, if needed. If that assumption is right, I think it would be worth noted in the documentation.
ftdi_layout_signal
Here I understand, that I have the possibility to define, which pins are related to a given signal name. Further I assume, that the masks are the same 16 bit, defined above.
In most cases there will be only one bit set, defining that the named signal drives that pin. As this bit is an assignment, the definition if the asserted signal drives the pin high or low is made, by preceding a “n” in front of the name.
“data” defines output pins, which are driven high, when the signal is asserted.
“__n__data” defines output pins, which are driven low.
Two questions: How I define for 3-stated pins the High-Z ? Is it possible to define as well data and ndata, to have diametrical signals on two different pins for an asserted signal?
oe/noe defines the same for the output.
Another question, where I found no answer up to now is regarding the buffers:
What is meant here with buffers or straight connection? Where is the difference? I understand buffers between the pin and the target as a line driver, which will adapt the voltage level. Do I oversee something here?
Excuse me, if some of my questions are too noobish.
It would be great, if someone can answer some of my questions.
Thanks!