This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ISP for Winbond W78E516

Does anybody in the forum has successefully
programmed Winbond W78E516 using flash utilities
downloaded from this website. I have been
trying hard, but no luck so far. I feel that
the provided documents are far for complete.
My problem is that the ISPWRITER.exe does
not communicate with the targeted device.
Here are what I have done.

1. Program the LDU30919.BIN file into the
device via conventional programmer.
2. Tie pin P2.6, and pin P2.7 LOW, and
RESET pin HI.
3. Execute ISPWRITER.EXE

The problem is that each time I hit CONNET
bar, error comes up "connection failed".
Eventhough, I have confirmed several times that my RS232 comm worked properly using
Hyper terminal program.

Any body has any idea? what I did wrong here.

JIMMY

Parents Reply Children
  • Hi Jimmy,

    I downloaded the files, and found the following information. It should be helpful:

    Method 3、 Another way for APROM Switch to LDROM to Enter ISP Mode
    1、Main program form APROM to LDROM:
    1、When main program start, you can execute the APROM switch to LDROM as below code.
    Or when pressing a key to execute the APROM switch to LDROM。
    2、Before connecting,you must be sure the IC has switched to LDROM。
    3、Using this way, the isp don't have Upload and exit  function.
    
    normal ISP
    mov     CHPENR,#87h         ; write enable
           			mov     CHPENR,#59h         ; write enable
                    		mov     CHPCON,#03h         ; bank=4k,flash mode
                    		mov     tl0,#feh
                    		mov     th0,#ffh
                    		setb    tr0
                    		orl     pcon,#01h           	      ; enter idle mode
                    		jmp     $
    turbo ISP
                			mov     turbo_TA,#aah         ; write enable
                    		mov     turbo_TA,#55h         ; write enable
                    		mov     turbo_CHPCON,#03h         ; bank=4k,flash mode
                    		mov     tl0,#feh
                    		mov     th0,#ffh
    
                    		setb    tr0
                    		orl     pcon,#01h                   ; enter idle mode
                    		jmp     $
    

    The code above can let you enter 4k mode from 64k normal mode.

    Have you tested your hardware? Write a simple code to toggle a pin, and then flash it into address 10000h. After reset, check whether the pin is toggling. If it's not, you are still in 64k APROM mode. You have to check P2.7 and P2.6 (Low, pull up) or P4.3 (Low, pull up) while reset.

    If chip mode change is no problem, make sure your pc baudrate is correct and Rx,Tx pin connection is OK. Then check your command, of course you have to read the ISPApplicationNote.doc first. I also recommend you to download a datasheet for W78E516, and have a good study of it. There are even some example on the datasheet to tell you how to enter ISP mode.

    Unfortunately I can't test it on my target board, because I don't have the time to modify it. (I am not using Rs232 to communicate with Pc.)

    Good Luck!

    Frank Hu

  • Hi Franks,

    I finally make it worked !!!.
    I programmed the loader file to the
    wrong memory address.


    Thanks for your help,


    JIMMY