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
 
Tools
Old 19th February 2008, 01:38 PM   #1
Default problem with PIC18f4620 having previous program

hy, i am trying to do some interrupt programming test on my PIC18f4620 which i used previously as Zigbee node. means the zigbee node program was there. now i built another test program and successfully compleate the 'Project built' and 'program' by MPLAB ICD2. after that i connect Hyperterminal to see the serial port operation (sending information from pc to microcontroller and microcontroller to pc). but still i am getting the message "Microchip ZigBee(TM) Stack - v1.0-3.5......." which i had previously while working with zigbee.

now my query is how to erase the previous program from PIC18f4620.
sohagiut is offline  
Old 19th February 2008, 02:47 PM   #2
Default

Hi,

I am a newbie as well but I can suggest you things which I do to erase the program. If you are using MPLAB ICD2, then select the programming mode [NOT the debugging mode]. Set a connection with the PIC. Then go to program--> Erase part. After that click on Blank check. Finally click on program to load your code into the PIC.


Hope this helps.

Regards,
Vili
vili.chaudhary is offline  
Old 19th February 2008, 05:09 PM   #3
Default

Quote:
Originally Posted by vili.chaudhary
If you are using MPLAB ICD2, then select the programming mode [NOT the debugging mode]. Set a connection with the PIC. Then go to program--> Erase part. After that click on Blank check. Finally click on program to load your code into the PIC.
Completely unnecessary! MPLAB automatically erases the chip before programming it. Just program it and you're done. All those other steps are redundant. All you're doing is wearing out your flash twice as fast as necessary.

Sounds to me like he either has something wired wrong, or his programmer isn't working right.

And you can program it in debug mode, from the debugger menu. It takes a bit longer, as it has to program the debug code as well as your own.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================

Last edited by futz; 19th February 2008 at 05:16 PM.
futz is offline  
Reply

Tags
pic, previous, problem, program

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
pic16f877 ram problem osmandemirci General Electronics Chat 1 28th November 2006 04:11 PM
P16F628A w/ P16PRO programming problem micro571 Micro Controllers 7 16th February 2006 05:17 PM
Program Address for 16F628A johnnyquest Micro Controllers 1 11th January 2005 07:47 PM
A very strange problem on 16F877 liupengjian Micro Controllers 5 21st April 2004 10:36 AM
how do I debug my pic program ? lneijman General Electronics Chat 1 3rd March 2003 11:58 AM



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


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker