⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 operation_a.i

📁 电表解决方案概要power_meter_r8c2g_source_code
💻 I
📖 第 1 页 / 共 5 页
字号:
		 program_left_time = program_time(Wool_Time_Table, Left_time_Colum_Table[program_buff]);		  
		 break;
		 
		 case 0x07				    :
		 
		 if (ac_frequency == 50)
		 stream_table_row = 14;
		 
		 else if (ac_frequency == 60)
		 stream_table_row = 15;
		 
		 ext_stream_table_row = 1;

		 main_wash_time = Silk_Wash_Time;
		  
		 if (wash_time_buff != 12)
		 main_wash_time = wash_time_buff;  
	
		 silk_program();	 			 
		 if (process_left_time != 0)
		 program_left_time = program_time(Silk_Time_Table, Left_time_Colum_Table[program_buff]);		 		 
		 break;
		 
		 
		 case 0x8				   :
		 
		 if (ac_frequency == 50)
		 stream_table_row = 0;
		 
		 else if (ac_frequency == 60)
		 stream_table_row = 1;
		 
		 ext_stream_table_row = 0;
		  
		 if (wash_time_buff != 12)
		 main_wash_time = wash_time_buff;  

		 single_wash_program();			 
		 if (process_left_time != 0)
		 program_left_time = program_time(Single_Wash_Time_Table, Left_time_Colum_Table[program_buff]);		 		 
		 break;
		 
		 
		 case 0x9				   :
		 
		 if (ac_frequency == 50)
		 stream_table_row = 0;
		 
		 else if (ac_frequency == 60)
		 stream_table_row = 1;
		 
		 ext_stream_table_row = 0;

		 rinse_program();				 
		 if (process_left_time != 0)
		 program_left_time = program_time(Rinse_Time_Table, Left_time_Colum_Table[program_buff]);		 		 
		 break;
		 
		 
		 case 0xa				   :

		 single_spin_program();			 
		 if (process_left_time != 0)
		 program_left_time = program_time(Single_Spin_Time_Table, Left_time_Colum_Table[program_buff]);		 
		 break;
		 
		 
		 case 0xb				   :
		 
		 if (ac_frequency == 50)
		 stream_table_row = 0;
		 
		 else if (ac_frequency == 60)
		 stream_table_row = 1;
		 
		 ext_stream_table_row = 0;

		 tubedry_program();				 
		 if (process_left_time != 0)
		 program_left_time = program_time(TubeDry_Time_Table, Left_time_Colum_Table[program_buff]);		 		 
		 break;

	 };
	 
  if (status_buff == 0x00				  )
  program_left_time = 0;
	
  return;
	
}

 







void standard_program(void)					 
{
 if (operation_counter < 21)		 
  {	
	if (Standard_Time_Table[operation_counter])	 
	 {
		 switch (operation_counter)		 
		  {
			  case 0:  			  		 
			  process_buff = 0x00				  ;	
			  case 13:			  
			  inlet(Standard_Time_Table[operation_counter], 0, water_level_buff); 			  
			  break;
			  
			  case 6:				   
			  spin(Memo_Time_Table[operation_counter]);			  
			  break;
			  
			  case 7: 		 		  
			  
			  inlet(Standard_Time_Table[operation_counter], 0xaa, 0);		 
			  spin(Memo_Time_Table[operation_counter]);			  
			  break;			  
			  
			  case 8: 				   
			  spin(Memo_Time_Table[operation_counter]);  			  
			  break;
			  
			  
			  case 9: 		 		  
			  
			  inlet(Standard_Time_Table[operation_counter], 0xaa, 0);		 
			  spin(Memo_Time_Table[operation_counter]);			  
			  break;	
			  
			  
			  case 10: 			  	 
			  spin(Memo_Time_Table[operation_counter]);  	 
			  break;
			  
			  
			  case 14:  	  		 
			  wash(Memo_Time_Table[operation_counter]);
			  			  
			  if (operation_counter == 16)
			   {
				   process_flag_1.f_bit.fb5	 = 0;	  
			   }		  
			  break;
			  			  			  			  
			  
			  case 1:  				 
			  
			  process_flag_1.f_bit.fb3	 = 1;
			  process_buff = 0x01				  ;
			  
			  soak(main_soak_time);
			  
			  if (operation_counter == 2)
			   {
				   process_flag_1.f_bit.fb3	 = 0;	
				   led_disp.led_2.byte &= 0xef;	
			   }		  			  
			  break;
			  
			  case 2:  		 		 
			  
			  process_flag_1.f_bit.fb4	 = 1;
			  process_buff = 0x02				  ;
			  
			  wash(main_wash_time * 60);
			  
			  if (operation_counter == 4)
			   {
				   process_flag_1.f_bit.fb4	 = 0;	  
				   led_disp.led_2.byte &= 0xdf;
			   }		  
			  break;
			  
			  case 4:   		 	 
			  process_flag_1.f_bit.fb5	 = 1;
			  process_buff = 0x03				  ;
			  
			  drain();
			  break;
			  
			  
			  case 16:   		     
			  if((save_water_flag_1.f_bit.fb3		  == 0)&&(confirm_key_press.f_bit.fb5	  == 1))
			   {
				   if(save_water_flag_1.f_bit.fb2		  == 0)
				    {
				   		save_water_flag_1.f_bit.fb1		  = 1;			
				   		return;	      
				    }
			   }			   
			  process_flag_1.f_bit.fb6	 = 1;	
			  process_buff = 0x04				  ;
			  		   
			  drain();		  		  
			  break;			  
			  
			  
			  case 17:  interm_spin(Standard_Time_Table[operation_counter]);
			  break;		 		  
			  
			  case 18: 
			  
			  if (spin_time_buff == 6)	   	  
			  spin(Standard_Time_Table[operation_counter] * 60);
			  
			  if (spin_time_buff != 6)
			  spin(spin_time_buff * 60);	   
			  			  			  
			  if (operation_counter == 21)
			   {
				   process_flag_1.f_bit.fb6	 = 0;
			   }
			  break;
			  
		  };
		  
		return;
		 
	 }
	 
	else
	operation_counter ++;	   
	return;
  }
 else if (operation_counter == 21)	   
  {
	  operation_counter = 0;
	  operation_flag_3.f_bit.fb4		  = 1;
	  status_buff = 0x00				  ;
  }
}

 








void memo_program(void)				 
{
 if (operation_counter < 25)
  {		
	if (Memo_Time_Table[operation_counter])
	 {
		 switch (operation_counter)
		  {
			  case 0:  
			  process_buff = 0x00				  ;			  
			  case 9:
			  case 17: inlet(Memo_Time_Table[operation_counter], 0, water_level_buff); 
			  break;
			  
			  case 1:  
			  
			  process_flag_1.f_bit.fb3	 = 1;
			  process_buff = 0x01				  ;
			  
			  soak(main_soak_time);
			  
			  if (operation_counter == 2)
			   {
				   process_flag_1.f_bit.fb3	 = 0;	
				   led_disp.led_2.byte &= 0xef;	
			   }		  			  			  
			  break;
			  
			  case 2:  
			  
			  process_flag_1.f_bit.fb4	 = 1;
			  process_buff = 0x02				  ;
			  
			  wash(main_wash_time * 60);
			  
			  if (operation_counter == 4)
			   {
				   process_flag_1.f_bit.fb4	 = 0;	  
				   led_disp.led_2.byte &= 0xdf;
			   }		  			  
			  break;
			  
			  case 10:
			  case 18: wash(Memo_Time_Table[operation_counter]);
			  if (operation_counter == 20)
			   {
				   process_flag_1.f_bit.fb5	 = 0;
				   led_disp.led_2.byte &= 0xbf;	
			   }	  			  			  			  
			  break;
			  
			  
			  case 4:    
			  process_flag_1.f_bit.fb5	 = 1;
			  process_buff = 0x03				  ;
			  
			  drain();	
			  break;
			  
			  			  
			  case 12:			       
			  if((save_water_flag_1.f_bit.fb3		  == 0)&&(confirm_key_press.f_bit.fb5	  == 1))
			   {
				   if(save_water_flag_1.f_bit.fb2		  == 0)
				    {
				   		if ((save_water_num_buff == 0)||(save_water_num_buff == 2))
				    	{
				   			save_water_flag_1.f_bit.fb1		  = 1;			
				   			return;	   
				    	}	
					}			   			   
			   }			  
 
			  drain();		
			  break;
			  
			  			  
			  case 20:    			  
			  if((save_water_flag_1.f_bit.fb3		  == 0)&&(confirm_key_press.f_bit.fb5	  == 1))
			   {
				   if(save_water_flag_1.f_bit.fb2		  == 0)
				    {				   
				   		if ((save_water_num_buff == 1)||(save_water_num_buff ==2))
				    	{
				   			save_water_flag_1.f_bit.fb1		  = 1;			
				   			return;	   
				    	}	
					}			   
			   }	  
			  process_flag_1.f_bit.fb6	 = 1;
			  process_buff = 0x04				  ;
			  
			  drain();
			  break;
			  
			  
			  case 5:  
			  case 13:
			  case 21: interm_spin(Memo_Time_Table[operation_counter]);
			  break;
			  
			  
			  case 6:				  
			  case 14:
			  spin(Memo_Time_Table[operation_counter]);
			  break;
			  			  
						  
			  case 22: 
			  
			  if (spin_time_buff == 6)			  
			  spin(Standard_Time_Table[operation_counter] * 60);
			  
			  if (spin_time_buff != 6)
			  spin(spin_time_buff * 60);			  			  

			  if (operation_counter == 25)
			   {
				   process_flag_1.f_bit.fb6	 = 0;
			   }
			  break;
		  };
		  
		return;
		 
	 }
	 
	else 
	operation_counter ++;
	return;
  }
 else if (operation_counter == 25)
  {
	  operation_counter = 0;
	  operation_flag_3.f_bit.fb4		  = 1;	  
	  status_buff = 0x00				  ;
  }
}

 








void strong_program(void)			 
{
 if (operation_counter < 23)
  {		
	if (Strong_Time_Table[operation_counter])
	 {
		 switch (operation_counter)
		  {
			  case 0:  
			  process_buff = 0x00				  ;
			  case 9:
			  case 16: inlet(Strong_Time_Table[operation_counter], 0, water_level_buff); 
			  break;
			  
			  case 1:  
			  
			  process_flag_1.f_bit.fb3	 = 1;
			  process_buff = 0x01				  ;
			  
			  soak(main_soak_time);
			  
			  if (operation_counter == 2)
			   {
				   process_flag_1.f_bit.fb3	 = 0;	
				   led_disp.led_2.byte &= 0xef;	
			   }		  			  			  			  
			  break;
			  
			  case 2:  
			  
			  process_flag_1.f_bit.fb4	 = 1;
			  process_buff = 0x02				  ;
			  
			  wash(main_wash_time * 60);
			  
			  if (operation_counter == 4)
			   {
				   process_flag_1.f_bit.fb4	 = 0;	  
				   led_disp.led_2.byte &= 0xdf;
			   }		  			  			  
			  break;
			  
			  case 10:
			  case 17: 
			  
			  wash(Strong_Time_Table[operation_counter]);			  
			  if (run_stream_time == 0)
			   {
				   balance_time_buff = 0;	 
				   operation_counter -- ;	 
			   }
			  if (operation_counter == 18)
			   {
				   process_flag_1.f_bit.fb5	 = 0;
			   }	  			  			  			  			  
			  break;
			  
			  
			  case 4:  
			  process_flag_1.f_bit.fb5	 = 1;
			  process_buff = 0x03				  ;
			  
			  drain();
			  break;
			  			  			  
			  case 11:   			  
			  if((save_water_flag_1.f_bit.fb3		  == 0)&&(confirm_key_press.f_bit.fb5	  == 1))		  
			   {
				   if(save_water_flag_1.f_bit.fb2		  == 0)
				    {				   
				   		if ((save_water_num_buff == 0)||(save_water_num_buff ==2))
				    	{
				   			save_water_flag_1.f_bit.fb1		  = 1;			
				   			return;	   
				    	}	
					}			   
			   }	  			   
			  process_flag_1.f_bit.fb5	 = 1;
			  drain();
			  break;
			  
			  case 18:   			   
			  if((save_water_flag_1.f_bit.fb3		  == 0)&&(confirm_key_press.f_bit.fb5	  == 1))	
			   {
				   if(save_water_flag_1.f_bit.fb2		  == 0)
				    {				   
				   		if ((save_water_num_buff == 1)||(save_water_num_buff ==2))
				    	{
				   			save_water_flag_1.f_bit.fb1		  = 1;			
				   			return;	   
				    	}	
					}			   
			   }	  			   			   
			  process_flag_1.f_bit.fb6	 = 1;
			  process_buff = 0x04				  ;
			  
			  drain();
			  break;
			  
			  case 5:  
			  case 12:
			  case 19: interm_spin(Strong_Time_Table[operation_counter]);
			  break;
			  
			  case 6: 
			  case 13:
			  spin(Strong_Time_Table[operation_counter]);
			  break;			  
			  
			  case 20: 

			  if (spin_time_buff == 6)			  
			  spin(Standard_Time_Table[operation_counter] * 60);
			  
			  if (spin_time_buff != 6)
			  spin(spin_time_buff * 60);					  
			  
			  if (operation_counter == 23)
			   {
				   process_flag_1.f_bit.fb6	 = 0;
				   led_disp.led_2.byte &= 0x7f;
			   }
			  break;
		  };
		  
		return;
		 
	 }
	 
	else 
	operation_counter ++;
	return;
  }
 else if (operation_counter == 23)
  {
	  operation_counter = 0;
	  operation_flag_3.f_bit.fb4		  = 1;	  
	  status_buff = 0x00				  ;
  }
}

 







void silk_program(void)			 
{
 if (operation_counter < 21)
  {		
	if (Silk_Time_Table[operation_counter])
	 {
		 switch (operation_counter)
		  {
			  case 0:  
			  process_buff = 0x04				  ;
			  case 7:
			  case 14: inlet(Silk_Time_Table[operation_counter], 0, water_level_buff); 
			  break;
			  
			  
			  case 1:  
			  
			  process_flag_1.f_bit.fb4	 = 1;
			  process_buff = 0x02				  ;
			  
			  wash(main_wash_time * 60);
			  if (run_stream_time == 0)
			   {
				   balance_time_buff = 0;	 
				   operation_counter -- ;	 
			   }			  
			   
			  if (operation_counter == 2)
			   {
				   process_flag_1.f_bit.fb4	 = 0;	  
			   }		  			  			  
			  break;
			  
			  case 8:
			  case 15: 
			  
			  wash(Silk_Time_Table[operation_counter]);
			  if (run_stream_time == 0)
			   {
				   balance_time_buff = 0;	 
				   operation_counter -- ;	 
			   }	

			  if (operation_counter == 18)
			   {
				   process_flag_1.f_bit.fb5	 = 0;
				   led_disp.led_2.byte &= 0xbf;	
			   }	  			  			  			  			  
			  break;
			  
			  case 2:  
			  process_flag_1.f_bit.fb5	 = 1;
			  process_buff = 0x03				  ;
			  
			  drain();
			  break;			  
			  
			  case 9:  				   
			  if((save_water_flag_1.f_bit.fb3		  == 0)&&(confirm_key_press.f_bit.fb5	  == 1))
			   {
				   if(save_water_flag_1.f_bit.fb2		  == 0)
				    {				   
				   		if ((save_water_num_buff == 0)||(save_water_num_buff ==2))
				    	{
				   			save_water_flag_1.f_bit.fb1		  = 1;			
				   			return;	   
				    	}	
					}			   
			   }	  			   			   				  
			  process_flag_1.f_bit.fb5	 = 1;
			  drain();
			  break;
			  
			  case 16:  			    
			  if((save_water_flag_1.f_bit.fb3		  == 0)&&(confirm_key_press.f_bit.fb5	  == 1))	
			   {
				   if(save_water_flag_1.f_bit.fb2		  == 0)
				    {				   
				   		if ((save_water_num_buff == 1)||(save_water_num_buff ==2))
				    	{
				   			save_water_flag_1.f_bit.fb1		  = 1;			
				   			return;	   
				    	}	
					}			   
			   }	  			   	
			  process_flag_1.f_bit.fb6	 = 1;
			  process_buff = 0x04				  ;
			  
			  drain();
			  break;
			  
			  case 3:  
			  case 10:
			  case 17: interm_spin(Silk_Time_Table[operation_counter]);
			  break;
			  
			  case 4: 
			  case 11:
			  spin(Silk_Time_Table[operation_counter]);
			  break;
			  		  
			  case 18: 
			  
			  if (spin_time_buff == 6)			  
			  spin(Standard_Time_Table[operation_counter] * 60);
			  
			  if (spin_time_buff != 6)
			  spin(spin_time_buff * 60);					  
			  
			  if (operation_counter == 21)
			   {
				   process_flag_1.f_bit.fb6	 = 0;
			   }
			  break;
			  
		  };
		  
		return;
		 
	 }
	 
	else 
	operation_counter ++;
	return;
  }
 else if (operation_counter == 21)
  {
	  operation_counter = 0;
	  operation_flag_3.f_bit.fb4		  = 1;	  
	  status_buff = 0x00				  ;
  }
}

 







void soft_wash_program(void)				 
{
 if (operation_counter < 33)
  {		
	if (Soft_Time_Table[operation_counter])
	 {
		 switch (operation_counter)
		  {
			  case 0:  
			  process_buff = 0x00				  ;
			  case 9:
			  case 17: 
			  case 25: inlet(Soft_Time_Table[operation_counter], 0, water_level_buff); 
			  break;
			  
			  case 1:  
			  
			  process_flag_1.f_bit.fb3	 = 1;
			  process_buff = 0x01				  ;
			  
			  soak(main_soak_time);
			  if (operation_counter == 2)
			   {
				   process_flag_1.f_bit.fb3	 = 0;	
			   }		  			  			  			  
			  
			  break;
			  
			  case 2:  
			  
			  process_flag_1.f_bit.fb4	 = 1;
			  process_buff = 0x02				  ;
			  
			  wash(main_wash_time * 60);
			  
			  if (operation_counter == 4)
			   {
				   process_flag_1.f_bit.fb4	 = 0;	  
			   }		  			  			  			  
			  break;
			  
			  case 10:
			  case 18: 
			  case 26: 
			  wash(Soft_Time_Table[operation_counter]);
			  
			  if (operation_counter == 28)
			   {
				   process_flag_1.f_bit.fb5	 = 0;
				   led_disp.led_2.byte &= 0xbf;	
			   }	  			  			  			  			  			  
			  break;
			  
			  case 4:  
			  process_flag_1.f_bit.fb5	 = 1;
			  process_buff = 0x03				  ;
			  drain();
			  break;			  
			  			  
			  case 12:  		   	
			  if((save_water_flag_1.f_bit.fb3		  == 0)&&(confirm_key_press.f_bit.fb5	  == 1))	
			   {
				   if(save_water_flag_1.f_bit.fb2		  == 0)
				    {				   
				   		if ((save_water_num_buff == 0)||(save_water_num_buff == 3)||(save_water_num_buff == 5))						
				    	 {
				   			save_water_flag_1.f_bit.fb1		  = 1;			
				   			return;	   
				    	 }	
					}			   
			   }	  			   			  
			  process_flag_1.f_bit.fb5	 = 1;
			  drain();
			  break;
			  
			  			  
			  case 20:    		  
			  if((save_water_flag_1.f_bit.fb3		  == 0)&&(confirm_key_press.f_bit.fb5	  == 1))
			   {
				   if(save_water_flag_1.f_bit.fb2		  == 0)
				    {				   
				   		if ((save_water_num_buff != 0)||(save_water_num_buff !=2))
				    	{
				   			save_water_flag_1.f_bit.fb1		  = 1;			
				   			return;	   
				    	}	
					}			   
			   }	  				   				  
			  process_flag_1.f_bit.fb5	 = 1;
			  drain();
			  break;
			  
			  case 28:    		  
			  if((save_water_flag_1.f_bit.fb3		  == 0)&&(confirm_key_press.f_bit.fb5	  == 1))
			   {
				   if(save_water_flag_1.f_bit.fb2		  == 0)
				    {				   
				   		if ((save_water_num_buff == 2)||(save_water_num_buff == 4)||(save_water_num_buff == 5))
				    	{
				   			save_water_flag_1.f_bit.fb1		  = 1;			
				   			return;	   
				    	}	
					}			   
			   }	  				   			   					  
			  process_flag_1.f_bit.fb6	 = 1;
			  process_buff = 0x04				  ;
			  drain();
			  break;
			  
			  case 5:  
			  case 13:
			  case 21: 
			  case 29: interm_spin(Soft_Time_Table[operation_counter]);
			  break;
			  
			  case 6: 
			  case 14:
			  case 22: 
			  spin(Soft_Time_Table[operation_counter]);
			  break;			  
			  
			  case 30: 
			  
			  if (spin_time_buff == 6)			  
			  spin(Standard_Time_Table[operation_counter] * 60);
			  
			  if (spin_time_buff != 6)
			  spin(spin_time_buff * 60);					  
			  
			  if (operation_counter == 33)
			   {
				   process_flag_1.f_bit.fb6	 = 0;
				   led_disp.led_2.byte &= 0x7f;
			   }
			  break;
			  
		  };
		  
		return;
		 
	 }
	 
	else 
	operation_counter ++;
	return;
  }
 else if (operation_counter == 33)
  {
	  operation_counter = 0;
	  operation_flag_3.f_bit.fb4		  = 1;	  
	  status_buff = 0x00				  ;
  }
}

 







void child_program(void)		 
{
 if (operation_counter < 33)
  {		
	if (Child_Time_Table[operation_counter])
	 {
		 switch (operation_counter)
		  {
			  case 0:  
			  process_buff = 0x00				  ;
			  case 9:
			  case 17: 
			  case 25: inlet(Child_Time_Table[operation_counter], 0, water_level_buff); 
			  break;
			  
			  case 1:  
			  
			  process_flag_1.f_bit.fb3	 = 1;
			  process_buff = 0x01				  ;
			  
			  soak(main_soak_time);
			  if (operation_counter == 2)
			   {
				   process_flag_1.f_bit.fb3	 = 0;	
				   led_disp.led_2.byte &= 0xef;	
			   }		  			  			  			  
			  
			  break;
			  
			  case 2:  
			  
			  process_flag_1.f_bit.fb4	 = 1;
			  process_buff = 0x02				  ;
			  
			  wash(main_wash_time * 60);
			  
			  if (operation_counter == 4)
			   {
				   process_flag_1.f_bit.fb4	 = 0;	  
				   led_disp.led_2.byte &= 0xdf;
			   }		  			  			  			  
			  break;
			  
			  case 10:
			  case 18: 
			  case 26: 
			  wash(Child_Time_Table[operation_counter]);
			  
			  if (operation_counter == 28)
			   {
				   process_flag_1.f_bit.fb5	 = 0;
				   led_disp.led_2.byte &= 0xbf;	
			   }	  			  			  			  			  			  
			  break;
			  
			  case 4:  
			  process_flag_1.f_bit.fb5	 = 1;
			  process_buff = 0x03				  ;
			  
			  drain();
			  break;			  
			  
			  case 12:   			  
			  if((save_water_flag_1.f_bit.fb3		  == 0)&&(confirm_key_press.f_bit.fb5	  == 1))
			   {
				   if(save_water_flag_1.f_bit.fb2		  == 0)
				    {				   
				   		if ((save_water_num_buff == 0)||(save_water_num_buff == 3)||(save_water_num_buff == 5))
				    	{
				   			save_water_flag_1.f_bit.fb1		  = 1;			
				   			return;	   
				    	}	
					}			   
			   }	  				   			   					  
			  process_flag_1.f_bit.fb5	 = 1;
			  drain();
			  break;
			  
			  			  
			  case 20:   			   
			  if((save_water_flag_1.f_bit.fb3		  == 0)&&(confirm_key_press.f_bit.fb5	  == 1))
			   {
				   if(save_water_flag_1.f_bit.fb2		  == 0)
				    {				   
				   		if ((save_water_num_buff != 0)||(save_water_num_buff !=2))
				    	{
				   			save_water_flag_1.f_bit.fb1		  = 1;			
				   			return;	   
				    	}	
					}			   
			   }	  				   			  
			  process_flag_1.f_bit.fb5	 = 1;
			  drain();
			  break;
			  
			  case 28:    			  
			  if((save_water_flag_1.f_bit.fb3		  == 0)&&(confirm_key_press.f_bit.fb5	  == 1))
			   {
				   if(save_water_flag_1.f_bit.fb2		  == 0)
				    {				   
				   		if ((save_water_num_buff == 2)||(save_water_num_buff == 4)||(save_water_num_buff == 5))
				    	{
				   			save_water_flag_1.f_bit.fb1		  = 1;			
				   			return;	   
				    	}	
					}			   
			   }				   			   			  
			  process_flag_1.f_bit.fb6	 = 1;
			  process_buff = 0x04				  ;
			  
			  drain();
			  break;
			  
			  case 5:  
			  case 13:
			  case 21: 
			  case 29: interm_spin(Child_Time_Table[operation_counter]);
			  break;
			  
			  case 6: 
			  case 14:
			  case 22: 
			  spin(Child_Time_Table[operation_counter]);
			  break;			  
			  
			  case 30: 
			  
			  if (spin_time_buff == 6)			  
			  spin(Standard_Time_Table[operation_counter] * 60);
			  
			  if (spin_time_buff != 6)
			  spin(spin_time_buff * 60);					  
			  
			  if (operation_counter == 33)
			   {
				   process_flag_1.f_bit.fb6	 = 0;
				   led_disp.led_2.byte &= 0x7f;
			   }
			  break;
		  };
		  
		return;
		 
	 }
	 
	else 
	operation_counter ++;
	return;
  }
 else if (operation_counter == 33)
  {
	  operation_counter = 0;
	  operation_flag_3.f_bit.fb4		  = 1;	  
	  status_buff = 0x00				  ;
  }
}

 







void wool_program(void)				 
{
 if (operation_counter < 25)
  {		
	if 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -