2004-10-25 2:38 AM
2004-10-22 4:15 AM
I'm using the the ST72561.. its a very simple code.. the problem i have is the flash.. it spend like 11 sec.. to erase sector 2 of the flash...
I'm using this code to erase the flash __FLASH_SectorErase: ld A, #$04 ld PCDR, A ; Power Up the Reprogramming Circuit ; ld SECT, A ; ld PTRH, A ; ; SECT and PTRH are filled in the C code ld A, #$03 ; Command Number ld ECMD, A ld PTRL, A ld A, #$01 ; Frequency [1..8] ld FREQ, A ERASE: ; ld X, #$7F ; ld WDGCR, X ; Watchdog update if used in USER mode ld FCSR, A ; Start Command (Dummy write) btjt ECMD, #7, ERASE ld A, #$00 ld PCDR, A ; Power Off the Reprogramming Circuit ld A, ECMD ret Can you help me?2004-10-25 2:38 AM
You must be using 60k device. The normal programming time is 8.5secs.
If you are giving 12V supply, try with 12.3V. The time will reduce to some extent. rgds, VenkyWe’re moving the ST Community to a new platform to give you a better and more reliable community experience.