You are here: Home
Hello friend
As i come to know there is problem in your "uint16_t ReadADC(uint8_t ch)" function
" while(ADCSRA & (1<<ADSC));" this statement is wrong. As adsc is to start conversion.
You need to write-
Hi Subhamoy
As i checked your code, i found some errors in it.
1. write UBRRL=bd; before UBRRH=(bd>>; as other wise you will discard lower byte.
2. Write command("ATrn"); instead of command("ATr"); (Enter is required also).
3.
First of all write your complete code only after that i will be able to help you.