> Sorry about acting noob. But here i am, just getting
started on the
> chip. I was told to use this chip and i hardly have any knowledge on
> embedding system.
FP,
Don't get discouraged, we all started somewhere.
We have written an introductory book for learning how to write MSP430
applications, and making the most of the ultra-low-power features. It
is titled MSP430 State Machine Programming with the ES2274, and is
available on amazon.com:
If that link doesn't work, then search amazon for MSP430 as one word
and choose our green and white title.
This book is written for our ES2274, but the principles in it are
applicable to any MSP430 design. It is also written for C with the
IAR Kickstart.
The book is formatted as a series of fifteen tutorial sessions, with
solved exercises at the end of each chapter. Consider it a semester
course in the MSP430!
At a more basic level, you can pick up a copy of John Davies' book,
MSP430 Microcontroller Basics. His book explains a lot of background
information that sets the foundation for the material in ours. These
books are complementary, so don't worry about overlap. His is also
available on amazon.com:
When you are done working through the tutorials, and the solved
exercises at the end of each chapter, you will be well on your way to
understanding more about the problem you are having now, and be a lot
farther ahead than if you took months trying to figure things out the
hard way.
The problem is that you appear to lack even the most rudimentary
knowledeg of electronics. If you've 'been told to use this chip'
by a
teacher then they should be providing, or have provided the right
guidance, and should have been able to assess your ability to actually
achieve something. if you've 'been told to use this chip' by an
employer then you have either misled them as to your abilities, or they
have ludicrous expectations. either way you are not prepared to tackle
the task at hand. Your current knowledge is totally inadequate for you
to be able to understand any help you are given here. Your lack of
knowledge has nothing to do with embedded systems. you lack the most
basic electronics knowledge. If this isn't a troll, and you are serious
about this then you need to go away and study the technical data sheet
for the specific micro you are hoping to work with. Then study the
Family user Guide for that family of devices. The electrical
specifications of every part and each sub-system and peripheral are
quite well documented. if you cannot understand these then you need to
go back to electronis 101 and start all over again.
Al
f0rep1ay wrote:
>Sorry about acting noob. But here i am, just getting
started on the
>chip. I was told to use this chip and i hardly have any knowledge on
>embedding system. Thought negative was possible due to 2's complement.
>
>--- In m..., Onestone wrote:
>
>
>>You need to go away and study for about two years before coming here
>>
>>
>and
>
>
>>asking such stupid questions. Normally I try to think that there isn't
>>such a thing as a stupid question, but occasionally some people come
>>along who should never have been allowed near an engineering class, and
>>here I'll make an exception. These questions are so basic, and the
>>answers should be so obvious even to a first term electronics student,
>>that it sounds very troll like to me. Read the manual, read the data
>>sheet, learn a few very basic principles of electronics and then try to
>>attempt to actually design something. At the moment you haven't a
>>snowballs chance in hell of even understanding the simplest answers
>>
>>
>that
>
>
>>you have already been given.
>>
>>Al
>>
>>f0rep1ay wrote:
>>
>>
>>
>>>So u mean that if i set my Veref and V-eref to 2.5 V and -2.5 V
>>>respectively. I would be able to get the values. And just a check, my
>>>timer sampling rate isit at 1 KHz? Cos i set it to TACCR0 = 1000
>>>
>>>--- In m..., "Dan Muzzey" wrote:
>>>
>>>
>>>
>>>
>>>>Are your trying to measure a negative signal with an A/D converter
>>>>
>>>>
>>>>
>>>>
>>>that
>>>
>>>
>>>
>>>
>>>>only goes between Vref and zero? Take a step back and ask yourself
>>>>
>>>>
>>>>
>>>>
>>>if
>>>
>>>
>>>
>>>
>>>>that should work.
>>>>
>>>>________________________________
>>>>
>>>>From: m... [mailto:m...] On
>>>>
>>>>
>>>>
>>>>
>>>Behalf
>>>
>>>
>>>
>>>
>>>>Of glgoh@
>>>>Sent: Friday, September 12, 2008 10:57 AM
>>>>To: m...
>>>>Subject: [msp430] Re: ADC10 unknown results?
>>>>
>>>>But my signal has negative. so what should i do den?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>>
Reply by f0rep1ay●September 12, 20082008-09-12
okay. i kinda get what you mean. By setting TACCR0 to 1000, what does
it mean? And ADC10AE0 |= 0x08, did i set it to A3. I know A3 is
selected in ADC10CTL0 but why in ADC10AE0, that it is needed to be set
again?
for (;;)
{
ADC10CTL0 &= ~ENC;
while (ADC10CTL1 & BUSY); // Wait if ADC10 core is
active
ADC10SA = 0x200; // Data buffer start
ADC10CTL0 |= ENC + ADC10SC; // Sampling and conversion
start
__bis_SR_register(CPUOFF + GIE); // LPM0, ADC10_ISR will
force exit
printf("%d\n" , ADC10MEM);
}
}
Reply by Dan Muzzey●September 12, 20082008-09-12
Oh man, you truly need to back up. Go back to whoever gave you the
assignment and tell them you are in so deep over your head that they are
gonna start shoveling the dirt on top.
And Al....Tell us how you really feel :-)
________________________________
From: m... [mailto:m...] On Behalf
Of f0rep1ay
Sent: Friday, September 12, 2008 11:35 AM
To: m...
Subject: [msp430] Re: ADC10 unknown results?
Sorry about acting noob. But here i am, just getting started on the
chip. I was told to use this chip and i hardly have any knowledge on
embedding system. Thought negative was possible due to 2's complement.
--- In m... ,
Onestone wrote: >
> You need to go away and study for about two years before coming here and > asking such stupid questions. Normally I try to think
that there isn't
> such a thing as a stupid question, but occasionally
some people come
> along who should never have been allowed near an engineering class, and > here I'll make an exception. These questions are
so basic, and the
> answers should be so obvious even to a first term electronics student,
> that it sounds very troll like to me. Read the
manual, read the data
> sheet, learn a few very basic principles of electronics and then try to > attempt to actually design something. At the moment
you haven't a
> snowballs chance in hell of even understanding the simplest answers that > you have already been given.
>
> Al
>
> f0rep1ay wrote:
>
> >So u mean that if i set my Veref and V-eref to 2.5 V and -2.5 V
> >respectively. I would be able to get the values. And just a check, my
> >timer sampling rate isit at 1 KHz? Cos i set it to
TACCR0 = 1000
> >
> >--- In m... , "Dan Muzzey" wrote: > >
> >
> >>Are your trying to measure a negative signal with an A/D converter
> >>
> >>
> >that
> >
> >
> >>only goes between Vref and zero? Take a step back and ask yourself
> >>
> >>
> >if
> >
> >
> >>that should work.
> >>
> >>________________________________
> >>
> >>From: m... [mailto:m... ] On > >>
> >>
> >Behalf
> >
> >
> >>Of glgoh@
> >>Sent: Friday, September 12, 2008 10:57 AM
> >>To: m...
> >>Subject: [msp430] Re: ADC10 unknown results?
> >>
> >>But my signal has negative. so what should i do den?
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> >
> >
> >
> >
Reply by f0rep1ay●September 12, 20082008-09-12
Sorry about acting noob. But here i am, just getting started on the
chip. I was told to use this chip and i hardly have any knowledge on
embedding system. Thought negative was possible due to 2's complement.
--- In m..., Onestone wrote: >
> You need to go away and study for about two years before coming here and > asking such stupid questions. Normally I try to think
that there isn't
> such a thing as a stupid question, but occasionally some people come
> along who should never have been allowed near an engineering class, and
> here I'll make an exception. These questions are so basic, and the
> answers should be so obvious even to a first term electronics student,
> that it sounds very troll like to me. Read the manual, read the data
> sheet, learn a few very basic principles of electronics and then try to
> attempt to actually design something. At the moment you haven't a
> snowballs chance in hell of even understanding the simplest answers that > you have already been given.
>
> Al
>
> f0rep1ay wrote:
>
> >So u mean that if i set my Veref and V-eref to 2.5 V and -2.5 V
> >respectively. I would be able to get the values. And just a check, my
> >timer sampling rate isit at 1 KHz? Cos i set it to TACCR0 = 1000
> >
> >--- In m..., "Dan Muzzey" wrote:
> >
> >
> >>Are your trying to measure a negative signal with an A/D converter
> >>
> >>
> >that
> >
> >
> >>only goes between Vref and zero? Take a step back and ask yourself
> >>
> >>
> >if
> >
> >
> >>that should work.
> >>
> >>________________________________
> >>
> >>From: m... [mailto:m...] On
> >>
> >>
> >Behalf
> >
> >
> >>Of glgoh@
> >>Sent: Friday, September 12, 2008 10:57 AM
> >>To: m...
> >>Subject: [msp430] Re: ADC10 unknown results?
> >>
> >>But my signal has negative. so what should i do den?
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> >
> >
> >
> >
Reply by Dan Muzzey●September 12, 20082008-09-12
No.
That is unless you want to destroy the chip.
Follow these steps:
1. Get the data sheet.
2. Look up input ranges.
3. Realize that -1V is less than 0V
4. Design a circuit that will do what you need to do.
________________________________
From: m... [mailto:m...] On Behalf
Of f0rep1ay
Sent: Friday, September 12, 2008 11:14 AM
To: m...
Subject: [msp430] Re: ADC10 unknown results?
So u mean that if i set my Veref and V-eref to 2.5 V and -2.5 V
respectively. I would be able to get the values. And just a check, my
timer sampling rate isit at 1 KHz? Cos i set it to TACCR0 = 1000
--- In m... , "Dan
Muzzey" wrote: >
> Are your trying to measure a negative signal with an A/D converter that > only goes between Vref and zero? Take a step back and
ask yourself if > that should work.
>
> ________________________________
>
> From: m... [mailto:m... ] On
Behalf > Of glgoh@...
> Sent: Friday, September 12, 2008 10:57 AM
> To: m...
> Subject: [msp430] Re: ADC10 unknown results?
>
> But my signal has negative. so what should i do den?
>
>
>
Reply by f0rep1ay●September 12, 20082008-09-12
So u mean that if i set my Veref and V-eref to 2.5 V and -2.5 V
respectively. I would be able to get the values. And just a check, my
timer sampling rate isit at 1 KHz? Cos i set it to TACCR0 = 1000
--- In m..., "Dan Muzzey" wrote: >
> Are your trying to measure a negative signal with an A/D converter that > only goes between Vref and zero? Take a step back
and ask yourself if > that should work.
>
> ________________________________
>
> From: m... [mailto:m...] On Behalf > Of glgoh@...
> Sent: Friday, September 12, 2008 10:57 AM
> To: m...
> Subject: [msp430] Re: ADC10 unknown results?
>
> But my signal has negative. so what should i do den?
>
>
>
Reply by Dan Muzzey●September 12, 20082008-09-12
Are your trying to measure a negative signal with an A/D converter that
only goes between Vref and zero? Take a step back and ask yourself if
that should work.
________________________________
From: m... [mailto:m...] On Behalf
Of g...@hotmail.com
Sent: Friday, September 12, 2008 10:57 AM
To: m...
Subject: [msp430] Re: ADC10 unknown results?
But my signal has negative. so what should i do den?
Reply by glgo...@hotmail.com●September 12, 20082008-09-12
But my signal has negative. so what should i do den?
Reply by aschuh●September 12, 20082008-09-12
You need to connect both grounds. Signalground and Vref ground on your
MSP430. The absolut maximum inputvoltage of the ADC10 is 3.6V.
So your inputsignal needs to be between 0V and 3.6V, no negative
Voltage allowed!
--- In m..., glgoh@... wrote: >
> What do you mean needs to be between Vref and Gnd?
>
> >You should see nothing but junk without common grounds.
> >Your input needs to be between Vref and Gnd.
>