CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
Loading...
Searching...
No Matches
DAC_PGA.h File Reference
#include <stdint.h>

Go to the source code of this file.

Macros

#define fondo_scala_DAC_PGA   (uint32_t) 0x3FF /*(1<<10)-1*/
 
#define PGA_set_pre_pga_high_gain   0x02
 Set the amplifier gain in front of the PGA to 10 V/V, it is left shifted once in the trimmer.
 
#define PGA_set_pre_pga_low_gain   0x01
 Set the amplifier gain in front of the PGA to 1 V/V, it is left shifted once in the trimmer.
 
#define set_pre_pga_idle   0
 The swirches are set both off.
 
#define gain_pre_PGA_x_2   guadagno_minimo_PGA *10
 
#define PGA_pre_PGA_max_gain   10
 

Functions

void PGA_set_reset_pre_PGA_gain (uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t set_1_reset_0)
 Here the 2 digital signals from the trimmer are exploited to set the gain of the input stage of the PGA.
 
void PGA_GAIN (uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t guadagno_da_impostare)
 It sets the PGA gain irrespective of the offset.
 
void PGA_DAC_GAIN_CROSS (uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t guadagno_da_impostare, uint8_t PGA_si_NO)
 

 
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 PGA.
 
void PGA_GAIN_set (char canale, unsigned int guadagno_da_impostare)
 It sets the new gain irrespective of the offset.
 
void PGA_preparation_to_gain_set (char canale, unsigned int guadagno_da_impostare)
 It sets the new gain letting the output offset at the same level.
 

Variables

unsigned char guadagno_minimo_PGA
 
unsigned int PGA_Gain_code []
 
unsigned int PGA_Gain_V_su_V []
 
uint8_t massimo_guadagno_impostabile
 
uint8_t PGA_settled_gain []
 PGA set gain.