CONFIG DACX

Top  Previous  Next

Action

This statement configures the DAC0 or DACX in the Xtiny.

 

 

Syntax

CONFIG DACx=dac, IO0=IO0,  RUNMODE=runmode, OUT_ENABLE =out

 

Remarks

DACX

Chose either DAC0 or DACX.

dac

ENABLED or DISABLED. Chose ENABLED to enable the DAC.

runmode

Possible values :

ENABLED : In Standby sleep mode, the peripheral continues operation

DISABLED : In Standby sleep mode, the peripheral is halted

Out

ENABLED or DISABLED. Chose ENABLED to enable the output.

 

The DAC data register is available in the word variable DAC0_DATA.