[an error occurred while processing this directive]
|
проблема в следующем: после обработки внешнего прерывания его флаг в контрольном регистре не сбрасывается. Вот текст из описания:
Bit 15 XINT1 Flag
This bit indicates whether the selected transition has been detected on the XINT1 pin and is set whether or not the interrupt is enabled. This bit is cleared by the appropriate interrupt acknowledge, by software writing a 1 (writing a 0 has no effect), or by a device reset.
0 No transition detected
1 Transition detected
Так что же в таком случае "acknowledge"? Если сбрасывать флаг руками, все работает.
E-mail: info@telesys.ru