Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/04/07 15:53
Read: times


 
#147854 - SPI.inc line 23
Responding to: ???'s previous message
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 confirm one



	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				;



List of 15 messages in thread
TopicAuthorDate
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      

Back to Subject List