/Designs/Measuring_instruments/GM_counter/SW/HV_source/main.c
34,16 → 34,11
 
void main()
{
unsigned int16 setpoint;
unsigned int16 setpoint=43;
unsigned int16 napeti;
unsigned int16 plneni=0;
unsigned int1 button_press; // semafor pro cteni tlacitek
 
lcd_init();
 
lcd_putc("\fHVPS01A 2013 MLAB\n");
Delay_ms(1000);
 
setup_adc_ports(sAN0|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_32);
setup_spi(SPI_SS_DISABLED);
58,17 → 53,17
set_pwm1_duty(0);
set_pwm2_duty(0);
 
 
output_high(LED1);
output_high(LED2);
output_high(LED3);
output_high(LED4);
output_low(BEEP);
 
// ext_int_edge( L_TO_H ); // Sets up EXT
// enable_interrupts(INT_EXT);
// enable_interrupts(GLOBAL);
lcd_init();
 
lcd_putc("\fHVPS01A 2013 MLAB\n");
Delay_ms(1000);
setpoint = 43;
lcd_putc("\f");
while(true)
/Designs/Measuring_instruments/GM_counter/SW/HV_source/main.hex
154,4 → 154,4
:04400E00F52CFF3F4F
:00000001FF
;PIC16F887
;CRC=6BFD CREATED="10-II-13 00:22"
;CRC=6BFD CREATED="10-II-13 16:50"
/Designs/Measuring_instruments/GM_counter/SW/HV_source/main.pjt
17,8 → 17,8
0=0000 %S 0 0 796 451 3 0
[Opened Files]
1=main.c
2=main.h
3=C:\Program Files\PICC\devices\16F887.h
2=..\counter\main.c
3=
4=C:\Program Files\PICC\drivers\lcd.c
5=
[Target Data]