One solution:
Setup Timer_A to interrupt at whatever trigger frequency you want.  Then in the 
Timer_A
ISR, just put the line:
    ADC12CTL0 |= ADC12SC;   // Start conversion
Setup the ADC registers to work in the background (initiate w/ the above line, 
then
trigger an interrupt when done).  Setup the  ADC12 ISR to copy the values from 
the ADC
registers to some globals.   Not sure what you're doing from there, but that's 
one way.
-Mark Stokes



-----Original Message-----
From: Gao Zhengsu [mailto:g...@clarkson.edu] 
Sent: Wednesday, April 14, 2004 11:55 AM
To: mspgcc-users@lists.sourceforge.net
Subject: [Mspgcc-users] About msp430x149


Hi, everybody:
                I want to use TimerA to trigger  ADC12, but it couldn't work, I 
need
help, 
Does anyone have such experience and give me some example? Thanks.
Regards
Zhengsu



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to