It sets the PGA gain irrespective of the offset.
292void PGA_GAIN(uint8_t scheda_su_scheda_giu, uint8_t canale, uint8_t guadagno_da_impostare){
321 unsigned short PGA_code = ((fondo_scala_DAC_PGA *
guadagno_minimo_PGA) * PGA_si_NO / guadagno_da_impostare) ;
325 SPIdrv->Uninitialize();
331 PGA_DAC_chip_select[canale].I2C_to_parallel_chip__pin_num );
333 SPItx_16_per_il_DAC( (PGA_code<<4) & 0x3FFF);
341 SPIdrv->Uninitialize();
uint8_t massimo_guadagno_impostabile
uint8_t guadagno_minimo_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 I2C_to_Parallel_set_PCA9554_outputs_values(uint8_t scheda_su_scheda_giu, uint8_t select_PCA, uint8_t value)
The function I2C_to_Parallel_set_PCA9554_outputs_values allow to set the output pin of the I2C to par...
const uint8_t I2C_to_Parallel_ini_set[4]
...
void SPI_Inizialize_per_il_DAC(void)
SPI is initialized here for DAC. Remember to set the variable SPI_speed before the call....
void SPI_Inizialize(void)
SPI is initialized here. Its ise t at 8 bits and 100 KHz, as default.
void Aspetta_tanti_ms(int millisecondi)
The timing function.