rabhishek91
New Member
Hi everyone.
I am doing a project wherein i am reading analog values using inbuilt ADC of Atmega32A.
It is known that Atmega32A has 10bit ADC.
I don't need resolution of 10 bit for my project. So is there any way where i can read the values and get 1 bit output directly ? I know it can be converted using software but is there any alternative way wherein i can achieve this using hardware(like Setting bits or clearing bits)?
or
My main motto is to read 5V as logic 1 and 0V as logic 0. Can this be done in any other way ?
Please don't get me wrong if this is a silly question. I am new to this programming stuff.
Any help would be much appreciated.
Thanks in advance.
I am doing a project wherein i am reading analog values using inbuilt ADC of Atmega32A.
It is known that Atmega32A has 10bit ADC.
I don't need resolution of 10 bit for my project. So is there any way where i can read the values and get 1 bit output directly ? I know it can be converted using software but is there any alternative way wherein i can achieve this using hardware(like Setting bits or clearing bits)?
or
My main motto is to read 5V as logic 1 and 0V as logic 0. Can this be done in any other way ?
Please don't get me wrong if this is a silly question. I am new to this programming stuff.
Any help would be much appreciated.
Thanks in advance.