Continue to Site

# Choosing an easy Microcontroller for class project?

Status
Not open for further replies.

#### pd240x

##### New Member
Hi,

We are doing line following/ball hunting robot and need some help choosing an easy to use microcontroller. In the past, we have used an Infineon CR167. It comes with a graphical user interface and generates the C code for memory addresses, etc, with the click of a button. Then you just fill in the code within each class or function.

#### kinjalgp

##### Active Member
If you are doing all logic stuff then PIC is a good choice. But if you require math stuff, then go for 8051 family since PIC does not have hardware multiply/divide instructions.

#### chappy1403

##### New Member
pics are the way to go

see my post under pic/basic programming ....some great kits for newbies or just go to www.talkingelectronics.com there pic lab and multi pic programmer are great learning tools and they have them as a kit or ready to go I have purchased many kits from then over the past 20 years and their service is very good ( I had an email answered on a sunday!!!)

#### Attachments

• MultiChipPgmrSmall_160.jpg
7 KB · Views: 1,857
• PIC-LAB-sm_755.jpg
7.9 KB · Views: 1,886

#### pd240x

##### New Member

Hey Thanks for all the tips! I've taken note on all of them.

I wonder if the PIC direction is not powerful enough. Also I only have about 1 month, controller in hand programming.

My micrcontroller needs to drive PWM's for atleast two motors, and read in I/O from several types of sensors, IR, colored light, and track sensing. I must also code in logic directions to finding the way in a maze, and display a status message on an LCD. I'd prefer to use C language since I already know it.

#### kinjalgp

##### Active Member
Cygnal www.cygnal.com offers some very powerful high speed 8051 deriveatives. Check them out.

#### laroche73

##### New Member
choice of micros

There seems to be a large and well-informed PIC contingent here, and they know more about the subject than I do. MicroChip's come up with some very good products, but don't overlook the Atmel AVR series. The available support infrastructure for each seems roughly equal, with the PIC fanatics outnumbering the AVR zealots about 2:1.

Most instructions on the AVR execute in a single clock cycle, vs. 4 for the PICs and 16 for the generic 8051. Cygnal, Dallas and others have greatly improved upon the basic 8051, but if code compatability isn't an issue, check the price before plunging in. MIPs can be a misleading benchmark, it's hard to go wrong with Atmel or MicroChip. - CAL

#### kinjalgp

##### Active Member
16 for the generic 8051

laroche73, a correction out there. Its 12 clock cycles and not 16.

And ya, I have found out that ATMEL's 8051 derivatives are the lowest cost uCs available in the market. PICs are almost double the cost of 8051's (and they have only half the features of 8051 except for speed)
For ex. I get AT89C2051 for $1.1 while PIC16F84 for$2.5

#### laroche73

##### New Member
clock cycles per instruction and low-cost micros

Thank you, I should have checked before posting. At least I got the 1 and 4 right...

I mentioned clock cycles since it often gets overlooked, it's one factor to consider when processing speed is important. For raw speed, straight hardware (TTL, FPGA, CPLD) wins hands down. DSPs are the next tier down, then micros. Clocks per instruction don't tell the whole story, maximum clock speed, architecture (RISC/CISC/MISC) and other things factor in as well.

Choosing a micro comes down to what's most important to you; low cost, low power, speed, backward code compatability, code density, ease of use, # of onboard peripherals, etc., no one micro family is best at all of them.

And you're right, Kinjaljp, Atmel has some inexpensive x51 flash-based derivatives. They seem to be the exception, I haven't seen low-cost x51 type micros from many others. Atmel has some innovative stuff, like the AVR, dataflash proms and 4-bit Forth micros, not to mention their x51 line. They should give up on cracking the FPGA market though, Altera & Xilinx have it pretty well locked up.

Not sure why Atmel stock is in the ***, the company makes some really good products.

Status
Not open for further replies.

Replies
11
Views
1K
Replies
14
Views
2K
Replies
5
Views
2K
Replies
4
Views
1K
Replies
2
Views
1K