Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

msp430 · TI MSP430 microcontroller users group

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 7765
  • Category: Hardware
  • Founded: Oct 13, 2000
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 38100 - 38129 of 51702   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#38100 From: "ken_and_wanda" <ken_and_wanda@...>
Date: Mon Sep 1, 2008 12:45 pm
Subject: Re: USCxTxBuf
ken_and_wanda
Send Email Send Email
 
--- In msp430@yahoogroups.com, "zhentoron" <zhen99@...> wrote:
>
> --- In msp430@yahoogroups.com, "ken_and_wanda" <ken_and_wanda@> wrote:
> >
> > I load a byte into the USCxTxBuf of an MSP430F2330.  It gets shifted
> > out by eight edges of the SPI clock onto the SOMI line. Will the same
> > byte get shifted out when the next eight edges of the SPI clock occur
> > even if I didn't reload the USCxTxBuf with the same byte? If not, what
> > will get shifted out?  All 0's?
> >
> >
> > Here's my code which shows how I poll the UCA0TXIFG before loading the
> > transmit buffer.
> >
> >
> >
> >     while (!(UC0IFG & UCA0TXIFG));       // Is the SPI transmit buffer
> >                                          // ready to accept a byte ?
> >
> >     UCA0TXBUF =  Byte_To_Send_To_AFE;     // Load transmit buffer
with
> >                                           //  byte.
> >
> >
> >      while (!(UC0IFG & UCA0RXIFG));       // Byte received ?
> >
> >      Byte_Received_From_AFE = UCA0RXBUF;  // Store received byte.
> >
>
> In hardware aspect (similar with I2C, UART), a writing into USCxTxBuf
> will activate a sequential 7 or 8 bits transmitting.  The CLK pin
> toggles 7/8 cycles respectively, and then stop swing.  So the receiver
> only acknoledges a byte that transmitter sent.  Nothing happens after
> that till software writes new content to the buffer.
>
But in my case my device is the slave. It receives a byte from the SPI
master which supplies the clock.  My device, the slave, doesn't
initiate communicatons but just responds to communication started by
the master.

#38101 From: "Martijn Broens" <martijn@...>
Date: Tue Sep 2, 2008 8:32 am
Subject: Reading Eeprom ID
martijnbroens
Send Email Send Email
 
Hi All,

I was wondering, for a project i need to connect to several eeproms
(24C16 and 24C64) either will be connected via terminals connectors. so
i have no knowledge of which is connected at this moment. therefore i
was wondering if it is possible to readout an id or so. which could in
turn be used to define the brand and size of eeprom connected.

is this possible? and if so does any one have smoe appnotes on this??

the eeproms will be for starters preffeably from Atmel and/or microchip

thanks in advance Martijn

#38102 From: al_bin@...
Date: Tue Sep 2, 2008 9:51 am
Subject: Re: Reading Eeprom ID
bercik69
Send Email Send Email
 
msp430@yahoogroups.com napisa³(a):
>                Hi All,
>
> I was wondering, for a project i need to connect to several eeproms
> (24C16 and 24C64) either will be connected via terminals connectors. so
> i have no knowledge of which is connected at this moment. therefore i
> was wondering if it is possible to readout an id or so. which could in
> turn be used to define the brand and size of eeprom connected..
>
> is this possible? and if so does any one have smoe appnotes on this??
>
> the eeproms will be for starters preffeably from Atmel and/or microchip

Check http://ww1.microchip.com/downloads/en/AppNotes/00690a.pdf

Albert

#38103 From: "Martijn Broens" <martijn@...>
Date: Tue Sep 2, 2008 11:42 am
Subject: Re: Reading Eeprom ID
martijnbroens
Send Email Send Email
 
Hi Albert,

thanks for the link. i read it end see where it gets me.

thanks
MB
--- In msp430@yahoogroups.com, al_bin@... wrote:
>
>
>
> msp430@yahoogroups.com napisa³(a):
> >                Hi All,
> >
> > I was wondering, for a project i need to connect to several
eeproms
> > (24C16 and 24C64) either will be connected via terminals
connectors. so
> > i have no knowledge of which is connected at this moment.
therefore i
> > was wondering if it is possible to readout an id or so. which
could in
> > turn be used to define the brand and size of eeprom connected..
> >
> > is this possible? and if so does any one have smoe appnotes on
this??
> >
> > the eeproms will be for starters preffeably from Atmel and/or
microchip
>
> Check http://ww1.microchip.com/downloads/en/AppNotes/00690a.pdf
>
> Albert
>

#38104 From: "Mirko Viviani" <furetto76@...>
Date: Tue Sep 2, 2008 1:17 pm
Subject: Static int declaration and initialization
furetto76@...
Send Email Send Email
 
Using IAR on a MSP430F1611 (MSP430 family) this piece of code does not work
(printf will print something else than 23)
I cannot split the inizialization from declaration (source code cannot be
modified): any idea?

static int i=23;
void main()
{
  printf("%d",i);
}

Obviously splitting initialization from declaration works.

--
-- Mirko Viviani --
GPG-PGP Public Key: 0xE4E8FAB1
Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
***********************************************
""Machines take me by surprise with great frequency." A. Turing


[Non-text portions of this message have been removed]

#38105 From: "old_cow_yellow" <old_cow_yellow@...>
Date: Tue Sep 2, 2008 2:32 pm
Subject: Re: Static int declaration and initialization
old_cow_yellow
Send Email Send Email
 
I suspect that printf("%d",23); will also print something else than
23. Can you try that?

--- In msp430@yahoogroups.com, "Mirko Viviani" <furetto76@...> wrote:
>
> Using IAR on a MSP430F1611 (MSP430 family) this piece of code does
not work
> (printf will print something else than 23)
> I cannot split the inizialization from declaration (source code
cannot be
> modified): any idea?
>
> static int i=23;
> void main()
> {
>  printf("%d",i);
> }
>
> Obviously splitting initialization from declaration works.
>
> --
> -- Mirko Viviani --
> GPG-PGP Public Key: 0xE4E8FAB1
> Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
> ***********************************************
> ""Machines take me by surprise with great frequency." A. Turing
>
>
> [Non-text portions of this message have been removed]
>

#38106 From: "Mirko Viviani" <furetto76@...>
Date: Tue Sep 2, 2008 2:36 pm
Subject: Re: Re: Static int declaration and initialization
furetto76@...
Send Email Send Email
 
it prints correctly 23 ;)

2008/9/2 old_cow_yellow <old_cow_yellow@...>

>   I suspect that printf("%d",23); will also print something else than
> 23. Can you try that?
>
>
> --- In msp430@yahoogroups.com <msp430%40yahoogroups.com>, "Mirko Viviani"
> <furetto76@...> wrote:
> >
> > Using IAR on a MSP430F1611 (MSP430 family) this piece of code does
> not work
> > (printf will print something else than 23)
> > I cannot split the inizialization from declaration (source code
> cannot be
> > modified): any idea?
> >
> > static int i=23;
> > void main()
> > {
> > printf("%d",i);
> > }
> >
> > Obviously splitting initialization from declaration works.
> >
> > --
> > -- Mirko Viviani --
> > GPG-PGP Public Key: 0xE4E8FAB1
> > Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
> > ***********************************************
> > ""Machines take me by surprise with great frequency." A. Turing
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>



--
-- Mirko Viviani --
GPG-PGP Public Key: 0xE4E8FAB1
Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
***********************************************
""Machines take me by surprise with great frequency." A. Turing


[Non-text portions of this message have been removed]

#38107 From: "old_cow_yellow" <old_cow_yellow@...>
Date: Tue Sep 2, 2008 3:30 pm
Subject: Re: Static int declaration and initialization
old_cow_yellow
Send Email Send Email
 
I cannot try printf(). But "static int i=23;" works for me.

Specifically, the compiler did the following:

a) Assigned a word in RAM for the variable "i"
b) Assigned a word in FLASH and stored a constant "23" (0x0017) in it.
c) In the c startup code, call "__data16_memcpy()" to copied the
constant "23" to the variable "i".


--- In msp430@yahoogroups.com, "Mirko Viviani" <furetto76@...> wrote:
>
> Using IAR on a MSP430F1611 (MSP430 family) this piece of code does
not work
> (printf will print something else than 23)
> I cannot split the inizialization from declaration (source code
cannot be
> modified): any idea?
>
> static int i=23;
> void main()
> {
>  printf("%d",i);
> }
>
> Obviously splitting initialization from declaration works.
>
> --
> -- Mirko Viviani --
> GPG-PGP Public Key: 0xE4E8FAB1
> Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
> ***********************************************
> ""Machines take me by surprise with great frequency." A. Turing
>
>
> [Non-text portions of this message have been removed]
>

#38108 From: "stefandk63" <stefan63@...>
Date: Wed Sep 3, 2008 6:37 am
Subject: interrupt priority "overrride"
stefandk63
Send Email Send Email
 
Hi , people,
I have keyboard scaning sequence inside TimerB interrupt.
This sequence is relative slow, so its possible to lose bit/symbol
in software UART ( tied to TimerA). My intention is to make follow:

TimerB_ISR:
   push r15
   ;...

   mov #keybard_scanproc,r15
   push r15
   push SR
   reti

keybard_scanproc:
   ;.....
   pop r15
   pop SR
   ret

Is this correct way?
regards

#38109 From: Anders Lindgren <Anders.lindgren@...>
Date: Wed Sep 3, 2008 9:31 am
Subject: Re: Static int declaration and initialization
rdogs_maint
Send Email Send Email
 
Hi!

Just to eliminate the obvious -- did you include the header file "stdio.h"?

If not, then you should have listened to the compiler warnings (they are
there for a reason). On the other hand, if you did include it you should
have included it in the example you posted here.

If we assume that that is not the issue, what is the value of the
variable "i" if you debug the application?

What settings do you use? (Optimization levels, data models etc.)

      -- Anders Lindgren, IAR Systems

Mirko Viviani wrote:
> Using IAR on a MSP430F1611 (MSP430 family) this piece of code does not work
> (printf will print something else than 23)
> I cannot split the inizialization from declaration (source code cannot be
> modified): any idea?
>
> static int i=23;
> void main()
> {
> printf("%d",i);
> }
>
> Obviously splitting initialization from declaration works.

--
Disclaimer: Opinions expressed in this posting are strictly my own and
not necessarily those of my employer.

#38110 From: "old_cow_yellow" <old_cow_yellow@...>
Date: Wed Sep 3, 2008 2:09 pm
Subject: Re: interrupt priority "overrride"
old_cow_yellow
Send Email Send Email
 
What you did is correct. But there are simpler ways to do it. For
example, you could have just include the keyboard scaning as part of
the timer isr. This saves execution time to do the pushes, pops and
extra return. (The code is shorter.)

--- In msp430@yahoogroups.com, "stefandk63" <stefan63@...> wrote:
>
> Hi , people,
> I have keyboard scaning sequence inside TimerB interrupt.
> This sequence is relative slow, so its possible to lose bit/symbol
> in software UART ( tied to TimerA). My intention is to make follow:
>
> TimerB_ISR:
>   push r15
>   ;...
>
>   mov #keybard_scanproc,r15
>   push r15
>   push SR
>   reti
>
> keybard_scanproc:
>   ;.....
>   pop r15
>   pop SR
>   ret
>
> Is this correct way?
> regards
>

#38111 From: Nav <nav.1058@...>
Date: Wed Sep 3, 2008 4:00 pm
Subject: Can any plz explain this
nav.1058
Send Email Send Email
 
Hiyaaaaa
I know C progrmming but could't understand this programmm,,
plz Explainnnn!!!!!!!!

Program 1

#include  <msp430x20x3.h>

void main(void)
{
  WDTCTL = WDTPW + WDTHOLD;                 // Stop watchdog
timer
  P1DIR |= 0x01;                            // Set
P1.0 to output direction
  SD16CTL = SD16REFON + SD16SSEL_1;         // 1.2V ref, SMCLK(what is
this?)
  SD16INCTL0 = SD16INCH_1;                  // A1+/- (what is
this?)
  SD16CCTL0 =  SD16UNI + SD16IE;            // 256OSR, unipolar,
interrupt   
                                        \
                                        \
    enable(what is this?)
  SD16AE = SD16AE2;                         // P1.1
A1+, A1- = VSS(what is this?)
  SD16CCTL0 |= SD16SC;                      // Set bit to
start conversion

  _BIS_SR(LPM0_bits + GIE);(what is this?)
}

#pragma vector = SD16_VECTOR
__interrupt void SD16ISR(void)
{
  if (SD16MEM0 < 0x7FFF)                   // SD16MEM0 > 0.3V?,
clears IFG
    P1OUT &= ~0x01;
  else
    P1OUT |= 0x01;
}



Navvvvv !




[Non-text portions of this message have been removed]

#38112 From: "old_cow_yellow" <old_cow_yellow@...>
Date: Wed Sep 3, 2008 4:25 pm
Subject: Re: Can any plz explain this
old_cow_yellow
Send Email Send Email
 
Knowing c programming helps. But it is neither necessary nor
sufficient. There is a lot to lean.

--- In msp430@yahoogroups.com, Nav <nav.1058@...> wrote:
>
> Hiyaaaaa
> I know C progrmming but could't understand this programmm,,
> plz Explainnnn!!!!!!!!
>
> Program 1
>
> #include  <msp430x20x3.h>
>
> void main(void)
> {
> Â  WDTCTL = WDTPW + WDTHOLD;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  // Stop
watchdog timer
> Â  P1DIR |=
0x01;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  // Set
P1.0 to output direction
> Â  SD16CTL = SD16REFON + SD16SSEL_1;Â Â Â Â Â Â Â Â  // 1.2V ref,
SMCLK(what is this?)
> Â  SD16INCTL0 = SD16INCH_1;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  //
A1+/- (what is this?)
> Â  SD16CCTL0 =Â  SD16UNI + SD16IE;Â Â Â Â Â Â Â Â Â Â Â  // 256OSR,
unipolar, interrupt  Â
>
                                       Â
                                       Â
  Â
enable(what is this?)
> Â  SD16AE = SD16AE2;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
// P1.1 A1+, A1- = VSS(what is this?)
> Â  SD16CCTL0 |= SD16SC;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  //
Set bit to start conversion
>
> Â  _BIS_SR(LPM0_bits + GIE);(what is this?)
> }
>
> #pragma vector = SD16_VECTOR
> __interrupt void SD16ISR(void)
> {
> Â  if (SD16MEM0 < 0x7FFF)Â Â Â Â Â Â Â Â Â Â  Â Â Â  Â Â Â  //
SD16MEM0 > 0.3V?, clears IFG
> Â Â Â  P1OUT &= ~0x01;
> Â  else
> Â Â Â  P1OUT |= 0x01;
> }
>
>
>
> Navvvvv !
>
>
>
>
> [Non-text portions of this message have been removed]
>

#38113 From: "Leon" <leon355@...>
Date: Wed Sep 3, 2008 5:30 pm
Subject: Re: Can any plz explain this
leon_heller
Send Email Send Email
 
----- Original Message -----
From: "Nav" <nav.1058@...>
To: <msp430@yahoogroups.com>
Sent: Wednesday, September 03, 2008 5:00 PM
Subject: [msp430] Can any plz explain this


Hiyaaaaa
I know C progrmming but could't understand this programmm,,
plz Explainnnn!!!!!!!!


Read the data sheet and the User's Guide.

Leon
--
Leon Heller
Amateur radio call-sign  G1HSM
Yaesu FT-817ND transceiver
Suzuki SV1000S motorcycle
leon355@...
http://www.geocities.com/leon_heller

#38114 From: "Ian Okey" <ian.okey@...>
Date: Wed Sep 3, 2008 6:22 pm
Subject: Re: Can any plz explain this
ian_okey
Send Email Send Email
 
2008/9/3 Nav <nav.1058@...>

> Hiyaaaaa
> I know C progrmming but could't understand this programmm,,
> plz Explainnnn!!!!!!!!
>
> Program 1
>
> #include  <msp430x20x3.h>
>
> void main(void)
> {
>   WDTCTL = WDTPW + WDTHOLD;                 // Stop watchdog timer
>   P1DIR |= 0x01;                            // Set P1.0 to output direction
>   SD16CTL = SD16REFON + SD16SSEL_1;         // 1.2V ref, SMCLK(what is
> this?)
>   SD16INCTL0 = SD16INCH_1;                  // A1+/- (what is this?)
>   SD16CCTL0 =  SD16UNI + SD16IE;            // 256OSR, unipolar,
> interrupt
>
> enable(what is this?)
>   SD16AE = SD16AE2;                         // P1.1 A1+, A1- = VSS(what is
> this?)
>   SD16CCTL0 |= SD16SC;                      // Set bit to start conversion
>
>   _BIS_SR(LPM0_bits + GIE);(what is this?)
> }
>
> #pragma vector = SD16_VECTOR
> __interrupt void SD16ISR(void)
> {
>   if (SD16MEM0 < 0x7FFF)                   // SD16MEM0 > 0.3V?, clears IFG
>     P1OUT &= ~0x01;
>   else
>     P1OUT |= 0x01;
> }
>
>
>
> Navvvvv !
>
>
> In addition to the other comments I believe that reading the "Janet and
> John" series of books might help you.
>


[Non-text portions of this message have been removed]

#38115 From: Steve Sabram <steve@...>
Date: Wed Sep 3, 2008 6:47 pm
Subject: Re: Can any plz explain this
steves95008
Send Email Send Email
 
Read the MSP430 Programmers Guide.  That will answer your questions.

Steve


Nav wrote:
>
> Hiyaaaaa
> I know C progrmming but could't understand this programmm,,
> plz Explainnnn!!!!!!!!
>
> Program 1
>
> #include  <msp430x20x3.h>
>
> void main(void)
> {
>   WDTCTL = WDTPW + WDTHOLD;                 // Stop watchdog timer
>   P1DIR |= 0x01;                            // Set P1.0 to output
> direction
>   SD16CTL = SD16REFON + SD16SSEL_1;         // 1.2V ref, SMCLK(what is
> this?)
>   SD16INCTL0 = SD16INCH_1;                  // A1+/- (what is this?)
>   SD16CCTL0 =  SD16UNI + SD16IE;            // 256OSR, unipolar,
> interrupt
>
> enable(what is this?)
>   SD16AE = SD16AE2;                         // P1.1 A1+, A1- =
> VSS(what is this?)
>   SD16CCTL0 |= SD16SC;                      // Set bit to start conversion
>
>   _BIS_SR(LPM0_bits + GIE);(what is this?)
> }
>
> #pragma vector = SD16_VECTOR
> __interrupt void SD16ISR(void)
> {
>   if (SD16MEM0 < 0x7FFF)                   // SD16MEM0 > 0.3V?, clears IFG
>     P1OUT &= ~0x01;
>   else
>     P1OUT |= 0x01;
> }
>
> Navvvvv !
>
> [Non-text portions of this message have been removed]
>
>

#38116 From: Alexander Espinosa <ilogic@...>
Date: Wed Sep 3, 2008 6:54 pm
Subject: Re: Can any plz explain this
ilogic
Send Email Send Email
 
Hi, you need to read the  datasheet for your microcontroller.
you'll see the meaning for each register there, including use of pins for ADC
converter and use of other peripherals....
 




[Non-text portions of this message have been removed]

#38117 From: "Dan Muzzey" <dan.muzzey@...>
Date: Wed Sep 3, 2008 7:18 pm
Subject: RE: Re: interrupt priority "overrride"
muzzey314
Send Email Send Email
 
There is one statement below that worries me.  Interrupts are more
difficult to debug and "interrupt" the normal flow of the program.  It
has always been my view that interrupts should only do the absolute
minimum needed.  Usually this is setting a flag, moving the contents of
a register, or incrementing a pointer.  Something simple.  No math
allowed, nothing that consumes time.  This isn't always possible but if
your code forces you to reenable interrupts while in the ISR then
perhaps you should take a step back and evaluate how you are doing what
you are doing.  There is likely a simpler more predictable way to do it.
The line I have trouble with is

This sequence is relative slow

This tells me that this does not belong in an interrupt.

Dan

________________________________

From: msp430@yahoogroups.com [mailto:msp430@yahoogroups.com] On Behalf
Of old_cow_yellow
Sent: Wednesday, September 03, 2008 9:10 AM
To: msp430@yahoogroups.com
Subject: [msp430] Re: interrupt priority "overrride"

What you did is correct. But there are simpler ways to do it. For
example, you could have just include the keyboard scaning as part of
the timer isr. This saves execution time to do the pushes, pops and
extra return. (The code is shorter.)

--- In msp430@yahoogroups.com <mailto:msp430%40yahoogroups.com> ,
"stefandk63" <stefan63@...> wrote:
>
> Hi , people,
> I have keyboard scaning sequence inside TimerB interrupt.
> This sequence is relative slow, so its possible to lose bit/symbol
> in software UART ( tied to TimerA). My intention is to make follow:
>
> TimerB_ISR:
> push r15
> ;...
>
> mov #keybard_scanproc,r15
> push r15
> push SR
> reti
>
> keybard_scanproc:
> ;.....
> pop r15
> pop SR
> ret
>
> Is this correct way?
> regards
>



[Non-text portions of this message have been removed]

#38118 From: "Tom Baugh" <tom@...>
Date: Wed Sep 3, 2008 7:27 pm
Subject: Re: interrupt priority "overrride"
softbaugh
Send Email Send Email
 
Stefan,

I agree with OCY and Dan and their architectural comments about this
program.  I think from what you've said that this is a perfect example
of a program that needs to be written using an interrupt-driven state
machine.  We discuss this approach in detail in our book MSP430 State
Machine Programming, available on amazon.com:

http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%
2Fwww.amazon.com%2FMSP430-State-Machine-Programming-ES2274%2Fdp%
2F0975475924%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1214397954%26sr%3D8-
1&tag=softcom-20&linkCode=ur2&camp=1789&creative=9325

This book is written for our ES2274 board, but the approach given is
suitable for any MSP430 board with suitable porting of the examples, of
course.

Tom

#38119 From: "Tom Baugh" <tom@...>
Date: Wed Sep 3, 2008 7:33 pm
Subject: Re: Can any plz explain this
softbaugh
Send Email Send Email
 
Nav,

I think a great place to start to help understanding that sample
program is to read the new book, MSP430 Microcontroller Basics, by
John Davies:

http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%
2Fwww.amazon.com%2FMSP430-Microcontroller-Basics-John-Davies%2Fdp%
2F0750682760%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1220014595%26sr%3D8-
2&tag=softcom-20&linkCode=ur2&camp=1789&creative=9325

After that book, you will then be ready to use the state-based
approach that we have used with the MSP430 world for a decade.  This
approach is provided in detail in our book MSP430 State Machine
Programming:

http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%
2Fwww.amazon.com%2FMSP430-State-Machine-Programming-ES2274%2Fdp%
2F0975475924%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1214397954%26sr%3D8-
1&tag=softcom-20&linkCode=ur2&camp=1789&creative=9325

If those links don't work, then search amazon.com for MSP430 as one
word.  John's book and ours will be at the top of the list.  The pair
of these books, studied intently for a few weeks, will fill in a lot
of the gaps.  Also, after working the exercises in our book you will
have a level of architectural expertise that would otherwise take
years to learn.  This is like taking a MSP430 course in a few weeks
for less than $100.

You can find reviews of our book elsewhere on this group, but let me
know if you have any questions.

Tom

#38120 From: "Chinmay Manohar" <manohar.chinmay@...>
Date: Wed Sep 3, 2008 9:06 pm
Subject: help needed with interfacing 3-axis accelerometer with MSP430F2013
manoharcu
Send Email Send Email
 
wondering if anyone has tried using the SD16 on MSP430F2013 configured
to do AtoD conversion on multiple (external) input channels. So far
I've been able to read a single axis on the accelerometer, reading all
3 axes in sequential pattern has not been possible so far. any help /
guidance is highly appreciated...

thanks
C

#38121 From: "Dan Muzzey" <dan.muzzey@...>
Date: Wed Sep 3, 2008 10:17 pm
Subject: RE: Re: Can any plz explain this
muzzey314
Send Email Send Email
 
Tom

While I do appreciate the advice that you put forth on the mailing list
and I do value your experience and knowledge, the continuing
self-promotion is starting to wear thin.  In the case below, you do not
actually offer advice but instead just ask people to buy your book.  It
is one thing to suggest a book once or twice.  I think there were three
cases today alone where you recommended buying the book without actually
offering advice.

Respectfully

Dan

________________________________

From: msp430@yahoogroups.com [mailto:msp430@yahoogroups.com] On Behalf
Of Tom Baugh
Sent: Wednesday, September 03, 2008 2:33 PM
To: msp430@yahoogroups.com
Subject: [msp430] Re: Can any plz explain this

Nav,

I think a great place to start to help understanding that sample
program is to read the new book, MSP430 Microcontroller Basics, by
John Davies:

http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%
<http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%25>
2Fwww.amazon.com%2FMSP430-Microcontroller-Basics-John-Davies%2Fdp%
2F0750682760%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1220014595%26sr%3D8-
2&tag=softcom-20&linkCode=ur2&camp=1789&creative=9325

After that book, you will then be ready to use the state-based
approach that we have used with the MSP430 world for a decade. This
approach is provided in detail in our book MSP430 State Machine
Programming:

http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%
<http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%25>
2Fwww.amazon.com%2FMSP430-State-Machine-Programming-ES2274%2Fdp%
2F0975475924%3Fie%3DUTF8%26s%3Dbooks%26qid%3D1214397954%26sr%3D8-
1&tag=softcom-20&linkCode=ur2&camp=1789&creative=9325

If those links don't work, then search amazon.com for MSP430 as one
word. John's book and ours will be at the top of the list. The pair
of these books, studied intently for a few weeks, will fill in a lot
of the gaps. Also, after working the exercises in our book you will
have a level of architectural expertise that would otherwise take
years to learn. This is like taking a MSP430 course in a few weeks
for less than $100.

You can find reviews of our book elsewhere on this group, but let me
know if you have any questions.

Tom



[Non-text portions of this message have been removed]

#38122 From: Juan Franco <jumafra77@...>
Date: Wed Sep 3, 2008 10:18 pm
Subject: Re: help needed with interfacing 3-axis accelerometer with MSP430F2013
jumafra77
Send Email Send Email
 
--- On Wed, 9/3/08, Chinmay Manohar <manohar.chinmay@...> wrote:

> From: Chinmay Manohar <manohar.chinmay@...>
> Subject: [msp430] help needed with interfacing 3-axis accelerometer with
MSP430F2013
> To: msp430@yahoogroups.com
> Date: Wednesday, September 3, 2008, 2:06 PM
> wondering if anyone has tried using the SD16 on MSP430F2013
> configured
> to do AtoD conversion on multiple (external) input
> channels. So far
> I've been able to read a single axis on the
> accelerometer, reading all
> 3 axes in sequential pattern has not been possible so far.
> any help /
> guidance is highly appreciated...
>
> thanks
> C

Hello C.
I am using an F2013 for converting 3 channels: 2 bipolar differential, 1
unipolar.
First of all, you have to set P1SEL bits to 1 for the input pins of the SD16
channels being used. Then, in order for the SD16 to work correctly, you must
only enable the analog input on SD16AE register for the channel being converted.
Also, since you are switching channels you must set SD16INTDLY_X to 3 or 4, in
order to obtain a valid result. Finally, if you are using the internal
refference generator AND channel 1 in differential mode (e.g A1+ - A1-), P1SEL.3
must be set to 0, otherwise, the reference voltage will be buffered on P1.3 pin
and might damage whatever you are meassuring. That's all I can think of.
Kind regards,
Juan

#38123 From: "abufadel" <amer@...>
Date: Wed Sep 3, 2008 11:13 pm
Subject: IAR startup workspace list
abufadel
Send Email Send Email
 
How can I clear the workspace list when IAR starts up?

Thank you,

A

#38124 From: Nav <nav.1058@...>
Date: Thu Sep 4, 2008 12:09 am
Subject: Re: Re: Can any plz explain this
nav.1058
Send Email Send Email
 
Hiyaa,,,
I was going through the example program from TI about use of ADC,
In this  program, their is one instruction.
WDTCTL = WDT_MDLY_32;                     // WDT Timer
interval
I have gone through User guide but didnt get how watchdog interval is set,
actually what is this WDT_MDLY_32.
Plz help me outttttt....
Navvvvv !

-




[Non-text portions of this message have been removed]

#38125 From: "Paul Curtis" <plc@...>
Date: Thu Sep 4, 2008 12:24 am
Subject: RE: Re: Can any plz explain this
paul_l_curtis
Send Email Send Email
 
Hi,

> Hiyaa,,,
> I was going through the example program from TI about use of ADC,
> In this  program, their is one instruction.
> WDTCTL = WDT_MDLY_32;                     // WDT Timer interval
> I have gone through User guide but didnt get how watchdog interval is set,
> actually what is this WDT_MDLY_32.
> Plz help me outttttt....
> Navvvvv !

You seem to have a stuck-key problem with your keyboard.  I suggest you get a
can of air and give your keyboard a good blow.

--
Paul Curtis, Rowley Associates Ltd   http://www.rowley.co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors

#38126 From: Onestone <onestone@...>
Date: Thu Sep 4, 2008 1:17 am
Subject: Re: help needed with interfacing 3-axis accelerometer with MSP430F2013
onestone_apc
Send Email Send Email
 
For most accelerometer applications the SD16 is not a good choice, since
the measurements are not even close to being time aligned. This slew
means that the motion relationships between axes cannot be relied upon.
You are better off using either a digital output sensor, such as the PWM
output, or one with a serial output, since in the first case the micro
in edge trigger mode will store edges simultaneously, even though they
are not accessed precisely together, while in the serial systems most of
them convert sycnhronously so that data is time aligned. The downside to
most serial systems is that they limit each result to 8 bits. The next
best option would be to use a device with a SAR converter, such as the
2012,. Even though these are not sampled synchronously, so there is
still some time skew, the delay between samples can be much shorter than
with the Sd16 module, for the same resolution.

if you're stuck wit the 2013 then follow Juans recommendations.

Al

Chinmay Manohar wrote:

>wondering if anyone has tried using the SD16 on MSP430F2013 configured
>to do AtoD conversion on multiple (external) input channels. So far
>I've been able to read a single axis on the accelerometer, reading all
>3 axes in sequential pattern has not been possible so far. any help /
>guidance is highly appreciated...
>
>thanks
>C
>
>
>------------------------------------
>
>To unsubscribe from the msp430 group, send an email to:
>msp430-unsubscribe@egroups.com
>
>Yahoo! Groups Links
>
>
>
>
>
>
>

#38127 From: "paddu.koti" <paddu.koti@...>
Date: Thu Sep 4, 2008 3:01 am
Subject: Re: Can any plz explain this
paddu.koti
Send Email Send Email
 
--- In msp430@yahoogroups.com, "Paul Curtis" <plc@...> wrote:
>
> Hi,
>
> > Hiyaa,,,
> > I was going through the example program from TI about use of ADC,
> > In this  program, their is one instruction.
> > WDTCTL = WDT_MDLY_32;                     // WDT Timer interval
> > I have gone through User guide but didnt get how watchdog
interval is set,
> > actually what is this WDT_MDLY_32.
> > Plz help me outttttt....
> > Navvvvv !
>
> You seem to have a stuck-key problem with your keyboard.  I
suggest you get a can of air and give your keyboard a good blow.
>
> --
> Paul Curtis, Rowley Associates Ltd   http://www.rowley.co.uk
> CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
>
Hi,

The WatchDog module can be configured as either a watchdog or a
interval timer,WDT_MDLY_32 provides 32ms interval.
If you are using IAR embedded system,you can find the watchdog timer
definition in the .h header files
C:\Program Files\IAR Systems\Embedded Workbench 5.0\430\inc

If need to learn MSP430,go through the online training.
http://training.ti.com/courses/CourseCatalog.asp?iGID=1062

#38128 From: "keller.lima" <keller.lima@...>
Date: Thu Sep 4, 2008 3:18 am
Subject: Doubts about FFT
keller.lima
Send Email Send Email
 
Friends,

    I read the application note about The MSP430 Hardware Multiplier:

http://www.microcontrol.cn/datasheet/MSP430/MSP430AN/slaa042.pdf

    I understand many things but I have a question: what is the FFT
results format? The data results are in the format Tension x Freq?

    I need to know what are the predominant frequencies of the signal.

Please help a desperate student,

Thanks,

#38129 From: Raymond Sun <raymond9804@...>
Date: Thu Sep 4, 2008 12:09 am
Subject: RS232 with MSP-EXP430FG4618 Experimenter Board
raymond9804
Send Email Send Email
 
Hi,
 
Would you please provide more information about how to use the RS232 in
MSP-EXP430FG4618 Experimenter Board?
The slau214a.pdf document on www.ti.com did not give enough.
 
Can I use example code in slac129a.zip for MSP430FG4618? But how can I
relate its pins to the RS232 in MSP-EXP430FG4618 Experimenter Board?
Thanks,
 
Raymond



       __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your
favourite sites. Download it now at
http://ca.toolbar.yahoo.com.

[Non-text portions of this message have been removed]

Messages 38100 - 38129 of 51702   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help