Selection of the line to measure with the analog MUX's of the postmainboard, directely driven by the microprocessor port.
195 #define offset_per_board_down 32
196 uint8_t offset_per_mux=0,actual_line_to_select,analog_node,analog_mux;
203 if (scheda_su_scheda_giu==0) offset_per_mux = offset_per_board_down;
205 actual_line_to_select=
ADC_node_map[line_to_select] + offset_per_mux;
208 analog_node = actual_line_to_select & 7;
209 analog_mux= (actual_line_to_select >> 3) & 7;
211 if(select_1_deselect_0){
218 GPIO_PinWrite(mux_in_gioco[analog_mux].porta_num, mux_in_gioco[analog_mux].pin_num, 1);
220 GPIO_PinWrite(mux_in_gioco[analog_mux].porta_num, mux_in_gioco[analog_mux].pin_num, 0);
const porta_pin_def Mux_enable_postmainboard_1
location of the chip select pin of analog mux 1 of postmainboard, 0=off
const porta_pin_def Mux_select_word_2
selettore 2 del pin di ingresso dell'analog mux
const porta_pin_def Mux_enable_postmainboard_7
location of the chip select pin of analog mux 7 of postmainboard, 0=off
const porta_pin_def Mux_enable_postmainboard_3
location of the chip select pin of analog mux 3 of postmainboard, 0=off
const porta_pin_def Mux_enable_postmainboard_8
location of the chip select pin of analog mux 8 of postmainboard, 0=off
const porta_pin_def Mux_select_word_1
selettore 1 del pin di ingresso dell'analog mux
const uint8_t ADC_node_map[]
Mapping to mux's on postmainboard. Its syntax: bits 0 to 3 are common to all the MUXs and select one ...
const porta_pin_def Mux_select_word_0
selettore 0 del pin di ingresso dell'analog mux
const porta_pin_def Mux_enable_postmainboard_5
location of the chip select pin of analog mux 5 of postmainboard, 0=off
const porta_pin_def Mux_enable_postmainboard_6
location of the chip select pin of analog mux 6 of postmainboard, 0=off
const porta_pin_def Mux_enable_postmainboard_4
location of the chip select pin of analog mux 4 of postmainboard, 0=off
const porta_pin_def Mux_enable_postmainboard_2
location of the chip select pin of analog mux 2 of postmainboard, 0=off
void Analog_mux_line_to_select_deselect_for_postmainboard(uint8_t scheda_su_scheda_giu, uint8_t line_to_select, uint8_t select_1_deselect_0)
Selection of the line to measure with the analog MUX's of the postmainboard, directely driven by the ...