Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <built_in.h>
- unsigned int adc_rd, rd;
- void main()
- {
- DDRB = 0xFF;
- DDRC = 0xFF;
- while (1)
- {adc_rd = ADC_Read(2);
- rd = 65535;
- adc_rd = (adc_rd>>6);
- rd = (rd<<adc_rd);
- PORTB = adc_rd;
- PORTC = Hi(adc_rd);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement