Searching \ for 'Give help to a PIC newcomer!' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'Give help to a PIC newcomer!'.

Truncated match.
PICList Thread
'Give help to a PIC newcomer!'
1994\05\17@084218 by byron

face picon face
>
> Hi all.
>
> I've been interested in 8051s for ages - but someone recently introduced
> me to the ridiculously cheap DIY PIC16C84 programmers, and Im now a
> total convert...

Most of us are.

>
> Some questions:
>
> The PIC mnemonics, IMHO, are terrible. Is there a 'standard' better
> mnemonic set?

Well parallax has a set of mnemonics that are 8051 based. The two problems
are that you no longer know exactly how long each instruction is and that
you need the parallax assembler.

Personally I find the PIC instruction set very clean and concise. Very good
for compiler writing. A PIC compiler of a language somewhere between C and
BASIC is one of my summer projects.

>
> Are there any example PIC sources available?

Call Microchip or a local rep and ask for the applications notes for the
PIC series. It has dozens of example programs for you to look at. And all
of them are in the original PIC instruction set so you can see how the
set operates.

> Is the serial programming algorithm of the 16C84 the same or similar to
> that of the other two recent PICs (I forget the names - the 33 IO pin
> one, and the one with internal ADC) -

There are two 40 pin chips (17C42 and 16C64). The internal ADC is a 16C71.

> Can I use a similar modified serial programmer to blow these?

The 16C84 and the 16C71 use almost the same serial algorithm.

A good idea is to get the Microchip Microcontroller data book. It has not
only the data sheets for all the parts but the programming algorithms too.
Michchip is just too cool with the way they interact with us hobby
enthusiasts!

Later,

BAJ

1994\05\18@163550 by Peter Knight

flavicon
face
On 17 May 1994, Don Lekei wrote:

> It is always better to get used to the manufacturer's mnemonics as any code
> examples or help you get from others is likely to be in that form. A good
> macro assembler will allow you to generalize your code to make it more
> portable.

I take your point as a general idea, but come on - ADDWF f,d where d is
*direction*!!! Whats wrong with ADD f,W / ADD W,f?

Ive programmed Z80, 6502, 8051, 77C82, ARM2, 68000 - and I have to say
that the PIC has the least user friendly mnemonics of the lot.

Still - Im sure I'll get used to them in time...


Peter
-
Peter Knight      Email: spam_OUTp.j.knightTakeThisOuTspamuk.ac.bradford      Mono: Cathedrow
                                          _  _          _            _
Who says you can't display letters on a 7 |   _| |_ |_  |_| _|  _  _  _|
segment display? OK, so you can't do a W..|_ |_| |_ | | |_ |_| |  |_| _|



1994\05\19@170303 by Don Lekei

picon face
Tom,
Thanks for the question:
> Tell me more about ASPIC ?
I will try to avoid making it sound like an ad <smile>...

ASPIC is a shareware assembler (reg = $100 CDN ($69 US)) which has been in
use since  late 1991 for PIC and since 1986 for other processors (NEC
78c10, Mitsubishi MELPS 8 and 16 bit).  It is **DESIGNED** for embedded
controler design, so it has som unusual features like character set
translation (eg. for LED, LCD, and On Screen Displays), bit labels,
environment labels, etc.

It is very stable (only 3 bugs reported and fixed in the last 2 years), and
it integrates well with other developement tools. A short list of features
reads something like:

       - One assembler for 16c5X, 16c7X, 16c8X, 17c42
       - Compatable with PICSIM (MPSIM)
       - Compatable with MAKE, and with auto-error tracking editors
       - Many times faster than PICALC (MPALC)
       - Standard base notation (Intel & Motorola format)
       - CODE and FUNCTION macros
       - Auto register bank management
       - Text/data translation
       - Automaticly generates RETLW tables for text and data tables
       - Built-in version management and assembly control functions
       - user command-line switches
       - many other features

(hope that didn't sound too much like an ad, but the shareware license has
an unusual clause absolving those who don't register but only use it for
non-commercial purposes)

I can't ftp from compuserve, but it is available around.  Try microchips
bbs (3rdparty file area) or my BBS @(604) 597-3479.

Cheers,

Don


1994\05\24@161102 by Peter Knight

flavicon
face
On Tue, 24 May 1994, Eric Smith wrote:

> On 18 May 1994, Peter Knight <.....P.J.KnightKILLspamspam@spam@bradford.ac.uk> wrote:
> > I take your point as a general idea, but come on - ADDWF f,d where d is
> > *direction*!!! Whats wrong with ADD f,W / ADD W,f?
>
> I agree with your comments about Microchip's syntax being suboptimal, but
> I should point out that the ",d" doesn't specify the direction, it specifies
> the destination.  While this may seem like a minor point, consider the
> SUBWF instruction:

OK - my mistake - I did mean destination...

Thanks for the hint on SUBLW - I missed that subtle point!

Peter
-
Peter Knight      Email: p.j.knightspamKILLspamuk.ac.bradford      Mono: Cathedrow
                                          _  _          _            _
Who says you can't display letters on a 7 |   _| |_ |_  |_| _|  _  _  _|
segment display? OK, so you can't do a W..|_ |_| |_ | | |_ |_| |  |_| _|



More... (looser matching)
- Last day of these posts
- In 1994 , 1995 only
- Today
- New search...