Know any good compilers and a good book? I'ld like to learn to program
8051s. I've gotten an 8051 eval board from PJRC, but I'm just a newbe.
I've been doing C++ in MSVC for years and played with Basic Stamp
modules, but now onto 8051's. I'm looking for a compiler and a good
book. PJRC says to use SDCC, but a DOS window is kinda yukie. I've
used MicroChips MPLAB IDE for their robotic controller built around an
8520(?) but it doesn't target the 8253 in my eval board.
If you are looking to start working with small embedded micros, there is
no reason you should pick the 8051. It's a dinosaur architecture, with
poor tool support if you can't afford the Kiel compiler. Of course, it
is vastly superior to the PIC, but you can do a lot better. The best
choices would normally be an AVR or an MSP430.
If using a "DOS" window (you really mean a command prompt - just because
Microsoft doesn't know what it's called, is no excuse for others getting
it wrong) is a problem for you, then you are not going to get far in
this field - compilers are by nature command line tools, and IDEs that
put a pretty face on top will only get you so far. It's like refusing
to learn to understand assembly while still wanting to write good code
for a small micro - it can't be done.
The 8051 does have one major strong point, however - it is popular.
There are endless variations of microcontrollers using 8051 cores,
meaning you can get them from dozens of different suppliers (not that
they are directly interchangeable), and it is often the choice for
suppliers wanting to add a cpu to an existing chip (such as an ADC, or a
radio chip with an added cpu).