
nickn
Members-
Content Count
81 -
Joined
-
Last visited
-
Days Won
1
nickn last won the day on October 11 2016
nickn had the most liked content!
About nickn
-
Rank
Level 1
-
I have several Pi's around the house. My latest project involving a Pi is playing around with automation and temperature logging. I have an esp8266 board with a temperature sensor board connected that sends a temperature reading to my Pi every so often. Plan to get back to working on it soon.
-
Code breaks when optimization is used (msp430-gcc)
nickn replied to nickn's topic in Compilers and IDEs
Thanks for the answer and suggestion. I shall go see if that works. UPDATE: Your suggestion worked -
Up until now I've been using Energia for projects that required the use of UART, but I decided to get my hands dirty and just use the msp430-gcc toolchain. The below program is simply a test program I made to send a number over UART at 9600. when I compile it without optimization, everything works just fine("msp430-gcc -mmcu=msp430g2553 -g -o adc adc.c"), but when I use an optimization flag such as -Os, -O2, or -O1 it totally breaks my code. What am I doing wrong in my code that's causing it to break when I try to do any optimization? I'm using msp430-gcc version 4.6.3 20120301
-
Just got the email today. "Beginning in November, a valid business email domain will be required to order free samples on TI.com. You are no longer able to use an university email domain when ordering samples online. You may, however, purchase small quantities (1
-
Thanks for the answer, it' making a bit more sense to me now.
-
Glad to see that the forums are back up I've been trying to figure out how to configure the DCO to get an MCLK frequency of 25 MHz. I've read some guides about DCO configuration but haven't found much of anything (apart from the datasheet) that explains configuring the FLL to get accurate frequencies. I've been pointed to using UCS_LFXT1Start(), UCS_clockSignalInit(), and UCS_initFLLSettle() but have never used those functions before. Of course, it couldn't have been as easy as the G2553 and just use the calibrated clock configuration setting.
-
Ok I'm now reading the datasheet and looking at your code. It appears that you need to sent 2 bytes of data before you send the start/sync command for continuous conversion mode. The first byte is the WREG instruction 01000100 to point to the second register then issue 00000100 to set continuous conversion mode. I could be wrong, but that's how I'm interpreting it. By the way, you also need to configure another register to use your external reference, but at this point I would recommend keeping it simple and just stick to the internal reference.
-
One problem with your configuration is that since you are powering the adc with 5v, the DOUT pin is close to 5v and the msp430g2553 isn't 5 volt tolerant. From looking at the datasheet, you should not have any problems powering the adc chip with 3.3v which would solve that issue. Have you grounded the CLK pin (not SCLK) on the adc?
-
I wonder why they didn't opt to go with a cheaper, slower shipping option instead. I can wait a week to receive my items.
-
TI now will require .EDU or corporate Email addresses for samples.
nickn replied to abecedarian's topic in Fireside Chat
I just got the email today that my .edu email account can still be used to obtain samples after getting the earlier email the other day saying that it could no longer be used. -
@@Fred it's not so much that I have a particular fear of SMD packages, it's more about the convince for me to throw components on a breadboard easy. I love the flexibility to build and teardown easily (although once you circuit has more than a few components, things can start to get a little hectic.) What you mention above are certainly options, but breakout boards and such mean shelling out additional cash (and as I don't currently have any sort of steady job, I have to watch my spending) and my soldering equipment is terrible. With that all said, I still should pick up some perfboard s
-
As a previous poster mentioned, I too would love to see DIP packages for the newer chips.