- Introduction
- Prerequisites
- Installation and Setup
- Usage Examples
- Troubleshooting
- FAQs
- Contributions
- License
- Contact
This document provides reference information and usage instructions for the FT.S-GPIO tool intended for the Compulab Tensor line of add-on boards.
Based on the ARM Cortex M0 CPU, the device emulates a USB COM port and enables users to control connected GPIOs.
Before you begin, ensure you have met the following requirements:
- Operating system: Windows 10, Linux, macOS
- Hardware: Compulab Tensor line of add-on boards
Compulab PN FT.S_GPIO - TEL-GPIO
- Implementation of USB-to-GPIO without the need for special drivers or deep system knowledge.
- Enables fast prototyping and a short time to market.
- Works with popular programming languages such as Python.
- Open software and hardware for even more flexibility.
- Built-in bidirectional isolation based on the ADM3260 chip.
- Built-in four isolated GPIOs expandable up to 20 with the FT.V-TERM4 adapter.
- Easily updatable software using the built-in USB bootloader.
The source code and binary are available in the GitHub repository.
Bug reports and feature requests can be opened in the GitHub repository.
Each GPIO can be configured for output or input operation.
- Output - The GPIO can be set to a HIGH or LOW state.
- Input - The user can read whether the GPIO is in a HIGH or LOW state.
Note: GPIOs default to output low (0.7 V, considered low).
| Pin Number Console | Location | Description | MCU_GPIO | MCU_PORT |
|---|---|---|---|---|
| 1 | I/O GPIO | On board GPIO | GPIO_0 | GPIOA |
| 2 | I/O GPIO | On board GPIO | GPIO_1 | GPIOA |
| 3 | I/O GPIO | On board GPIO | GPIO_2 | GPIOA |
| 4 | I/O GPIO | On board GPIO | GPIO_3 | GPIOA |
| 5 | I/O GPIO | Extension I/O - 1 | GPIO_4 | GPIOA |
| 6 | I/O GPIO | Extension I/O - 1 | GPIO_5 | GPIOA |
| 7 | I/O GPIO | Extension I/O - 1 | GPIO_6 | GPIOA |
| 8 | I/O GPIO | Extension I/O - 1 | GPIO_7 | GPIOA |
| 9 | I/O GPIO | Extension I/O - 2 | GPIO_8 | GPIOA |
| 10 | I/O GPIO | Extension I/O - 2 | GPIO_9 | GPIOA |
| 11 | I/O GPIO | Extension I/O - 2 | GPIO_10 | GPIOA |
| 12 | I/O GPIO | Extension I/O - 2 | GPIO_15 | GPIOA |
| 13 | I/O GPIO | Extension I/O - 3 | GPIO_0 | GPIOB |
| 14 | I/O GPIO | Extension I/O - 3 | GPIO_1 | GPIOB |
| 15 | I/O GPIO | Extension I/O - 3 | GPIO_2 | GPIOB |
| 16 | I/O GPIO | Extension I/O - 3 | GPIO_3 | GPIOB |
| 17 | I/O GPIO | Extension I/O - 4 | GPIO_4 | GPIOB |
| 18 | I/O GPIO | Extension I/O - 4 | GPIO_5 | GPIOB |
| 19 | I/O GPIO | Extension I/O - 4 | GPIO_6 | GPIOB |
| 20 | I/O GPIO | Extension I/O - 4 | GPIO_7 | GPIOB |
| -- | I/O GPIO | Extension I/O GPIO, On board LED | GPIO_14 | GPIOB |
| -- | I/O GPIO | Extension I/O GPIO, On board LED | GPIO_15 | GPIOB |
| Command | Description |
|---|---|
| #n | Set GPIO "n" to high or low (1 - High, 0 - Low) |
| @n | Set GPIO "n" direction (1 - Output, 0 - Input) |
| $n | Read GPIO "n" state (High or Low, for Input direction) |
To use FT.S-GPIO from a terminal, follow these steps:
- Connect the FT.S-GPIO board to your computer using a USB cable.
- Open a terminal program on your computer.
- Configure the terminal program to use the following settings:
- Baud rate: 115200
- Data bits: 8
- Parity: None
- Stop bits: 1
- Flow control: None
- Send commands to the FT.S-GPIO board using the command format described in the Commands table above.
&10 # Set GPIO pin 10 to Output
^10 # Set GPIO pin 10 to High state% # Set GPIO pin 3 to Input
@ # Read the state of GPIO pin 3&7 # Set GPIO pin 7 to Output
^7 # Set GPIO pin 7 to High state
_7 # Set GPIO pin 7 to Low state&1 # Set GPIO pin 1 to Output
&2 # Set GPIO pin 2 to Output
^1 # Set GPIO pin 1 to High state
^2 # Set GPIO pin 2 to High state-D
-E
-B
-G
-R
Issue: The GPIO pins are not responsive. Solution: Ensure the drivers are up to date and that the board is properly connected.
