|
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
IntroductionTTL 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 outputBefore 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 outputAfter 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.
Output specificationWhen configured as a 'switch output', a GPIO port has the following specification:
© Copyright 2003-2026 Stoelting Co. All rights reserved ANY-maze help topic T1168 |