TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136838 times)
  2. FAT32 Library (69993 times)
  3. Network Ethernet Library (55978 times)
  4. USB Device Library (46291 times)
  5. Network WiFi Library (41895 times)
  6. FT800 Library (41204 times)
  7. GSM click (29011 times)
  8. PID Library (26422 times)
  9. mikroSDK (26391 times)
  10. microSD click (25384 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

DAC 6 click

Rating:

5

Author: MIKROE

Last Updated: 2020-08-13

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: DAC

Downloaded: 1357 times

Not followed.

License: MIT license  

DAC 6 Click is a compact add-on board that contains a fully-featured, general-purpose voltage-output digital-to-analog converter. This board features the DAC104S085, 10-bit resolution micro-power QUAD digital-to-analog converter with rail-to-rail output, from Texas Instruments.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "DAC 6 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "DAC 6 click" changes.

Do you want to report abuse regarding "DAC 6 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

DAC 6 Click

DAC 6 Click

Native view of the DAC 6 Click board.

View full image
DAC 6 Click

DAC 6 Click

Front and back view of the DAC 6 Click board.

View full image

Library Description

This library holds functions that can be used to write data to the device's input shift register, or to set operation mode output channel and level.

Key functions:

  • void dac6_write_data ( uint16_t wr_data ) - Sends 16-bit data to the device's input shift register.
  • void dac6_set_output ( uint8_t chan, uint8_t op_mod, uint16_t set_out ) - Function is used to set operation mode output channel and level.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes GPIO, SPI and LOG structures.
  • Application Initialization - Initalizes SPI driver.
  • Application Task - (code snippet) This example shows capabilities of DAC 6 click by changeing output values from 0 to the maximum output range on all four channels. Output voltage is calculated by using the equation : Vout = Vrefin * (set_out / 4095).
void application_task ( )
{
    for ( n_cnt = 0; n_cnt < 4096; n_cnt += 315 )
    {
        v_out = dac6_set_output ( DAC6_CHANNEL_A, 
                                  DAC6_WRITE_ALL_AND_UPDATE, 
                                  DAC6_V_REF_2048, 
                                  n_cnt );
        
        FloatToStr( v_out, log_text );
        mikrobus_logWrite( " VOUT ~ ", _LOG_TEXT );
        mikrobus_logWrite( log_text, _LOG_TEXT );
        mikrobus_logWrite( " mV", _LOG_LINE );
        mikrobus_logWrite( "--------------------", _LOG_LINE );
        Delay_ms( 5000 );
    }
    
    Delay_ms( 5000 );
}

Other mikroE Libraries used in the example:

  • SPI
  • UART
  • Conversions

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

H-Bridge 14 click

0

H-Bridge 14 Click is a compact add-on board with an H-Bridge gate driver, also known as a full-bridge pre-driver. This board features the DRV8873, an automotive H-Bridge motor driver from Texas Instruments. The DRV8873 is an N-channel H-Bridge motor driver that can drive one bidirectional brushed DC motor, two unidirectional brushed DC motors, solenoids, or other resistive inductive loads.

[Learn More]

Gyro 4 click

0

Gyro 4 Click is a two-axis MEMS gyroscope for optical image stabilization applications.

[Learn More]

Lin Hall click

5

LIN HALL click, with its linear Hall sensor, outputs a signal that is proportional to the flux density of a magnetic field. The output signal will increase when a north magnetic field is applied, while a south magnetic field will cause it to decrease.

[Learn More]