Your advise regarding microcontrollers for small projects.

be80be

Joined Jul 5, 2008
2,072
You can use Mplab-x now to write code in C for the AVR I have not tried it It's kind of new but the new Ide has AVr included.
I have used a $2 clone even made a programmer for the 328 and used the gcc that comes with arduino is called without the core
to code in C kind of cool cause you can then see the real speed you can get with pwm even a toggle.
I wish I started in C 14 years ago LOL. I got a lot to learn about C lol
Screenshot from 2018-06-16 20-38-44.png
 

rsjsouza

Joined Apr 21, 2014
383
Late to the party and new around here, but my 2 cents:

I have experience with the TI MSP430G2 family and, given their memory is very small (especially on the cheapest MSP430G2001), I really enjoy the free full compiler (including optimizer) built into the CCS GUI - you can put a lot more with whole program optimization (-O4). Also, they have multiple levels of printf(), which can use very small memory footprints (useful for debugging) - although in this particular family even the smaller level can be significant.

As with any Eclipse-based GUI, CCS is really big and there is some learning curve to do, but the learning can be used with other Eclipse-based environments as well.

Regardless of what device you use, one tip I usually follow is to start with the largest variant on the family so you don't have to worry if the program "fits" while trying to learn a new device. Another tip is to get a good working UART printf example code as a substitute for printf() - there is one on the Launchpad board (despite its UART being sometimes finicky).

The device pages have large comparison tables across variants of the same family:
Smaller footprint: http://www.ti.com/product/MSP430G2231#parametrics
Larger footprint: http://www.ti.com/product/MSP430G2553#parametrics
 
Top