Check_UART btfss PIR1,RCIF ; Is it a Recieve interrupt?
goto ISR_Exit
movf RCREG,W ; read the buffer
andlw b'01111111'
movwf RX_DATA ; load to a temperory register
;
Check_String btfss Flag_Register,0
goto Check_D
goto Check_1
Check_D movf RX_DATA,W
xorlw 'D'
btfss STATUS,Z
goto Reset_Field
bsf Flag_Register,0
goto ISR_Exit
Check_1 movf RX_DATA,W
xorlw '1'
btfss STATUS,Z
goto Reset_Field
bsf Flag_Register,1
;
movf Flag_Register,W
xorlw b'00000011'
btfss STATUS,Z
goto Reset_Field
bsf PORTA,2 ; turn ON buzzer
;
Reset_Field clrf Flag_Register
;
ISR_Exit