diff options
author | Mike <mjc@avtechpulse.com> | 2000-01-01 01:28:12 +0900 |
---|---|---|
committer | Mike <mjc@avtechpulse.com> | 2000-01-01 01:28:12 +0900 |
commit | d461f7e68e63ce84b48bc63759596d7ab39c6278 (patch) | |
tree | bd2217c3c224b07f5e7531d74cd94a16c88636eb /flash.c | |
parent | 4d96d6bbd773583e3f3713b3afb273194213ce47 (diff) |
more specific errors during cal min/max check, and more initial cal points
Diffstat (limited to 'flash.c')
-rw-r--r-- | flash.c | 35 |
1 files changed, 18 insertions, 17 deletions
@@ -545,49 +545,50 @@ static void initFlashValues(FlashStruct *mem) mem->slew_pwl_time[i][j][k][m]=0.0; mem->slew_pwl_Vc_norm4095[i][j][k][m]=0; - int temp_int, temp_int_burst_period; + int temp_int; if (m==0) { - /* these values have been determined by experiment */ - temp_int = temp_int_burst_period = dac_max; + /* These values have been determined by experiment. */ + /* Double CH2 delays for -KMPF */ + + temp_int = dac_max; mem->period_pwl_time[i][j][k][m]=(47e-9*power_of_ten)+41e-9; mem->pw_pwl_time[i][j][k][m]=(6e-9*power_of_ten)+20e-9; - mem->delay_pwl_time[i][j][k][m]=(6e-9*power_of_ten)+10e-9; + mem->delay_pwl_time[i][j][k][m]=((6e-9*power_of_ten)+10e-9) * (i+1.0); mem->burst_pwl_time[i][j][k][m]=(22e-9*power_of_ten)+25e-9; } else if (m==1) { - temp_int = temp_int_burst_period = dac_max/2.15; + temp_int = dac_max/2.15; mem->period_pwl_time[i][j][k][m]=(100e-9*power_of_ten)+50e-9; mem->pw_pwl_time[i][j][k][m]=(14e-9*power_of_ten)+25e-9; - mem->delay_pwl_time[i][j][k][m]=(14e-9*power_of_ten)+30e-9; + mem->delay_pwl_time[i][j][k][m]=((14e-9*power_of_ten)+30e-9) * (i+1.0); mem->burst_pwl_time[i][j][k][m]=(33e-9*power_of_ten)+10e-9; } else if (m==2) { - temp_int = temp_int_burst_period = dac_max/4.6; + temp_int = dac_max/4.6; mem->period_pwl_time[i][j][k][m]=(230e-9*power_of_ten)+100e-9; mem->pw_pwl_time[i][j][k][m]=(28e-9*power_of_ten)+50e-9; - mem->delay_pwl_time[i][j][k][m]=(28e-9*power_of_ten)+60e-9; + mem->delay_pwl_time[i][j][k][m]=((28e-9*power_of_ten)+60e-9) * (i+1.0); mem->burst_pwl_time[i][j][k][m]=(50e-9*power_of_ten)+10e-9; } else if (m==3) { - temp_int = temp_int_burst_period = dac_max / 10; + temp_int = dac_max / 10; mem->period_pwl_time[i][j][k][m]=(470e-9*power_of_ten)+160e-9; mem->pw_pwl_time[i][j][k][m]=(70e-9*power_of_ten)+80e-9; - mem->delay_pwl_time[i][j][k][m]=(70e-9*power_of_ten)+90e-9; + mem->delay_pwl_time[i][j][k][m]=((70e-9*power_of_ten))+90e-9 * (i+1.0); mem->burst_pwl_time[i][j][k][m]=(110e-9*power_of_ten)+10e-9; } else if (m==4) { - temp_int = 0; - temp_int_burst_period = dac_max / 20 ; + temp_int = dac_max / 20 ; mem->period_pwl_time[i][j][k][m]=(900e-9*power_of_ten)+200e-9; - mem->pw_pwl_time[i][j][k][m]=0.0; - mem->delay_pwl_time[i][j][k][m]=0.0; + mem->pw_pwl_time[i][j][k][m]=(140e-9*power_of_ten)+80e-9; + mem->delay_pwl_time[i][j][k][m]=((140e-9*power_of_ten)+90e-9) * (i+1.0); mem->burst_pwl_time[i][j][k][m]=(220e-9*power_of_ten)+10e-9; } else { temp_int = 0; - temp_int_burst_period = 0; + mem->pw_pwl_time[i][j][k][m]=0.0; mem->delay_pwl_time[i][j][k][m]=0.0; mem->period_pwl_time[i][j][k][m]=0.0; @@ -596,8 +597,8 @@ static void initFlashValues(FlashStruct *mem) mem->pw_pwl_Vc_norm4095[i][j][k][m]=temp_int; mem->delay_pwl_Vc_norm4095[i][j][k][m]=temp_int; - mem->period_pwl_Vc_norm4095[i][j][k][m]=temp_int_burst_period; - mem->burst_pwl_Vc_norm4095[i][j][k][m]=temp_int_burst_period; + mem->period_pwl_Vc_norm4095[i][j][k][m]=temp_int; + mem->burst_pwl_Vc_norm4095[i][j][k][m]=temp_int; } } power_of_ten*=10.0; |