Author Topic: MachXO2 FTDI USB cable only for programming?  (Read 5399 times)

0 Members and 1 Guest are viewing this topic.

Offline David KennyTopic starter

  • Newbie
  • Posts: 3
MachXO2 FTDI USB cable only for programming?
« on: September 03, 2014, 03:40:48 am »
Hello all, first time poster on EEVBlog here. 

I just purchased the MachXO2 breakout board after viewing Mike's video on driving LED matrix displays.  I've only had it a few days and am having much fun playing with it so far.

All the documentation I have read about it only talks about using the USB cable for programming.  I am thinking, with some modifications, it should be able to be switched between programming and uart communications with a project running on the FPGA.  I know I can get another FTDI USB to serial cable to use with a soft uart in the FPGA, but I would rather use the one on the breakout board.

Does anyone have any thoughts on this?  I'm new here, but I'm not looking for someone to do this for me.  Just looking for advice.

@Mike:  Your video also touched on uart communications.  How was yours setup?

David
 

Offline chickenHeadKnob

  • Super Contributor
  • ***
  • Posts: 1055
  • Country: ca
 

Offline jeremy

  • Super Contributor
  • ***
  • Posts: 1079
  • Country: au
Re: MachXO2 FTDI USB cable only for programming?
« Reply #2 on: September 04, 2014, 04:33:17 am »
Not sure why everyone is recommending soldering wires? Channel B is already connected to the MachXO2 as a uart->usb converter according to the datasheet: http://www.latticesemi.com/~/media/Documents/UserManuals/MQ/MachXO2BreakoutBoardEvaluationKitUsersGuide.pdf
 

Offline Torrentula

  • Regular Contributor
  • *
  • Posts: 91
  • Country: de
    • My blog
Re: MachXO2 FTDI USB cable only for programming?
« Reply #3 on: September 04, 2014, 08:14:35 am »
Jeremy I think the links posted are referring to the Lattice MachXO series breakout board for the MachXO 2280 CPLD.
I do own that board and can confirm that the FT2232 is not connected to the CPLD as a USB UART converter.

Which board do you use? The MachXO2 breakout might have the FT2232 connected to the FPGA other than just for JTAG.
 

Offline abyrvalg

  • Frequent Contributor
  • **
  • Posts: 824
  • Country: es
Re: MachXO2 FTDI USB cable only for programming?
« Reply #4 on: September 04, 2014, 08:59:43 am »
A side note: you don't need to stick to UART mode with it's async sampling, FTDI works as SPI master also - more FPGA-friendly.
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13742
  • Country: gb
    • Mike's Electric Stuff
Re: MachXO2 FTDI USB cable only for programming?
« Reply #5 on: September 04, 2014, 09:22:35 am »
The second port on the 2232 is available - from memory I think you need to fit some resistors to connect it. It's annoying they didn't put the basic UART signals on a pin header.
 
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline David KennyTopic starter

  • Newbie
  • Posts: 3
Re: MachXO2 FTDI USB cable only for programming?
« Reply #6 on: September 04, 2014, 09:39:20 am »
Torrentula, the links posted by chickenHeadKnob are indeed for older boards. Same situation though.

Jeremy, the User Guide you posted was the correct one for my board (has the 7000HE chip as it shows in the picture).  It mentions the USB Mini-B socket that connects to the FT2232H.  The FT2232H is connected to the FPGA using the JTAG interface. No mention of Channel B.

The attached picture is from the guide Jeremy linked to in his post.  It shows an 8 pin chip on the left side of the FT2232H, between it an the 7000HE.  You can see the traces going to pins 61-63 on the FT2232H.  That is the EEPROM configuration chip for the FT2232H.  I was going to say that I believe you would need to reprogram it to enable and configure Channel B on the FT2232H.  But Mike posted that channel B is available while I was composing this post.

Mike, I like that news! Can I assume you are talking about using resistors to lower the 5V the FT2232H is using (supplied by the USB cable) to 3.3V for the FPGA?
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13742
  • Country: gb
    • Mike's Electric Stuff
Re: MachXO2 FTDI USB cable only for programming?
« Reply #7 on: September 04, 2014, 09:49:58 am »
R14-20 on the underside, also shown on the schematic.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline jeremy

  • Super Contributor
  • ***
  • Posts: 1079
  • Country: au
Re: MachXO2 FTDI USB cable only for programming?
« Reply #8 on: September 04, 2014, 09:54:02 am »
Hi David,

Ignore the datasheet fluff and go to the schematic at the end of the document. It is on there. I will continuity check my board when I get home as well.

edit: yes, as long as you fit the resistors (ie wires for me) then it works fine.
« Last Edit: September 04, 2014, 10:24:06 am by jeremy »
 

Offline David KennyTopic starter

  • Newbie
  • Posts: 3
Re: MachXO2 FTDI USB cable only for programming?
« Reply #9 on: September 04, 2014, 10:23:13 am »
Thanks Mike and Jeremy,  I see it now.  Although it was searchable, my search terms didn't find it. Sigh...

Looks like the traces and smd pads are all there, just need to add the smd zero-Ohm resistors (jumpers).  Sweet!
« Last Edit: September 04, 2014, 10:42:10 am by David Kenny »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf