I am working on the same project as matlark. we are working with a PIC 16F887 on MPLAB IDE 8.0 software.
we are trying to display LEDs in rotation initially, then when a button is pushed two die values should display, after another button push the program should return to the LEDs rotating.
however the interrupt for the button seems to go unrecognized. I attached my program as well.
so instead of two die values you want 2 dice values lol ok maybe i can understand more now lol So you have LEDs representing some dice and want its to rotate the LEDs and when a button is pressed it stops on a random dice values and then waits and continues like its rolling dice?
Does this sound true?
the dice should be rotating on startup, when the button is pressed, they would stop on a random(As Random as it can get) value. It should remain on those values until the button is pressed again, where it would go back to rotation.
I looked through the code (quickly) and I didn't see a de-bounce, or did I miss it??
im still here but had to work yesterday sorry um... we have to make another variable that has to be set when isr is done so when we go into isr again thats the first thing we check and if set skip and goto rotate and if not set then skip all other code and goto a infinite loop until a interrupt is brought up again like:
im still here but had to work yesterday sorry um... we have to make another variable that has to be set when isr is done so when we go into isr again thats the first thing we check and if set skip and goto rotate and if not set then skip all other code and goto a infinite loop until a interrupt is brought up again like:
Sorry i havent been writing on this just bee working on something of my own lately. I might re-write this whole code to something similar just to get a fresh perspective since i know what needs to be done.
Sorry i havent been writing on this just bee working on something of my own lately. I might re-write this whole code to something similar just to get a fresh perspective since i know what needs to be done.