Flash Magic Forum

In-System Programming Support => P89V51Rx2/P89LV51Rx2 => Topic started by: marquisparent on November 15, 2009, 12:23:30 PM

Title: Programming of a P89V51RB2FN
Post by: marquisparent on November 15, 2009, 12:23:30 PM
I recently purchased a P89V51RB2 Mirocontroller. I am new to the ISP programming interface.  (i used to program 80c51 chip using an external EPROM)   I purchased the USB-ICP–80C51ISP interface to program the chip.  Using the Flash Magic software, I can't communicate with device. "Fail to read device signature (unabled to communicate(transmit/receive))"
--------------------------------------------------------------------------------------------------------------
Here's my actual communication  setup:
USB-ICP-80C51ISP -->  P89V51RB2

RXD                     -->  RXD
TXD                     -->  TXD
PSEN                   -->   PSEN
Reset                   -->  RST
---------------------------------------------------------------------------------------------------------
Microcontroller connection.
I have a regulate 5vDC (VDD) to pin 40, gnd to pin 20.  i have a 10uF - cap from VDD to pin 9 (RST) and a 8.2kΩ - resistor to GND.  i also strapped the EA pin to VDD.
---------------------------------------------------------------------------------------
Am i missing something ?  Do i need to use the CTS/RSt in option?
thanks for the help.
Title: Re: Programming of a P89V51RB2FN
Post by: Mucter on November 15, 2009, 07:09:25 PM
1.
According to
http://www.teamfdi.com/pages/products_index.html
USB-ICP-80C51ISP supports NXP P89C51 Flash, not P89V51.

2.
PSEN doesn't have special function on P89V51's ISP
Refer flash Magic's pdf users manual Page 44 (for P89C51) and Page 48(for P89V51).

3. Is your target /EA setting "HI"?
If low , target boot from external ROM.

regards,
Mucter.

Title: Re: Programming of a P89V51RB2FN
Post by: marquisparent on November 16, 2009, 08:00:58 AM
First of all, thanks for the reply and help.

1. I downloaded the Support devices sheet of the USB-ICP-80C51ISP and it support the P89V51RB2.

2.  i see now, about the PSEN abd the P89V51

3.  the EA is set to HI. 
Title: Re: Programming of a P89V51RB2FN
Post by: Mucter on November 17, 2009, 06:35:43 PM
To diagnose Simply ,
(1) Check the com # of the USB-ICP-80C51ISP using device manager.
(2) from Flash Magic Tools menu select Terminal
(3) Set Com port to (1)'s number,
     Set Baud rate to 9600
     click OK
(4) Power off the your target.
(5) Enter "U" continuously to input box bellow
(6) Power on the your target.

(7) IF target echo "UUUUUUUUUUUUUUUU" ...., first step is cleared.

(8) if not replied from target, check the RXD and TXD lines using oscilloscope.

regards,
Mucter.
Title: Re: Programming of a P89V51RB2FN
Post by: marquisparent on November 20, 2009, 08:49:23 AM
Well, no luck so far.

I have setup a Max232 to go RS-232, still no luck....

With the P89V51RB2 or RC2, do i need the PSEN & Reset, or not.

In either case, it work.  I even bough 2 - P89V51RC2, same thing....