??? 12/05/07 01:16 Read: times |
#147886 - standalone programmer Responding to: ???'s previous message |
Esko Ilola said:
En_pg_Mode: clr ErrFlag ; mov count,#030h ; setb RST ; force target into reset lcall delay10mS ; wait 1 ms (arbitrary) En_pg: mov a, #0ACh ; send first byte of enable code lcall SPI ; mov a, #053h ; send second byte lcall SPI ; mov a, #0FFh ; send third byte as dummy lcall SPI ; mov a, #0FFh ; send fourth byte dummy for receiving 69h lcall SPI ; ; cjne A,#069h,enable_error ; received byte is not valid sjmp Ena_End ;success entering program mode enable_error: djnz count,En_pg ;try this 30 times mov dptr,#Failed_str ; lcall OutStr ; setb ErrFlag ; Ena_End: ret ; I actually had a problem with that routine at one time. The target is supposed to return the 69h byte to indicate success entering programming mode. At one time it didn't work, (did not return the 69 byte) so I commented it out. I now see that it should be included. The problem was fixed and had nothing to do with the above routine. uncomment this line: ; cjne A,#069h,enable_error ; received byte is not valid I tried it, and it does work. Thank you for pointing that out. |
Topic | Author | Date |
89S5X standalone programmer | 01/01/70 00:00 | |
then how do you get the file to the EEPROM | 01/01/70 00:00 | |
Elan E12B set Programmer | 01/01/70 00:00 | |
first load file with a PC | 01/01/70 00:00 | |
This will help me | 01/01/70 00:00 | |
programming multiple devices | 01/01/70 00:00 | |
the difference between programming and programming | 01/01/70 00:00 | |
standalone programmer | 01/01/70 00:00 | |
Dataman s4 | 01/01/70 00:00 | |
dataman... | 01/01/70 00:00 | |
A good one ! | 01/01/70 00:00 | |
standalone programmer | 01/01/70 00:00 | |
SPI.inc line 23 | 01/01/70 00:00 | |
standalone programmer | 01/01/70 00:00 | |
This is what we looking for![]() | 01/01/70 00:00 |