mux 2.0.0.0
|
MUX click is a Click boardâ„¢ that switches one of the four differential inputs to one differential output. It employs the MUX509, a modern CMOS analog multiplexing integrated circuit, produced by Texas Instruments.
We provide a library for the Mux Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Mux Click driver.
- Initialization function.void mux_cfg_setup ( mux_cfg_t *cfg );
void mux_default_cfg ( mux_t *ctx );
- Disable MUX device function.void mux_active_mux_channel ( mux_t *ctx, uint8_t sel_ch );
void mux_device_disable ( mux_t *ctx );
void mux_device_enable ( mux_t *ctx );
Sets the current active channel. Changes the channel every 5 sec.
The demo application is composed of two sections :
Initializes GPIO module and sets RST, CS and PWM pins as OUTPUT.
Changes currently active channel every 5 sec.
<NOTE>
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.