ign="justify">// xinst
# define scroll_dir TRISAbits.TRISA4
# define scroll PORTAbits.RA4
# define select_dir TRISBbits.TRISB0
# define select PORTBbits.RB0near void LCDInit (void); unsigned temp_wr; near void d_write (void); near void i_write (void); near void LCDLine_1 (void); near void LCDLine_2 (void); unsigned char WREG;
char ptr_pos; char ptr_count; char cmd_byte; char temperature; char seconds ; char minutes ; char hours span> ;
temph; tempv_char [3], temph_char [16] = {"0.00V RB0 = Exit"}, _char [16] = {"Prd. = 128 DC = 128"} , tempt_char [16] = {"Temp = C"},
tempc_char [16] = {"00:00:00"}; zero [1] = {"0"};
rom const char stan_table [15] [16] = {
"Voltmeter", //; 0
"Buzzer", //; 1
"Temperature", //; 2
"Clock", //; 3
"RA4 = Next RB0 = Now", //; 4
"Dimasya",//; 5
"tut koviryal", //; 6
"RA4 = Set RB0 = Menu", //; 7
"RBO = Prd + RA4 = DC +",//; 8
"RB0 = Exit", //; 9
"Volts =",//; 10
"Prd. = 128 DC = 128",//; 11
"Minutes RB0 = + +",// ​​12
"Hours RB0 = + +",// ​​13
"again? RB0 = Exit "} ;//14
// functions definessprw (void); start (void); main
// functions workssprw (void)
{{
_asm movlw 0x00 _endasm = WREG && SSPCON2;
_asm sublw 0x00 _endasm
} while (STATUSbits.Z == 0); (SSPSTATbits.R_W == 1) {};
}
void start (void)
{(); = 0b10100100;// initialize USART = 25; = 0b10010000;
. TRISC2 = 0;// CCP = 0x80; L = 0x80; CONbits.CCP1X = 0; CONbits.CCP1Y = 0;
CON = 0x05;
. TRISA4 = 1;. TRISB0 = 1;
} main (void)
{_wr = 0; _coun...