EVC Click Board
EVC Click Board
The EVC Click Board™ is a six-channel digital volume controller, equipped with an integrated electronic volume control circuit, which can be controlled over the I2C interface. The PT2258 IC offers six individual input channels, each with an attenuation range between 0 and -79dB, in 1dB steps. This chip requires a minimum number of external components, simplifying its implementation in a wide range of modern audio application.
As an audio circuit, EVC Click Board™ features very low noise and a high Signal to Noise ratio (SNR) of more than 100dB. A low Total Harmonic Distortion (THD) of 0.005% ensures absolute sound clarity.
Software Support
We provide a library for the EVC Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library includes function sets the volume for the selected channel, uses two variables or one volume variable. The user has a function for mute/unmute sounds, default settings and function for clears all registers.
Key Functions
void equalizer_setVolumeFull(uint8_t channel, int8_t volume)
- Set volume for the channelvoid equalizer_defaultConfiguration()
- Default configurationvoid equalizer_mute(uint8_t mute)
- Mute and Unmute
Example Description
The application is composed of the three sections :
- System Initialization - Initialzes I2C module.
- Application Initialization - Initialization driver init, default configuration and sets first volume.
- Application Task - Waits for valid user input and executes functions based on set of valid commands.
- Commands : '+' - volume up '-' - volume down 'x' - channel up 'z' - channel down 'm' - mute and unmute
void applicationTask() { uint8_t dataReady_; char receivedData_; dataReady_ = UART_Rdy_Ptr( ); if (dataReady_ != 0) { receivedData_ = UART_Rd_Ptr( ); switch (receivedData_) { case 'z' : { /* Change channel */ _channel --; if(_channel < 1) { _channel = 1; } _playFlag = 1; break; } case 'x' : { /* Change channel */ _channel ++; if(_channel > 6) { _channel = 6; } _playFlag = 1; break; } case '+' : { /* Set volume */ _volume++; if(_volume > 0) { _volume = 0; } _playFlag = 1; break; } case '-' : { /* Set volume */ _volume--; if(_volume < -79) { _volume = -79; } _playFlag = 1; break; } case 'm' : { _mute(); break; } } _play(); } }
Additional Functions :
void _getCurrentChannel( )
- Return current channelvoid _play( )
- Start new settings of the channelvoid _mute( )
- mute and unmute
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
I2C
UART
Conversions
Additional Notes and Information
Depending on the development board you are using, you may need a 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.
MIKROSDK
The EVC Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant click board demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
EVC Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.