EmbeddedRelated.com
Forums
Memfault Beyond the Launch

DAC no MSP430F169

Started by leonardomgaliano April 20, 2006
Hello all, i'm developing an application that uses DAC of MSP430F169. 
In my routine (ASM)I have a TmrB ISR every 1000msec where I set a 
voltage level for 1msec from DAC and then turn off all and go back to 
sleep (LPM3)
My problem is that I can't turn off the DAC! I disable the ADC 
reference but the DAC is still consuming.
I try to clear ENC bit of DAC and then put DAC12AMP on 0 (so the DAC 
turns off and stays on HiZ) but the routine hangs up and never enter 
TmrB ISR again.

How is the wright way of turning off the DAC?, please help

Thanks in advance

Leonardo






Beginning Microcontrollers with the MSP430

Try setting the rest of the CTL bits to 0 after clearing ENC bits:

This worked for me on MSP430F156.

//shut down the DAC
void DisableDAC(void){
  DAC12_0CTL &= ~DAC12ENC;
  DAC12_0CTL = 0x00;
  DAC12_1CTL &= ~DAC12ENC;
  DAC12_1CTL = 0x00;
}

Mark

leonardomgaliano wrote:

> Hello all, i'm developing an application that
uses DAC of MSP430F169.
> In my routine (ASM)I have a TmrB ISR every 1000msec where I set a
> voltage level for 1msec from DAC and then turn off all and go back to
> sleep (LPM3)
> My problem is that I can't turn off the DAC! I disable the ADC
> reference but the DAC is still consuming.
> I try to clear ENC bit of DAC and then put DAC12AMP on 0 (so the DAC
> turns off and stays on HiZ) but the routine hangs up and never enter
> TmrB ISR again.
>
> How is the wright way of turning off the DAC?, please help
>
> Thanks in advance
>
> Leonardo
>
>
>
>
>
>
>
> .
>
>
>
>
>
> SPONSORED LINKS
> Computer internet security 
>
<http://groups.yahoo.com/gads?t=ms&k=Computer+internet+security&w1=Computer+internet+security&w2=Computer+internet+business&w3=Computer+internet+access&w4=Computer+internet+privacy+securities&w5=Computer+internet+help&w6=Texas+instruments&c=6&s7&.signZ9Q_Is69flQPlZteuKw>

> 	Computer internet business 
>
<http://groups.yahoo.com/gads?t=ms&k=Computer+internet+business&w1=Computer+internet+security&w2=Computer+internet+business&w3=Computer+internet+access&w4=Computer+internet+privacy+securities&w5=Computer+internet+help&w6=Texas+instruments&c=6&s7&.sigfdp5NCwqBwePK_awOIw>

> 	Computer internet access 
>
<http://groups.yahoo.com/gads?t=ms&k=Computer+internet+access&w1=Computer+internet+security&w2=Computer+internet+business&w3=Computer+internet+access&w4=Computer+internet+privacy+securities&w5=Computer+internet+help&w6=Texas+instruments&c=6&s7&.sig=t6iyjywM5f5bjjKjklY_ww>

>
> Computer internet privacy securities 
>
<http://groups.yahoo.com/gads?t=ms&k=Computer+internet+privacy+securities&w1=Computer+internet+security&w2=Computer+internet+business&w3=Computer+internet+access&w4=Computer+internet+privacy+securities&w5=Computer+internet+help&w6=Texas+instruments&c=6&s7&.sig=xb9tvshl1Ao9LtZ0o8L1YA>

> 	Computer internet help 
>
<http://groups.yahoo.com/gads?t=ms&k=Computer+internet+help&w1=Computer+internet+security&w2=Computer+internet+business&w3=Computer+internet+access&w4=Computer+internet+privacy+securities&w5=Computer+internet+help&w6=Texas+instruments&c=6&s7&.sigPICQLeaOhPQoHIN4-hKZA>

> 	Texas instruments 
>
<http://groups.yahoo.com/gads?t=ms&k=Texas+instruments&w1=Computer+internet+security&w2=Computer+internet+business&w3=Computer+internet+access&w4=Computer+internet+privacy+securities&w5=Computer+internet+help&w6=Texas+instruments&c=6&s7&.sigw78vr_uEHnPw8wLyZbA>

>
>
>
> 
> >.
>
>
> 
>



Memfault Beyond the Launch