       () sonata
http://radiokot.ru/circuit/power/supply/19/


         . 
      :
#define Button_only 1   // 1 -  , 0 -  

         
    :
#define MAX_U 25        //   ()
#define MAX_I 10        //   ()


 :

( 04, 2010)
    (U1-U3).   .
 .     5    
  .   (  2)    
       .


( 03, 2013):
1.   +-2 -      . 
    ()    +/-4/
 /     U2  U3 
(PORTB.4 & PORTB.5)       FILTER ON/OFF .
      ,   , 
  .      
      .

2.          
.          
     U1  U2 (PORTB.3 & PORTB.4)    
   DEFINE ERROR COMPLETE    . 
        .

3.   ( U4- PORTD.3) PORTC.5. 
  PORTC.5=0(   ).
          OUT ON  
OUT OFF       .