The purpose of the GPIO interface on industrial computer
2022-06-17 PV:2523
GPIO=General Purpose Input Output. GPIO port is a relatively important concept. Users can interact with hardware through GPIO port (such as UART), control hardware work (such as LED, buzzer, etc.), read hardware working status signals (such as interrupt signals), etc. The GPIO port is widely used in industrial computers. It is a bus expander that can provide additional control and monitoring functions for data acquisition and drive control, so it is divided into DI (digital input) and DO (digital output).
1. GPIO is used for switch control, which is the most common application scenario.
It is generally used for LED light switch control. Through software code, the GPIO port pull-up function is called when the light needs to be turned on, and the GPIO pull-down function is called when the light needs to be turned off, and the control can be realized.
2. Button detection and input interrupt signal
Key detection is actually the interrupt we often talk about. Toggles and interrupts between high and low levels. Generally, the default state of a GPIO port is a low level. When the button is pressed, it is pulled to a high level, and the system can automatically detect this high or low level and make corresponding judgments. For example: when the button is pressed, the system detects that it is a high level, and the GPIO will be automatically interrupted. When the button is released, the GPIO port detects that the voltage returns to a low level, and it is determined that the button is released.
3. High-level applications of GPIO
In addition to simple input and output, GPIO can also do some relatively complex operations, such as analog I2C or SPI data lines, ADC voltage detection, and output PWM waveforms.
ShareVDI Industrial PC F17H series
Fashionable appearance: aluminum alloy integral molding, compact structure, small Mini, fine craftsmanship, fashionable technology.
Stable and reliable: industrial design, excellent heat dissipation structure integrated with strong antipyretic heat pipes and pure copper, fully sealed aluminum alloy box, large area aluminum fins for heat dissipation, can achieve natural convection heat dissipation in horizontal and vertical placement, DC 12V-24V wide voltage input.
High performance: support Celeron quad core, 5/6/7/8/9/10 generation core i3/i5/i7.
Rich interface: 4*COM+2*LAN+2*HDMI+VGA(DP)+6*USB+Type-C+MIC/SPK+DC.
Optional GPIO/Phoenix connector/LPT/TPM2.0/4G module/SIM card
Convenient application: wall-mounted, Vesa bracket installation; mobile 4G/5G or WiFi exist, the device can easily achieve physical separation and communication barrier-free link.