Flash Magic Forum

In-System Programming Support => P89C51Rx+/P89C51Rx2/P89C66x/P89C6xX2/P89V66x => Topic started by: Sunil Patil on October 13, 2003, 06:47:57 AM

Title: P89C51rd2HBP
Post by: Sunil Patil on October 13, 2003, 06:47:57 AM
Hello,
I am using ISP programing for the first time. I am using the circuit given in Application note AN461_11.  It satisfies following conditions.
1)PSEN is grounded through 2k resistor.
2)EA =5v
3)P2.6 and P2.7 is high(=5v)
4)ALE is floating
My comport is working properly. Chip is working properly. I am following the instructions given in Application note 4.
It gives me following error when I tried to reset with FlashMagic program software.
"Unable to communicate(transmit/receive). Ensure that COM port is not used by any other program Please try to lower or raise the baud rate."

I have tried using each and every baud rate given. But its not serving the purpose. What could be the source(or sources ) of error?
 
Thanks,
Sunil
Title: Re: P89C51rd2HBP
Post by: Andy Ayre on October 13, 2003, 08:35:46 AM
It could be many things. What crystal frequency are you using? If it is 10MHz or higher then 9600 baud should definately work.

You said you are followed application note 4. What are the results of performing the tests in section 4.1 - "Terminal Test"? That will tell me a lot.

Title: Re: P89C51rd2HBP
Post by: Sunil Patil on October 13, 2003, 09:14:50 AM
Thanks for prompt reply,
Well ,

I am using 11.0592 Mhz crystal. Regarding terminal test, I am not understanding how to start BootROM feature in Hyperterminal.

But I have written simple program which tests whether RS232-Microcontroller communication works or not. And it is working.

Additional information which I would like to give is that, I have programmed this chip using parallel programmer(To program above mentioned step) Is it anyway related to my cause of the problem?

Sunil Patil
Title: Re: P89C51rd2HBP
Post by: erik malund on October 13, 2003, 10:18:04 AM
"I have programmed this chip using parallel programmer(To program above mentioned step) Is it anyway related to my cause of the problem?"

It is, if the programmer changed the boot vector.

Erik
Title: Re: P89C51rd2HBP
Post by: Andy Ayre on October 13, 2003, 10:32:48 AM
First check using your parallel programmer that you haven't changed the boot vector from the default, as Erik suggested.

Second, to test entering ISP mode simply connect to the device using Hyperterminal as described in the app note and send a single uppercase 'U'. It should be echoed back. If not then you need to investigate why it wasn't echoed back. The app note leads you through this. For example, did the 'U' reach the device? Was the baudrate at the RxD pin what you expected? Sometimes optocouplers can affect the baud rate for example.

If you can get the 'U' to echo back, then Flash Magic should work at the same baud rate you used in Hyperterminal. Make sure you enter an accurate crystal frequency and turn off high speed communications (and half-duplex communications if possible) to simplify the situation.

Title: Re: P89C51rd2HBP
Post by: Andy Ayre on October 13, 2003, 10:33:40 AM
Note also, that if you are using a low crystal frequency such as 6MHz, then you will likely need to use a very low baud rate, such as 4800 or 2400.

Title: Re: P89C51rd2HBP
Post by: Sunil Patil on October 14, 2003, 04:56:11 AM
Thanks a lot Mr. Andrew and Mr. Eric

As you said, Parallel programming changed the my Boot vector value from FC to 00. I have changed it and now it is working fine. I could program the chip elegantly. Thanks a lot for providing such a good facility.

Sunil Patil

Title: Re: P89C51rd2BN
Post by: Tapan on November 03, 2003, 11:45:12 PM
hi!!
     I am using the ISP feature for the first time. But it is not working.
     I am facing the same problems what Mr Sunil Patil is facing.
     I haven't used hyperterminal. But instead I have written a simple program in C to transmit 'U' and wait for the response from Microcontroller.
     But that doesnt work. My com port is fine and I have tested it.
     I have  used the same circuit as described in ISP application note.
     One thing i noticed which i feel is odd that when I see the voltage on /PSEN pin on Oscillscope I find that even though I have pulled down the /PSEN pin through 2K resistor it still shows voltage level of 5V.
     Has this anything to do with the problem or it is normal?????
     I have not programmed it using parallel programmer. But I would like to check the BOOT VECTOR. But i dont know how to check it and if it is changed how should i modify it to FCh again
     Regards------
    Tapan Vinchhi.
Title: Re: P89C51rd2BN
Post by: Andy Ayre on November 04, 2003, 07:09:14 AM
If /PSEN still is high enough to be regarded as a logic 1 then that is probably your problem. Does it show a voltage of 5V on /PSEN while you are holding the device in Reset?

You can check and change the boot vector with Flash Magic, assuming you can connect. Choose Status Byte and Boot Vector... from the ISP menu. The current settings will be displayed.

Title: Re: P89C51rd2HBP
Post by: prabira on September 29, 2004, 02:32:07 AM
Hi,

I'm trying to use the P89C51RD2HBP for the first time. But unfortunately, it's not connecting. I've tried all the tricks: changed the capacitors to 1muF, used 12-0-12 transformer and capacitor filters, changed 3/4 cables; but it's still not responding. I can't understand where the error may be. Please help !

prabira
Title: Re: P89C51rd2HBP
Post by: erikm on September 29, 2004, 05:24:28 AM
<>>I've tried all the tricks: changed the capacitors to 1muF, used 12-0-12 transformer and capacitor filters, changed 3/4 cables<<

I see no mention of checking the MAX232(equivalent) and its connections

Erik
Title: Re: P89C51rd2HBP
Post by: erikm on September 29, 2004, 05:26:29 AM
>>changed the capacitors to 1muF<<

Suunds like you are using RC reset, the Rx2Hs are notorious for malfunctioning without a supervisor.  If that happens only a parallel programmer can save the chip.

Erik
Title: Re: P89C51rd2HBP
Post by: MUHAMMAD KHAWAR on May 23, 2005, 02:48:05 AM

 I am using MTS-51 P89C51RD2HBP training kit. Now it is not communication its interfacing program philips winisp but the program is running and kit emulator is working. I think some one has removed its communication routine program.   what do you say.
Title: Re: P89C51rd2HBP
Post by: erikm on May 23, 2005, 06:03:04 AM
I am using MTS-51 P89C51RD2HBP training kit. a link would be nice, Google :
Course MTS-51
Title: Re: P89C51rd2HBP
Post by: Jan Waclawek on May 23, 2005, 07:01:22 AM
Oh, Erik, Google is exactly as my son, he knows the right answer just you need to figure out how to ask... :-)
http://www.google.com/search?q=MTS-51+trainer
gives you the manufacturer. However, there is almost no information, probably unless you register as a reseller - but, honestly, do you really need more info?
I think this might be the infamous "lost boot vector" case...
Muhammad: you will probably need to get somebody with a parallel programmer to reprogram the boot vector.

Jan Waclawek
Title: Re: P89C51rd2HBP
Post by: erikm on May 23, 2005, 10:53:22 AM
"Oh, Erik, Google is exactly as my son, he knows the right answer just you need to figure out how to ask... :-)"

Of course, but why should that be required, the least the asker can do is to provide a link.

Anyhow, if there is no info, we will need assume it is a RC reset, which as we know will cause problems.  Ever so many "training kits" are made by bungling amateurs that believe "I can make this cheaper" and end up with a fleabag.

"the worlds leader in technical training and Education" should raise a warning flag.

so "you will probably need to get somebody with a parallel programmer to reprogram the boot vector" AND the first time you then program the chip install NoTouch (and the backdoor)

Erik
Title: Re: P89C51rd2HBP
Post by: Jan Waclawek on May 24, 2005, 01:36:49 AM
This might be as well an incompetent setting of bootvector while programming.
And note, the kit uses winisp. Slightly out of date, isn't it?
I would contact the kit's vendor.

Jan Waclawek
Title: P89C51rd2HBP
Post by: Manjula on July 05, 2005, 11:19:21 PM
Hello sir,
 
I am using P89C51rd2HBP for the first time. Please send me the details regarding how to download the code into P89C51rd2HBP flash memory with making use of its boot loader through Keil compiler.

Thank you,
Regards,

Manjula Pandarikar
Title: Re: P89C51rd2HBP
Post by: Andy Ayre on July 06, 2005, 08:16:45 AM
Please refer to the datasheet for the device and Philips application note AN461. Those contain all the information you need.

Title: Re: P89C51rd2HBP
Post by: Ananth Krishna on October 12, 2005, 10:18:13 PM
Please send the datasheet .
Title: Re: P89C51rd2HBP
Post by: erikm on October 13, 2005, 05:09:36 AM
Please send the datasheet

are you too friggin lazy to get it off the philips website yourself?

Erik