Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

Shift code

Hi, 
I would like to ask  you that I want to shift Var right or left (Var>>1) and move it to Port or check Pin of port every time, I wrote the instruction below but it doesn't work for me, for example PORTB, PIN3:
PORTB|=((1<<3)&((Var>>1)&1))
can give me instruction actually work (on Multisim)?
Thank you
0 Kudos
Message 1 of 2
(2,032 Views)

What do you mean by "it doesn´t work for me"? What are you getting?


http://www.ni.com/tutorial/5629/en/

0 Kudos
Message 2 of 2
(2,009 Views)