Reply by "Jak...@gmail.com [msp430]" December 10, 20142014-12-10
Hi All,

I used code composer for years with no problem at all, so I highly doubt it
has anything to do with which IDE you select.

I want to expand on something Emmett said about mathematical calculations.
A good chunk of people, including myself for a while, do not realize how
expensive addition/multiplication is for a tiny microprocessor. You should
always try to use bit manipulation before any mathematical calculations.
For example say you want to sample your ADC (analogue to digital converter)
200 times and then divide the sample by 200 to get a more filtered result.
In reality it is most likely faster to sample 256 time and bit shift by 8.
In my original code, when I worked with the msp430 and developed a force
sensor using the 2553, just switching all my mathematical calculations to
bit shifts literally cut seconds off of my run time for certain interrupts,
which in turn increased my battery life.

Cheers,
Jake

Beginning Microcontrollers with the MSP430

Reply by "ted...@yahoo.com [msp430]" December 10, 20142014-12-10
Thanks, your suggestion was a good solution for that part of the program as those particular errors disappeared. However I am still having a problem with the signal-(for temperature) from the transistors base being input. I will do some more troubleshooting on my end. Perhaps IAR would be a better selection for compiling rather than code composer.

Thanks
Ted

P<S< it was somewhat rewarding to actually see the 7-segment LED's working....
Reply by "cha...@finitemonkeys.com [msp430]" December 9, 20142014-12-09
http://forum.allaboutcircuits.com/threads/msp430-multiplexed-7-segment-displays-errors.87703/
Reply by "'Re...@missouristate.edu [msp430]" December 9, 20142014-12-09
I don't use Code Composer nor have I used the G2553, but I see some variation in your code below which might help answer your questions.

I don't see _bit used anywhere else, but I do see:

ADC10CTL0 |= ADC10SHT_3 + ADC10ON + MSC;

(which BTW is poor practice; | should replace +)

Perhaps you should have:

TA0CCTL0 |= CCIE ;

Emmett Redd Ph.D. mailto:E...@missouristate.edu
Professor (417)836-5221
Department of Physics, Astronomy, and Materials Science
Missouri State University Fax (417)836-6226
901 SOUTH NATIONAL Lab (417)836-3770
SPRINGFIELD, MO 65897 USA Dept (417)836-5131

In statesmanship get the formalities right, never mind about the moralities. -- Mark Twain.
Reply by "ted...@yahoo.com [msp430]" December 9, 20142014-12-09
I am using the msp430g2553....

I have enclosed the complete program below.....I believe the original software used iar to compile using "io430.h" header which I cannot use in code composer. I am new at this and am struggling with final project for a class. I have two marked lines with errors with ****** after //....

Thanks Ted
Reply by "Ahm...@yahoo.com [msp430]" December 9, 20142014-12-09
G2553
Reply by "'Re...@missouristate.edu [msp430]" December 9, 20142014-12-09
What variant of the MSP430 are you using?

Emmett Redd, Ph.D., Professor mailto:E...@MissouriState.Edu
Physics, Astronomy, and Materials Science Office: 417-836-5221
Missouri State University Dept: 417-838-5131
901 S NATIONAL AVENUE FAX: 417-836-6226
SPRINGFIELD, MO 65897 USA Lab: 417-836-3770

It is clear that thought is not free if the profession of certain opinions make it impossible to earn a living. -- Bertrand Russell
Reply by "ted...@yahoo.com [msp430]" December 9, 20142014-12-09
error code in these lines???
(error #20: identifier "TA0CCTL0_bit" is undefined)-----line one
(error #135: expected a field name)

TA0CCTL0_bit.CCIE = 1; // enable timer interrupts
__enable_interrupt(); // set GIE in SR

What am I missing....???

Thanks

Ted