As i was saying to Jay.Slovak, its very hard to explain something in a foreign language. But im tried to be explicit. Sorry if i confused you.
The flashing of the led during the interruption could occur just because im switching the RB4-RB7 manually?
My project consist in develop a Switching Matrix for some Measurement Equipment. Sorry for my english so far and foward.
Now, The Switching Matrix (work with biestables latches) is 20x20, one latch per connection point. Follow me. Now, in order to controlled the 400 switches (latches), i thougth that i can save a lot of space using demux (4 to 16 lines) and i could connect one latch per demux output.
Implement the circuit this way, im only need control signals (from the pic) in the demux enable pin. And 4 data bits that tells the demux which latch must be set. Right?
In the final project. The RB4-RB7 are data bits from the PC. There is 14 circuits in the evaluation (measurement test) proccess. And 4 bits data gives me the possiblity of 16 diferent circuits. Now, every circuit does not connect more than 20 points (max, i think). And checking the value of Pins RB4-RB7, the pic has to set the latches associated with that value.
I hope you understand me know mike. Right now, im just working with 1 demux, in the final project, some pics (like 3) has to control like 20 demux and give them the data bits to activate the latches.
If anyone here knows spanish. Well, i gladly explain it in spanish.
Hoping you are not confused anymore. Thanks again pal
Striker