User manual

...the world's most energy friendly microcontrollers
2012-04-24 - Giant Gecko Family - d0053_Rev0.96 711
www.energymicro.com
Bit Name Reset Access Description
Value Mode Description
3 64CYCLES All channels with enabled refresh are refreshed every 64 prescaled cycles
19 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
18:16 PRESC 0x0 RW Prescaler Setting
Select clock division factor.
Value Description
PRESC Clock division factor of 2^PRESC.
15:10 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
9:8 REFSEL 0x0 RW Reference Selection
Select reference.
Value Mode Description
0 1V25 Internal 1.25 V bandgap reference
1 2V5 Internal 2.5 V bandgap reference
2 VDD VDD reference
7 CH0PRESCRST 0 RW Channel 0 Start Reset Prescaler
Select if prescaler is reset on channel 0 start.
Value Description
0 Prescaler not reset on channel 0 start
1 Prescaler reset on channel 0 start
6 OUTENPRS 0 RW PRS Controlled Output Enable
Enable PRS Control of DAC output enable.
Value Description
0 DAC output enable always on
1 DAC output enable controlled by PRS signal selected for CH1.
5:4 OUTMODE 0x1 RW Output Mode
Select output mode.
Value Mode Description
0 DISABLE DAC output to pin and ADC disabled
1 PIN DAC output to pin enabled. DAC output to ADC and ACMP disabled
2 ADC DAC output to pin disabled. DAC output to ADC and ACMP enabled
3 PINADC DAC output to pin, ADC, and ACMP enabled
3:2 CONVMODE 0x0 RW Conversion Mode
Configure conversion mode.
Value Mode Description
0 CONTINUOUS DAC is set in continuous mode
1 SAMPLEHOLD DAC is set in sample/hold mode
2 SAMPLEOFF DAC is set in sample/shut off mode
1 SINEMODE 0 RW Sine Mode
Enable/disable sine mode.
Value Description
0 Sine mode disabled. Sine reset to 0 degrees
1 Sine mode enabled
0 DIFF 0 RW Differential Mode
Select single ended or differential mode.
Value Description
0 Single ended output
1 Differential output