Posts

Showing posts with the label Which




How Do You Know Which Interrupt Flag to Use

Image
If the I flag is set none of the interrupts will be seen by the processor hardware. About the interrupt flag if you dont clear it the ISR will be executed in loop and you will never go back to your main program. Interrupts Trap Flag T This flag is used for on-chip debugging. . When the flag is triggered the processor stops what it is doing attends what. The Interrupt flag IF is a system flag bit in the x86 architectures FLAGS register which determines whether or not the central processing unit CPU will handle maskable hardware interruptsThe bit which is bit 9 of the FLAGS register may be set or cleared by programs with sufficient privileges as usually determined by the operating system. Flag Variables Case 1. Main loop while 1 Check digital input flag if digi_in_flag do some routine check timer 1 if timer1_flag do something routine check timer 2 if timer2_flag do something routine. Before the advent of electronic communica...