Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Naumanpak,you seem to be thinking of interrupts as simple function calls, its not the way to go my friend ... I am assuming this is C18 compiler ? ... If thats true, read the user guide (2.9.2.3 Interrupt vectors) ... also fix the comon mistake of I/O digital config (If you havent already), and...
With my little experiance, I would go for analog inputs for such an app ...
but if you're going for digital inputs, then I would sugest you get the code working with simple voltage inputs first (5-0 volts, no LDR), then work on your LDR sensor circuit ...
so have you configured your I/O ports in...
google search results in too many interrupt issues, most of which are I/O config problems ... but I cant figure out any flaw in this code :( ... So guys, if you do not see a mistake, could u try the code and let me know if it works or not ?
INT0 is input, RB6 & RB7 should change if an interrupt...
Hi all, can somebody please tell me whats wrong with this code ?!
its supposed to be a hardware interrupt test:
normal operation : LED1 on, LED2 off
when interrupt accurs(INT0 change) : LED1 off, LED2 on
I have to mension that my INT0 pin (RB0) is always high unless I push the button (push to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.