How could these program compiled? | Microcontroller › AVR › How could these program compiled? This topic has 16 replies, 3 voices, and was last updated 11 years, 5 months ago by Amrith. Viewing 2 posts - 16 through 17 (of 17 total) ← 1 2 Author Posts June 29, 2012 at 7:50 pm #8155 Ghulam MustafaParticipant Hello, I have found this program and is working wel for AVR ATmega16 for ADC conversion and wanted to share I found it in Avr Microcontroller’s Book by Mazidi .INCLUDE “M16DEF.INC” LDI R16,0xFF OUT DDRB,R16 OUT DDRD,R16 LDI R16,0 OUT DDRA, R16 LDI R16,0x87 OUT ADCSRA,R16 LDI R16,0xC0 OUT ADMUX, R16 READ_ADC: SBI ADCSRA,ADSC KEEP_POLING: SBIS ADCSRA,ADIF RJMP KEEP_POLING SBI ADCSRA,ADIF IN R16,ADCL OUT PORTB,R16 IN R16,ADCH OUT PORTD,R16 RJMP READ_ADC June 30, 2012 at 12:36 am #8159 AmrithParticipant Hi Ghulam, Strange issue. I’m working on it, will let you know if any solution found. Till then keep trying to solve it. Author Posts Viewing 2 posts - 16 through 17 (of 17 total) ← 1 2 You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In