Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 19th November 2007, 03:04 AM   (permalink)
Default Programmer for a PIC16F886?

I've been using a JDM interface, and IC-Prog, to program my 16F88's.... works great

I'm starting a new project, using a 16F886. Went to program one of em, and found out (the hard way) that IC-Prog doesn't support that device. Neither does WinPic.

Anyone using 16F886? What do you use to program it?

I'm thinking I'll bite the bullet and get me a PICKit 2. Well, not a huge bullet to bite, at $35.00... but I do hate the wait. I've got my code written and I really want to get to testing the 16F886 in my target application.
pdfruth is offline  
Old 19th November 2007, 03:08 AM   (permalink)
Default

The PICkit 2 will do it, so will an ICD2

I like the 16F886, I've used it on the Dragonfly kit and and it can be used on the Mogoose kit instead of the 18F2525.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 19th November 2007, 03:36 AM   (permalink)
Default

While your waiting for your new programmer to arrive, you might want to read this page.

Mike.
Pommie is offline  
Old 19th November 2007, 04:06 AM   (permalink)
Default

Quote:
Originally Posted by Pommie
While your waiting for your new programmer to arrive, you might want to read this page.

Mike.
Hmmmmm, interesting..... you mean I can configure WinPic to handle this device???? Cool
What a noob I am

Thanks for the pointer Mike.

Last edited by pdfruth; 19th November 2007 at 04:12 AM.
pdfruth is offline  
Old 19th November 2007, 03:42 PM   (permalink)
Default

I've had one of those "Ah Ha" moments.
I'm realizing that there is more than one "WinPic" out there.

I was trying to use the WinPic at; www.winpic800.com.

Which is not the same as the WinPic at; http://freenet-homepage.de/dl4yhf/winpicpr.html

Using the later, I was able to configure my own devices.ini file (as per the instructions in the link Mike provided above). I am now able to program a 16F886 using my trusty little JDM programmer
Thanks again Mike
pdfruth is offline  
Old 19th November 2007, 03:50 PM   (permalink)
Default

Well done. Can you post the section you added to the config file so that others may benefit in the future.

Mike.
Pommie is offline  
Old 19th November 2007, 07:12 PM   (permalink)
Default

It would appear I have declared victory too soon.
I was able to get my code programmed into the 16F886 successfully, the first time. However, now that I've made a code change, I'm having trouble getting the code to [re]program. It appears the bulk erase algorithm required for the 16F886 is different from any of those supported by WinPic.
Darn... so close, yet so far away
pdfruth is offline  
Old 19th November 2007, 08:47 PM   (permalink)
Default

Quote:
Originally Posted by pdfruth
It would appear I have declared victory too soon.
I was able to get my code programmed into the 16F886 successfully, the first time. However, now that I've made a code change, I'm having trouble getting the code to [re]program.
It's more likely to be a problem with the JDM programmer that doesn't controll Vdd. Are you using the internal oscillator with MCLR disabled?
Google for "PICPgm programmer". It supports the 16f88x.

Last edited by eng1; 19th November 2007 at 08:49 PM.
eng1 is offline  
Old 19th November 2007, 11:49 PM   (permalink)
Default

If you end up wanting a programmer, the one from sparkfun can use many, many different pics, also, only $13!!
wmmullaney is offline  
Old 20th November 2007, 12:47 AM   (permalink)
Default

Quote:
Originally Posted by wmmullaney
If you end up wanting a programmer, the one from sparkfun can use many, many different pics, also, only $13!!
Thought you didn't have a programmer? How do you know its any good?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 20th November 2007, 01:27 AM   (permalink)
Default

Quote:
Originally Posted by pdfruth
It would appear I have declared victory too soon.
I was able to get my code programmed into the 16F886 successfully, the first time. However, now that I've made a code change, I'm having trouble getting the code to [re]program. It appears the bulk erase algorithm required for the 16F886 is different from any of those supported by WinPic.
Darn... so close, yet so far away

I had a look at the WinPic source code.
Good news... It looks like there's an erase algorithm (undocumented), called "16F617" that appears to do exactly what the 16F886 programming spec says is necessary. I updated my device.ini to use "EraseAlgo=16F716", and voila.... now I'm able to erase, and re-program my 16F886.

The programming works, but the verify fails after the programming operation completes. If I then, program just the config words, a verify runs cleanly.

It's a bit of a kludge, but it works

Last edited by pdfruth; 20th November 2007 at 02:51 AM.
pdfruth is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Which Programmer? Broz Micro Controllers 4 18th November 2007 07:45 PM
programmer! 4electros Micro Controllers 8 12th November 2007 08:48 PM
Watering programmer arsana Electronic Projects Design/Ideas/Reviews 19 16th March 2007 09:58 PM
PIC programmer & WinPicProg: my findings eblc1388 Micro Controllers 5 27th August 2005 12:13 PM
PIC Programmer through COM and ICSP (JDM ??) test1 Micro Controllers 6 12th October 2004 09:06 AM



All times are GMT. The time now is 02:30 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker