- Introduction
- Prerequisites
- Installation and Setup
- Usage Examples
- Troubleshooting
- FAQs
- Contributions
- License
- Contact
This document is a reference document and usage instructions for FT.S-GPIO tell intended for Compulab Tensor line of add on boards.
Based on the ARM Cortex M0 CPU, Emulates COM port on USB and enables the user to control connected GPIO’s.
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 - TELL-GPIO
- Implementation of USB to GPIO without the need for special drivers or deep system knowledge.
- Enables fast prototyping and fast time to market.
- Can be used with popular coding language’s like Python
- Open software and Hardware for even more flexibility
- Build-in bidirectional isolation based on the ADM3260 chip.
- Build-in 4 Isolated GPIO’s expandable up to 20 with FT.V-TERM4 adapter.
- Easily updatable SW using built-in USB bootloader.
The source code and Binary are available github Repo
Bugs and futures can be opened in the Github repository.
Each GPIO can be programmed for Output or input direction.
- Output - The GPIO Can be controlled for a High or LOW output state.
- Input - The user can read if the GPIO is now in a HIGH state or LOW, state.
Note: GPIO's initial state is Output low. (0.7v - 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: Make sure the drivers are up-to-date and that the board is properly connected.