Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
Question here, you are not really running all 3 channels at same time simply running then one at a time really fast. Is there a way using interrupts to run them simultaneously at same time?
could you share the codes with uss pleaseee
void adc_setup(){ cli(); ADMUX=0; ADMUX|=bit(MUX0); ADMUX|=bit(REFS0); ADCSRA=0; ADCSRA |=bit(ADEN); ADCSRA |=bit(ADPS0) | bit(ADPS1); sei(); } void task1() {volatile unsigned int y=0;float t;static const float ADC_to_V=1/1023.0*5;static const int ADC_CHANNELS=3;volatile float ADC_read[ADC_CHANNELS]={0,0,0};int i=0;const int n=50;const float n_inv=1.0/n;float sum=0;while(i
program çalışmıyor. 3 pini aynı anda okuyor.
Upload F22 solidworks tutorial for God sake.
LMAO
Question here, you are not really running all 3 channels at same time simply running then one at a time really fast. Is there a way using interrupts to run them simultaneously at same time?
could you share the codes with uss pleaseee
void adc_setup()
{
cli();
ADMUX=0;
ADMUX|=bit(MUX0);
ADMUX|=bit(REFS0);
ADCSRA=0;
ADCSRA |=bit(ADEN);
ADCSRA |=bit(ADPS0) | bit(ADPS1);
sei();
}
void task1()
{
volatile unsigned int y=0;
float t;
static const float ADC_to_V=1/1023.0*5;
static const int ADC_CHANNELS=3;
volatile float ADC_read[ADC_CHANNELS]={0,0,0};
int i=0;
const int n=50;
const float n_inv=1.0/n;
float sum=0;
while(i
program çalışmıyor. 3 pini aynı anda okuyor.
Upload F22 solidworks tutorial for God sake.
LMAO