From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,026 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,003 Views)