EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

MSP430F2013 EZ board, SD16A evaluation

Started by rolavine May 28, 2007
I'm trying to evaluate the performance of the 2013's SD16A (16 bit
sigma delta converter) using IAR's C. My first test uses the first of
the example programs for this module that uses the SD16 (turn on led
if A1+ goes above .3 volts). I'm just using a breakpoint in IAR with
a watch to check the results.

Is anyone willing to share a program that ouputs the results of the
conversion in RS232 serial so I can take it to a PC? I tried to do
this using two of the example programs but didn't have enough time
(so far) to finish. I know this chip has no UART but there is an
example for 2400 baud con using the timer, and I have that working
now.

Also, can anyone tell me how to set the SD16 for the best possible
reading at about 1ms conversion speed? TI isn't saying in the doc.
I'm guessing that a slower clock and more oversampling helps? Also,
anyone know how much better the readings get is you put the processor
to sleep after triggering the SD16 vs. staying up and running.

Also, anyone know if I can put IAR into a mode where it will update a
watch on a short timed breakpoint, so I don't have to mouse the go
button all the time?

Thanks In advance for any help I can get.

Beginning Microcontrollers with the MSP430

You are asking about a scripting language over IAR
debugger? I never see such a tool, excepting
CodeWarrior, but unfortunately is not for MSP430.

--- rolavine wrote:

> I'm trying to evaluate the performance of the 2013's
> SD16A (16 bit
> sigma delta converter) using IAR's C. My first test
> uses the first of
> the example programs for this module that uses the
> SD16 (turn on led
> if A1+ goes above .3 volts). I'm just using a
> breakpoint in IAR with
> a watch to check the results.
>
> Is anyone willing to share a program that ouputs the
> results of the
> conversion in RS232 serial so I can take it to a PC?
> I tried to do
> this using two of the example programs but didn't
> have enough time
> (so far) to finish. I know this chip has no UART but
> there is an
> example for 2400 baud con using the timer, and I
> have that working
> now.
>
> Also, can anyone tell me how to set the SD16 for the
> best possible
> reading at about 1ms conversion speed? TI isn't
> saying in the doc.
> I'm guessing that a slower clock and more
> oversampling helps? Also,
> anyone know how much better the readings get is you
> put the processor
> to sleep after triggering the SD16 vs. staying up
> and running.
>
> Also, anyone know if I can put IAR into a mode where
> it will update a
> watch on a short timed breakpoint, so I don't have
> to mouse the go
> button all the time?
>
> Thanks In advance for any help I can get.
Best regards,

Adrian Popa

____________________________________________________________________________________Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting
rolavine wrote:

> Also, anyone know if I can put IAR into a mode where it will update a
> watch on a short timed breakpoint, so I don't have to mouse the go
> button all the time?

Hi!

I'm not sure exactly what you would like to do, but maybe the section on
"Using the C-SPY macro system", in the "MSP430 IAR Embedded
Workbench IDE User Guide" could help you.

The macro language is (unfortunately) kind of crude, but it allows you
to tie breakpoints to macros that is executed when they trigger. The
macro could then restart the application, so you wouldn't have to press
the "go" button.

In the tutorial section there are some macro file examples (see files
ending in .mac).

-- Anders Lindgren, IAR Systems
--
Disclaimer: Opinions expressed in this posting are strictly my own and
not necessarily those of my employer.
rolavine #039; I'm trying to evaluate the performance of the 2013's SD16A (16 bit
sigma delta converter) using IAR's C. My first test uses the first of
the example programs for this module that uses the SD16 (turn on led
if A1+ goes above .3 volts). I'm just using a breakpoint in IAR with
a watch to check the results.

Is anyone willing to share a program that ouputs the results of the
conversion in RS232 serial so I can take it to a PC? I tried to do
this using two of the example programs but didn't have enough time
(so far) to finish. I know this chip has no UART but there is an
example for 2400 baud con using the timer, and I have that working
now.

Also, can anyone tell me how to set the SD16 for the best possible
reading at about 1ms conversion speed? TI isn't saying in the doc.
I'm guessing that a slower clock and more oversampling helps? Also,
anyone know how much better the readings get is you put the processor
to sleep after triggering the SD16 vs. staying up and running.

Also, anyone know if I can put IAR into a mode where it will update a
watch on a short timed breakpoint, so I don't have to mouse the go
button all the time?

Thanks In advance for any help I can get.

---------------------------------
ע.5G20M
This little example sands a string to PC without extra hardware.

#include "io430.h"
#include "stdio.h" //*** to support putchar() ***
int main( void )
{
// Stop watchdog timer to prevent time out reset
WDTCTL = WDTPW + WDTHOLD;

char *msg="Hello World!\n";
while (*msg!=0) putchar(*msg++);

return 0;
}

If you use [CLIB] [small], this example takes only 82 bytes of Flash.
A more standard way takes 634 bytes.

#include "io430.h"
#include "stdio.h" //*** to support printf() ***
int main( void )
{
// Stop watchdog timer to prevent time out reset
WDTCTL = WDTPW + WDTHOLD;

printf("Hallo World!\n");

return 0;
}

--- In m..., xiaolong wei wrote:
>
> rolavine #039; I'm trying to evaluate the
performance of the 2013's SD16A (16 bit
> sigma delta converter) using IAR's C. My first test uses the first
of
> the example programs for this module that uses the SD16 (turn on
led
> if A1+ goes above .3 volts). I'm just using a breakpoint in IAR
with
> a watch to check the results.
>
> Is anyone willing to share a program that ouputs the results of the
> conversion in RS232 serial so I can take it to a PC? I tried to do
> this using two of the example programs but didn't have enough time
> (so far) to finish. I know this chip has no UART but there is an
> example for 2400 baud con using the timer, and I have that working
> now.
>
> Also, can anyone tell me how to set the SD16 for the best possible
> reading at about 1ms conversion speed? TI isn't saying in the doc.
> I'm guessing that a slower clock and more oversampling helps? Also,
> anyone know how much better the readings get is you put the
processor
> to sleep after triggering the SD16 vs. staying up and running.
>
> Also, anyone know if I can put IAR into a mode where it will update
a
> watch on a short timed breakpoint, so I don't have to mouse the go
> button all the time?
>
> Thanks In advance for any help I can get.
>
>
>
>
> ---------------------------------
> ע.5G20M
>
>
>

The 2024 Embedded Online Conference