Go to Post My most distinct memory was watching Tom fix our robot's frame... by whacking it with the hammer. - Jaine Perotti [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-08-2005, 22:56
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
C programmable microcontrollers

I bought a BASIC stamp and it is good but eventuall i will need to upgrade to C because i plan on learning how to program in a sofistacate way for sofistaced system and was wondering if anyone knew of any good C programmable Micro Controllers
  #2   Spotlight this post!  
Unread 18-08-2005, 23:21
mechanicalbrain's Avatar
mechanicalbrain mechanicalbrain is offline
The red haired Dremel gnome!
FRC #0623 (Ohm robotics)
Team Role: Electrical
 
Join Date: Apr 2005
Rookie Year: 2004
Location: Virginia
Posts: 1,221
mechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond reputemechanicalbrain has a reputation beyond repute
Send a message via AIM to mechanicalbrain Send a message via Yahoo to mechanicalbrain
Re: C programmable microcontrollers

Quote:
Originally Posted by sparksandtabs
I bought a BASIC stamp and it is good but eventuall i will need to upgrade to C because i plan on learning how to program in a sofistacate way for sofistaced system and was wondering if anyone knew of any good C programmable Micro Controllers
Well if you want real good quality go www.gumstix.com but i don't think any of those will run C.
__________________
"Oh my God! There's an axe in my head."
623's 2006 home page
random mechanicalbrain slogans

  #3   Spotlight this post!  
Unread 19-08-2005, 00:18
BrianBSL BrianBSL is offline
Registered User
FRC #0190
 
Join Date: Sep 2004
Rookie Year: 2000
Location: Worcester, MA
Posts: 251
BrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud of
Re: C programmable microcontrollers

Pretty much PIC18x is programable with the C compilier we use for FIRST. Lots of different boards out there, or just buy the microprocessor and add your own timing source and programer.

I'm pretty sure the gumstix's run linux and thus you can use gcc for them.

The MIT Handyboard runs Interactive C.

I think there's a GCC addon to program ATMEL microprocessors. Similar to the Microchip PIC's, just made by a different company. Buy a demo board or build one yourself.

Lots more out there as well, use Google for links to all of the above.
  #4   Spotlight this post!  
Unread 19-08-2005, 00:38
sciguy125 sciguy125 is offline
Electrical Engineer
AKA: Phil Baltar
FRC #1351
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Sunnyvale, CA
Posts: 519
sciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond repute
Send a message via AIM to sciguy125 Send a message via MSN to sciguy125 Send a message via Yahoo to sciguy125
Re: C programmable microcontrollers

I'm a PIC person, myself. But if you want to program in C, you'll have to use the PIC18Fxxx series as Brian pointed out. mcc18 is only for those chips and, as far as I can tell, is the only free C compiler for PICs (there's a gcc port, but it's far from ready).

In my personal experience, I've noticed that PICs and Atmel are pretty much the industry standards. I've also noticed that hobbyists tend toward PICs. I've never used Atmel's so I can't really tell you why.
__________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------
  #5   Spotlight this post!  
Unread 19-08-2005, 12:27
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: C programmable microcontrollers

i ordered some free samples of the 16F84A i think it was from microchip and all i have to do is make the NOPPP from the circuit i found

Last edited by John Gutmann : 19-08-2005 at 12:38.
  #6   Spotlight this post!  
Unread 19-08-2005, 13:43
BrianBSL BrianBSL is offline
Registered User
FRC #0190
 
Join Date: Sep 2004
Rookie Year: 2000
Location: Worcester, MA
Posts: 251
BrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud of
Re: C programmable microcontrollers

Quote:
Originally Posted by sparksandtabs
i ordered some free samples of the 16F84A i think it was from microchip and all i have to do is make the NOPPP from the circuit i found
You can't compile C code for the 16Fx series PIC's with the compilier we get in the kit, they can only be programed in assembly. There are other C compiliers by other companies, however.
  #7   Spotlight this post!  
Unread 19-08-2005, 17:47
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: C programmable microcontrollers

I'm working with Atmel series AVRs and yes they have a gcc port, called avr-gcc. It's bundled with WinAVR for windows or you can install it separately for linux, it works great and is completely free, even come with software to flash the chip.

I'm trying to get in to PICs and have two of them on order right now, but they are PIC16F84s and I don't think the C18 compiler will work, are there any alternatives? I don't have a lot (Read: any) money to spend on this really.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #8   Spotlight this post!  
Unread 19-08-2005, 20:11
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,602
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: C programmable microcontrollers

Quote:
Originally Posted by sciguy125
mcc18 is only for those chips and, as far as I can tell, is the only free C compiler for PICs (there's a gcc port, but it's far from ready).
mcc18 is not free, and in fact costs $495. We should all be thankful that Microchip decided to donate it to teams.


As far as C programmable microcontrollers, have you looked at Rabbit Semiconductor? They make a z80 derivative. They have a promo right now where you can get a development kit for $99. http://www.rabbitsemiconductor.com/p...05_230.60/DOM/ I've found Rabbit's documentation to be better then most other embedded targets I've worked with.

I'd suggest picking up an electronics hobbyist magazine (ie Circuit Cellar) and browsing the advertisers.
  #9   Spotlight this post!  
Unread 22-08-2005, 01:42
Sparks333's Avatar
Sparks333 Sparks333 is offline
Robotics Engineer
AKA: Dane B.
FRC #1425 (Wilsonville Robotics)
Team Role: Alumni
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Wilsonville, Oregon
Posts: 184
Sparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of light
Send a message via AIM to Sparks333
Re: C programmable microcontrollers

MCC18 is, however, available for download at Microchip's site. According to the site, "The Student Edition has all the features of the full compiler and libraries. After 60 days, the optimizations related to procedural abstraction and to the extended instruction set of the newer PIC18XXXX devices will be disabled. Code compiled after the expiration date will function, but may occupy more memory space." The way I read that, after 60 days, everything will still work, but perhaps will a drop in optimization. Free and a little underoptimized vs. $500 and optimized? I'd call that a good tradeoff, but that's just me. I have 30 days left on my trial, so I'll get back to you on what it really does after the trial period is up.
By the by, I have used the Atmels, and I consider them to be a little more hardcore, because you have to build the board around them. The PICs (at least, the ones I have used) are pretty user-friendly about electrical requirements. I have had great results with both, so I won't slam either.

Sparks
__________________
ICs do weird things when voltage is run out of spec.

I love to take things apart. The fact that they work better when I put them back together it just a bonus.

http://www.ravenblack.net/random/surreal.html

Last edited by Sparks333 : 22-08-2005 at 01:46.
  #10   Spotlight this post!  
Unread 22-08-2005, 10:23
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: C programmable microcontrollers

I highly recommend the TI 2812 DSP, which does everything our robot controllers do, and more. It also has a much more robust C compiler (TI 'default code' uses pointers, structs, and arrays of pointers to functions inside structs. MCC18 barfs and causes memory corruption due to incorrect asm generation with even the simplest struct-array constructs)


Motorola chips are pretty cool too. They also have a decent C implementation.


If you've seen the Gumstix's Robostix, that's one heavy duty solution, though slightly more expensive hardware-wise than otherwise desired. If you're learning and not making mass-assembled products, however, the price tag is well worth it . In fact, we plan to use Gumstix in First 2006 (http://www.chiefdelphi.com/forums/sh...d.php?p=402247)


---NOTE:

No, I'm NOT ripping on Microchip or their compiler. In fact, it's about the most inexpensive C chip, and for that they deserve a lot of respect. Also, I've used these chips in my other work before (where I had a full licensed MCC18 toolchain), and their tech support is very friendly and responsive at fixing problems I found with the compiler.

The only thing I'm saying, is that sometimes MCC18's C bugs and controller limitations are frustrating to a beginner programmer, so you're better off using a more robust solution to begin with.
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
  #11   Spotlight this post!  
Unread 22-08-2005, 10:47
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: C programmable microcontrollers

Quote:
Originally Posted by jdong
I highly recommend the TI 2812 DSP, which does everything our robot controllers do, and more. It also has a much more robust C compiler (TI 'default code' uses pointers, structs, and arrays of pointers to functions inside structs. MCC18 barfs and causes memory corruption due to incorrect asm generation with even the simplest struct-array constructs)


Motorola chips are pretty cool too. They also have a decent C implementation.


If you've seen the Gumstix's Robostix, that's one heavy duty solution, though slightly more expensive hardware-wise than otherwise desired. If you're learning and not making mass-assembled products, however, the price tag is well worth it . In fact, we plan to use Gumstix in First 2006 (http://www.chiefdelphi.com/forums/sh...d.php?p=402247)


---NOTE:

No, I'm NOT ripping on Microchip or their compiler. In fact, it's about the most inexpensive C chip, and for that they deserve a lot of respect. Also, I've used these chips in my other work before (where I had a full licensed MCC18 toolchain), and their tech support is very friendly and responsive at fixing problems I found with the compiler.

The only thing I'm saying, is that sometimes MCC18's C bugs and controller limitations are frustrating to a beginner programmer, so you're better off using a more robust solution to begin with.
can u give afull part # because io sercher for thast on ti.com and got like 5 results that wud work but i dont kno wwhat one in paticular ur talkiong about
  #12   Spotlight this post!  
Unread 22-08-2005, 11:11
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: C programmable microcontrollers

what kind of PICs are programmable easily with the compiler from FIRST or from any other free compiler? I am looking for DIP module.
  #13   Spotlight this post!  
Unread 22-08-2005, 13:22
Sparks333's Avatar
Sparks333 Sparks333 is offline
Robotics Engineer
AKA: Dane B.
FRC #1425 (Wilsonville Robotics)
Team Role: Alumni
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Wilsonville, Oregon
Posts: 184
Sparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of light
Send a message via AIM to Sparks333
Re: C programmable microcontrollers

Quote:
Originally Posted by sparksandtabs
what kind of PICs are programmable easily with the compiler from FIRST or from any other free compiler? I am looking for DIP module.
I think the only kind of PIC you can program with FIRST's compiler is the one in the controller - a PIC18F8520 - but you can program any PIC18F with the C18 Compiler. Oh, and most PICs you can order as DIPs.

Sparks
__________________
ICs do weird things when voltage is run out of spec.

I love to take things apart. The fact that they work better when I put them back together it just a bonus.

http://www.ravenblack.net/random/surreal.html
  #14   Spotlight this post!  
Unread 22-08-2005, 14:50
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: C programmable microcontrollers

Quote:
Originally Posted by Sparks333
I think the only kind of PIC you can program with FIRST's compiler is the one in the controller - a PIC18F8520 - but you can program any PIC18F with the C18 Compiler. Oh, and most PICs you can order as DIPs.

Sparks
where do i get the c18 compiler?

also any recomendations of what 18 series PIC i should use?

Last edited by John Gutmann : 22-08-2005 at 17:16.
  #15   Spotlight this post!  
Unread 22-08-2005, 21:37
BrianBSL BrianBSL is offline
Registered User
FRC #0190
 
Join Date: Sep 2004
Rookie Year: 2000
Location: Worcester, MA
Posts: 251
BrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud of
Re: C programmable microcontrollers

Quote:
Originally Posted by sparksandtabs
where do i get the c18 compiler?

also any recomendations of what 18 series PIC i should use?
You can grab the student edition from Microchip's website, otherwise you would have to buy it from them. I'm not sure if the FIRST one is limited - I've always programmed my PIC's in assembly except for FIRST stuff.

I'm pretty sure the 18F8520 is only avilable in surface mount form, but the 18F4620 is avilable in 40-pin DIP package, and includes twice the RAM as the 8520 as well (which seems to be a complaint about the RC).
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmable LED Badges 1501 had at BoilerMaker Regional Chris_Elston General Forum 29 10-10-2011 10:36
New Controller programmable in C dez250 Programming 48 02-10-2003 19:28


All times are GMT -5. The time now is 00:21.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi