Joe's Hobby Electronics
  • Joe's Hobby Electronics
    • Electronics Blog

PICKIT2 and the 18F25K22

19/6/2012

0 Comments

 
The PICKIT2 PIC Programmer from Microchip is a very common programmer, and is still on the Microchip active list and available for purchase. There are also clones available via auction sites.

Whilst the PICKIT2 won’t support some of the larger program memory PICs available because it’s own internal memory is limited, it is in my opinion a better programmer as it’s faster than the KIT3, cheaper, and you don’t have to keep reloading it’s operating firmware depending on the PIC range you want to use.

I have been asked on several occasions why the PICKIT2 doesn’t support the 18F25K22 PIC when it does seem to support the K20 variant, and the reason is simple. It does, but you do need to update your device file. The K22 variant was released after the K20 variant and that’s probably why it wasn’t included at the same time.

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

The above link in to the Microchip website will allow you to download the latest PICKIT2 software (currently v2.61) AND the Device file (1.62.14). Look on the right of the webpage under the heading "What's new !".

Upgrade your software if required, and then replace the device file with the one you’ve just downloaded and after this, the V22 device should be available for you to select.
0 Comments

Completed... at last...

1/1/2012

0 Comments

 
At last, it’s completed and this new programmer will make my life so much easier when it comes to PIC development.

This has been one of those projects that in some ways, I wished I’d not started as there seemed no end to it and everything just seemed to go wrong. I blame the fact that I never really had any time to just sit down and do this project from start to finish, but now it’s completed and working, I’m really pleased I stuck with it.

And here it is.
Picture
Ok, a bit of explanation as to what this lovely, beautiful piece of equipment can do.

Inside the case are six PCBs packed with electronics. There’s a PCB that contains a PSU with 5v regulator and an adjustable voltage regulator; set to around 7.3v that drives the LEDs in the push switches. Also on this board is a MAX232 and associated electronics that provide two RS232 interfaces; more on these in a second. There are four almost identical boards; one per output channel that contain a 16-bit shift register, driver chips and relays. The final board contains the PIC and driver logic that runs everything.

Also inside are two Microchip PICKIT programmers (a PICKIT2 and a PICKIT3).

On the front panel there are four 9-way D-Type connections that can be used to connect an ICSP cable to a project under development, or, in the case of this new programmer, up to four projects in development; this will make multi-PIC projects a lot simpler to develop and debug.

You can select which PICKIT is connected to which of the four ports and you can of course only connect each programmer to one port at a time. The unit also has in-built support for RS232 which I use for project debugging. My custom ICSP cable has provision for serial data to be set from the PIC to the outside world and this makes it possible to send any debugging information from the PIC, into my programmer which level shifts from TTL to RS232 and then out to a dumb terminal emulator. I’ve made provision for up to two serial ports and again, you can select which serial port is attached to which input. The serial ports are also available via four, 4mm banana sockets on the front panel for use within other projects.

The upshot of this is that you can connect one port to each PIC project under development, and allocate either of the internal programmers / serial ports on the fly to each port as required without the need to keep unplugging cables all the time.

The advantage of this new unit over my now obsolescent one (which only support up to three outputs and was very clunky), is that I could, in theory, expend the design to support as many output ports as required. It would be a lot of additional effort to increase the number of PICKIT programmers that can be supported. This was going to be a six port unit but I didn’t have a case large enough at the time. But now I’ve got all the hardware sorted out, it wouldn’t be too difficult to build a larger one if required. I’d need to tweak the PIC firmware that controls everything of course, but that’s no real hassle.

Oh yes, the reason I've used a PICKIT2 and a PICKIT3 is simple. I prefer the PICKIT2 as it's much faster than the 3, but the 3 supportes a couple of PICs that I've started to use that the 2 dosn't. I could have used any combination of programmers if desired, or even completly different programmers. It's just I rather like the Microchip ones.
0 Comments

Time for a new PIC programmer

9/10/2011

0 Comments

 
I’ve been having intermittent problems with my PIC programmer recently. It was quite literally thrown together in an afternoon several years ago and whilst it’s served me well, it’s time a new one was constructed. Now, you would be right in thinking what’s the point in building a PIC programmer when they are available for peanuts and well supported, and you would be right. However, nothing in my world is ever simple and I have a couple of additional requirements that a standard off the shelf programmer doesn’t support.

My existing programmer can, at the turn of a switch, be connected to one of three different PICs and this makes developing multi-PIC projects much easier; I don’t have to spend time unplugging and re-plugging cables all the time. My first requirement is to upgrade from a maximum or three, to four PICs.

My existing PIC programmer also allows for serial data to be routed to and from the select PIC to aid debugging via a dumb terminal. Second upgrade is that I want to be able to support two serial ports and select which PIC uses which serial port. This will allow me to, if required, connect the programmer element to one PIC, and the two serial ports to two other PICs.

My final requirement is to support a much wider range of PICs than my current programmer BUT, I don’t want the hassle of having to write and maintain the software so the actual programmer element will be based on two Microchip PIC programmers; a PICKIT2 and a PICKIT3. The reason for using two different programmers is because whilst I prefer the PICKIT2 as it’s MUCH faster than the PICKIT3, there are several PICs that I use that aren’t supported by the PICKIT2. One useful feature of the PICKITs is that you can connect several of them to a single PC.

So, my current clock project got moved to the back-burner and this afternoon I started work on my new programmer.

Once all the buttons are labelled up it will be much clearer, but there are four push buttons per PIC channel. One selects which programmer is connected (PICKIT2 or PICKIT3), and the lower two push buttons select which COM port the serial data is routed to. On the right of the panel are three additional switches. Two of these allow for serial data to be read/written directly to the serial ports via the 4mm sockets, and the third push button is the master reset. Those square buttons have in-built LEDs so it’s possible to see which options are selected. The LEDs on the right are power monitors, and status indicators from the PIC programmers.

Hopefully, I should be able to get this completed during the evenings next week.
Picture
0 Comments

    Author

    A software and hardware engineer who loves retro computers.

    Archives

    March 2022
    September 2021
    April 2021
    June 2020
    May 2020
    April 2020
    March 2020
    September 2019
    January 2019
    April 2018
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    May 2015
    April 2015
    March 2015
    January 2015
    December 2014
    September 2014
    August 2014
    April 2014
    March 2014
    January 2014
    October 2013
    September 2013
    August 2013
    July 2013
    June 2013
    April 2013
    March 2013
    January 2013
    September 2012
    June 2012
    May 2012
    April 2012
    February 2012
    January 2012
    December 2011
    November 2011
    October 2011
    September 2011
    August 2011
    July 2011
    June 2011

    Categories

    All
    18f25k20
    18F25K22
    1-wire
    2114
    2764
    3D Printer
    3D Printing
    74hc595
    74ls595
    86-0325
    8MHz
    Access Speed
    Acorn
    Acorn System 1
    Alarm
    Aluminium Panel
    Amicus
    Amicus18
    Amicus Basic
    Amplifier
    Antex 1107
    Anti-static Mat
    Arduino
    Assembler
    Backlight
    Bargains
    Basic
    Bat
    Batdetector
    Bat Detector
    Bats
    Bench Audio Amplifier
    Bench Light
    Breadboard
    Bubbler
    Buck
    Bug
    "C"
    Cable
    Cable Gauge
    Cable Wire Size
    Capacitors
    Catalogue
    Clive Maxfield
    Clock
    Clocks
    CMOS
    Common Emitter
    Compiled
    Compiler
    Connector
    CPU
    CPU Simulator
    Crownhill
    Custom Computer
    Custom CPU
    Damage
    Develop
    Diode
    Diptrace
    Double-sided
    Double-Sided PCB
    Dry-joint
    Ds1302
    DS1820
    Ds18b20
    Ebay
    EEPROM
    Electronics And Circuits
    Eprom
    Erase
    Etch
    Evaporator
    Failed Capacitor
    Fake
    Fax Paper
    Ferric Chloride
    Fire Hazzard
    Firmware
    Florescent Tube
    Health And Safety
    Hidden Part Numbers
    High-Voltage
    Hv
    IC Test Clip
    IC Testing
    In Circuit IC Testing
    Incubator
    INS8154
    Instruction Set
    Inverter
    Kickstarter
    Laser Cutter
    Lcd
    LM2596
    LM386
    Logic Analyser
    M7MOJ
    Maxim
    Maximum Current Rating
    Mega
    Mit
    MITx 6.002
    MK4
    Molex
    Mosfet
    NE555
    Nixie
    Nixie Clock
    Npn
    OXO
    Oxo Machine
    Pcb
    Pic
    Pic Basic
    Pickit2
    Pickit3
    Pic Programmer
    Pixy
    Poster
    Pre-amp
    Prices
    Programming
    Project Box
    Project Case
    Project Enclosure
    Propagation Delay
    Psu
    Psu Failure
    Qfn
    RAM
    Rapid Electronics
    Raspberry Pi
    Regulated 5v Psu
    Regulator
    Repair
    Review
    SAD (Segment Address Decoder)
    SCC
    SCC MK4
    Seven Segment Display
    Shift Register
    Silient 700
    Slow Progress
    Smoke
    Smps
    Soldering
    Speed
    Speed Test
    Stepper Motor
    Supression
    Swg
    Switch Box
    Tank
    Tantalum Capacitor
    Temperature
    Temperature Sensor
    Texas Instruments
    Thermometer
    Tic Tac Toe
    Tic-tac-toe
    Timer
    Tools
    Traffic Lights
    Transistor
    TTL
    Usb
    Uv
    Vbe
    Vcb
    Vce
    W65C02
    Wash
    Weller
    Wirecutters
    Wire Cutters
    Wire Strippers
    Wiring
    Wp3eu
    X2 Capacitor
    X Capacitor
    Y Capacitor

    RSS Feed

© Joe Farr, 2011 - 2022 - Email: HobbyElectronics@kcsl.uk.com