Author Topic: How do you learn to program mcu's?  (Read 7027 times)

0 Members and 1 Guest are viewing this topic.

Offline Dylon124Topic starter

  • Contributor
  • Posts: 10
  • Country: us
How do you learn to program mcu's?
« on: October 07, 2013, 01:14:27 am »
In general how do you guys learn to program anything. What steps do you take to learn how to program mcu's?
 

Offline Dave

  • Super Contributor
  • ***
  • Posts: 1353
  • Country: si
  • I like to measure things.
Re: How do you learn to program mcu's?
« Reply #1 on: October 07, 2013, 01:19:55 am »
So, how many more meaningless threads are you planning to start today? :-//
<fellbuendel> it's arduino, you're not supposed to know anything about what you're doing
<fellbuendel> if you knew, you wouldn't be using it
 

Offline Mr Smiley

  • Frequent Contributor
  • **
  • Posts: 324
  • Country: gb
Re: How do you learn to program mcu's?
« Reply #2 on: October 07, 2013, 01:24:47 am »
He's gone past his required 5  :-DD

Not that anybody's noticed   :palm:

 :)
There is enough on this planet to sustain mans needs. There will never be enough on this planet to sustain mans greed.
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8550
  • Country: us
    • SiliconValleyGarage
Re: How do you learn to program mcu's?
« Reply #3 on: October 07, 2013, 01:35:32 am »
In general how do you guys learn to program anything. What steps do you take to learn how to program mcu's?
i generally begin by applying power to the chip ... the rest follows afterwards.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline Mr Smiley

  • Frequent Contributor
  • **
  • Posts: 324
  • Country: gb
Re: How do you learn to program mcu's?
« Reply #4 on: October 07, 2013, 01:39:50 am »
A data sheet might help  :-/O

 :)
There is enough on this planet to sustain mans needs. There will never be enough on this planet to sustain mans greed.
 

Offline adam1213

  • Regular Contributor
  • *
  • Posts: 120
  • Country: au
Re: How do you learn to program mcu's?
« Reply #5 on: October 07, 2013, 01:57:19 am »
Try listening to suggestions when you last asked a similar question https://www.eevblog.com/forum/beginners/do-you-guys-know-where-i-learn-to-write-c/msg254381/
 

Offline Maximus64

  • Newbie
  • Posts: 9
Re: How do you learn to program mcu's?
« Reply #6 on: October 07, 2013, 02:09:37 am »
Maybe start with Arduino? It very simple and easy to learn.
 

Offline RMS95

  • Contributor
  • Posts: 12
  • Country: nl
    • RMS95
Re: How do you learn to program mcu's?
« Reply #7 on: October 07, 2013, 06:32:56 pm »
I don't know about your skills.

If you are completely new, I would recommend Arduino.
If you have a little more experience/skills, use the AVR controller range without Arduino.
The reason I am recommending AVR isn't because they're good, but they have LOADS of community support.
PIC is also an option, it's generally the same as AVR in the eye of a starter. Still, they do not have as much community support.

If you know a little about electric stuff, I would recommend PSoC.

If you want or need power, go for better arms, probably a Raspberry or Beaglebone.

 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: How do you learn to program mcu's?
« Reply #8 on: October 07, 2013, 06:43:08 pm »
I learned by practicing.
================================
https://dannyelectronics.wordpress.com/
 

Offline V3r50n

  • Newbie
  • Posts: 9
  • Country: us
Re: How do you learn to program mcu's?
« Reply #9 on: October 07, 2013, 07:08:42 pm »
 

Offline Rellum

  • Newbie
  • Posts: 6
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4300
  • Country: us
Re: How do you learn to program mcu's?
« Reply #11 on: October 08, 2013, 12:24:47 am »
More seriously, there are about two schools of thought:

First School (education-centric):
1) Learn to program.
2) Learn how MCUs differ from the computer you learned to program.
3) Learn the new tools (different programming language, probably.  C instead of Java, for instance) that are appropriate to MCUs.
4) Learn the specifics of how the particular MCU you want to use is different from MCUs in general.
5) Learn how to use the tools specific you that particular MCU (IDEs, device programmers, etc)
6) Practice.

Second School (experimentation-centric):
1) get an "easy" platform like Arduino (or Basic Stamp, or BASIC52 system.)
2) Run the examples and follow the tutorials.
3) Find and modify code from the WWW that is close your application.
4) Ask for help, as needed.  Try not to be annoying.

Frankly, the idea of people trying to write programs of any complexity without SOME formal training in programming or computer science is a bit scary.  But it's a time-honored tradition, and the fact is that there are LOTS of "problems" that people want to solve that really don't require much (or any) CS, beyond using the tools that have been developed by other people.  That's why the "easy" systems succeed.

Old-timers will remember when "computer scientists", "programmers", "systems programmers" and "coders" were three distinct groups of people.  Computer scientists would develop some event scheduling algorithm.  And then a programmer would figure out how to apply that to a problem like the scheduling of maintenance at an Oil Refinery.  And then a coder would fix up the details of the progammer's framework so that it worked for a particular compiler, and handle all those annoying details like correct syntax.  The Systems Programer would provide the tools and instructions for compiling and running the program.  And did I mention the keypunch operator?  ("typist" was a separate job, too.)  It was not unusual (it's STILL not unusual) to find people in one area that really sucked at some other area.  Computer scientists that could develop lovely theoretical algorithms, but had trouble applying them to real-world situations, and "couldn't code their way out of a paper bag."
 

Offline Skimask

  • Super Contributor
  • ***
  • Posts: 1433
  • Country: us
Re: How do you learn to program mcu's?
« Reply #12 on: October 08, 2013, 03:14:18 am »
Has anybody else figured out that the O/P's post was likely to get the post count up a bit to win a contest somewhere?
I didn't take it apart.
I turned it on.

The only stupid question is, well, most of them...

Save a fuse...Blow an electrician.
 

Offline Fab6657

  • Contributor
  • Posts: 35
  • Country: fr
Re: How do you learn to program mcu's?
« Reply #13 on: October 12, 2013, 12:03:20 pm »
Hello,

to complete the Datasheet, i suggest you to learn with free lecture from the IIT Delhi University.
You will found free course at :

http://freevideolectures.com/Course/2341/Embedded-Systems/1

I am go thru this to complete my skill, realy helpfull i think !

Best regards from France

Fabrice
 

Offline cloudscapes

  • Regular Contributor
  • *
  • Posts: 198
Re: How do you learn to program mcu's?
« Reply #14 on: October 12, 2013, 01:35:03 pm »
He's gone past his required 5  :-DD

Not that anybody's noticed   :palm:

 :)

unnghhh, right out in the open.   :palm:
 

Offline olsenn

  • Frequent Contributor
  • **
  • Posts: 993
Re: How do you learn to program mcu's?
« Reply #15 on: October 12, 2013, 01:46:10 pm »
Read the datasheet and User Guide for the MCU that you're programming. Read it cover to cover!
 

Offline mrflibble

  • Super Contributor
  • ***
  • Posts: 2051
  • Country: nl
Re: How do you learn to program mcu's?
« Reply #16 on: October 12, 2013, 02:14:10 pm »
Read the datasheet and User Guide for the MCU that you're programming. Read it cover to cover!

In principle I am all for the RTFM advice, and more people should do that. For the IT field possibly even more so (as compared to EE). That said, have you seen those 1000+ page documents for a modern Arm mcu? :o I will readibly admit I haven't read those cover to cover.
 

Offline perfect_disturbance

  • Regular Contributor
  • *
  • Posts: 144
  • Country: us
Re: How do you learn to program mcu's?
« Reply #17 on: October 12, 2013, 02:24:48 pm »
If you've never written any C I would consider starting on a desktop maybe with something like hello world.
 

Offline npnlamp

  • Contributor
  • Posts: 19
Re: How do you learn to program mcu's?
« Reply #18 on: October 12, 2013, 04:44:07 pm »
I personally started with Arduino. Normal ones was to expensive for me, so i found something called arduino severino. I built it myself.
One-sided PCB, no SMD parts, exactly for beginner  :D
http://arduino.cc/en/uploads/Main/ArduinoSeverinoManual2.pdf
Of course you should have old PC with COM port, or COM port adapter, which I already had. And you need a friend who will write bootloader to the atmega8  ;D
 

Offline JTR

  • Regular Contributor
  • *
  • Posts: 107
  • Country: au
Re: How do you learn to program mcu's?
« Reply #19 on: October 12, 2013, 06:53:31 pm »
Busted! :-DD


1
Contests / Re: EEVblog Oct 2013 Contest Giveaway
« on: October 07, 2013, 12:16:27 PM »
I'm participating!



2
Contests / Re: EEVblog Oct 2013 Contest Giveaway
« on: October 07, 2013, 12:15:57 PM »
I'm in  I need a new multimeter. It a piece of shit!
 

Offline MacAttak

  • Supporter
  • ****
  • Posts: 683
  • Country: us
Re: How do you learn to program mcu's?
« Reply #20 on: October 12, 2013, 07:25:38 pm »
Hah. So much effort just to screw it up with a double-post to the contest thread  :-DD
 

Offline Circlotron

  • Super Contributor
  • ***
  • Posts: 3316
  • Country: au
Re: How do you learn to program mcu's?
« Reply #21 on: October 13, 2013, 01:11:49 am »
It was not unusual (it's STILL not unusual) to find people in one area that really sucked at some other area.  Computer scientists that could develop lovely theoretical algorithms, but had trouble applying them to real-world situations, and "couldn't code their way out of a paper bag."
Ah yeah. Like an electronics design engineer doing a pcb layout. They are related but entirely different disciplines.
 

Offline geraldjhg

  • Regular Contributor
  • *
  • Posts: 61
  • Country: ar
Re: How do you learn to program mcu's?
« Reply #22 on: October 14, 2013, 03:50:07 pm »
hi
yo go to
avrfreaks.net
www.mcselec.com
lear very little basic
get an pc with parallel port

have fun
G E R A L D
 

Offline igeorge

  • Contributor
  • Posts: 42
Re: How do you learn to program mcu's?
« Reply #23 on: November 18, 2013, 11:11:30 am »
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: How do you learn to program mcu's?
« Reply #24 on: November 18, 2013, 11:37:51 am »
Quote
Computer scientists that ..., and "couldn't code their way out of a paper bag."

Like those professors who would include .c files, :)

================================
https://dannyelectronics.wordpress.com/
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf