PIC: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
Brian Wilson (talk | contribs)
mNo edit summary
 
(37 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Device programming==
We live in an age of wonder... I can buy 32bit MIPS processor boards (aka PIC32) for $49.
I am considering using one for my car computer project, but on this page at the moment I
am only talking about using a PICKIT2 to control a keyboard.


I am now using a PICKIT 2 purchased directly from Microchip, it seems like a great deal. For $50 you get a development board, the programmer, and the software.
2015-Jun I have a PICKIT3 around someplace now too! Lost it when we moved. Dang.


The PICKIT 2 runs either the Microchip MPLab IDE or various Linux open source programs.
== The chips ==


PICKIT 2 FAQ http://www.voti.nl/pickit2faq/index.html
What I have around right now


PICKIT 2 programming button hack
* PIC 18F25K20 (28 pin) compares well with the chip used for Arduino, the ATmega328p
http://www.instructables.com/id/PICKIT2-programming-button-mod/
* PIC 16F873 (28 pin) pin compatible with the 18F25K20, but requires an external clock
* PIC 16F628 (20 pin)
* PIC 12F675 (8 pin)
* PIC 12F629 (8 pin)
* PIC 12F683 (8 pin)
* PIC 12F1501 (8 pin)
* PIC 10F322 (8 pin DIP, also available in 6 pin SOIC)
* 24LC65 8Kx8 EEPROM
* 8 MHz ceramic resonators
* 4 MHz ceramic resonators
* 32kHz xtals for slow but very low power operation (button cell powered data collectors)


==PIC Microprocessor Resources==
== Development tools ==


http://www.embeddedrelated.com/ EmbeddedRelated web site, and the mailing list: PIClist
=== Hardware ===
 
I have a PICKIT 3 now. In fact, two. The older one came with a 18F* dev board, the new one came with a 10F322 board. The old one is... stored someplace probably or got lost in the move from Oregon. Drat.
 
I also have a PICKIT 2 purchased directly from Microchip. For $50 you get a development board, the programmer, and the software.
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en023805&redirects=pickit2
 
==== Pickit 2 ====
 
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en027813
 
[http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en023805&redirects=pickit2 Microchip product page]
 
[http://www.microchip.com/forums/tm.aspx?m=270347 Official FAQ] in Microchip forum
 
Alt PICKIT 2 FAQ http://www.voti.nl/pickit2faq/index.html
 
1/13/13 -- My recent foray was unsatisfying because I found my Pickit 2 does not support the 16F690 for debugging with the C compiler, even though it's the chip on the Pickit 2 board... I am setting up a breadboard with a 16F873 I had in my junk box. Hope it works.
 
=== possible parts for Car computer ===
# WQVGA LCD? MICROCHIP - AC164127-6 - GRAPHIC DISPLAY, 480X272, TFT LCD, DEMO BOARD $120
http://www.microchipdirect.com/ProductSearch.aspx?Keywords=AC164127-6
 
=== MpLabX IDE ===
 
[http://www.microchip.com/pagehandler/en-us/family/mplabx/#downloads MPLAB X downloads]
 
2016-Jul-17 Installed on OS/X El Capitan '''STILL DOES NOT WORK'''. Tired of this. MPLAB X 3.35
 
2016-JUN-27 I just installed 3.35 on Mint Linux. It goes into /opt
 
The "extras" have to be installed separately.
 
XC Compiler is here: http://www.microchip.com/mplab/compilers
 
I installed these; there are others:


===High Level Languages===
* XC8 version 1.37
* XC16 version 1.26


==== Basic language ====
Code Configurator is here: http://www.microchip.com/mplab/mplab-code-configurator


MPLAB X 3.05 did not work on Mac Yosemite (installs but spins on startup forever) I use a Linux Mint machine under Parallels.


http://www.BasicMicro.com/ -- "Atom", a mostly Stamp compatible PIC platform. Includes IDE and debugger.
There are also libraries.


http://www.crownhill.co.uk/section.php?section=1 Proton Basic
They have a thing called "Harmony" that I have not looked at because it's for PIC32


http://www.melabs.com -- Maker of 'PICBASIC' compiler.
=== Eagle CAD ===


http://www.picant.com/c2c -- C, C++, and Pascal for the
Use the SparkFun library from https://github.com/sparkfun/SparkFun-Eagle-Libraries
PIC. low cost (< $100)


http://www.xcprod.com/titan/XCSB - optimising structured PIC BASIC compiler
===High Level Languages===


==== C language ====
==== C language ====


The MPLab development software from Microchip includes a free version of the Hi-Tech C compiler called PICC LITE.
MPLAB XC: mostly free C compilers http://www.microchip.com/pagehandler/en_us/devtools/mplabxc/
Hi-Tech also has commercial versions of the PICC compiler.
Non-free options offer better optimizations. You get a 60 day eval on PRO level with the free version.
 
http://www.ccsinfo.com/picc.shtml C compilers starting at just $50.


http://www.ccsinfo.com/picc.shtml expensive option
http://www.fored.co.uk/ Wiz-C


http://www.fored.co.uk/ Wiz-C  
If working with PIC16 or PIC18 see https://sites.google.com/site/rmaalmeida/mplabx-sdcc-toolchain
 
==== Basic language ====
 
* http://www.melabs.com -- Maker of 'PICBASIC' compiler.
* http://www.BasicMicro.com/ -- "Atom", a mostly Stamp compatible PIC platform. Includes IDE and debugger.
* http://www.crownhill.co.uk/section.php?section=1 Proton Basic
* http://www.picant.com/c2c -- C, C++, and Pascal for the PIC. low cost (< $100)
 
http://www.xcprod.com/titan/XCSB - optimising structured PIC BASIC compiler
 
== Other PIC Microprocessor Resources ==
 
http://www.embeddedrelated.com/ EmbeddedRelated web site, and the mailing list: PIClist


==== Other languages ====
[[Category: Electronics]]
[[Category: Embedded]]

Latest revision as of 00:04, 27 August 2018

We live in an age of wonder... I can buy 32bit MIPS processor boards (aka PIC32) for $49. I am considering using one for my car computer project, but on this page at the moment I am only talking about using a PICKIT2 to control a keyboard.

2015-Jun I have a PICKIT3 around someplace now too! Lost it when we moved. Dang.

The chips

What I have around right now

  • PIC 18F25K20 (28 pin) compares well with the chip used for Arduino, the ATmega328p
  • PIC 16F873 (28 pin) pin compatible with the 18F25K20, but requires an external clock
  • PIC 16F628 (20 pin)
  • PIC 12F675 (8 pin)
  • PIC 12F629 (8 pin)
  • PIC 12F683 (8 pin)
  • PIC 12F1501 (8 pin)
  • PIC 10F322 (8 pin DIP, also available in 6 pin SOIC)
  • 24LC65 8Kx8 EEPROM
  • 8 MHz ceramic resonators
  • 4 MHz ceramic resonators
  • 32kHz xtals for slow but very low power operation (button cell powered data collectors)

Development tools

Hardware

I have a PICKIT 3 now. In fact, two. The older one came with a 18F* dev board, the new one came with a 10F322 board. The old one is... stored someplace probably or got lost in the move from Oregon. Drat.

I also have a PICKIT 2 purchased directly from Microchip. For $50 you get a development board, the programmer, and the software. http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en023805&redirects=pickit2

Pickit 2

http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en027813

Microchip product page

Official FAQ in Microchip forum

Alt PICKIT 2 FAQ http://www.voti.nl/pickit2faq/index.html

1/13/13 -- My recent foray was unsatisfying because I found my Pickit 2 does not support the 16F690 for debugging with the C compiler, even though it's the chip on the Pickit 2 board... I am setting up a breadboard with a 16F873 I had in my junk box. Hope it works.

possible parts for Car computer

  1. WQVGA LCD? MICROCHIP - AC164127-6 - GRAPHIC DISPLAY, 480X272, TFT LCD, DEMO BOARD $120

http://www.microchipdirect.com/ProductSearch.aspx?Keywords=AC164127-6

MpLabX IDE

MPLAB X downloads

2016-Jul-17 Installed on OS/X El Capitan STILL DOES NOT WORK. Tired of this. MPLAB X 3.35

2016-JUN-27 I just installed 3.35 on Mint Linux. It goes into /opt

The "extras" have to be installed separately.

XC Compiler is here: http://www.microchip.com/mplab/compilers

I installed these; there are others:

  • XC8 version 1.37
  • XC16 version 1.26

Code Configurator is here: http://www.microchip.com/mplab/mplab-code-configurator

MPLAB X 3.05 did not work on Mac Yosemite (installs but spins on startup forever) I use a Linux Mint machine under Parallels.

There are also libraries.

They have a thing called "Harmony" that I have not looked at because it's for PIC32

Eagle CAD

Use the SparkFun library from https://github.com/sparkfun/SparkFun-Eagle-Libraries

High Level Languages

C language

MPLAB XC: mostly free C compilers http://www.microchip.com/pagehandler/en_us/devtools/mplabxc/ Non-free options offer better optimizations. You get a 60 day eval on PRO level with the free version.

http://www.ccsinfo.com/picc.shtml C compilers starting at just $50.

http://www.fored.co.uk/ Wiz-C

If working with PIC16 or PIC18 see https://sites.google.com/site/rmaalmeida/mplabx-sdcc-toolchain

Basic language

http://www.xcprod.com/titan/XCSB - optimising structured PIC BASIC compiler

Other PIC Microprocessor Resources

http://www.embeddedrelated.com/ EmbeddedRelated web site, and the mailing list: PIClist