Hey guys,
I have a ATmega 128 with some inputs like and LCD, Poti, etc. provided by my university.
I want to read the present data from my ADC (the ADC value can be adjusted with a poti from 0-5 volts) each time my timer interrupt accours.
So my code needs to do the following:
If Timer Interrupt cnt++
read present value of ADC
store in an array
show value of ADC on LCD
if TimerInterrupt cnt++
read present value of adc
store in next line of array
show new value on LCD
...... the array should store 100 values.
I can get no function that provides this. I can show the whole range of the adc on the screen but not one single value that is frozen since my timer hasn't counted up.
I would be very happy, if you could show me a way to manage this :D