ANY-maze Help > I/O devices supported by ANY-maze > Legacy I/O devices > The ANY-maze interface (AMi) > The AMi ports > The AMi General Purpose I/O ports > Using the GPIO ports as a TTL level output

Using the GPIO ports as a TTL level output

Although this topic describes the GPIO ports as being TTL outputs, their specification actually makes them compatible with other logic systems too, including: CMOS, ETL and TTL/CMOS families such as ACT and HCT.

Introduction

TTL is a standard for digital signals, and many devices that accept digital inputs use TTL logic levels. By configuring a GPIO port as a TTL level output, you can use it to send logical 0 and 1 signals to such a device.

  
 •Configuring a GPIO port for use as a TTL output 
 •Connecting a device to a GPIO port TTL output 
 •Output specification  

Configuring a GPIO port for use as a TTL output

Before you can use a GPIO port as a TTL level output, you need to configure it as such using the General Purpose I/O page of the AMi configuration window - see figure 1, below.

  

  

Figure 1. To configure GPIO ports as TTL level outputs, the 'Switch output' option should be selected.

In fact, there is no specific option in the GPIO port configuration for TTL level output; instead, you should use the option for 'Switch output'.

When you specify that a port is an output, you will also be able to specify the port's active state - i.e. when the port is active, should it read as a logic 1 (active high) or a logic 0 (active low).

Connecting a device to a GPIO port TTL output

After a GPIO port has been configured as a TTL level output, the port's pin 3 (counting from the left to the right) will become an output. Note that pin 4 is ground, and should also be connected to your device - see figure 2, below.

  

  

Figure 2. Connections to a GPIO port when used as a TTL level output.

AMi remembers the configuration of GPIO ports and makes ports into outputs as soon as it's switched on - this occurs irrespective of whether ANY-maze is running or even whether AMi is connected to your computer. Note that at start up, the output will be in the inactive state - as defined in the configuration.

For a very short period after power is applied to AMi, pin 3 of ALL GPIO ports will actually function as inputs. As this pin is pulled high by a 15K resistor, this means that during this period the pin will read as a logic 1. This situation will last no more than 1 millisecond before the pins will be reconfigured as outputs at the inactive level.

Output specification

When configured as a 'switch output', a GPIO port has the following specification:

 Output Low VoltageMax 0.6V
 Output High VoltageTypical 4.3V, Min 3.8V
 Maximum output current sunk by any port25mA
 Maximum output current sourced by port25mA
 Maximum output current sunk by ALL GPIO ports200mA
 Maximum output current sourced by GPIO ALL ports200mA

  

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T1168