SneaKSz
Member
Hello all,
Ive got a pic wich has a connection with the laptop and keypad ( external interrupt INT1) . Both can send numbers to the pic and the pick will show it on the LCD.
When I press some buttons on the keypad(external interrupt) they appear on the LCD , when I send chars to the PIC it shows them op the LCD.
The problem that I"m facing is that : I press the keypad , the value is shown in the LCD but when I send a char now , it will also be shown in the LCD , but now the PIC does NOT
recognize the keypad's external interrupt. It's like the UART disabled the external interrupt .
The pic ( before sending data ) recognizes if ( INTCON3bits.INT1IF==1 ) , but after having an interrupt ( going to an interrupt routine) from the uart , it stops recognizing if ( INTCON3bits.INT1IF==1) when I press a button on the keypad.
Ive been searching for ' fast context saving ' and saved PCLATCH , w , STATUS ... . But it has no affect, I"ve also switched the priority levels.
Someone has experienced this before?
kind regards
Ive got a pic wich has a connection with the laptop and keypad ( external interrupt INT1) . Both can send numbers to the pic and the pick will show it on the LCD.
When I press some buttons on the keypad(external interrupt) they appear on the LCD , when I send chars to the PIC it shows them op the LCD.
The problem that I"m facing is that : I press the keypad , the value is shown in the LCD but when I send a char now , it will also be shown in the LCD , but now the PIC does NOT
recognize the keypad's external interrupt. It's like the UART disabled the external interrupt .
The pic ( before sending data ) recognizes if ( INTCON3bits.INT1IF==1 ) , but after having an interrupt ( going to an interrupt routine) from the uart , it stops recognizing if ( INTCON3bits.INT1IF==1) when I press a button on the keypad.
Ive been searching for ' fast context saving ' and saved PCLATCH , w , STATUS ... . But it has no affect, I"ve also switched the priority levels.
Someone has experienced this before?
kind regards