89V51RD2

Started by T14, October 22, 2010, 06:21:30 AM

Previous topic - Next topic

T14

Hello Everyone,

I have started to work on P89V51RD2. To burn hex , I am using Flash Magic 3.71.245 .

I am following the steps given below:
1)Settings in P89V51RD2:
COM PORT: COM2 (I hve only this port)
Baud Rate: 9600
Device: P89V51RD2
Interface: None (ISP)

2)Option>Advanced option> Hardware Configuration> unchacked "Use DTR to control RST" > unchecked "Assert DTR and RTS while COM port open"

3)Pressing switches connected at Pin 9(RST) and Pin29(PSEN) .

4) Browse the .hex file

5) select "Start"

6) after getting Messege : "Reset the device into ISP mode", Releasing switch at Pin 9 (RST)

7)Releasing switch at Pin 29 (PSEN)

8) After some time , I get Messege: "Erasing Device... "

9) After a long time, I get Messege: "Programming.."

10) After a few second, I get Messege: "Unable to communicate (transmit / receive)"

Thus, currently It is not working. Please any one suggest me some correct way to get proper result.

Please, reply soon.
Thank you

Andy Ayre

PSEN is not used by that device. Can you read the device signature ok?

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

ksinkar

Hey Andy, I am having a similar problem. I have a P89V51RD2 chip. The Flash Magic that I am using is version 5.62.1927. Whenever I try to read the device signature sometimes the chip replies with 'U' sometimes not. Sometimes it gives autobaud problems and at times when it doesn't it says unable to read the device signature.

I had the Free serial port monitor running in the background to monitor the serial port progress. My ISP board does not use the RTS pin, it is manual reset. I am pasting the transaction in terms of HEX signals below(beside the hex signals are the equivalent characters in english):-


55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55 55 55         UUUUUUUUUUUUUU 

Answer: 12/1/2010 5:01:13 PM.89864 (+0.0000 seconds)

FF FF FF                                          ÿÿÿ             

Request: 12/1/2010 5:01:13 PM.91464 (+0.0156 seconds)

55 55 55 55 55 55 55 55 55 55                     UUUUUUUUUU     

Port closed

Port opened by process "FlashMagic.exe" (PID: 704)

55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55               UUUUUUUUUUUU   

Answer: 12/1/2010 5:26:05 PM.98664 (+0.0000 seconds)

FF FF FF                                          ÿÿÿ             

Request: 12/1/2010 5:26:05 PM.00264 (+0.0156 seconds)

55 55 55 55 55 55 55 55 55 55                     UUUUUUUUUU     

Port closed

Port opened by process "FlashMagic.exe" (PID: 704)


55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55   UUUUUUUUUUUUUUUU
55 55 55 55 55 55                                 UUUUUU         

Answer: 12/1/2010 5:26:20 PM.78364 (+0.0156 seconds)

55                                                U               

Request: 12/1/2010 5:26:20 PM.78364 (+0.0000 seconds)

55 55 55 55 55 55 55 55 55 55                     UUUUUUUUUU     

Answer: 12/1/2010 5:26:20 PM.78364 (+0.0000 seconds)

55 55                                             UU             

Request: 12/1/2010 5:26:20 PM.20564 (+0.4219 seconds)

3A 30 32 30 30 30 30 30 35 30 37 30 30 46 32      :020000050700F2

Answer: 12/1/2010 5:26:20 PM.23664 (+0.0313 seconds)

DB DF DF 9F 9F 9F E5 5F FE BE 6F 96 53 13 93 A9   ÛßߟŸŸå_þ¾o–S.“©
48 F8                                             Hø             

Request: 12/1/2010 5:26:20 PM.23664 (+0.0000 seconds)

3A 30 32 30 30 30 30 30 35 30 37 30 30 46 32      :020000050700F2

Answer: 12/1/2010 5:26:20 PM.25264 (+0.0156 seconds)

BF F7 F7 F7 F6 76 F6 5E FE BE 6F 4A 8A 82 72 6A   ¿÷÷÷övö^þ¾oJŠ‚rj
52 FE                                             Rþ             

Request: 12/1/2010 5:26:20 PM.25264 (+0.0000 seconds)

3A 30 32 30 30 30 30 30 35 30 37 30 30 46 32      :020000050700F2

Answer: 12/1/2010 5:26:20 PM.28364 (+0.0313 seconds)

DB DF 9F 9F 9F DF E5 5F FE BE 6F 94 53 13 93 A9   ÛߟŸŸßå_þ¾o”S.“©
48 F8                                             Hø             

Request: 12/1/2010 5:26:20 PM.28364 (+0.0000 seconds)

3A 30 32 30 30 30 30 30 35 30 37 30 30 46 32      :020000050700F2

Answer: 12/1/2010 5:26:20 PM.31464 (+0.0313 seconds)

DB DF DF 9F 9F 9F 97 5F FE BE 6F 4A 53 13 93 A9   ÛßߟŸŸ—_þ¾oJS.“©
48 F8                                             Hø             

Request: 12/1/2010 5:26:20 PM.31464 (+0.0000 seconds)

3A 30 32 30 30 30 30 30 35 30 37 30 30 46 32      :020000050700F2

Answer: 12/1/2010 5:26:20 PM.34664 (+0.0313 seconds)

DB 9F 9F 9F 9F 5E FE 5F FE BE 6D 94 53 13 93 A9   ÛŸŸŸŸ^þ_þ¾m”S.“©
48 F8                                             Hø             

Request: 12/1/2010 5:26:20 PM.34664 (+0.0000 seconds)

3A 30 32 30 30 30 30 30 35 30 37 30 30 46 32      :020000050700F2

Answer: 12/1/2010 5:26:20 PM.36164 (+0.0156 seconds)

DB DF DF 9F 9F 9F DF 5F FE BE 6F 92 53 13 93 A9   ÛßߟŸŸß_þ¾o’S.“©
48 F8                                             Hø             

Request: 12/1/2010 5:26:20 PM.36164 (+0.0000 seconds)

3A 30 32 30 30 30 30 30 35 30 30 30 30 46 39      :020000050000F9

Answer: 12/1/2010 5:26:20 PM.39364 (+0.0313 seconds)

BF F7 F7 F7 F6 76 F6 FE FE FE BE 37 2A 12 19 B9   ¿÷÷÷övöþþþ¾7*..¹
35 29                                             5)             

Request: 12/1/2010 5:26:20 PM.39364 (+0.0000 seconds)

3A 30 32 30 30 30 30 30 35 30 30 30 30 46 39      :020000050000F9

Answer: 12/1/2010 5:26:20 PM.42464 (+0.0313 seconds)

FF DB DF 9F 9F 9F DF E5 FF FE FE BE 77 54 12 19   ÿÛߟŸŸßåÿþþ¾wT..
B9 35                                             ¹5             

Request: 12/1/2010 5:26:20 PM.42464 (+0.0000 seconds)

3A 30 32 30 30 30 30 30 35 30 30 30 30 46 39      :020000050000F9

Answer: 12/1/2010 5:26:20 PM.45564 (+0.0313 seconds)

29 FF DB DF DF 9F 9F 9F DF FF FE FE BE 37 4A 12   )ÿÛßߟŸŸßÿþþ¾7J.
19 B9                                             .¹             

Request: 12/1/2010 5:26:20 PM.45564 (+0.0000 seconds)

3A 30 32 30 30 30 30 30 35 30 30 30 30 46 39      :020000050000F9

Answer: 12/1/2010 5:26:20 PM.47164 (+0.0156 seconds)

35 29 FF BF F7 F7 F7 F6 76 F6 FE FE FE BE 37 2A   5)ÿ¿÷÷÷övöþþþ¾7*
12 19                                             ..             

Request: 12/1/2010 5:26:20 PM.47164 (+0.0000 seconds)

3A 30 32 30 30 30 30 30 35 30 30 30 30 46 39      :020000050000F9

Answer: 12/1/2010 5:26:20 PM.50264 (+0.0313 seconds)

B9 35 29 FF DB DF 9F 9F 9F DF E5 FF FE FE BE 77   ¹5)ÿÛߟŸŸßåÿþþ¾w
54 12                                             T.             

Request: 12/1/2010 5:26:20 PM.50264 (+0.0000 seconds)

3A 30 32 30 30 30 30 30 35 30 30 30 30 46 39      :020000050000F9

Answer: 12/1/2010 5:26:20 PM.51864 (+0.0156 seconds)

DF FB DF BF FE FE DE FE FF FB FB 9B BD 14 D5 A4   ßûß¿þþÞþÿûû›½.Õ¤
94 FE                                             ”þ             

Port closed



The Requests are from the PC side and the Answer is from the microcontroller side. This is the transaction that takes place when I try to read device signature. I have checked with the other things that you have mentioned in your autobaud problems post elsewhere on this site. I think the chip has gone bad but am not sure. Is there any way to know if the chip is still working or not. Please help.

Andy Ayre

I think the device is either not measuring the bit times of the 'U' properly or there are glitches in the communication path. If lowering the baudrate doesn't help then you will have to put a scope on the RxD and TxD pins of the microcontroller to see if what is going in is correct and what is coming out is correct.

There isn't a sure way to tell if your device is faulty. The fact that it is sending something means the bootloader is executing so I think that the device is likely OK.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com