⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dac.c

📁 avr atmega frimily 使用PWM控制交流电机
💻 C
字号:
/**
* @file dac.c
*
* Copyright (c) 2004 Atmel.
*
* @brief Ce fichier permet de
*
* This file is included by all source files in order to access to system wide
* configuration.
* @version 1.0 (CVS revision : 1.1.1.1)
* @date 2005/09/21 15:08:53 (created on 06/04/2004)
* @author jberthy (created by Emmanuel David)

*****************************************************************************/

#include "config.h"
#include "inavr.h"
#include "lib_mcu/dac/dac_drv.h"

/****************************************************************************/
/*                       DAC Initialization                                 */
/****************************************************************************/
 /*!
 * This function initializes the DAC :
   *    - enable and run the DAC (DAC_init),
   *    - the DAC output is only used during debug
   *    - 10 bit resolution
   */


/****************************************************************************/

void DAC_Init(void) {
    Enable_dac();
    Right_adjust_dac_result();              //  10 bits resolution
    Output_dac_enable();
}

/****************************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -