📄 dac.c
字号:
/*********************************************************************
Author : likee www.ednchina.com/blog/likee
Date : Nov.18 2007
File : DAC.c
Hardware : Applicable to ADuC7026 test board
Description : define the DAC.c
edition :V1.0
Copyright(C) likee 2007-2016
All rigths reserved
***********************************************************************/
//#include "DAC.h"
#include <ADuC7026.h>
void DAC_Initial( void )
{
// DAC configuration
DAC0CON = 0x12; // DAC configuration
// range Vref/AGND and Clocked
DAC0DAT = 0x08000000; // start from midscale
REFCON=0x01; // enable the internal 2.5V
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -