Author Topic: 51 microcontroller interrupt program,what is the implementation process?  (Read 2289 times)

0 Members and 1 Guest are viewing this topic.

Offline david-ITTopic starter

  • Contributor
  • !
  • Posts: 17
  • Country: us
  • never stop learning
#include<reg52.h> 
void main(void)
  {
   EA=1;     
   EX0=1;     
   IT0=1;   
   P0=0xff;         
        while(1);
}
void it0(void) interrupt 0 using 0
{

  P0=~P0; 
 
}

when interrupt,what is the progress?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf