Microcontroler programming book
Topic last updated
12 Mar 2012, by
Stephane ROCHON.
8 replies
Hello,
As a newbee in this microcontroler world, could tell me one or two reference books I could buy on amazon that would give me a good start in programming the mbed beast. I was good as C (long long time ago) and I hope it is like bicycle, you do not forget how to ride one.
I mainly lack the vocabulary like "tickers", UART, signal specification and so on. I do not want to annoy everybody with my little knowledge.
Your counsel on valuable books ? Thanks in advance.
Replies
#
26 Nov 2009 . Edited: 26 Nov 2009
Hi.
There are many books on the market that you can buy, but today there are also many web sites that give you almost the same thing, for free.
Im a new user at mbed, at I can tell you that you only need to know how to program, you don’t need to know anything ( almost ) on how the MCU is built.
So, if you realy want to know how to program the ARM parts, follow this link that I found in Google, it covers your entire request:
http://milksnot.com/joomla/blog/11-generalblog/50-arm-cortex-m3-getting-started
To learn C, then you can use these sites that I used a LONG time ago. I still have them in my links, but im sure there are many new ones out there.
http://www.cprogramming.com/
http://www.piclist.com/techref/language/ccpp/cref/index.htm
http://www.cs.cf.ac.uk/Dave/C/CE.html
And last thing, there are many examples here on how to do things. You will just need to learn how to connect them all together.
Enjoy your reading.
Hello,
As a newbee in this microcontroler world, could tell me one or two reference books I could buy on amazon that would give me a good start in programming the mbed beast. I was good as C (long long time ago) and I hope it is like bicycle, you do not forget how to ride one.
I mainly lack the vocabulary like "tickers", UART, signal specification and so on. I do not want to annoy everybody with my little knowledge.
Your counsel on valuable books ? Thanks in advance.
I've been asking "new to C++" questions on the forum for a while now,.. you won't find a more helpful forum than this, and anyway, if you ask, then us other newbies learn stuff too ! (there's plenty of us here)
I code in Java as a day job, C++ is totally alien to me, but with google and the help here..I'm getting it !
LPC_PWM1->TCR = (1 << 1);
is anyone able to tell me what "->" does in this code?
The LPC_PWM1 is a memory-mapped device being represented as pointer to a "C" structure. The "->" is a notation for a "C" pointer. The above statement can be translated as:
the timer control register (TCR) member of the LPC_PWM1 structure is being assigned the value of 2 ie (1 << 1).
It is probably a better idea to ask this question in the "Hello World" forum:
http://mbed.org/forum/helloworld
Good luck with your mbed endeavours!
The LPC_PWM1 is a memory-mapped device being represented as pointer to a "C" structure. The "->" is a notation for a "C" pointer. The above statement can be translated as:
the timer control register (TCR) member of the LPC_PWM1 structure is being assigned the value of 2 ie (1 << 1).
It is probably a better idea to ask this question in the "Hello World" forum:
http://mbed.org/forum/helloworld
Good luck with your mbed endeavours!
thank you for your reply. so what would (1<<6) mean? what value will be assigned then? thank you
would it be 100000 or 20 in Hex or 32 in decimal?
would it be 100000 or 20 in Hex or 32 in decimal?
In general:
(1 << n ) = 2^n
So, (1 << 6) = 64d = 40h = 01000000b
Please log in to post a reply.
Hello,
As a newbee in this microcontroler world, could tell me one or two reference books I could buy on amazon that would give me a good start in programming the mbed beast. I was good as C (long long time ago) and I hope it is like bicycle, you do not forget how to ride one.
I mainly lack the vocabulary like "tickers", UART, signal specification and so on. I do not want to annoy everybody with my little knowledge.
Your counsel on valuable books ? Thanks in advance.