Цитата(aaarrr @ Jul 7 2008, 17:18)

А зачем, если есть PIO_ISR?
У меня в sam7s256 почему-то он содержал 1 на всех изменивших своё состояния ногах с момента предыдущего чтения (даже тех, по которым не генерилось прерывание). Поэтому сделал так.
When an input change is detected on an I/O line, the corresponding bit in PIO_ISR (Interrupt
Status Register) is set. If the corresponding bit in PIO_IMR is set, the PIO Controller interrupt
line is asserted. The interrupt signals of the thirty-two channels are ORed-wired together to generate
a single interrupt signal to the Advanced Interrupt Controller.
When the software reads PIO_ISR, all the interrupts are automatically cleared. This signifies that
all the interrupts that are pending when PIO_ISR is read must be handled.
Сообщение отредактировал _4afc_ - Jul 7 2008, 13:37