rascupanamuha
Member
How can i make something that works this way:
No matter of input i give it, it gives output 1. So for (1111=1, 0001=1, 0101=1 etc.)
And if input is 0000, it gives 0?
Or is there a way and how to programm that in C?
EDIT: and i am talking only about upper bits of one port. So this is for xxxxyyyy. Ys are 0-15 decimal, and it should be that way, only thing is that if that number is >15 (so xxxx!=0), than it should make xxxx=1, and if xxxx=0, then it is allright
No matter of input i give it, it gives output 1. So for (1111=1, 0001=1, 0101=1 etc.)
And if input is 0000, it gives 0?
Or is there a way and how to programm that in C?
EDIT: and i am talking only about upper bits of one port. So this is for xxxxyyyy. Ys are 0-15 decimal, and it should be that way, only thing is that if that number is >15 (so xxxx!=0), than it should make xxxx=1, and if xxxx=0, then it is allright
Last edited: