高精度数模转换器DAC9881驱动程序
DAC9881.h
#ifndef __DAC9881_H
#define __DAC9881_H
#include "stm32f4xx.h"
#include "stm32f4xx_sys.h"
#include "delay.h"
#define CS_DAC_LOW() PBout(12) = 0
#define CS_DAC_HIGH() PBout(12) = 1
#define SCL_DAC_LOW() PBout(13) = 0
#define SCL_DAC_HIGH() PBout(13) = 1
#define SDO_DAC_LOW() PBin(14) = 0
#define SDO_DAC_HIGH() PBin(14) = 1
#define LDAC_DAC_LOW() PBout(11) = 0
#define LDAC_DAC_HIGH() PBout(11) = 1
#define SDI_DAC_LOW() PBout(15)=0
#define SDI_DAC_HIGH() PBout(15)=1
void DAC9881_Init(void);