hi all, i was wondering if anybody could help me with some psudocode or just some logic.
I've just bought a pic16f876 and programming board. I haven't had any experiance with PIC programming, only c++ but before i start learning the pbasic i was hoping somone could tell me the best way to go about my problem....
i'll will be using 5 switches as inputs into the pic and 12 outputs acting as a virtual matrix.
With the 5 switches there's 32 different possible combinations of inputs, but i would only like the state of the switches to be read, or the value of the switches taken when one of the switches is realeased (the auto repeat will be turned off)
For instance, say i wanted to send rbo1 and rb2 high when ra1, ra2 and ra3 was high and 0 & 4 low. does anybody know how i might go about it?
any help would be appriciated.
I've just bought a pic16f876 and programming board. I haven't had any experiance with PIC programming, only c++ but before i start learning the pbasic i was hoping somone could tell me the best way to go about my problem....
i'll will be using 5 switches as inputs into the pic and 12 outputs acting as a virtual matrix.
With the 5 switches there's 32 different possible combinations of inputs, but i would only like the state of the switches to be read, or the value of the switches taken when one of the switches is realeased (the auto repeat will be turned off)
For instance, say i wanted to send rbo1 and rb2 high when ra1, ra2 and ra3 was high and 0 & 4 low. does anybody know how i might go about it?
any help would be appriciated.