Flash Magic Forum

In-System Programming Support => P89C51Rx+/P89C51Rx2/P89C66x/P89C6xX2/P89V66x => Topic started by: ketan on January 18, 2004, 03:56:19 AM

Title: 89C51RD2 is not ready to enter in ISP
Post by: ketan on January 18, 2004, 03:56:19 AM
Hi,

I have programmed the chip (89C51RD2) twice in ISP mode.
But after that I erased the boot Vector & status byte to 00Hex. So now even if I force by hardware to ISP mode, The device is not ready to listen.
And it start executing the code from 0Hex.

I think the problem should get solved by reprogramming the Boot Vector.
(Pl. reply faster)
Please advice.
Thank You.
Ketan.
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on January 18, 2004, 07:28:45 AM
Assuming the code you programmed does not provide a method for entering ISP mode, then the only solution is to use a parallel programmer to program the Boot Vector back to FCH. Sorry.

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Peter on March 02, 2004, 09:09:12 PM
I have use a parallel programmer to programe the boot Vector back to FCH.

But , it still can't work?

peter
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on March 03, 2004, 07:04:21 AM
What do you mean program the Boot Vector BACK to FCH? You mean it wasn't FCH? What was it?

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: biker on March 16, 2004, 09:02:04 AM
Hi Andrew, I have a question for you.
I had the same problem as Ketan. I programmed the chip (89C51RD2BA)
once in ISP mode, but I think I erased the Boot Vector and status bytes
since I selected "Erase all Flash+Secutity+Clks" button box first time, and now I can't program it again.  The alert window says "Unable to read the security bits and clock bits...." and other win says " Error verifying.  There is a difference in the Hex file value and the stored value".  

Comment 1:  How I can reprogram by paralell mode the chip? (soft and        hardware).

Comment 2:  The next time if I want to program the chip I should not mark
       "Erase all Flash+Secutity+Clks" button box.  Which steps I
        should take for good programming ISP mode with Flash Magic         soft.

Help me, please!

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on March 16, 2004, 12:34:11 PM
Erasing all the flash and security bits will not affect the Boot Vector, unless you interrupted the erase at some point. So, normally, it is perfectly fine to use that option. Explicity changing the Boot Vector to a non-default value in Flash Magic always requires confirmation.

For parallel programming you need to purchase a parallel programmer that supports the device.

Can you do anything with the device now? Do some things work or does nothing work?

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erik malund on March 17, 2004, 04:24:28 AM
For parallel programming you need to purchase a parallel programmer that supports the device.

If it is one chip only and you have a friendly Philips FAE in the neighborhood, you can probably get him to do it.

I do not understand why so many gladly walk down the garden path instead of installing NoTouch/TheBackdoor.  In addition to making it super safe it allows you to make your board without any regard for "funny levels at reset" sincfe the fr5esh chips are already in ISP mode.

Erik
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: biker on March 17, 2004, 06:57:41 AM
In this moment I can't do anything. I need to reprogram the device but in the moment I start up Flash Magic appear this message:
-(bottom )Attemp to connect...
-Win allert:
"Unable to read the securite bits and clocks bit. The security bit and 6 clks/cycle checkboxes may not reflect the actual setting on the device. To read the security bits and clocks bit connect the device to the select COM port and place it into BOOTROM mode then click on the Retry button..."
Then I select "cancel" and select 5) Start with the last configuration and appear follow message:
"Unable to connect at the specified baud rate. Try reducing the baud rate. Reset the hardware into ISP mode again" but with less baud rate I can't connect neither.
I'm sure that COM port is OK cause I can reprogram other devices (P89C51RC+) without problem, but with P89C51RD2 I can't do it.

ahhhhhh!!!
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on March 17, 2004, 07:47:46 AM
Did you implement the reset workaround on the errata sheet for the RD2BA?

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: biker on March 22, 2004, 08:57:09 AM
Ok I solved the problem. The solution was in the errata datasheet (FIG 2), but I make a change cause the circuit RC put a high input in Vpp pin, then I proved R=33k3 and C= 1uF and is OK.

Thank for all.
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: biker on March 22, 2004, 09:00:36 AM
Sorry Workaround number 2, but the fig is number one
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: sachin gole on April 16, 2004, 01:51:51 AM
hi,

I have problems for programming 89C51RD2 in ISP mode with serial port using max232.
I had done all connection which is given in datasheet.
then it gives unable to connect.


Please send me solution as early as possible.
Thank You.
Ketan.
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on April 16, 2004, 07:40:45 AM
Sachin/Ketan - I deleted your duplicate post.

I need some very basic information:

Which device are you using? P89C51RD2xx or P89C51RD2Hxx?
What baud rate are you using?
What crystal frequency are you using?
What are the voltages on /PSEN, /EA during reset?

If you are using the P89C51RD2Hxx then are you letting P2.6 and P2.7 float or pull them high during reset?

If you are using the P89C51RD2xx then have you implemented to reset workaround on the errata sheet?

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on April 16, 2004, 09:44:59 AM
Why not just include NoTouch and possibly 'the backdoor'.  That is better thanh aspirin.

Erik
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Ajit on April 29, 2004, 10:52:31 PM
Dear Sir,

V r using 89C51rd2bn IC. While communicating ISP twice it didn't give any problems but now it giving the message "Attempting to communicate".

The same problem v had faced while doing a isp for 89C668 controller although the problem for that have been solved now. How i didn't know.

But for Rd2 v still facing a problem.

Awaiting for your reply.

Thanking you,

Ajit
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on April 30, 2004, 08:54:14 AM
Are you using the same hardware for both the RD2BN and the 668? If so then it sounds like an electrical problem. Check the voltages on VCC, GND, /PSEN (during reset), RST (during and after reset), P2.6 and P2.7 and make sure they are all what they should be, and glitch and ripple free.

If you are not using the same hardware then between the two successful programs of the RD2BN, did you execute the downloaded code?

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Rons on April 30, 2004, 02:19:36 PM
To erikm,
     People have to go through the front door many times, until they
     realize there is a backdoor.
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on May 03, 2004, 06:06:57 AM
People have to go through the front door many times, until they
realize there is a backdoor

well, the Idea in NoTouch (the front door) and 'the backdoor' is that you let your guests (customers) in through the front door, but you yourself, when you have accidentially locked the front door may have to use the back door.

Erik
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: chris keays on May 05, 2004, 05:14:26 PM
I have the same problem. Flash magic changes the fuse bytes when programming.
I built a programmer to program the RD2/ED2 devices with Flash Magic.
(the same circuit in AN461 figure 2)
I finally got Flash Magic to  detect my programmer, so I tried to read the chip and program it once. I did not change any of the fuse settings. The code was just a fill of 11 22 33 44 ...etc  just to check the hardware, and now I am locked out.

I have a couple of questions:
Does flash magic automatically change the HSB byte after programming? I could not see how to change it.

I am using an 89C51ED2. I read the "migration from T89C51RD2 to AT89C51ED2" application note from atmel. It does mention that the BLJB bits can be changed via ISP. Flash magic does not detect that chip. I Know the hardware is ok because I insert a brand new AT89C51ED2 and Flash Magic detects it.

Secondly is there a simple circuit that I can build to program the HSB byte back in. Is there anywhere to purchase such a device? There are simple circuits to change similar fuses on an atmel avr device, I was just wondering if  anyone knows where to find such a device or schematic. I do have a Labtool48 parallel Universal programmer but it will not program the ED2 devices, it does however program the RD2.

 I have read the data sheets through and through, and still cannot find an answer.

any help is greatly appreciated.

Thanks Guys
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on May 05, 2004, 06:56:17 PM
Sorry, Flash Magic does not support the Temic (now Atmel) or Atmel devices. You need to use FLIP from Atmel. Flash Magic only supports Philips devices.

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: selvam on May 28, 2004, 02:19:45 AM
hi andrew ,

is there any programming is needed for entering into isp?

pls mail me
thanks and rgds
selvam
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on June 01, 2004, 09:51:41 AM
Is this the same problem that you are posting about in the other thread (the one I Erika and I replied to)? If so then please continue the discussion over there otherwise please elaborate.

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: dipak on June 04, 2004, 06:07:52 AM
helllo sir

MY XAG49 controller not supporting ISP

may be boot vector corrupted

whether flash magic support parrallel progrmming

what to do

pls let me know

thank you
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on June 04, 2004, 01:42:27 PM
dipak - this thread is a discussion about the 89C51RD2, not the XA-G49. Please repost your question in a new thread. Thank you.

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Canh on June 17, 2004, 08:39:21 PM
Author:Ntcanh
Date" 18/6

Hello sir!

I want to write a sotfware the same flashmagic.I have intended to make a PLC using microcontroler 89C51RD2,so I desire to have soure of flashmagic to study .How can i get it.Please help me.Thanh you
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on June 18, 2004, 06:36:33 AM
I have intended to make a PLC using microcontroler 89C51RD2
how many people have you employed to write the ladder logic interpreter for the PC?.  The last company doing it spent 22 man-years I have been told.

For storing a few variables in the flash all the code is available here.

Erik
Title: help on programming P89C51RD2HPB
Post by: Jigar on June 23, 2004, 12:40:43 AM
Dear Sir,
While programming P89C51RD2HPB through WinISP software, I am getting the message, "Flash Programming Successful". But then when i try to verify it, it shows error.  The boot vector is FC H and staus is FF H. When i try to read the chip, it shows FF h at all memory locations.

Need a quick reply.
Thanking you,
Jigar Shukla
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on June 23, 2004, 05:35:38 AM
>>While programming P89C51RD2HPB through WinISP software<<

Easy fix: use FlashMagic instead

Erik
Title: Re: help on programming P89C51RD2HPB
Post by: Andy Ayre on June 23, 2004, 08:08:24 AM
Yes, please try Flash Magic and see if that helps.

Title: help to program 89v51rd2
Post by: ketan on July 03, 2004, 04:51:11 AM
i m using  89v51rd2 uc and flash magic for programming the same.
but after making target board on it shows "reset device into ISP mode"
and not Proceeding  plz help me get out of this probs
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: anuj on July 27, 2004, 08:37:47 AM
i ned ur help i want complete in formation about this ic
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on July 27, 2004, 08:41:30 AM
You can get the datasheet from www.philipsmcu.com.

Title: isp mode
Post by: nidhi on September 16, 2004, 11:00:55 PM
i've just started with 89C51RD2, i wud like to know abouts the modes of prog. like ISP, IDE etc. n the difference between the modes and their requirements .
kindly tell me about ISP in details.

nidhi
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on September 17, 2004, 05:41:48 AM
>>>i've just started with 89C51RD2, i wud like to know abouts the modes of prog. like ISP, IDE <<<

IDE (Integrated Design Environment)  is not programming

Read AN461

Erik
Title: Re: isp mode
Post by: Andy Ayre on September 17, 2004, 08:27:43 AM
AN461 = Philips application note. You can get it from www.philipsmcu.com.

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Deepen Shah on October 07, 2004, 03:26:56 AM
sir
if you got answer for this question than please do tell me also on this email id
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on October 07, 2004, 08:13:28 AM
An answer for which question? If you have a problem please be more specific. We need as much information as possible.

Title: how to use 89v51rd2 instead of 89c51rd2 philips
Post by: Deepen on November 01, 2004, 12:42:09 AM
sir i was using philips 89c51rd2 ic and its not working now so please do help me how to replace 89c51rd2 by 89v51rd2 as the 89c51rd2 is not  avilable
please do send me the reply
Title: Re: how to use 89v51rd2 instead of 89c51rd2 philips
Post by: Andy Ayre on November 01, 2004, 06:06:25 AM
You need to compare the datasheets. The devices are quite different in terms of SFRs, etc. You will need to make changes to your code. Also you need to make sure you select the "V" device in Flash Magic when programming it, as entering ISP mode is different.

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: MaCH on December 10, 2004, 12:33:16 AM
Hi,

Im need to program AT89C51ED2 / RD2. Im using Flip Programmer SW. Is there any scheme for programing the processor with FLIP SW?

Thx

MaCH
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on December 10, 2004, 04:21:34 AM
refer Flip questions to a Flip forum.

If you switch to Philips chips, you can use FlashMagic and ask your questions here.

Erik
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: NGOC on January 08, 2005, 02:46:47 AM
i was using P89C51DR2BN , and i don't know PIN Vpp have conect to +5V /12V or GND ,because in application note AN416_7 draw it is conected to 0.1uF to GND
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on January 10, 2005, 05:13:52 AM
because in application note AN416_7 draw it is conected to 0.1uF to GND .....  AND ALSO +5V.

The +12, in my opinion only should not be used.

Erik
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Jesper on January 11, 2005, 07:46:45 AM
HELP me...

i have a P89C51RD+JB (44-Pin Plastic Quad Flat Pack-PQFP) solder on a development board. on the board, it have ISP or ICP (i not sure:P) circuit for serial programming.
there is a jamper to put it into ISP, I have no problem using Flash Magic to programming the chip. normally i choose Erase all flash when programming it.

But untill this morning,when i doing the same thing, i programming the board using Flash Magic, in the middle of Erasing process,my RX TX connector lose out (i mean disconnected from PC) and programming process is stoped. after that i'm not able to do ISP again.
normally when I put the jumper to ISP mode, it will not executing the code, but now even the board are in ISP mode, it still executing the code, running the program, and I not able to connect it to PC to re-program the chip....please help me...

any solution to make it ISP programable again,other the take it out from board and use parallel programmer.
if not choice, then can i connect the parallel programmer pinout to the chip with the chip still on the circuit to program it. i don't have the skill the take the chip out from that board and I don't have parallel programmer that program PQFP.

hope to hear from you guys soon, thanks in advance.


Jesper.
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on January 11, 2005, 07:59:32 AM
Was it a full device erase that was interrupted? Unfortunately this also erases the boot vector. Once erasing is complete, Flash Magic restores the boot vector to the factory default. If you interrupt the erasing process before it is complete, then you will end up with a boot vector of 00H.

The only way I know of to restore the boot vector is by using a parallel programmer. I would advise against connecting a device to a parallel programmer while the device is on a cicrcuit board, as you might damage your parallel programmer.

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Jesper on January 11, 2005, 09:05:10 AM
I not remember,but i think it is a full device erase.
but wait a second, as I told you, the board is still executing the code, and I mean it is still running the code that I programmed inside before I erase it.
or the board is running the new code???....I'm not sure,because I just make a small change to the code...

as I remember the interrupted occur in the erasing process...if it is erased the flash...then how come it only erase the RootROM and my code is still in it. If the interrupted occur when it finish erase the flash and have write my new code in...then how come it can write my new code in with out the BootROM at the end...hmm....

what is the function of start BootROM in the Flash Magic, can it do the job.
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on January 11, 2005, 09:10:16 AM
I don't know why it still has code it in. It could have been that the erase was just starting and the first locations to be erased are the boot vector and status byte.

You can build into your application the ability to receive a command on the UART and then use IAP to place the device into ISP mode. The Start BootROM feature allows you to send those commands that your application expects. It's all described in the manual. :)

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Jesper on January 11, 2005, 09:28:54 AM
now I not able to use ISP then how i going to program the UART command in it ???....
what is mean by IAP. what is the diffence between IAP and ISP....is they same as in the hardware part or software part.

I just read about the Start BootROM, in the manual...it say that Start BootROM need the chip running the serial command to watch the UART from Flash Magic in it before to get thing work. but my the code in the chip now don't have the function:(
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Jesper on January 11, 2005, 10:17:21 AM
Is that a must to have the BootROM in the flash to do ISP.
can I know is that all serial port programming for P89C51 are using ISP method any need BootROM. without the BootROM no software can do serial programming ????
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Jesper on January 11, 2005, 07:25:24 PM
Problem sloved, I give it a higher voltage to force the P89C51RD+ to enter ISP mode, bout 12.3v so I able to connect it with Flash Magic to erase the chip again.
anyway, thanks Andrew Ayre for helping me.
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on January 11, 2005, 07:27:54 PM
I'm glad you found the solution. Note that newer Philips ISP programmable devices don't require a 12V programming voltage, 5V is used instead.

Title: Re: isp mode
Post by: varun on January 13, 2005, 12:05:04 AM
hi
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: varun on January 13, 2005, 12:10:00 AM
hi
can u send me the errata datasheet of 89c51rd2 .
can any body send the hardware configuration they r using for the ISP
of 89c51rd2bn.?
thanks

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on January 13, 2005, 04:40:10 AM
can u send me the errata datasheet of 89c51rd2 .
Maybe micro will, otherwise find it at the philips website, why do you need som,eone else to find it for you



can any body send the hardware configuration they r using for the ISP
of 89c51rd2bn.?
There is NONE, see AN461 for what you need to do

Weik
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: varun on January 13, 2005, 09:35:41 AM
i tried a lot but i didnt find the errata datasheet .
i think it is not on the philips website.
i have made the circuit given in the AN461 but it does not work.?
when ever i try to erase the flash "unable to connect" message pops up.
can you help me to solve this problem?
i am using 89c51rd2bn at 12 megahertz frequency
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on January 13, 2005, 09:45:00 AM
 tried a lot but i didnt find the errata datasheet


the link is on the"cover page" for the chip

when ever i try to erase the flash "unable to connect" message pops up.
can you help me to solve this problem?
i am using 89c51rd2bn at 12 megahertz frequency


Does it work with a factory fresh chip ?

Erik
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Arif Deshmukh on January 14, 2005, 04:26:23 PM
Hello,
          I have erased P89C51RD2 and P89V51RD2 using programmer. By mistake I have erased entire chip including BOOT LOADER software wich resides in the chip, and it does not come in ISP mode. Please send me the boot loader software for both the chip so I will programe the same, or give me the address of the web site from where I will get boot loader.
           My ID is ---> thecodewarrior@rediffmail.com

Regards.
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: varun on January 16, 2005, 01:44:14 AM
i am using the factory fresh chip.
but it does not work.
i really cant find anything wrong in the connection.
the serial port is also working properly when serial port mouse is used.
so  can there be problem with software?i.e. flash magic?
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: varun on January 16, 2005, 04:21:54 AM
what is the work around for reset given in the errata sheet.?
and what about PSEN pin.
i am using 89c51rd2bn but whenevre tried to connect it give the message that it is unable to connect.try reducing baud rate.
i am not finding the errata datasheet on the net.
so please can you send me it my email id is:varun_rz@rediffmail.com

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on January 17, 2005, 05:50:55 AM
the link to the errata is on the header page for the chip
\
Erik
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: kevin on January 18, 2005, 04:16:13 AM
 
The Boot vector and status byte  read at 5v and at voltage <5v were observed different.Why is it so??Giving 12V instead of 5V enters into ISP??
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: User_A on January 21, 2005, 10:06:32 AM
I am having following probelm

"Unable to read the securite bits and clocks bit. The security bit and 6 clks/cycle checkboxes may not reflect the actual setting on the device. To read the security bits and clocks bit connect the device to the select COM port and place it into BOOTROM mode then click on the Retry button..."
Then I select "cancel" and select 5) Start with the last configuration and appear follow message:
"Unable to connect at the specified baud rate. Try reducing the baud rate. Reset the hardware into ISP mode again" but with less baud rate I can't connect neither.

If any one know how to solve, could you please let me know?

Thank you
David
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: bramh on January 30, 2005, 04:20:57 AM
hey,
can you send me the link for errata datasheet you are talking about.
thanks
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on January 31, 2005, 08:08:58 AM
>>can you send me the link for errata datasheet you are talking about.<<
No, if you can not find it yourself you have no business using these chips.

Erik
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Vinayak Gadre on February 27, 2005, 08:31:31 AM
Hi,

 I am using Philips 89C51RD2. I had programmed the controller for more than 30 times then suddenly it was not working. It gives me message 'Unable to connect '.I have changed right from MAX 232 to Serial Port and also have implemented the reset pin configuration. But didnt help.
  I talked to one person, he said there might some problem with the Flash memory of controller. Is there any possibilty of some part it getting corrupted....?

 Please reply soon.

Vinayak
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on February 28, 2005, 05:27:50 AM
get rid of the RC reset - use a supervisor.  Then restore the chip in a parallel programmer.

Erik
Title: 89C51RD2 PROGRAMMING CIRCUIT USING MAX232
Post by: SHAILESH KULKARNI on April 06, 2005, 10:08:29 AM
I WANT TO SEE THE PROGRAMMING CIRCUIT AND LAYOUT OF89C51RD2 USING
MAX232
Title: Re: 89C51RD2 PROGRAMMING CIRCUIT USING MAX232
Post by: Andy Ayre on April 06, 2005, 10:11:08 AM
There should be a simplified circuit diagram in the data sheet or user manual of the device. Also the datasheet for the MAX232 devices have example circuit diagrams.

Title: Re: help on programming P89C51RD2HPB
Post by: Jean Fernandes on June 12, 2005, 04:19:18 AM
Sirs

Is it possible to use the code flash memory not used to data storage on P89 ? How to proceed, if is possible ?

Thanks
Title: Re: help on programming P89C51RD2HPB
Post by: Andy Ayre on June 12, 2005, 12:30:12 PM
Sorry, I don't understand your question. Also P89 doesn't identify a specific device.

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Nikhil Deshpande on June 27, 2005, 05:39:26 AM
Dear Ketan,
I am also facing the same problem. I guess programming the boot vector back to 'FCh' through parallel programmer will solve the problem and the IC can be used again.
You can try out this solution, meanwhile if you find any other solution i'll grateful if you please let me know.
With regards,
Nikhil
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Aditya Bankar on July 08, 2005, 09:23:39 AM
I have set my 89C51RD2BN circuiratary as mentioned in datasheet for ISP. But while performing any activity I get error messages. I am sugested to try at lower baud rates, even though working at the lowest possible rate. Help as quickly as possible
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on July 08, 2005, 09:26:10 AM
We need more information.

What error messages are you getting?
What ISP operations generate the errors? Some? All?
What crystal frequency are you using?
Have you performed the basic debugging steps described in the FM application note on what to do when ISP does not work?

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: sandeep sahani on August 03, 2005, 01:06:34 AM
 i wright program in rd2 progrem is not wright properly
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on August 03, 2005, 05:21:59 AM
this sounds like someone that believes in the urban legend that a RS232 transciever CHIP such as the MAX232 is not a MANDATORY REQUIREMENT.

Erik
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: JK on August 22, 2005, 01:46:54 PM
The AutoISP mode is usable on the RS232 port only.

When particular hardware conditions are met (on RESET and PSEN* pins), the target device starts executing the bootloader program on reset.

AutoISP is the mechanism by which FLIP controls the boot process hardware conditions so that you do not have to manually set them.

To take advantage of this feature, you must design your hardware so that the RS232 / RTS signal is connected to the PSEN* pin and the RS232 / DTR signal is connected to the RESET one.

The AutoIsp mode may be activated through the Preferences dialog.

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Andy Ayre on August 22, 2005, 01:54:21 PM
Note that FLIP is for Atmel devices and Flash Magic is for Philips devices.

Control of RST and /PSEN via DTR and RTS can be found under Options -> Advanced Options -> Hardware Config tab.

Title: about isp mode.
Post by: sunil khollam on September 26, 2005, 12:30:05 AM
Mr Andrew,
              Please can you tell me what is mean by "Reset hardware in ISP mode" in case of microcontroller 89C51RD2xx. in detail.
  In your email to me you siad about DTR and RTS what is mean by that.Please tell it with most simplicity as I am beginner. I will be pleased if you uide me.Thank you.
Title: Re: about isp mode.
Post by: Andy Ayre on September 28, 2005, 02:09:58 PM
It means fiddle with the reset and PSEN to place the device into ISP mode. This only applies if you are not using Flash Magic to control DTR and RTS (which are COM port handshaking signals) to in turn control RST and PSEN.

Start by connecting RST and PSEN to switches so you can control placing the device into ISP mode manually. Later on when that is working, if you need to you can build the additional circuitry to use DTR and RTS.

Title: I can proggraming the P89C51RD2xx
Post by: Alcides Moreno on October 08, 2005, 10:44:52 AM
 I'm Alcides Moreno and I'm new hier.
to loock at help I find this site. I have to read all message but doon
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on October 10, 2005, 05:22:04 AM
I see no relation to FlashMagic in your post, why post here?

Try 8052,com or any other non_ISP forum dealing with the ;51.

Erik
Title: 89C51RD2and89v51RD2
Post by: Huibing Yin on October 12, 2005, 04:47:07 AM
Mr Andrew,
    I have designed a circuit that uses p89c51rd2, and the PCB has been made. But now I have only P89v51RD2 , so if I want to use p89v51RD2, need I change any circuit, or just put the P89v51RD2 in the PCB where is for P89C51RD2 originally? I need your advice.

Thank you!
Title: Re: 89C51RD2and89v51RD2
Post by: Andy Ayre on October 13, 2005, 02:30:18 AM
The V device has a different ISP entry method so you need to be aware of that. Also the pinout may be different - the only way to tell for sure is to check the datasheets. The AC and DC characteristics may also vary a bit - again the datasheets will tell you that.

Title: Re: 89C51RD2and89v51RD2
Post by: Barry Grieves on October 13, 2005, 04:46:03 PM
And the V device will definitely not work with an R/C reset circuit, you must use a reset chip.
Title: 89v51rd2
Post by: y.sivakumar on October 15, 2005, 05:28:50 AM
I need correct circuit to perform hex code flashing using flash magic by using 89v51rd2 microcontroller.
For example , a correct reset circuit or a reset chip design ,so that i can enter into ISP mode.
Let me know details ....
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Jan Waclawek on October 16, 2005, 02:21:48 AM
There is nothing special in reset circuit design for entering the bootloader using the "V", it's just the RS232 level convertor only for Tx and Rx - you run FlashMagic set to the "V" device, that will start sending "U"s, then you reset the mcu which waits at the beginning for the "U"s and if it sees them it enters the bootloader mode - and that's all. You don't need to fiddle around with /PSEN as it was with the "C" device.

If this procedure is not suitable, e.g. if there is a continuous serial stream on the UART even while resetting is possible in the final application, the bootloader can also be customized if needed, so that it enters the bootlader mode upon a different condition (e.g. some pin set) - but that needs reprogramming the bootloader.

Jan Waclawek
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on October 17, 2005, 06:03:03 AM
I need correct circuit to perform hex code flashing using flash magic by using 89v51rd2 microcontroller.

1) you MUST use a supervisor chip
2) if "non-H" there is a little schenatic in the errata that MUSt be implemented
3) everything else you need is in AN-461

Erik
Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: Jan Waclawek on October 17, 2005, 09:38:29 AM
Erik,

are you sure you are referring to the P89V51RD2?

JW

Title: Re: 89C51RD2 is not ready to enter in ISP
Post by: erikm on October 18, 2005, 06:20:05 AM
The thread is named "89C51RD2 is not ready to enter in ISP", so, of course I am not

Erik