/Designs/Measuring_instruments/AWS01A/SW/PIC16F887/main.c
82,10 → 82,10
welcome(); // welcome print and device indentification
output_low(PIN_E1);
enable_interrupts(INT_TIMER1); // interrupts used for anemometer readings
//enable_interrupts(INT_TIMER1); // interrupts used for anemometer readings
//enable_interrupts(INT_TIMER0);
// disable_interrupts(INT_RDA);
enable_interrupts(GLOBAL);
//enable_interrupts(GLOBAL);
output_high(PIN_E1);
 
restart_wdt(); //---WDT
110,8 → 110,8
local_temp = ds1820_read()+27315;
sht_rd(SHT_temp,SHT_hum);
SHT_temp = (SHT_temp + 273.15)*100;
barometer_temperature = (MPL_get_temperature() + 273.15)*100;
barometer_pressure = MPL_get_pressure() * 10.0; // conversion to hectopascals
//barometer_temperature = (MPL_get_temperature() + 273.15)*100;
//barometer_pressure = MPL_get_pressure() * 10.0; // conversion to hectopascals
delay_us(SEND_DELAY);
putc('$');