Arlo1 said:
Njay said:
Take a look at arduino too, it's cheap, and although it doesn't have any special hardware to deal with tri-phase motors but it has a simple C/C++ library and you'll find lots and lots of code and community support.
Whats the chances we could use the arduino programing for the PIC18F2431?
Trust me, you don't want to build your own programmer...
I'm a big fan of programming in assembler because it gives you total and utter control of what the processor
is doing, kind of like that old guy in North Korea.
With C you don't really know how it translates this into actual assembler code. With C you'll definately have
a speed disadvantage although things like calculations will be easier to program (but for me this is part of the fun of
assembler). Assembler is closer to the hardware.
Have a look at the (only 400 pages, http://ww1.microchip.com/downloads/en/DeviceDoc/39616C.pdf) datasheet of
the 18F2431, section 23 to see the cool commands available when programming assembler.
I know it seems daunting but it's not a book, more like an encyclopedia where you only read the few tables and
comments of the things you want to use.
What do you want out of your project ? Programming in C on the arduino will be easy and get you results relatively
quick, but you're not going to learn anything. If you spend some time learning about this PIC processer and
assembly language, you'll have learned a real skill. Also, most PIC's are alike so it'll be easy to switch
to different chips while with the arduino you're much more dependent on the service and designs they provide...
Plus, once you get into assembler and PIC's botching together a quick testcircuit and testprogram
gets really easy, I think with my still limited PIC knowledge I can design stuff just as fast as someone with C
and an arduino. But I'll have full control like the dictator that I am

while the arduino guy is hoping
for the best.
What do you mean expensive ? You need to buy a programmer only once and after that the PIC's are $3 each.