Author Topic: PIC programming  (Read 750 times)

0 Members and 1 Guest are viewing this topic.

Marty Machine

  • Guest
  • Trade Count: (0)
Re: PIC programming
« Reply #15 on: October 01, 2011, 10:49:36 PM »
Anyway back to the initial problem,

For anyone beginning with PICs, i strongly advice that you DON'T start programming with asm/assembler etc, it's far too complicated for a beginner to grasp, and will leave with without a working project, even a month later.
There's too many things to 'set' & 'clear' all thru your code, just another nasty that puts a LOT of beginners off PICs or any for of coding....

If you jump into basic (picbasic, mikrobasic and the like) you'll be flashing lights and controlling motors in the first hour and actually UNDERSTAND how you achieved it.

ASM is easy *IF* you already understand ASM, a bit like Rocket Science is easy for Rocket Scientists. ;-)

MM

Offline ajlaird

  • Trade Count: (0)
  • ******
  • Forum Posts:
  • Greensborough, Melbourne
  • Go Ahead, Make My Day
Re: PIC programming
« Reply #16 on: October 08, 2011, 11:19:33 AM »
Having done some assembler before, PIC ASM sounded easy enough, but you are right, BASIC would be a lot easier for a beginner.

Offline Homepin

  • Trade Count: (+15)
  • ******
  • Forum Posts:
  • Not a business - A Passion!
Re: PIC programming
« Reply #17 on: October 08, 2011, 11:38:20 AM »
ASM all the way for me. I just can't get a handle on basic and I like to be able to manipulate everything, every step of the way.

Basic seems too "wishy-washy" to me??
Replacement Pinball PCBs that remain faithful to the originals

Marty Machine

  • Guest
  • Trade Count: (0)
Re: PIC programming
« Reply #18 on: October 08, 2011, 01:58:40 PM »
ASM all the way for me. I just can't get a handle on basic and I like to be able to manipulate everything, every step of the way.
Basic seems too "wishy-washy" to me??
You'd be the first person that doesn't "get" basic, wow that's really strange!

Agreed, ASM is by far more superior when it comes to absolute manipulation of settings and internal registers, but NO BEGINNER needs access to that kind of manipulation right from the start.

I've NEVER needed to use ASM to simply read switches and spurt out data, flash LEDs, control LCD displays and read/write to external memories & devices.
20-30 lines of basic replaces 200 lines of ASM, a beginner just doesn't need to go thru all that.

I've casually taught small groups of people with an introduction to pics/picaxes/basic, and if i have 10 people in a class, then i have 10 people at the end.
My collegue teaches some mplab/asm stuff, and when he has a class of 10, it soon becomes a class of 3-4 in a matter of weeks.
You just can't ignore those figures.


ASM is best suited for very higher-speed requirements where nanosecond timing is critical, such as generating (or decoding) advanced signals such as Video, DMX(lighting) data, Midi(music) data, Timecode (TV/videotape) data.
Obviously 'Basic' fails to meet many high-speed timing requirements due to it's nature dealing with the upper level interpreter which creates it's own delays and interferes with 'timing' within the code structure (been there, done that).

I think ALL beginners should start on basic, whether it's on a PC program (gwbasic, qbasic, visual basic), or a pic/picaxe/avr/arduino chip, and then move upto ASM when they're more confident in what they're doing.
Of course they could equally move across to 'C' for powerfully fast programming too, and still easier than ASM ;-)

MM.

Offline pulstar

  • Trade Count: (0)
  • **
  • Forum Posts:
Re: PIC programming
« Reply #19 on: October 08, 2011, 07:36:46 PM »
I think when I started with PIC's it was MPLAB or nothing, so you really had no choice than to learn the assembler. It does however take a while to get 'established' with your routines that perform common tasks, that you may use over and over again.
I will also admit that I had a fair bit of experience previously with Qbasic / Visual Basic / PLC programming before starting. It all helps.