TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 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 (136652 times)
  2. FAT32 Library (69870 times)
  3. Network Ethernet Library (55902 times)
  4. USB Device Library (46245 times)
  5. Network WiFi Library (41871 times)
  6. FT800 Library (41113 times)
  7. GSM click (28966 times)
  8. PID Library (26403 times)
  9. mikroSDK (26330 times)
  10. microSD click (25344 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: 1354 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

Perfect Envirenment - Demo project

0

Turtle Terrarium is the ideal housing for aquatic turtles and other marine reptiles, amphibians, and invertebrates. This application is using several sensors which show their values on TFT Capacitive Board, refreshed every few seconds.

[Learn More]

OBD II click

0

OBDII click offers a unique opportunity to tap inside the car diagnostic systems. It features the STN1110 Multiprotocol OBD to UART Interface, developed by the ScanTool technologies.

[Learn More]

Smart Mic click

0

Smart Mic Click is a compact add-on board that provides wake-on-voice capabilities with secured privacy without compromising performance. This board features the IA611, an “Always-On” voice-wake acoustic processor from Knowles Electronics. The IA611 offers flexibility by supporting the most relevant audio and data interfaces and enables ultra-low-power voice and event detection, including voice UI supporting keywords, voice commands, and acoustic event detection. Its integrated programmable DSP is made available to 3rd party algorithms with 168kB of RAM, enabling unlimited creativity.

[Learn More]