Which uController to learn?

snip

years ago I was given a few lines or so of C for an 8051, that has never failed me. But then I'm not a real programmer, most of my crap is just a few switch statements,

Boil a FET Nuke a motor, LCD Prompt" do you need fries with that" etc.

but good enuff for me, does the job. Maybe I should go and have another look at it?

grasshopper, over and out

martin

Reply to
martin griffith
Loading thread data ...

Hey John.

We're an "8051" Shop mostly. And almost everything we do is in Assembler.

Right now, we're using Atmel and Phillips (NXP or whatever they call themselves now).

What I like about Atmel is: A - They're very responsive when you need them (which isn't often because their documentation is some of the best I've seen.)

B - For programming their newer devices, all you need is $25 for their AT89ISP adapter (and a target board - which you can make yourself or just butcher one of your production boards and dedicate it as your new "bench programmer" - which is what we did. No more spending $1,000's on EPROM burners!!

C - Their product mix is varied enough (i.e., A/D conversion, # of ports, Serial, etc..) that you can make most designs work. And "Yes." it is a fine line between "hobbist" and "serious volume production" sometimes. Or so we would all wish.....!!

For Phillips - I like their smaller stuff. 89LPC90x series. They're a little flaky to get programmed (due mostly to poor documentation and IMHO too many hobbiest in the mix), but we do use them in production volumes.

The Keil EPM900 board is a good development board for the above, and runs about $200. Plus the cost of many, many, many phone calls to Keil to get an order placed. (Note: This company THRIVES on Voice Mail.) But good stuff once you get it, and get it working.

The EPM900 will come with a 4K code limited Assembler, C-Compiler and Debugger (in addition to the hardware emulator). All in all, a pretty good value.

I looked at PIC's a few times and didn't like them. Hard to say exactly why, I guess. Their basic stamp stuff seemed overpriced and underpowered. And really, I think those are out there for experimenters and hobbyist, not serious production. (Now everyone will beat up on me for saying that..?)

But I hope this (and the comments of others) gives you something to ponder while making your choices. COBOL, huh?! Good for you!

Eventually all the other COBOL programmers will die out and you can name your price!!

-mpm

Reply to
mpm

Just looked at their web site. Top of the line is only EUR1800 (how the heck do I make a Euro symbol...?), US$2376. Not bad. FInally a DSO the average guy can afford. Keep us informed...

--
John English
Reply to
John E.

Many thanks, Don. Much good first-timer info there. A "rich" resource.

--
John English
Reply to
John E.

core

--
Instead of writing about what you\'ve heard, dumb ass, why don\'t you
stick with what you know?

Oh, I get it now... If you did you wouldn\'t have a whole lot to
write about.
Reply to
John Fields

Not to mention the 64, 68, 80 and 100-pin ones.

There are several flavo[r]s to PIC assembly.

That thing is not 'a microcontroller'.

As to the original question.. it really depends on the application and the peripherals you might need. If you need Ethernet and/or USB on board, that's one thing (you'll almost certainly want something with a decent C compiler and available protocol stack), if you just want to diddle some bits fast, or do a relatively slow PID control that's another. If you need 10, 12, or 24 bits of ADC, multiple PWMs, quadrature input, direct display drive, etc. etc. that may play a great role. The choice of core is only one consideration among many.

Best regards, Spehro Pefhany

--
"it\'s the network..."                          "The Journey is the reward"
speff@interlog.com             Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog  Info for designers:  http://www.speff.com
Reply to
Spehro Pefhany

Be wary of certitude. PIC's bizarre fscked architecture is abhorred by right-thinking engineers (of course, there are no absolutes, but this is quite close to one).

If you have experience as you have enumerated, you will have little difficulty learning almost any architecture; the choice of which is "useful" depends on the "use" to which you intend to apply this knowledge.

Reply to
zwsdotcom

Bought the DS1102C (100MHz/2-channel) for US$999. So far so good, I like it. :-)

Reply to
Anthony Fremont

They were interchangeable when we did them Anthony! We used the same masks to make the chips!

Reply to
Lord Garth

I don't know about that. Some of the extra functions seem to be implemented both by Philips and Atmel for example. Sure you can use an 89C51 with flash memory in place of an 87C51 to take the simpler example.

Manufacturers seem to have been careful about allocating the new SFRs. I've never come across an example where a 'new' SFR didn't default to 'plain vanilla' operation if left untouched.

Graham

Reply to
Eeyore

I'm prejudiced against the PIC because bank switching is Evil.

As a hobbyist: 6502, 6800/02/09, Z80; as a pro, 68HC11, Z80, 80186 ;-)

Cheers! Rich

Reply to
Rich Grise

That's true, but wasn't really my point. I'm saying that people use these "special features" and then they narrow (or eliminate) their source options. Where parts from different vendors do have similar extensions, they don't usually implement the SFRs the same way. It's been a while since I looked around, maybe vendors are getting on the same page now (why do I really doubt that though ;-).

Reply to
Anthony Fremont

Well now those should be compatible. :-) So you were making 805x true clones?

Reply to
Anthony Fremont

In the early days, though I'm sure that has changed, the stack depth was way too short for any reasonable level of subroutine coding, this also affected the design of systems which needed multiple (flexiblely) prioritised interrupt sources...

Since I had been using the 8051 and atmel variants which had far deeper stacks and ease of changing returns and flexible control of interrupt response I had never any need to revisit the PIC.

Oh and the code/data memoru separation I found to be irritating on odd occasions,

From what I recall the 68000 series was the closest to a orthogonal instruction set making for great compiler efficiencies, with the later generaton of PICS there were, iirc, still many instruction exceptions which didnt allow compilers to be as efficient could have been good for assembler writers but you really dont want to stay in assembler as generally projects get more complex and we do want to have a social life dont we ?

--
Regards
Mike
* VK/VL Commodore FuseRails that wont warp or melt with fuse failure indication
   and now with auto 10-15 min timer for engine illumination option.
* VN, VP, VR Models with relay holder in progress.
* Twin Tyres to suit most sedans, trikes and motorcycle sidecars
http://niche.iinet.net.au
Reply to
Mike

Well.... yes if you do use those very specific features you will be stuck with a single source but you're still no worse off than you would be with a PIC.

Graham

Reply to
Eeyore

I'm beginning to hear a lot of that (c;

I think I should clarify that my desire isn't to go in the direction of microprocessors, but in the direction of microcontrollers. I distinguish those that have data and memory bus pins from those that are self-sufficient, memorywise. The latter may have I/O such as analog inputs and/or outputs, but not necessarily; they may interface with outboard converters.

Thanks,

--
John English
Reply to
John E.

Since you're starting, the 18F PICs may be more in line with what you want. Not even any bank switching till you're ready for it. Plus Microchip has a decent C compiler for them (I never used it, but that's what I keep hearing) that has something like a 90 day trial. After the trial, uninstall and reinstall.

formatting link
is a good treatise on the 18F PICs.

Don't let anyone fool you, all microcontrollers have their quirks and problems. IMO, the 8052 is the pits.

You won't regret it.

Reply to
Anthony Fremont

After you've selected your second or third new microprocessor and made it work you'll realize that time spent learning the quirks of a new processor is less than time spent working around the deficiencies of an old one.

For each new application I look at what the application demands, which usually boils down to processor speed, peripherals, the available pin drive power, and the capabilities of the on-board EEPROM and flash. Then if one of the micros that I'm already familiar with works I use it

-- otherwise I select a new one.

I will mention that for most microprocessors the verb is "use", but for PIC it's "suck it up and use" -- Microchip does a sterling job with peripherals, pin drive and features, but gawd I hate their architecture.

--

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com

Posting from Google?  See http://cfaj.freeshell.org/google/

"Applied Control Theory for Embedded Systems" came out in April.
See details at http://www.wescottdesign.com/actfes/actfes.html
Reply to
Tim Wescott

There's a pattern developing in this thread...

--
John English
Reply to
John E.

Which just *begs* the question: whose architecture do you consider to be the antithesis of the PIC's? (ie, less obtuse, resulting in your being more productive?)

--
John English
Reply to
John E.

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.