y"> / / Timer / Counter 0 initialization
/ / ASSR=0x00;=0x00;
/ / TCNT0=0x00;
/ / OCR0=0x00;=0x00;
/ / TCCR0=0x07;=0x00;=0x6C;
/ / --------------------------------------------------------
/ / Timer / Counter 1 initializationA=0x00;B=0x01;H=0x00;L=0x00;H=0x00;L=0x00;AH=0x15;AL=0x99;BH=0x00;BL=0x00;CH=0x00;CL=0x00;
/ / --------------------------------------------------------
/ / Timer / Counter 2 initialization=0x00;=0x00;=0x00;
/ / --------------------------------------------------------
/ / Timer / Counter 3 initializationA=0x00;B=0x00;H=0x00;L=0x00;H=0x00;L=0x00;AH=0x00;AL=0x00;BH=0x00;BL=0x00;CH=0x00;CL=0x00;
/ / --------------------------------------------------------
/ / External Interrupt (s) initialization=0x00;=0x00;=0x00;
/ / --------------------------------------------------------
/ / Timer (s) / Counter (s) Interrupt (s) initialization=0x12;=0x00;
/ / --------------------------------------------------------
/ / USART1 initialization
/ / UCSR1A=0x00;
/ / UCSR1B=0xD8;
/ / UCSR1C=0x06;
/ / UBRR1H=0x00;
/ / UBRR1L=0x47; A=0x00; B=0xD8; C=0x06; H=0x00; L=0x05;
/ / --------------------------------------------------------
/ / Analog Comparator initialization=0x80;=0x00;
}
/ / -----------------------------------------
/ / =====================================
# endif
/ / ===================================== _adc.h < ; delay.h>
/ / # include
/ / =====================================
# ifndef _FUNCTION_ADC_INCLUDED_
# define _FUNCTION_ADC_INCLUDED_
# include
/ / =====================================
# define CS PORTB.5
# define SDATA PINB.6
# define SCLK PORTB.7flag_t1;
/ / ===================================== mens_adc_U100V (unsigned int N, char Range); mens_adc_U5V4s (unsigned int N, char Range); unsigned int mens_adc_U5V2s (unsigned int N, char Range); int adc (void); adcN (unsigned int N);
/ / void watch_bit_iter_timer3 (void);
/ / ===================================== int adc ( void)
{int U=0; char i;=0; (i=0; i <16; + + i)
{<<=1;=0;
/ / delay_us (1);=1; (SDATA)
{
+ + U;
}
/ / delay_us (1);
} >>=1;=1; U;
}
/ / ===================================== adcN (unsigned int N)
{int i; D=0; (i=0; i