;
;
;                    key_tests.txt
;
;    
;
;  / 
;    +12     0
;   RESET ZIF    
;
;      
;     
;  
;
;      PGX051
;  :
;
; upg_on.hex -   +12 
; upg_of.hex -   +12 
; z_on.hex -   RESET  GND
; z_of.hex -   RESET  GND
;
;------------------------------------------------------------
;   #cmd_upg_on (upgm_m0.txt)
;
 upg_on:
     ELL_ON
    LLPRINT reinfo ; adtrs1    
    setb data_key ;   data_key=1
    mov data_t,#cmd_upg_on ;   
   acall pspi_txd ;  
   acall pspi_rxd ;  
   mov a,#0xA5
   cjne a,data_t,upg_on_er ;     
   ajmp res_user ;       
 upg_on_er:
   LLPRINT str2
   ajmp res_user ;       
; adtrs1:
;  .db "\r\n voltage +12 volts on conclusion RESET is actuated \r\n",0
;  ; " +12    RESET "
;
;------------------------------------------------------------
;   #cmd_upg_off (upgm_m0.txt)
;
 upg_of:
     setb data_key ;   data_key=1
    mov data_t,#cmd_upg_off ;   
   acall pspi_txd ;  
   acall pspi_rxd ;  
   mov a,#0xA5
   cjne a,data_t,upg_of_er ;     
    LLPRINT reinfo ; adtrs2    
		ELL_OFF
	 ajmp res_user ;       
 upg_of_er:
     LLPRINT str2
   ajmp res_user ;       
; adtrs2:
;  .db "\r\n voltage +12 volts on conclusion RESET is disconnected \r\n",0
;  ; " +12    RESET "
;
;------------------------------------------------------------
;   #cmd_rezet_on (upgm_m0.txt)
;
 z_on:
    ELL_ON
   LLPRINT reinfo ; adtrs3    
   setb data_key ;   data_key=1
    mov data_t,#cmd_rezet_on ;   
   acall pspi_txd ;  
   acall pspi_rxd ;  
   mov a,#0xA5
   cjne a,data_t,z_on_er ;     
   ajmp res_user ;       
 z_on_er:
   LLPRINT str2
   ajmp res_user ;       
; adtrs3:
;  .db "\r\n voltage 0 volts on conclusion RESET is actuated \r\n",0
;  ; " 0    RESET "
;
;------------------------------------------------------------
;   #cmd_rezet_off (upgm_m0.txt)
;
 z_of:
    setb data_key ;   data_key=1
    mov data_t,#cmd_rezet_off ;   
   acall pspi_txd ;  
   acall pspi_rxd ;  
   mov a,#0xA5
   cjne a,data_t,z_of_er ;     
    LLPRINT reinfo ; adtrs4    
		ELL_OFF
	 ajmp res_user ;       
 z_of_er:
    LLPRINT str2
   ajmp res_user ;       
; adtrs4:
;  .db "\r\n voltage 0 volts on conclusion RESET is disconnected \r\n",0
;  ; " 0    RESET "
;