Post Created date
Problems with for loop
I still have a problem reading my present adc-value into an array.   I used a timer interrupt, like this:   ISR(TIMER1_OVF_vect) { cnt++; if (cnt==j) // ja can be...
Friday, 30 June 2017 - 17:14
Problems with for loop
Hey and thanks for ur suggestions. I will try it :)   /* i is not initialized ? did your compiler warn you?It is but i did not show it in the code ;)
Friday, 30 June 2017 - 17:07
Problems with for loop
Here is the code that solved my problem on displaying a waveform on an char lcd proportional to the input voltage coming from my adc.   int set = getadc(0)*8/1023; //lcd...
Friday, 30 June 2017 - 16:13
Problems with for loop
Hey guys,   thanks for your help. I solved the problem. Is there anything I need to do for this regarding these posts/topic?
Wednesday, 28 June 2017 - 05:19
Problems with for loop
int set = getadc(0)*8/1023; //value of adc tranfer into lcd 8 rows 5 lines for (i=0; i<set; i++) { pattern[i]=0b00000; } for (i=i; i<8; i++) {...
Tuesday, 27 June 2017 - 20:20
Problems with for loop
Yes! That is exactly what I am trying to do, the first and the second pictures!     How do you put 102 values onto 8 rows? I devided 102/8 =12.75, since i work with int...
Tuesday, 27 June 2017 - 19:04
ATmega 128 select ADC on each timer interrupt
@ clawson:   thanks for these helping hands, but why did u use const __flash? I can find that eather const or flash is used if one want to access the FLASH memory.
Monday, 26 June 2017 - 10:22
ATmega 128 select ADC on each timer interrupt
@ clawson   Yes, I wrote down my steps (at least how I think it should work), but like a kid trying to walk, you need to know how you step up, move the foot right and balance...
Monday, 26 June 2017 - 09:41
ATmega 128 select ADC on each timer interrupt
I have 1023 inputs for voltage of 0-5volts. I devide it by 10 to get the 102 values.
Monday, 26 June 2017 - 09:26
ATmega 128 select ADC on each timer interrupt
This is some code: actually, this is just showing the present value of the adc on my 7seg and the lcd but dow not sample them on each of the sampling "events". THIS IS JUST PART...
Monday, 26 June 2017 - 09:23