/Designs/Measuring_instruments/GM_counter/SW/HV_source/main.c
33,6 → 33,7
//#define DIVISOR 39 // 50 kHz
 
#define MAX_OUTPUT 530
#define MIN_OUTPUT 220
#define raw_step 50
#define fine_step 5
 
166,7 → 167,7
{
button_press=true;
sound_beep(100,600);
if(voltage_setpoint > raw_step ) voltage_setpoint -= raw_step;
if(voltage_setpoint > (raw_step + MIN_OUTPUT) ) voltage_setpoint -= raw_step;
}
}
 
188,7 → 189,7
{
button_press=true;
sound_beep(100,400);
if(voltage_setpoint > 0 ) voltage_setpoint -= fine_step;
if(voltage_setpoint > (fine_step + MIN_OUTPUT) ) voltage_setpoint -= fine_step;
}
}
 
/Designs/Measuring_instruments/GM_counter/SW/HV_source/main.hex
215,11 → 215,11
:100D6000031DB82EF70A0319C22EF80CF90CFA0C61
:100D70003B08C6003F08C606C61FC02EF817C62E81
:100D8000F813C62EF701F801F901FA018A150A12C3
:100D9000FC2A8E30F7003608F7023708F9003808C9
:100D9000FE2A8E30F7003608F7023708F9003808C7
:100DA000F800F917F7080319E02E0310F908031DDE
:100DB000DC2EF8080319E02EF90CF80CF70BD52EF1
:100DC000B71FE72EF809F909F80A0319F90A8A1575
:040DD0000A12072BD1
:040DD0000A12092BCF
:10100000840183131F308305713083168F000F080E
:10101000061383120617A8012B30A7002B10831686
:1010200003170908C039890003131F129F120030EB
274,7 → 274,7
:101330008A15023084003508B9003408B800330833
:10134000B7003208B600BA018A112C248A15203061
:10135000C3008A11A4218A15B629863003178D008F
:1013600000308F008A110313D1218A152D180C2B00
:1013600000308F008A110313D1218A152D180E2BFE
:101370008316061483120618FE291430C4008A113D
:101380008B208A158316061483120618FE292D1445
:101390006430B6000230B800BC30B7008A11752541
287,7 → 287,7
:1014000083128618442A1430C4008A118B208A154E
:101410008316861483128618442A2D146430B6006D
:101420000230B8005830B7008A1175258A15B90105
:10143000B8014830B7008430B6003508BD00340824
:10143000B8010730B7008730B6003508BD00340862
:10144000BC003308BB003208BA008A11BE258A15D9
:10145000031C442A83143508BD003408BC0033083B
:10146000BB003208BA00C101C0014830BF0084305F
301,28 → 301,28
:1014E0008B2A83103508BD003408BC003308BB00CC
:1014F0003208BA00C101C0012030BF008130BE00F7
:101500008A11A9228A157A08B5007908B4007808EA
:10151000B3007708B2008316881483128818CF2A84
:10151000B3007708B2008316881483128818D12A82
:101520001430C4008A118B208A1583168814831204
:101530008818CF2A2D146430B6000130B8009030DE
:10154000B7008A1175258A15B901B801B701B6012E
:101550003508BD003408BC003308BB003208BA00AF
:101560008A11BE258A15031CCF2A83143508BD00B5
:101570003408BC003308BB003208BA00C101C00106
:101580002030BF008130BE008A11A9228A157A0856
:10159000B5007908B4007808B3007708B200831466
:1015A0003508BD003408BC003308BB003208BA005F
:1015B000B630C100F330C0004E30BF008630BE00F0
:1015C0008A11A9228A157708B6007808B700790829
:1015D000B8007A08B900BD003808BC003708BB0065
:1015E0003608BA00F030C100FC30C0002A30BF001D
:1015F0007D30BE008A11FD2D8A157A08B900790860
:10160000B8007808B7007708B6008A11C92E8A1585
:101610007908A8007808A700831606148312061C10
:10162000202B831686148312861C202B8316081405
:101630008312081C202B83168814831288182D10FF
:101640002C132C0883168700403083128706E92864
:02165000630035
:101530008818D12A2D146430B6000130B8009030DC
:10154000B7008A1175258A15B901B8016130B70055
:101550008630B6003508BD003408BC003308BB0037
:101560003208BA008A11BE258A15031CD12A8314B9
:101570003508BD003408BC003308BB003208BA008F
:10158000C101C0012030BF008130BE008A11A922F4
:101590008A157A08B5007908B4007808B30077088E
:1015A000B20083143508BD003408BC003308BB000A
:1015B0003208BA00B630C100F330C0004E30BF0070
:1015C0008630BE008A11A9228A157708B6007808ED
:1015D000B7007908B8007A08B900BD003808BC0027
:1015E0003708BB003608BA00F030C100FC30C0003C
:1015F0002A30BF007D30BE008A11FD2D8A157A0881
:10160000B9007908B8007808B7007708B6008A11E1
:10161000C92E8A157908A8007808A7008316061431
:101620008312061C222B831686148312861C222BFF
:10163000831608148312081C222B83168814831225
:1016400088182D102C132C08831687004030831225
:061650008706E928630093
:04400E00F52CFF3F4F
:00000001FF
;PIC16F887
;CRC=0931 CREATED="28-IX-13 14:36"
;CRC=C223 CREATED="28-IX-13 14:42"