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 09-06-2008, 12:21 PM
 
Join Date: Nov 2007
Location: Portugal
Posts: 16
satanicoo is on a distinguished road
MCU Programing: Begining, FAQ's and How To's

Hello there,

I am about to jump into the world of MCU programing, precisely at the 8-bit MicroChip family.

However, i have fallen into a complex world, with lots of topis to be read, questions to be answered, so much more that i have been searching for the last few weeks, and i still feel clueless.
I'm eager to post new topics to "ask this", "ask that" continuously, but that would completely spam the forum. And something tells me more clueless like me are around here.
So i get this idea: a topic with a FAQ and some How To's, to help new guys like me. I could do that to this topic as long as i get contributions, help, sugestions from you gurus at this matter!

So, first things first i guess:
1-What MCU should i buy?
2-What MCU programer to buy?
3-What Software should i use to write the code?

1-
My guess is one close to you, based on the more modern Pic18xxx
I have heard that, on the microchip brand, the code is incompatible between each "family" of MCU's, so i will have to choose between a pic16xxx, pic18xxx, pic24xxx, pic32xxx, dsPic, etc etc.
pic16 are obsolete, so my best bet is pic18xxx right?

2-
ICD2 has been known as the better programer due to better debugging (what's that?) and faster updates to support new MCU's.
However, Pickit2 is much cheaper and it is getting better, and with the suppoert of the comunity it's getting close to ICD2, and will surpass it acording to some expert's.
What is Pickit4? a New version?

3-
MPlab IDE, with the compiler C18, to program the pic18xxx. I do have some knowledge of C, so i'm gonna start there.


That's it. Care to add anything?
Do you know where to get some code already made to see examples?
Is there any fan site for MicroChip, like there's for AVR (www.avrfreaks.com)?
Any FAQ's?

Any help apreciated
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 10-04-2008, 08:44 PM
 
Join Date: Feb 2006
Location: US
Posts: 72
extrapilot is on a distinguished road

Hi
Sorry to jump on this thread so late in process- but maybe there is still interest.

I think the reason there is so little in the way of 'answers' to these common questions is- there are no 'right' answers. And I think you will find that people who have set themselves on a particular path will tend to be subjective- since by definition that is the path they chose.

For me, I can say that I have used ARM7/9 cores, the 68CH11 family, some Atmel, and most PIC core types. My current preference is with Microchip- partly because they have a variety of chip types within each family that allow you to address specific problems. Some PICs have basically 'everything' onboard, like the newer 24HJ stuff. The performance is very good, the cost is low, and the support from Microchip is superb. Downsides are- their assembly instruction set is not fantastic, and they tend to have a lot of errata on newer parts.

From a compiler perspective, the 18F PIC seems to have the most support in terms of number of vendors. That is an advantage for obvious reason. My preference is with the 24H/F family- there are no downsides with them other than errata (and those are being cleared in the next couple of months). You have lower cost, lower power usage, much higher performance, more memory, good security, and a lot of flexibility with peripherals (some even have crossbar capability so you can remap peripherals to most any pins you want- a great help for PCB layouts, and for post-proto modifications). And, since they are 16-bit, there are other inherent advantages. Plus, the migration to the dsPIC family is simple since you remain in the 16-bit scope, with similar registers- and some dsPICs are very powerful indeed if you need that type of dsp functionality.

If you go 32-bit, that is a whole other ballgame IMO. To leverage them, you tend to need a deeper application (i.e. RTOS), and often the advantages come with some significant complexity in compiler use, physical interfaces. PCB layouts, etc.

There are a lot of programmer types and tools out there. Best bet is to download them and have a look around- and to hit the message boards- see the sorts of interactions in play. You might find that some are very 'intro' and some are too advanced for you. I use the MikroElectronica tools- and could not be happier. I dont know if Proton supports the 24x series yet, but they have a good IDE for the 18F.


With MikroElectronica, there are a number of sample projects installed with the compiler, so that you can see how things are done. They do not tend to show more complex examples (like DMA usage, or much in the way of interrupt processing), but that is because this is specific to processor and application. They also have a few online books on their site that are VERY useful- regardless of what vendor/tools you select.

At the end of the day- I think the one strong suggestion I would make is- start with hardware that is likely to apply to your projects over the next 2 years. If you buy for a current need, you invest 6 months learning everything about the solution, and then find that you need to migrate up for some new capability, etc- and adapting to new hardware (i.e. 8 -> 16bit) is often a challenge (habits are hard to drop). In the PIC world, the 24x series is no more difficult to use, and in some cases simpler, than the 18F (interrupt vectors come to mind), and the 24x family is often substantially cheaper than the 18F family.

So- there are a few thoughts
Rob
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
FAQ's (Motion Transmission,Acme, Ball, Allthread Screws, Cogs, Belts, bearing, etc ) snooper Linear and Rotary Motion 13 02-28-2007 06:28 PM
Begining tools! Revtech DIY-CNC Router Table Machines 6 06-07-2006 09:07 AM
FAQ's for Home Build Lasers ViperTX Laser Engraving & Cutting Machines 0 08-04-2005 11:16 AM
FAQ's (Motion Transmission,Acme, Ball, Allthread Screws, Cogs, Belts, bearing, etc ) chuckknigh DIY-CNC Router Table Machines 44 12-31-2004 07:54 AM
FAQ's (Motion Transmission,Acme, Ball, Allthread Screws, Cogs, Belts, bearing, etc ) chuckknigh FAQ of CNC Machine building 0 04-28-2004 09:55 PM




All times are GMT -5. The time now is 10:14 PM.





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