What is the use of the MSBFIRST argument in the shiftIn() function?

Hương Trang

New member
What is the use of the MSBFIRST argument in the shiftIn() function?
A. To denote the least significant bit
B. To denote the maximum number of Bits
C. To denote the most significant bit
D. To denote the minimum number of bits
 
Answer: C
Explanation: The shiftIn() function shifts in one byte of a binary number bit by bit starting from either the most significant bit or the least significant bit. Now after each bit is pulled, the clock pin is turned to HIGH until the next one at which point the clock pin is turned down to LOW again. Now the MSBFIRST argument denotes that the byte of data be read from left to right.
 

Tìm kiếm

Back
Top