hello,

in david's code snippet i found this glorious hint:

;  CAVEAT below !!!!!!
;  you have to write the number of transfers before giving the
;  buffer address or it won't start transfers

Guess in which order I tried to initialize the DTC - arhhg!

After swapping the initialization of ADC10DTC0 and ADC10DTC1 everything is working as expected.

Did you figured out this 'rule' by yourself or is this somehow
documented ? I read the ADC10 chapter of the user guide over and over
but I couldn't find anything like this - but after reading through this
more than three times you get a kind of blind anyway ;-)

Thanks for your great help!

matthias



David Smead schrieb:
Steve,

Reset, Setup, Activate.

Maybe the issue is `obviously' documented rather than 'well'. Or maybe
I let my hardware cap do the thinking, and the uart is a perfect
example. In many devices reset means putting it into a known state
which can then be modified as desired -- that is, reset is the first
act, not the last, (for example, the reset to the processor).  The last
act is, or should be `activate', and had that been the terminology used
for the uart, I wouldn't have stumbled over it.

But yes, the code examples made it clear that reset was done last so I
can't complain.

Sincerely,

David Smead
www.amplepower.com
www.amplepower.net


On Sat, 12 Aug 2006, Steve Underwood wrote:

David Smead wrote:

Once setup, there is virtually no code to keep it running and I'm
getting 4096 readings per second per channel.  I found that initializing
the hardware is VERY dependent on the order of writes to device
registers - and not just the ADC.


There should be very little sensitivity to the order in which peripheral
registers are set in the MSP430, apart from the things which are well
documented - the USART needs a software reset after initialisation;
ADC10 and DAC12 should have the enable bit set to disable which
configuring the ADC; etc.

Steve


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


Reply via email to