uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
DAC Private Macros

Macros

#define DAC_VALUE(n)   ((uint32_t)((n&0x3FF)<<6))
 
#define DAC_BIAS_EN   ((uint32_t)(1<<16))
 
#define DAC_CCNT_VALUE(n)   ((uint32_t)(n&0xffff))
 
#define DAC_DBLBUF_ENA   ((uint32_t)(1<<1))
 
#define DAC_CNT_ENA   ((uint32_t)(1<<2))
 
#define DAC_DMA_ENA   ((uint32_t)(1<<3))
 
#define DAC_DACCTRL_MASK   ((uint32_t)(0x0F))
 
#define PARAM_DACx(n)   (((uint32_t *)n)==((uint32_t *)LPC_DAC))
 
#define PARAM_DAC_CURRENT_OPT(OPTION)
 

Detailed Description

Macro Definition Documentation

#define DAC_BIAS_EN   ((uint32_t)(1<<16))

If this bit = 0: The settling time of the DAC is 1 microsecond max, and the maximum current is 700 microAmpere If this bit = 1: The settling time of the DAC is 2.5 microsecond and the maximum current is 350 microAmpere

Definition at line 53 of file lpc17xx_dac.h.

#define DAC_CCNT_VALUE (   n)    ((uint32_t)(n&0xffff))

Value to reload interrupt DMA counter

Definition at line 55 of file lpc17xx_dac.h.

#define DAC_CNT_ENA   ((uint32_t)(1<<2))

DCAR Time out count enable

Definition at line 60 of file lpc17xx_dac.h.

#define DAC_DACCTRL_MASK   ((uint32_t)(0x0F))

DCAR DACCTRL mask bit

Definition at line 64 of file lpc17xx_dac.h.

#define DAC_DBLBUF_ENA   ((uint32_t)(1<<1))

DCAR double buffering

Definition at line 58 of file lpc17xx_dac.h.

#define DAC_DMA_ENA   ((uint32_t)(1<<3))

DCAR DMA access

Definition at line 62 of file lpc17xx_dac.h.

#define DAC_VALUE (   n)    ((uint32_t)((n&0x3FF)<<6))
After the selected settling time after this field is written with a

new VALUE, the voltage on the AOUT pin (with respect to VSSA) is VALUE/1024 × VREF

Definition at line 48 of file lpc17xx_dac.h.

#define PARAM_DAC_CURRENT_OPT (   OPTION)
Value:
((OPTION == DAC_MAX_CURRENT_700uA)\
||(OPTION == DAC_MAX_CURRENT_350uA))

Macro to check DAC current optional parameter

Definition at line 70 of file lpc17xx_dac.h.

#define PARAM_DACx (   n)    (((uint32_t *)n)==((uint32_t *)LPC_DAC))

Macro to determine if it is valid DAC peripheral

Definition at line 67 of file lpc17xx_dac.h.