;
;
;                    type_mc.txt
;
;    
;
;      
; (     )
;     pcnt_set=1
;
;      PGX051
;  :
;
; at2051.hex -     0x07FF
;                   AT89C2051
; at4051.hex -     0x0FFF
;                   AT89C4051
;       
;        
; R1:R0 -       
;  ,     
;
;------------------------------------------------------------
;   #cmd_wr_hpcnt (upgm_m0.txt)
;
 type_mc:
     ELL_ON
     LLPRINT reinfo ;    
     mov max_ptrl,r0 ;   
     mov max_ptrh,r1 ;   
     setb pcnt_set ; 
		      ; "    "
		      ; 
		 clr arrey_end ; 
      setb data_key ;   data_key=1
      mov data_t,#cmd_wr_hpcnt ;   
      acall pspi_txd ;  
      clr data_key ;   data_key=0
      mov data_t,max_ptrl
      acall pspi_txd ;   
      mov data_t,max_ptrh
      acall pspi_txd ;   
      acall pspi_rxd ;   
      LLPRINT str3 ;     
    ELL_OFF ;
    mov a,#0xA5
   cjne a,data_t,type_mc_er ;     
   ajmp res_user ;       
 type_mc_er:
   LLPRINT str2
   ajmp res_user ;       
;