Adafruit FT232H Breakout - General Purpose USB to GPIO+SPI+I2C

£9.9
FREE Shipping

Adafruit FT232H Breakout - General Purpose USB to GPIO+SPI+I2C

Adafruit FT232H Breakout - General Purpose USB to GPIO+SPI+I2C

RRP: £99
Price: £9.9
£9.9 FREE Shipping

In stock

We accept the following payment methods

Description

Inside device manager look under the Ports (COM & LPT) node and you should see a USB Serial Port (COMx) device, where x is a number like 5. This COMx is the COM port assigned to the FT232H serial UART, and what you should use when connecting to the serial port in the Arduino IDE or with a serial terminal program. To communicate with our target chip, we need a program on the hostand hardware as a bridge between the host and the chip. In this tutorial, we will use OpenOCD as the program on the host to send commands and communicate using SWD. We'll use an FT2232H as the bridge to translate signals from the USB port to the SWD interface. Also, I advise anyone searching for debugging tools to choose wisely. For example, if you need a simple tool, I think OpenOCDmight not be the best choice for you! What can the FT232H chip do? This chip from FTDIis similar to their USB to serial converter chips but addsa 'multi-protocol synchronous serial engine' which allows it to speak many common protocols like SPI, I2C, serial UART, JTAG, and more! There's even a handful of digital GPIO pins that you can read and write to do things like flash LEDs, read switches or buttons, andmore. The FT232H breakout is like adding a little swiss army knife forserial protocols to your computer! First, make a special configuration file to our adapter. Create a new txt file (ANYNAME.cfg). Remember to edit the VID/PID and serial to match your chip: #This configuration file is created for a tutorial:

FTDI’s royalty-free Virtual Com Port (VCP) and Direct (D2XX) drivers eliminate the requirement for USB driver development in most cases. Then remove your default FTDI driver. You can use a tool from FTDI called CDM Uninstaller x.x - Windows Device Driver Uninstaller: Just enter your VID and PID.Note: Some time ago, the OpenOCD development team decided not to provide any official binaries anymore. They only offer the source code, expecting the vendor of the JTAG hardware to build the binaries. Ensure the binary you use supports your JTAG hardware. First, we need to tell OpenOCD the type of adapter that it will work withby using an interface command. Operation configuration mode and USB Description strings configurable in external EEPROM over the USB interface. Upgrading a passive DB9 RS232 Interface to an active USB Interface using an FTDI DB9-USB-RS232 Module

D1 - RX or receive pin. This pin is the serial data input for the FT232H chip and should be connected to the TX or transmist pin of a serial device. Once the installation is done you might need to reboot your machine if the installation program tells you to do so. The OpenOCD directory file has a folder called “scripts”. In this folder, you will see "interface", "board", and "target" folders. And these are pretty much the only folders you need. Or you can build it from source code, the hard way! This is the route I chose to go, personally. You can find useful guides on how to do this,like the one from Dangerous Prototypes (for Windows), or eLinux(for Linux). You can also read compilation instructions from OpenOCD source code ( README.Windowsand README). Asynchronous serial UART interface option with full hardware handshaking and modem interface signals.

Source code

The adapter can support more than one transport protocol, so OpenOCD allows you to select the transport protocol:

If you have any problems, take a look at the troubleshooting section— it could be bad wiring or a driver problem for Windows users. openocd -f config1.cfg -f config2.cfg -f config3.cfg Understanding the Basics of Adapter Configuration This command accepts bin (binary), ihex (Intel hex), elf (ELF file), s19 (Motorola s19), mem, or builder formats. USB High Speed Power Delivery Series are now available here. With added Power Delivery(PD) functionality to the existing High Speed Series.Supports a half duplex FT1248 interface with a configurable width, bi-directional data bus (1, 2, 4 or 8 bits wide). libftdi is a nice open source alternative to FTDI's binary drivers. You can find more details here about interacting with the FT232H at a low level using libftdi. To make OpenOCD run, you just need a correct configuration file (.cfg) supplied to OpenOCD. This configuration file has commands which are extensions to Jim-Tcl. Jim-Tcl is a programming language that provides a simple and extensible command interpreter.

FT2232H is dual high-speed USB to multipurpose UART/FIFO IC. This means it is a single-chip USB with dual ports. In addition to being free and open source, OpenOCD also has a good support community. BUT, as with any other open-source tool, you could face bugs you may need to fix by yourself. You should also tell OpenOCD the initial values of the FTDI GPIO data and direction registers through the ftdi_layout_init command. You should first put the initial values of the channel’s 16 pins, and then the directions. Knowing that "1" is for selecting direction as output and "0" isfor input, and each channel in ft2232H has 16 pins.In conclusion, if you don’t have much budget, time, or patience, OpenOCD with FT2232H will be a great choice for you. Requirements Board: Configuration files for common development boards like “atmel_sam4s_xplained_pro.cfg” - “olimex_stm32_h107.cfg” - “stm32f4discovery.cfg” .. etc. You can see that these files reuse configuration files from interface and target. In our tutorial, we will use an adapter with FT2232H chip, so we will use an FTDI interface driver: Wouldn't it be cool to drive a tinyOLED display, read a color sensor, or even just flash some LEDs directly from your computer? Sure you can program an Arduinoor Trinketto talk to these devices and your computer, but why can't your computer just talk to those devices and sensors itself? Well, now your computer can talk to devices using the Adafruit FT232H breakoutboard! D6 - DCD or data carrier detect pin. This is an optional pin that is sometimes used in RS-232 serial communication.



  • Fruugo ID: 258392218-563234582
  • EAN: 764486781913
  • Sold by: Fruugo

Delivery & Returns

Fruugo

Address: UK
All products: Visit Fruugo Shop