Home › Forums › Microcontrollers › PIC Microcontroller › How to use Interrupts This topic has 0 replies, 1 voice, and was last updated 7 years, 2 months ago by Maria Tanja. Viewing 1 post (of 1 total) Author Posts September 28, 2017 at 5:48 pm #13917 Maria TanjaParticipant Hello, How to use interrupts to LED ON/OFF using push button. Am using 16Bit PICMicrocontroller dsPIC33. Please suggest how to write code.. if (PORTBbits.RB5 == 1) { LATEbits.LATE6 = 1; } if (PORTBbits.RB5 == 1) { IFS1bits.CNIF = 1; IFS1bits.INT2IF = 1; IFS1bits.INT2IF = 1; IFS1bits.INT2IF = 0; } by using this code only switched ON…. Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in The reCAPTCHA verification period has expired. Please reload the page. Log In