質問: 1 clock cycles) nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop mov 0x90, #0x01 ; Pull GPOI window up end_loop: jmp end_loop end ``` Update: What am I missing to make the chip respond to the interrupts correctly (only when the interrupt pulse is present), and exit the ISR when the pulse is over (it should check for that every time it finishes the ISR completely)?
回答: It seems you're using the external interrupt in level mode, not edge-triggered. Check out page 27 of the datasheet and read the TCON register description. Also, since this happens with disconnected function generator, I presume you don't have an external pullup resistor. However, pg. 20 suggests that leaving P3.3 floating might be bad.