uint8_t FlagTextChanged;
void interrupt isr(){
if(INTF){
...
Lcd_Write_String("Hello");
FlagTextChanged = 1;
}
if(RBIF){
if(RB7){
...
Lcd_Write_String("RB7");
FlagTextChanged = 1;
}
RBIF = 0;
}
}
void main(){
FlagTextChanged = 0;
while (1){
...
if (FlagTextChanged){
FlagTextChanged = 0;
__delay_ms(1000);
}
}
}