t = 16; (); ();
}
menu (void)
// ------------------ VOLT MEASUREMENT -------------------- -------- (1) {
ptr_pos = 0;
stan_char_1 (); _pos = 4; _char_2 (); (scroll == 1) {if (select == 0) {voltmeter (); break;}}; (select == 0) {}; while (scroll == 0) {};
// ------------------ BUZZER --------------------- ----------------- (select == 0) {}; _pos = 1; _char_1 (); _pos = 4; _char_2 ();
(scroll == 1) {if (select == 0) {buzzer (); break;} }; (select == 0) {}; while (scroll == 0) {};
// ----------------- TEMPERATURE MEASUREMENT --------------------- - (select == 0) {}; _pos = 2; _char_1 (); _pos = 4; _char_2 (); (scroll == 1) {if (select == 0) {temp (); break;} }; (select == 0) {}; while (scroll == 0) {};
// ------------------ CLOCK TIME -------------------- -------------- (select == 0) {}; _pos = 3; _char_1 (); _pos = 4; _char_2 ();
(scroll == 1) {if (select == 0) {clock (); break;}}; (select == 0) {}; while (scroll == 0) {} ;
};
}
// ************* STANDARD USER CODE ************************ **********
// ------------- Voltmeter -------------------------- ------------------ voltmeter (void)
{
int i; temp_char; (select == 0) {};
bits.ADON = 1; = 0b00001110; = 0x01;
_pos = 10; _char_1 ();
{bits.GO = 1; (ADCON0bits.GO == 0) {}; = ADRESH; * = 2; (temph, tempv_char); (temph <10)
{temph_char [0] = zero [0]; temph_char [2] = zero [0]; temph_char [3] = tempv_char [0];} if (temph <100)
{temph_char [0] = zero [0]; temph_char [2] = tempv_char [0]; temph_char [3] = tempv_char [1];} // 10 <= x <100
_2 (); (i = 0; i
{_char = temph_char [i]; _wr = temp_char; _write ();
}// for i
} while (select == 1);
}
// --------------------- BUZZER ----------------------- --------------- buzzer (void)
{temp_char;
int n, i;
while (select == 0) {}; = 0x80; L = 0x80;
_1 (); _pos = 11; _char_1 (); _2 (); _pos = 8; _char_2 (); CON = 0x0f; (1) {= 0; (select == 0)
{+ = 1; = 5; = PR2;
(scroll == 0) end;
}// if select (scroll == 0)
{//inc dcL + = 1; = CCPR1L; = 12; (select == 0) end;
} (n! = 0) {(temph, tempv_char);
(temph <10)
{tempb_char [n] = zero [0]; tempb_char [n +1] = zero [0]; tempb_char [n +2] = tempv
_char [0];} if (temph <100)
{tempb_char [n] = zero [0]; tempb_char [n...