Re: Re: error #20: identifier "TA0CCTL0_bit" is undefined....help on code composer
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.discuss |
|---|---|
| Message-ID | <CABROLXueeUSo5in_h660DKchy=GqUqChUnxmqj-uVp2y5VjUgg@mail.gmail.com> |
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 On Wed, Dec 10, 2014 at 6:24 AM, [email protected] [msp430] < [email protected]> wrote: > > > 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.... > > -- Thomas J. Grajewski