All the posible nodes voltages can be read with this instruction. Either the internal or an external ADC can be used. The external ADC option will become obsolote at the time of installation.
762 uint8_t offset,nodo_da_leggere =
tx_data[6], iii;
763 uint8_t ADC_interno_esterno=
tx_data[5] & 1;
764 uint8_t ADC_diff_1_single_0=
tx_data[5] >>1 & 1;
765 int32_t ADC_misura_fatta_neg=0, ADC_misura_fatta_pos=0,ADC_misura;
767 scheda_su_scheda_giu = (nodo_da_leggere >>7) & 1;
768 nodo_da_leggere = nodo_da_leggere & 0x7F ;
816 if (ADC_diff_1_single_0==0){
826 if(ADC_interno_esterno){
827 *(int32_t *)
tx_data = ADC_misura_fatta_pos;
830 *(int16_t *)&
tx_data[0] = (ADC_misura_fatta_pos / 1000) & 0xffff;
831 *(int16_t *)&
tx_data[2] = (ADC_misura_fatta_neg / 1000) & 0xffff;
833 *(int32_t *)
tx_data = ADC_misura_fatta_pos - ADC_misura_fatta_neg;
int32_t ADC_misura_differenziale_con_media_generico(uint8_t scheda_su_scheda_giu_, uint8_t preamplifier_externalADC_1_onboardADC_0, uint8_t nodo_da_misurare, uint8_t differenziale_1_single_0)
This function sets the original gain when a few LSb have to be determined. The umber of bits is bit_t...
void instr_ADC_LETTURA_function(void)
All the posible nodes voltages can be read with this instruction. Either the internal or an external ...
volatile uint16_t ADC_medie_per_misura
the number of ADC readings to average, the maximum is 400
volatile bool ADC_non_leggi_lo_offset_se_true
if not necessary, the ADC input offset from buffer is not read
uint8_t tx_data[8]
Transmission data vector.
@ node_voltage_PreOut_ch_5
Node voltage selection of PreOut 12+5 board down.
@ node_voltage_Analog_Mux_meas_bias_pos_ch0
volatile int8_t vettore_istruzioni[8]
This is a copy of the received 8 bytes from the CAN.