Use an inner and outer loop.
Code:for i = 1 to 2 for j = 0 to 7 PORTC = j+(i*8) 'PORTC4:3 selects the multiplexer 'PORTC2:0 selects the channel ' Read ADC here into AD[j+((i-1)*8)] next j next i
Use an inner and outer loop.
Code:for i = 1 to 2 for j = 0 to 7 PORTC = j+(i*8) 'PORTC4:3 selects the multiplexer 'PORTC2:0 selects the channel ' Read ADC here into AD[j+((i-1)*8)] next j next i
Bookmarks