This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with WIU in STR9

Hello;

First of all, sorry because my English is quite bad.

I have a problem with WIU in STR9 micro. I need to connect a four keys keyboard to P7.4-P7.7 pins. I think that the best form to design this is to "connect" each key with one external interrupt.

The problem is that those WIU lines (26 to 29) go to the same VIC Input Channel (VIC1.13). But I only can recognize one of the keys. I donÂ't know how to "multiplex" the four WIU lines to the same VIC Channel.

¿How can I solve this problem? ¿How can I recognize which of the 4 keys I have pressed?

Thanks in advance.

  • Hi;

    I have solved the problem. VIC1.9 VIC Input Channel is a logical OR of al WIU lines, so using this interrupt channel is posible to recognize which of the keys has been pressed.

    If anybody have better solution I would like to know other alternatives.

    Thanks.