PGA gain set.
331 #define PGA_mantieni_loffset 1
333 uint8_t canale_, preamplifier_canali_da_regolare= (
vettore_istruzioni[6] & 0x3F),iii,istruzione_old[8];
337 uint8_t preamplifier_externalADC_1_onboardADC_0=0;
341 for (iii =0; iii < 7;iii++){
345 for ( canale_ =0; canale_<6; canale_++){
349 for ( canale_ =0; canale_<6; canale_++){
350 if( (preamplifier_canali_da_regolare >> canale_) & 1){
355 if( preamplifier_attesa_tra_le_misure==0) preamplifier_attesa_tra_le_misure=500;
356 preamplifier_canali_da_regolare_old = preamplifier_canali_da_regolare ;
370 for (iii =0; iii < 7;iii++){
377 for(canale_=0; canale_<6;canale_++){
378 if( ( preamplifier_canali_da_regolare >> canale_) &1 ){
380 PGA_GAIN_CROSS( scheda_su_scheda_giu, canale_, PGA_gain_to_set ) ;
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...
@ instr_output_offset_to_be_set
Adjust the ouput voltage that was previously set at instr_ouput_offset_we_want_to_set.
void PGA_GAIN_CROSS(uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t PGA_gain_to_set)
Here the 2 digital signals from the trimmer are exploited to set the gain of the input stage of the P...
uint8_t PGA_settled_gain[12]
PGA set gain.
void Error_imposta_la_istruzione(void)
Function to be located at the end of every instruction to mark the error, if any.
void ERROR_codifica_errore(uint8_t scheda_su_scheda_giu, unsigned char error_addres, unsigned char code_to_shift, uint8_t reset_count_se_0)
If an error is found its flag is codified here.
void instr_PGA_gain_set_function(void)
PGA gain set.
#define istruzione_byte_3
void instr_output_offset_to_be_set_function(void)
The detector bias will be set at the value set with the function instr_detector_Vbias_we_want_to_set_...
int32_t preamplifier_Output_offset_target[12]
Offset target values.
volatile int8_t vettore_istruzioni[8]
This is a copy of the received 8 bytes from the CAN.