CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > PIC Programing / Design


PIC Programing / Design Discuss programing of PIC chips here and design of electronics using PIC chips.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-23-2007, 01:45 AM
Konstantin's Avatar  
Join Date: Feb 2004
Location: Mexico
Posts: 464
Konstantin is on a distinguished road
Microchip vs Atmel

Hello.
I was having my first encounters with microcontrollers and I have played with MPLAB mpasm programming a very little bit, mainly trying to understand the PICStep program. I also installed the AvrStudio but havent used it much.

As a programmer I am unskilled I have notions of C and ASM but if I would learn to use a microcontroller I would like to dig into C because of the higher lever programming is easier to read and to code. I am pretty much set on this because of my ADHD and the amount of focus needed to debug asm code if out of my league, so I need easier readability of the code.
Do MPLAB has a WinAVR GCC equivalent? I am not into purchasing a separate compiler for the moment.

Right now I am studying the possibility to purchase a developer tool of sort hopefully with LCD for microcontroller programming and application implementation not particularly for motion control but in general.

The thing that have stuck in my head is that Avr programs are 100% operational in any of the microcontroller family. PICs programs are different depending on the family PIC16 vs PIC18.


Locally I have Newark and its virtually Avr-less but otoh has hundreds of Microchip Devtools available, there are so many that choosing a Developer Tool is becoming very confusing. If the budget is about $150 which Microchip devtool is best suited for a beginner. A developer board does PIC programming or I need another one for that task?

Thanks.
Konstantin.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 02-23-2007, 03:44 AM
 
Join Date: Sep 2006
Location: Sweden
Posts: 104
CountZero is on a distinguished road

IMHO you can't go wrong with WinAVR and Avrstudio, nice to have everything integrated.

IIRC GCC is not available for PIC but microchip has an (probably timelimited) free trial of their compiler. Microchip is also generous in sending out samples.

If you go with AVR (digikey has a lot of AVR stuff) look into getting the dragon, it will allow you to do in circuit debugging on the smaller devices(<32k flash) and will do incircuit serial programming also.

Regarding running code in different AVR's, while the basic core is the same the peripherals are not so it is mandatory to check/modify the code anyway. If programming in C I would guesss it is not much more difficult to port PIC programs between series. hmm acutally if programming in C and you have similar peripherals it is not too difficult porting between AVR and PIC also....

www.avrfreaks.net is a good place to get some more insight into AVR's..
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 02-23-2007, 12:56 PM
 
Join Date: Sep 2006
Location: USA
Posts: 136
steve323 is on a distinguished road

I would also vote for AVR as an easy to learn system. Most (or all?) Atmel devices have a similar core and share instruction sets. WinAVR is a freeware C compiler that supports all devices except the "tiny" family.

The in-circuit programmers are relatively cheap. Adding a 6 pin jumper to your board allows you to compile and download code without having to remove the AVR. This makes it really easy to incrementally test your software.
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 02-23-2007, 02:30 PM
 
Join Date: Sep 2005
Location: USA
Posts: 351
RTP_Burnsville is on a distinguished road

I have been doing microcontroller development for about 25 years and there never has been so many good tools to pick from. Most every major chip mfg has a good selection of development tools to pick from for next to nothing cost wise and most work very well. For the types of things you are talking about learning there really is not a wrong selection, just pick your favorite color and go. If you are specifically interested in the PICstep then the logical choice would be Microchip in my view. One could also look at TI(MSP430), Zilog (Z8), Freescale (SC8), Atmel(AVR), Microchip (PIC), ST, Renesas / Hitachi (Mx or H8), Philips (8051) as just few of the many possible selections.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 03-02-2007, 06:48 AM
 
Join Date: Sep 2006
Location: Bulgaria
Posts: 4
Vlady is on a distinguished road

I have big experians with AVR and for me AVR is the best. But if you start now use easy to find cpu.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-02-2007, 05:29 PM
 
Join Date: Aug 2005
Location: U.S.A
Posts: 52
Megahertz is on a distinguished road

Hi-Tech Software has a version of their Microchip C- compiler PICC-LITE. The "lite" version supports the PIC16F690 micro , as well as a few others. I believe the the compiler limits you to 2k of program space. The 16F690 has a lot of good peripheral functions.

http://htsoft.com
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 03-02-2007, 05:50 PM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,198
epineh is on a distinguished road
Buy me a Beer?

Another one for the list would be the Propeller chip from Parallax, makers of the basic stamp. Good specs, 8 onboard processors for multitasking, 32 I/O lines, object orientated programming, and there is a lot of code already written as open source that you can use in your own programs to speed up development.

I have just started to play around with my prop chip and it is a lot of fun, with some pretty impressive features.

Good Luck !!!

Russell.
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 03-03-2007, 07:41 AM
 
Join Date: Mar 2005
Location: usa
Posts: 509
smarbaga is on a distinguished road

hello
all the above advice is really good, rtp says just choose an avenue.
if you look at the list of pic chips, you will find one almost taylored to any application and some are just a little over $1.
the list may look confusing at first but choose a general purpose one to start with, you will always use it some where.
maybe check out kits r us web sight for cheap programmers and omlek for developement pc boards.
i have wrote programs for both atmel and pic chips. i found the pic's more powerful to use due to the different specific chip features ( like built in - usb, rs232, quad encoder, adc's, timers, interups etc....) .
there is also the pic ant.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 05-26-2007, 08:23 PM
 
Join Date: May 2007
Location: USA
Posts: 32
zwdeal is on a distinguished road

I do both AVR and PIC, but often, if I need a quick solution, I use PIC because DIP PIC chip are readily available to me. All of my AVR chips (Mega128, etc) are surface mount type which I have to design a PCB for it. But these AVR's are powerful and easy to use.

Yes, www.avrfreak.net is good place to learn it.
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 05-27-2007, 06:14 PM
 
Join Date: Feb 2007
Location: canada
Posts: 559
Larken is on a distinguished road

Too bad microchip doesn't have a Divide instruction like Freescale (motorola). Does Atmel ? Pic does on its new 16 bit processors.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-27-2007, 07:45 PM
 
Join Date: Apr 2005
Location: Canada
Age: 68
Posts: 281
vulcom1 is on a distinguished road

You could also check out Mikro Labs and download the different programs to try out. They are not time limited but size of the program is. I have Mikro C and Mikro basic in my shop pc to look and play with. There is also a forum for info.
John
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 06-09-2007, 07:25 PM
 
Join Date: Jan 2007
Location: earth
Posts: 124
mugabe is on a distinguished road

IAR is little bit costly but better to use as it supports many micros including PIC and AVR . It has evaluation version with limitations. Of course avrgcc is there if you need free tool and its quality is not so bad compared to commercial tools.

many AVR chips are available in DIP package as well and is as cheap as PIC . Regarding newer versions there is 32 bit avr , but those are advanced and even support linux.
Tweet this Post!Share on Facebook
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
From Microchip: animated motor varieties Swede General Electronics Discussion 0 01-05-2004 05:42 PM




All times are GMT -5. The time now is 12:03 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353