fixed memory corruption due to bad array bounds check in start_next_adc (6 vs 8).

also added const array size definitions for adc_portc, din_port and rx_port.