CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
Loading...
Searching...
No Matches
Trimmer.c File Reference
#include "tutti_gli_header.h"

Go to the source code of this file.

Functions

void detector_scrittura_lettura_trimmer_bias (uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t trimmer, uint8_t valore, uint8_t scrivi_1_leggi_0)
 Setting the value of any trimmer for detector biasing, the contents of the trimmers are stored in the matrix contenuto_trimmer_detector[canale][trimmer]

 
void preamplifier_scrittura_lettura_trimmer (uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t trimmer, uint8_t valore, uint8_t scrivi_1_leggi_0)
 Setting the value of any trimmer for preamplifier trimmer, the contents of the trimmers are stored in the matrix contenuto_trimmer_preamplifier[canale][trimmer]

 
void instr_offset_trimmer_calibration_function (void)
 The fine and coarse trimmers for offset adjustment are calibrated here

 
void instr_DetBias_trimmer_calibration_function (void)
 The fine and coarse trimmers for Detector bias adjustment are calibrated here

 
void Imposta_wiper_a_meta_scala_canale_0_I2CA (void)
 
void Imposta_wiper_a_meta_scala_canale_1_I2CA (void)
 
void Imposta_canale_del_trimmer_ennesimo_al_valore_I2CA (uint8_t numero_canale, uint8_t numero_trimmer, uint8_t valore_dato)
 
void Imposta_trimmer_common_mode_I2CB (uint8_t numero_trimmer, uint8_t valore_dato)
 
void Imposta_wiper_a_meta_scala_canale_0_I2CB (void)
 
void Imposta_wiper_a_meta_scala_canale_1_I2CB (void)
 
void Imposta_canale_del_trimmer_ennesimo_al_valore_I2CB (uint8_t numero_canale, uint8_t numero_trimmer, uint8_t valore_dato)
 
long int Arrotonda (float temp)
 
void Trova_valori_trimmer_per_offset_preamplificatore (long int offset, struct trimmer_type *Valori_per_i_trimmer, int coarse_trimmer_step, int fine_trimmer_step)
 
void Trova_valori_trimmer_per_deriva_termica_preamplificatore (long int deriva, int16_t *Valori_per_i_trimmer)
 

Variables

const struct address_detector_bias_trimmer_type address_detector_bias_trimmer [6]
 Detector trimmer addresses.
 
const struct address_detector_bias_trimmer_type address_preamplifier_trimmer [6]
 Preamplifier trimmer addresses

 
const struct address_detector_bias_trimmer_type address_PGA_a_trimmer [6]
 Preamplifier trimmer addresses

 
uint8_t contenuto_trimmer_detector [12][4]
 Content of the trimmer for detector bias system.
 
uint8_t volatile contenuto_trimmer_preamplifier [12][4]
 
uint8_t volatile contenuto_trimmer_PGA_a_trimmer [6][4]
 
uint8_t volatile attenuatori_PGA_a_trimmer [12]
 
struct trimmer_type Trimmer_offset_preampli [] ={0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80}
 
struct trimmer_CMRR_JFET_COLD_type Trimmer_CMRR_JFET_COLD ={0x80,0x80,0x80,0x80}
 
int coarse_Trimmer_offset_step_actual [] ={ (int)(1e6*(10.0*20.0/40.0/255*5.1/2.7*2)) , (int)(1e6*(10.0*20.0/40.0/255*5.1/2.7*2)) }
 
int fine_Trimmer_offset_step_actual [] ={ (int)((10.0*20.0/40.0/255*5.1/470*2)*1e6) , (int)((10.0*20.0/40.0/255*5.1/470*2)*1e6) }
 
int fine_Trimmer_thermal_step_actual [] ={ (int)((2.4*20.0/40.0/255*5.1/470*2)*1e6) , (int)((2.4*20.0/40.0/255*5.1/470*2)*1e6) }
 
int coarse_Trimmer_thermal_step_actual [] ={ (int)((2.4*20.0/40.0/255*5.1/2.7*2)*1e6) , (int)((2.4*20.0/40.0/255*5.1/2.7*2)*1e6) }
 
int reference_thermal_drift_actual = (int) (6645*20/40/255*5.1/2.7*2)
 
char numero_offset_per_impostazione_deriva [] = {17,17}
 
char numero_temperature_impostazione_deriva [] = {9,9}
 
unsigned char coefficiente_termico_trimmer_deriva [] = {200,200}
 
signed char valori_offset_per_impostazione_deriva [2][20]
 
unsigned char valori_temperature_impostazione_deriva [2][12]
 
char temperatura_di_lavoro [2]
 
char offset_di_lavoro [2]