Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
u tell as ?No,
You have used a pull down resistor. Use a pull-up resistor, or no resistor.
IR receiver output goes to PICkit2 pin 6, not pin 4
pl can explain its command value ?Perfect.... Exactly right..
You can use pin 2 Vdd to supply the +5V if you prefer. Remember to turn on 5V supply in PICkit2 software first
Use the lite version!!! or download the newer XC8 from microchip... Its free to use..any body can help for conversion above code in CCS C ?
bcoz my hi-tech compiler has been expired .
now finally i got sesecs . those code are as , but led on continually .Use the lite version!!! or download the newer XC8 from microchip... Its free to use..
i do it with XC8. i got sesecs . but led on continually .Use the lite version!!! or download the newer XC8 from microchip... Its free to use..
that is here all ready have hereYon cannot clear the interrupt on change flag... You need to read the port to clear it.. Create a line that reads the port..
something like this...
if(GPIO);
void interrupt t0intr(void)
{
if(INTCONbits.T0IF) // check the timer0 over flow interrupt flag
{
timerInterruptIsr();// timer0 overflow interrupt has been occur call the isr
INTCONbits.T0IF =0; // clear the timer0 interrupt flag
}
else if (INTCONbits.GPIF) // check the interrupt on change flag
{
LED=1; // to blink the LED when IR signal is received
interruptOnChangeIsr(); // interrupt on change has been detected call the isr
INTCONbits.GPIF =0; // clear the interrupt on chage flag
LED=0; // to blink the LED when IR signal is received
}
}
no no its continuous onAnd the IOC should be clear.... Whats happening here is the IOC is firing and the LED is flashing very fast and appears on...
INTCONbits.GPIF =0; // clear the interrupt on chage flag
meany meanyThis will not work..... You need to read the port ie a = GPIO; or something like this....