

setup_supplies (vadj, vth, vpu, vsr)
int vadj;
int vth;
int vpu;
int vsr;
{
    reset_allpro();
    udi_write_bit (DAC_REFERENCE_BIT, ON);			/* make sure dac reference on			*/
    udi_write_mem(ANALOG_CONTROL,DAC_REFERENCE_BIT | GREEN_LED_OFF_BIT);
    udi_write_dac (SUPPLY1_POWER_DAC, vadj);
    udi_write_dac (PU_CONTROL_DAC, vpu);
    udi_write_dac (THRESH_HOLD_DAC, vth);
    udi_write_dac (SLEW_RATE_DAC, vsr);
    delay_ms (100);
}

