Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

application for activating MPSSE mode in FT2232D

Status
Not open for further replies.

3DMahdi

Newbie level 1
Joined
Apr 11, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,285
Hi
I want application for activating MPSSE mode in FT2232D to program fpga with USB.
I know that to do this, I have to send below command to D2XX driver but I don't know how:

Code:
FT_HANDLE ftHandle;
FT_STATUS ftStatus;
UCHAR Mask = 0xff;
UCHAR Mode = 0x02; // Set MPSSE mode
ftStatus = FT_Open(0, &ftHandle);
if(ftStatus != FT_OK) 
{ // FT_Open failed return;
}
ftStatus = FT_SetBitMode(ftHandle, Mask, Mode);
if (ftStatus == FT_OK)
{ // 0xff written to device
}
else {
 // FT_SetBitMode FAILED!
}
FT_Close(ftHandle);

I have FTCJTAG.DLL and FD2XX.DLL but don't know how to use them.
can you help me?
thanks in advance.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top