sequential (55) Left right shift line
https://wodewangzhishime.blogspot.com/2022/06/httpswodewangzhishime.html
.
.
John: See the picture above. Not all the chips have the Left/Right shift line. Left/Right shift line is a field.
.
For (int i = 0; i<100; i++)
{
Sum = Sum + i (Right shift) Receiving.
}
.
__
.
For (int i = 100; i>0; i--)
{
Decrease = decrease - i (Left shift) Sending.
}
Subject [I2C]
Object [Sum]
Interrupt_status []
Load_Shift_status [Shift]
Left_Right_Shift [ right ] <-- Right shift mean receiving. In the port of SPI, you're not supposed to set it.
.
Me: The port of I2C is only one line. This one line is used for both receiving and sending. Therefore, Left/Right Shift line is needed in this case.
.
John : Other chips doesn't have Left/Right Shift line.
.
Me: Right shift mean receiving in the port of I2C. Left shift mean sending in the port of I2C.
.
John : Spi port has 2 line. One is for receiving. One is for sending. Therefore, you can't set the left/right shift in Spi port.
.
Me: There's no left/right shift line in SPI port.

Comments
Post a Comment