All About Circuits Forum  

Go Back   All About Circuits Forum > Software, Microcomputing, and Communications Forums > Embedded Systems and Microcontrollers

Notices

Embedded Systems and Microcontrollers Discussion forum for projects and working with embedded systems and microcontrollers (FPGAs, PICs, AVRs). Get help with hardware issues and embedded programming.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 03-10-2010, 11:36 AM
poriet poriet is offline
Junior Member
 
Join Date: Feb 2010
Posts: 17
Default PICkit2 programming problem

Hi,
I'm just learning to program PICs; I have the PICkit2.
Rather than use the LPC demo board with its F690, I opted to use a 16F54 baseline chip ( I just had one handy ) for which I made a breakout board.
However, all this is academic for, when you open MPLAB and select this PIC, it tells you that you cannot use the PICkit2 programmer. This is odd: the microchip website states that the F54 is supported; also the PICkit2 menu shows the F54.
PIC chips, huh! One part inspiration, 10 parts bloody frustration.

Bruce
Reply With Quote
  #2  
Old 03-10-2010, 12:32 PM
AlexR AlexR is offline
Senior Member
 
Join Date: Jan 2008
Location: Australia (UTC+10)
Posts: 509
Default

Yes I've noticed the same thing not that I have used any 16F5X chips so I'm not talking from experience.

I don't know why MPLAB does not support 16F5X chips under pickit2 since the chips do support ICSP so in theory the pickit2 should be able to program them. One solution could be to use the pickit2 stand-alone GUI to program the chips. Its not as convenient as programming from the PMLAB IDE but it might get you around the problem.

The other solution is to cut your losses, ditch the 16F5X chips you have and get something a bit more powerful. The 16F5X series are pretty terrible chips and as you get deeper into programming you will find their lack of interrupts, absents of any useful peripherals, and a mere 2 level stack depth very limiting.
__________________
Alex

"A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools."-Douglas Adams
Reply With Quote
  #3  
Old 03-10-2010, 02:05 PM
blueroomelectronics's Avatar
blueroomelectronics blueroomelectronics is offline
Senior Member
 
Join Date: Jul 2007
Location: Toronto, Canada
Posts: 718
Default

Since the 16F54 doesn't support debug...
You can configure the PICKit2 software to automatically program on button or change of hex file. So after MPLAB creates the hex file the PICKit2 can program it.
Reply With Quote
  #4  
Old 03-10-2010, 03:44 PM
poriet poriet is offline
Junior Member
 
Join Date: Feb 2010
Posts: 17
Default

Thank you guys. I know this is a crap chip, but I only want to get the feel of flashing a few LEDs and maybe a 7-seg display. I've gone to the trouble of making a breakout board, so....
Blueroom...I fear I dont really understand what you mean. I write the program in MPLAB, then what? I open the PIC kit2 menu, click on 'write on PICkit button' and then press the button. Is that it?

Bruce
Reply With Quote
  #5  
Old 03-10-2010, 04:10 PM
BMorse's Avatar
BMorse BMorse is offline
Senior Member
 
Join Date: Sep 2009
Location: Vermontville, Michigan (GMT -5)
Posts: 1,810
Default

Quote:
Originally Posted by poriet View Post
Thank you guys. I know this is a crap chip, but I only want to get the feel of flashing a few LEDs and maybe a 7-seg display. I've gone to the trouble of making a breakout board, so....
Blueroom...I fear I dont really understand what you mean. I write the program in MPLAB, then what? I open the PIC kit2 menu, click on 'write on PICkit button' and then press the button. Is that it?

Bruce

The Pickit2 comes with its own standalone program for programming a hex file to a pic, you do not have to use it as a programmer right in MPLAB.... compile your code in MPLAB, close MPLAB, open the Pickit2 app, load the hex you just compiled and program that into the pic....

B. Morse
__________________
There is no spoon -Neo-
Disclaimer: The example programs,circuits, projects and information I provide or post on this web site are for educational purposes only. By copying anything from this site posted by me, you agree to the "as is" nature of the programs, circuits, information and to the statements listed in this disclaimer.No warranty or liability is expressed or implied. Working with AC /DC voltages can be dangerous and even deadly. Proceed at your own risk!
Reply With Quote
  #6  
Old 03-10-2010, 05:11 PM
t06afre's Avatar
t06afre t06afre is online now
Senior Member
 
Join Date: May 2009
Posts: 1,496
Default

Quote:
Originally Posted by BMorse View Post
The Pickit2 comes with its own standalone program for programming a hex file to a pic, you do not have to use it as a programmer right in MPLAB.... compile your code in MPLAB, close MPLAB, open the Pickit2 app, load the hex you just compiled and program that into the pic....
B. Morse
Then using the Pickit 2 programmer you must select MCU. Else the Pickit 2 will not start programming. I checked and could not find any 16f5* device on my setup (ver 2.61) I think the using the programmer to go option is the best alternative, but I can not check it

Last edited by t06afre; 03-10-2010 at 05:18 PM.
Reply With Quote
  #7  
Old 03-10-2010, 07:00 PM
poriet poriet is offline
Junior Member
 
Join Date: Feb 2010
Posts: 17
Default

Thanks; I'll give it a go. BTW, I'm using PICkit2 ver2.5 and the F54 is right there!
Bruce
Reply With Quote
  #8  
Old 03-10-2010, 07:58 PM
Markd77's Avatar
Markd77 Markd77 is offline
Senior Member
 
Join Date: Sep 2009
Location: Birmingham
Posts: 689
Default

On this page click the link PICKIT2 V2.61 on the right hand side of the page.

http://www.microchip.com/stellent/id...irects=pickit2
Reply With Quote
  #9  
Old 03-10-2010, 09:28 PM
AlexR AlexR is offline
Senior Member
 
Join Date: Jan 2008
Location: Australia (UTC+10)
Posts: 509
Default

Quote:
Originally Posted by t06afre View Post
Then using the Pickit 2 programmer you must select MCU. Else the Pickit 2 will not start programming. I checked and could not find any 16f5* device on my setup (ver 2.61) I think the using the programmer to go option is the best alternative, but I can not check it
Probably you were looking in the wrong place. The PIC16F5X are classed as "Baseline" chips
__________________
Alex

"A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools."-Douglas Adams
Reply With Quote
  #10  
Old 03-11-2010, 08:40 AM
t06afre's Avatar
t06afre t06afre is online now
Senior Member
 
Join Date: May 2009
Posts: 1,496
Default

Quote:
Originally Posted by AlexR View Post
Probably you were looking in the wrong place. The PIC16F5X are classed as "Baseline" chips
Yes you and BMorse are correct. And I am wrong. I have never used the the Pickit 2 software besides testing the programmer to go option once. So i should have done my homework much better before I gave a statement. I hope I did not cause any confusion for you Poriet
Reply With Quote
Reply   Post New Thread

Bookmarks

Tags
, , , ,

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with USART Rs-232 PIC programming walid el masry Embedded Systems and Microcontrollers 12 12-06-2009 05:32 PM
ASM Programming problem Jakob90 Embedded Systems and Microcontrollers 2 01-14-2009 04:34 PM
Simple PIC programming problem chrischristian Embedded Systems and Microcontrollers 2 05-16-2008 04:42 AM
PIC Programming Problem m_mourad2008 Embedded Systems and Microcontrollers 1 03-08-2008 02:42 PM
68000 Programming problem JLam Programmer's Corner 0 02-15-2005 08:08 AM


All times are GMT. The time now is 10:22 PM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License. Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.