Re: PIC Assembler.



On Oct 27, 1:10 am, "ian field" <dai....@xxxxxxxxxxxx> wrote:
"Marra" <cresswellave...@xxxxxxxxxxxx> wrote in message

news:1193360493.191387.182070@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx







On 24 Oct, 00:24, "john jardine" <john.jard...@xxxxxxxxxxx> wrote:
"ian field" <dai....@xxxxxxxxxxxx> wrote in message

news:kcpTi.15009$qv1.3845@xxxxxxxxxxxxxxxxxxxxxxx

"Richard Seriani" <richard_s...@xxxxxxx> wrote in message
news:vPjTi.11299$BT5.19@xxxxxxxxxxxxxxx

"ian field" <dai....@xxxxxxxxxxxx> wrote in message
news:V_2Ti.20084$0z6.19665@xxxxxxxxxxxxxxxxxxxxxxx
Does anyone have a link to any tutorials for PIC assembly?

Over the past few months I've been trying many permutations of
Google
search string, but most of the tutorials I've found assume previous
experience at writing assy for microprocessors.

Another problem is most of what I've found is HTML which is untidy
to
save for later study and many pages lose their image files after
being
saved to disk (anyone know why that happens?). Any help appreciated.

TIA.
Ian,

Try these. Some are better than others and some have mistakes - but,
you'll be able to spot those within a short time.

http://www.mikroe.com/en/books/picbook/picbook.htm
http://www.winpicprog.co.uk/pic_tutorial.htm
http://www.mstracey.btinternet.co.uk/pictutorial/picmain.htm

Saving these to your hard drive can be done with a right-click and
save
as. It creates two files, one is the html document and the other is a
file
folder with the graphics. At least, it does on my Windoz machine.

In a later post, someone also recommended the PIC Elmer 160 tutorial.
That
is a good one and each of the lessons downloads as a PDF.

<snip>

Many thanks, the first link is *very* interesting - I may already have
the
other 2 saved. The Elmer 160 starts off simple enough but the code
examples
quickly get heavy going, I need to go over a lot of simpler code over
and
over until I get the hang of it.

It's absolutely essential that you get to write the few lines needed to
flash an LED. If you can get there and can see why you've caused the LED
to
flash then -ALL- other PIC programming is downhill.
The "mstracey" link that Richard supplied, will do this, (upto "tutorial
#5") but more importantly, the how's and why's of the individual
instructions are described nicely.

Try and ignore anything written by Microchip.
Sadly though, you may have to make use of Microchip's, bloated, inane
piece
of s***, known as "MPLAB", but remember, the hoops it forces you to jump
through, are nothing to do with actual PIC programming but more reflect
the
mindset of Microchip's C pogrammers.- Hide quoted text -

- Show quoted text -

I have had no problems with MPLAB and it doies provide a simulator.

I have had trouble with the Microchip FFT that the multiply routine
had a bug.
I fixed it and sent it back to them.

To repeat an earlier question - would I find an earlier version of MPLAB
easier to get started, or would I seriously disadvantage myself by denying
myself of the advanced features of newer versions?

It seems a lot of people prefer to use a stand alone text editor, I'd
welcome any advice as to which choice to make.

Use the latest version of MPLAB, you'd be a fool not too.

MPLAB comes into its own when you have all the other tools tied into
it, like the C compiler and the ICD2 programmer/debugger. Then you
only need one package to edit, compile, program, debug, and simulate.
If you don't have an MPLAB compatible programmer, and/or a compiler
that can be "integrated" into MPLAB, then you don't need to use MPLAB
at all.

There is nothing wrong with the MPLAB text editor. It supports the all-
important colour syntax highlighting, and has most of the usual
features of a good editor.

Dave.

.



Relevant Pages

  • Re: PICs in general, PIC language questions, pic hardware questions
    ... >> I also remember my CCS compiler, which did a servicable job most of the ... >> 2) What is involved with in circuit programming, ... > Can program and debug all flash pics from inside mplab ... > using a pic (also have boards for the new microchip spi to ethernet ...
    (comp.robotics.misc)
  • Mplab Microchip problem
    ... I use Mplab 6.3 for programming. ... a C compiler for my code. ... 16f877a for synthesis my programm work, but if I put anything else, ...
    (comp.arch.embedded)
  • Re: PIC Development Help - compiler and IDE
    ... >> IDE, then switch to the basic PIC programming to write the file. ... > You can use MPLAB SIM in the IDE to simulate your code. ... If you want a C compiler for that particular chip, ...
    (comp.arch.embedded)
  • The big picture - Cheap chips, cheap/free compilers?
    ... I've done a good bit of microcontroller programming in the past but have ... chips with ASM51. ... Is the best choice still PIC and MPLAB? ...
    (comp.arch.embedded)
  • Re: Problem for program 16f628A with Mplab icd 2 Verification problem
    ... MPLAB ICD 2 cannot validate a target device. ... ..Programming EEPROM Memory ... configuration if anybody know something about this problem please i need ...
    (comp.arch.embedded)