New to Pics

Started by Mark Adams November 27, 2005
Hi all, I am new to pics and was hoping someone would explain some of
my options for writing code and downloading it to the mcu. I have used
Interactive C for my Handyboard and I have a little Turbo C experience
but haven't done any assembly language. I have seen many programmers
for sale on the internet and have downloaded MPLab IDE from microchips
site but I am unsure if this is the best place to start.

Thanks for the input.

Mark


Have a look at http://www.piclist.org . I'd start with assembly code to
get a feel for the chip. Later, when your projects get big, you can do a
mix of assembly and C. I'm currently doing my interrupt service routines
in assembly and the rest in C. Probably start with a program to blink and
LED. With that you know you've actually got control of the chip. Then go
on from there. http://www.microchip.com has the MPLAB development package
for free. It includes an editor, assembler, and simulator. It also
interfaces nicely with their ICD-2 debugger, which I use CONSTANTLY. They
also have a free student version of the C18 compiler so you can write
stuff in C.

Good luck!

Harold
> Hi all, I am new to pics and was hoping someone would explain some of
> my options for writing code and downloading it to the mcu. I have used
> Interactive C for my Handyboard and I have a little Turbo C experience
> but haven't done any assembly language. I have seen many programmers
> for sale on the internet and have downloaded MPLab IDE from microchips
> site but I am unsure if this is the best place to start.
>
> Thanks for the input.
>
> Mark >
>
> to unsubscribe, go to http://www.yahoogroups.com and follow the
> instructions
> Yahoo! Groups Links >
>


--
FCC Rules Updated Daily at http://www.hallikainen.com



Hi,
learning writing code in assembly language is a step wise process.Fst u must have to know some basics small programms.These smalll programms r like  alphbet  which make words n then a sentence afterward a paragraph etc.
So u fst learn some elementry programms from any persion.
Thanking you. 

 
On 12/2/05, Harold Hallikainen <h...@hallikainen.com> wrote:
Have a look at http://www.piclist.org . I'd start with assembly code to
get a feel for the chip. Later, when your projects get big, you can do a
mix of assembly and C. I'm currently doing my interrupt service routines
in assembly and the rest in C. Probably start with a program to blink and
LED. With that you know you've actually got control of the chip. Then go
on from there. http://www.microchip.com has the MPLAB development package
for free. It includes an editor, assembler, and simulator. It also
interfaces nicely with their ICD-2 debugger, which I use CONSTANTLY. They
also have a free student version of the C18 compiler so you can write
stuff in C.

Good luck!

Harold
> Hi all, I am new to pics and was hoping someone would explain some of
> my options for writing code and downloading it to the mcu. I have used
> Interactive C for my Handyboard and I have a little Turbo C experience
> but haven't done any assembly language.  I have seen many programmers
> for sale on the internet and have downloaded MPLab IDE from microchips
> site but I am unsure if this is the best place to start.
>
> Thanks for the input.
>
> Mark>
>
> to unsubscribe, go to http://www.yahoogroups.com and follow the
> instructions
> Yahoo! Groups Links
>


--
FCC Rules Updated Daily at http://www.hallikainen.com



to unsubscribe, go to http://www.yahoogroups.com and follow the instructions

YAHOO! GROUPS LINKS

 

Hi Mark,

You can get a FREE DEMO (light) C compiler (ANSI C) for the '877 (and some
others) from Hi-Tech. Or you can write ASM code and use the MpLab as you
have discovered. CCS has C compilers and support routines to make writing a
program for a PIC a snap.

MpLab is also quite friendly to the Hi-Tech compiler and others.

For programmers, there are clone ICD2's from Olimex or you can build one
from scratch. From DIY there are a slew of K's (K159, K150...). The old
pro40's might work for you. You can even buy a PICstart or ICD2 or... from
MicroChip!

I just bought a PC877 demo board from kits4you, but the jury is still out on
its support (problems reading Thai manuals and Thai filenames on CD). It
comes with a dongle and a windows program to program it's '877.
Inexpensive!

Alan KM6VV > -----Original Message-----
> From: piclist@picl... [mailto:piclist@picl...] On Behalf
> Of Mark Adams
> Sent: Sunday, November 27, 2005 12:12 PM
> To: piclist@picl...
> Subject: [piclist] New to Pics
>
> Hi all, I am new to pics and was hoping someone would explain some of
> my options for writing code and downloading it to the mcu. I have used
> Interactive C for my Handyboard and I have a little Turbo C experience
> but haven't done any assembly language. I have seen many programmers
> for sale on the internet and have downloaded MPLab IDE from microchips
> site but I am unsure if this is the best place to start.
>
> Thanks for the input.
>
> Mark
>


Can you please provide link for the board you bought?
 
tks
 
Marcelo

Alan Marconett <K...@arrl.net> escribi
Hi Mark,

You can get a FREE DEMO (light) C compiler (ANSI C) for the '877 (and some
others) from Hi-Tech.  Or you can write ASM code and use the MpLab as you
have discovered.  CCS has C compilers and support routines to make writing a
program for a PIC a snap.

MpLab is also quite friendly to the Hi-Tech compiler and others.

For programmers, there are clone ICD2's from Olimex or you can build one
from scratch.  From DIY there are a slew of K's (K159, K150...).  The old
pro40's might work for you.  You can even buy a PICstart or ICD2 or... from
MicroChip!

I just bought a PC877 demo board from kits4you, but the jury is still out on
its support (problems reading Thai manuals and Thai filenames on CD).  It
comes with a dongle and a windows program to program it's '877.
Inexpensive!

Alan  KM6VV> -----Original Message-----
> From: p...@yahoogroups.com [mailto:p...@yahoogroups.com] On Behalf
> Of Mark Adams
> Sent: Sunday, November 27, 2005 12:12 PM
> To: p...@yahoogroups.com
> Subject: [piclist] New to Pics
>
> Hi all, I am new to pics and was hoping someone would explain some of
> my options for writing code and downloading it to the mcu. I have used
> Interactive C for my Handyboard and I have a little Turbo C experience
> but haven't done any assembly language.  I have seen many programmers
> for sale on the internet and have downloaded MPLab IDE from microchips
> site but I am unsure if this is the best place to start.
>
> Thanks for the input.
>
> Mark


1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
Abrtu cuenta aqup>
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
Abrtu cuenta aqubr />

On 27 Nov 2005, at 20:11, Mark Adams wrote:

> Hi all, I am new to pics and was hoping someone would explain some of
> my options for writing code and downloading it to the mcu.

Mark,

I started on PICs from zero knowledge last year. I bought one of the
very simple serial port JDM-style programmers http://
www.jdm.homepage.dk/newpics.htm . Olimex sell a very cheap version.
http://www.olimex.com/dev/pic-pg2c.html . At the price these sell for
it is hardly worth building your own.

This worked very well, but the JDM design does have some
shortcomings. Notably a PIC that has been already programmed to use
its internal oscillator will self-run as soon as it gets power,
effectively stopping it from going into program mode. I found a
simple mod solution for this, adding a FET, but then it refused to
program some other chips, so I added a switch to put the FET in and
out of circuit. Not ideal. I also got spurious programming errors
sometimes and I just got annoyed with it.

So I then bought a serial/usb programmer kit 149 from kitsrus.com .
This is fantastic, IMHO. I think the latest kit 150 is similar but
USB only and all you have to do is put the firmware chip in the
socket and solder in a ZIF socket, which you will need to buy
separately. http://www.dontronics.com/diyk150.html has pictures. Good
PC software for it is included, which is very easy to use. There is
even a support forum for these kits. I know several others with these
kits and we all love them.

Personally, being rather stupid and wanting results rather than
learning programming languages, I went for PICBASIC Pro from Melabs.
http://www.melabs.com/products/index.htm#Compiler

This takes almost all the tedium out of programming PICs. I can do
things very very quickly with it and make no apologies for doing so.
The PICBASIC manual and a free demo version is available free online
so you can see if it does what you need. http://
www.microengineeringlabs.com/resources/pbpmanual/

As for which PICs, I started out with the 16F628(a) and 16F876(a) and
16f877(a). This served me well with most of what I needed to do.

John


Hi Marcelo,

 

Several different development boards (PIC V1 Board) are available from: https://www.micro4you.com/ Also a ICD2 Clone (ICD2 PIC IN-CIRCUIT DEBUGGER).

 

 

I also bought the 18F452 PIC book: http://www.picbook.com/ A little pricey for a book, but the company is paying for it. The book does include the Qwik Flash board (bare), and a kit of parts from Digi-Key populates it (purchased separately).

 

Another good source is Dontronics, which is often mentioned. And then the PICDEM FS USB board if you’re interested in USB on the PIC (MicroChip).

 

Alan KM6VV

 

From: p...@yahoogroups.com [mailto:p...@yahoogroups.com] On Behalf Of Marcelo Benitez
Sent: Friday, December 02, 2005 9:03 AM
To: p...@yahoogroups.com
Subject: RE: [piclist] New to Pics

 

Can you please provide link for the board you bought?

 

tks

 

Marcelo

Alan Marconett <K...@arrl.net> escribi

Hi Mark,

You can get a FREE DEMO (light) C compiler (ANSI C) for the '877 (and some
others) from Hi-Tech.  Or you can write ASM code and use the MpLab as you
have discovered.  CCS has C compilers and support routines to make writing a
program for a PIC a snap.

MpLab is also quite friendly to the Hi-Tech compiler and others.

For programmers, there are clone ICD2's from Olimex or you can build one
from scratch.  From DIY there are a slew of K's (K159, K150...).  The old
pro40's might work for you.  You can even buy a PICstart or ICD2 or... from
MicroChip!

I just bought a PC877 demo board from kits4you, but the jury is still out on
its support (problems reading Thai manuals and Thai filenames on CD).  It
comes with a dongle and a windows program to program it's '877.
Inexpensive!

Alan  KM6VV



Hello,
 
You can made your ICD2 by itself.
 
I have upload the Schematics, PCBs and Bootloader software.
 
http://rapidshare.de/files/8741335/icd2_electoday.rar.html
 
Good look...
 
Hasan ARSLAN
 
 
 
 
 


Alan Marconett <K...@arrl.net> wrote:
Hi Marcelo,
 
Several different development boards (PIC V1 Board) are available from:  https://www.micro4you.com/  Also a ICD2 Clone (ICD2 PIC IN-CIRCUIT DEBUGGER).
 
 
I also bought the 18F452 PIC book:  http://www.picbook.com/   A little pricey for a book, but the company is paying for it.  The book does include the Qwik Flash board (bare), and a kit of parts from Digi-Key populates it (purchased separately).
 
Another good source is Dontronics, which is often mentioned.  And then the PICDEM FS USB board if youre interested in USB on the PIC (MicroChip). 
 
Alan  KM6VV
 
 
From: p...@yahoogroups.com [mailto:p...@yahoogroups.com] On Behalf Of Marcelo Benitez
Sent: Friday, December 02, 2005 9:03 AM
To: p...@yahoogroups.com
Subject: RE: [piclist] New to Pics
 
Can you please provide link for the board you bought?
 
tks
 
Marcelo

Alan Marconett <K...@arrl.net> escribi
Hi Mark,

You can get a FREE DEMO (light) C compiler (ANSI C) for the '877 (and some
others) from Hi-Tech.  Or you can write ASM code and use the MpLab as you
have discovered.  CCS has C compilers and support routines to make writing a
program for a PIC a snap.

MpLab is also quite friendly to the Hi-Tech compiler and others.

For programmers, there are clone ICD2's from Olimex or you can build one
from scratch.  From DIY there are a slew of K's (K159, K150...).  The old
pro40's might work for you.  You can even buy a PICstart or ICD2 or... from
MicroChip!

I just bought a PC877 demo board from kits4you, but the jury is still out on
its support (problems reading Thai manuals and Thai filenames on CD).  It
comes with a dongle and a windows program to program it's '877.
Inexpensive!

Alan  KM6VV




Yahoo! Personals
Skip the bars and set-ups and start using Yahoo! Personals for free

--- In piclist@picl..., "Alan Marconett" <KM6VV@a...> wrote:
>
> Hi Marcelo,
> Hi Marcelo

I just posted the address of an excellent outfit for purchasing
boards. Go to www.wesedu.com. I purchased two of their boards, and
they excellent.

Andy
>
>
> Several different development boards (PIC V1 Board) are available
from:
> https://www.micro4you.com/ Also a ICD2 Clone (ICD2 PIC IN-CIRCUIT
> DEBUGGER). > I also bought the 18F452 PIC book: http://www.picbook.com/ A
little
> pricey for a book, but the company is paying for it. The book does
include
> the Qwik Flash board (bare), and a kit of parts from Digi-Key
populates it
> (purchased separately). >
> Another good source is Dontronics, which is often mentioned. And
then the
> PICDEM FS USB board if you're interested in USB on the PIC
(MicroChip).
> Alan KM6VV > _____
>
> From: piclist@picl... [mailto:piclist@picl...] On
Behalf Of
> Marcelo Benitez
> Sent: Friday, December 02, 2005 9:03 AM
> To: piclist@picl...
> Subject: RE: [piclist] New to Pics >
> Can you please provide link for the board you bought? >
> tks >
> Marcelo
>
> Alan Marconett <KM6VV@a...> escribi
>
> Hi Mark,
>
> You can get a FREE DEMO (light) C compiler (ANSI C) for the '877
(and some
> others) from Hi-Tech. Or you can write ASM code and use the MpLab
as you
> have discovered. CCS has C compilers and support routines to make
writing a
> program for a PIC a snap.
>
> MpLab is also quite friendly to the Hi-Tech compiler and others.
>
> For programmers, there are clone ICD2's from Olimex or you can
build one
> from scratch. From DIY there are a slew of K's (K159, K150...).
The old
> pro40's might work for you. You can even buy a PICstart or ICD2
or... from
> MicroChip!
>
> I just bought a PC877 demo board from kits4you, but the jury is
still out on
> its support (problems reading Thai manuals and Thai filenames on
CD). It
> comes with a dongle and a windows program to program it's '877.
> Inexpensive!
>
> Alan KM6VV >
> _____
>



Hi I found the PVK40 a pretty good board with lots of stuff to test out....
 
http://www.pic-tools.com/kit_pvk40.htm 
 
-Joe

From: p...@yahoogroups.com [mailto:p...@yahoogroups.com] On Behalf Of Alan Marconett
Sent: Tuesday, December 06, 2005 4:14 PM
To: p...@yahoogroups.com
Subject: RE: [piclist] New to Pics

Hi Marcelo,

 

Several different development boards (PIC V1 Board) are available from:  https://www.micro4you.com/  Also a ICD2 Clone (ICD2 PIC IN-CIRCUIT DEBUGGER).

 

 

I also bought the 18F452 PIC book:  http://www.picbook.com/   A little pricey for a book, but the company is paying for it.  The book does include the Qwik Flash board (bare), and a kit of parts from Digi-Key populates it (purchased separately).

 

Another good source is Dontronics, which is often mentioned.  And then the PICDEM FS USB board if youre interested in USB on the PIC (MicroChip). 

 

Alan  KM6VV

 

 

From: p...@yahoogroups.com [mailto:p...@yahoogroups.com] On Behalf Of Marcelo Benitez
Sent: Friday, December 02, 2005 9:03 AM
To: p...@yahoogroups.com
Subject: RE: [piclist] New to Pics

 

Can you please provide link for the board you bought?

 

tks

 

Marcelo

Alan Marconett <K...@arrl.net> escribi

Hi Mark,

You can get a FREE DEMO (light) C compiler (ANSI C) for the '877 (and some
others) from Hi-Tech.  Or you can write ASM code and use the MpLab as you
have discovered.  CCS has C compilers and support routines to make writing a
program for a PIC a snap.

MpLab is also quite friendly to the Hi-Tech compiler and others.

For programmers, there are clone ICD2's from Olimex or you can build one
from scratch.  From DIY there are a slew of K's (K159, K150...).  The old
pro40's might work for you.  You can even buy a PICstart or ICD2 or... from
MicroChip!

I just bought a PC877 demo board from kits4you, but the jury is still out on
its support (problems reading Thai manuals and Thai filenames on CD).  It
comes with a dongle and a windows program to program it's '877.
Inexpensive!

Alan  KM6VV