Home > other >  MCU (C) to the peripherals, reading and sending data.
MCU (C) to the peripherals, reading and sending data.

Time:09-16

Shift them first, and then carries on the data of judgment, it is to read data, if data is written, then the shift on the back, if is reading data, then shift in front, or behind you in, you can move the eight times, highest can be removed? Why is that?

Why read data to the migration of data, and then read?

CodePudding user response:

 for (I=0; I<8; I++) 
{
Dat<=1;
If (bit==1) dat |=1. The else dat&=0 xfe;
}

for(i=0; I<8; I++)
{
If (bit==1) dat |=1. The else dat&=0 xfe;
Dat<=1;
}

You compare

CodePudding user response:

reference 1st floor dceacho response:
 for (I=0; I<8; I++) 
{
Dat<=1;
If (bit==1) dat |=1. The else dat&=0 xfe;
}

for(i=0; I<8; I++)
{
If (bit==1) dat |=1. The else dat&=0 xfe;
Dat<=1;
}

You compare the

Look not to understand, who can tell me about it,

CodePudding user response:

refer to the second floor m0_45393514 response:
Quote: refer to 1st floor dceacho response:
 for (I=0; I<8; I++) 
{
Dat<=1;
If (bit==1) dat |=1. The else dat&=0 xfe;
}

for(i=0; I<8; I++)
{
If (bit==1) dat |=1. The else dat&=0 xfe;
Dat<=1;
}

You compare the

Look not to understand, who can tell me about it,

Just don't understand why read data to the variable displacement first and then read the data assigned to variables,

CodePudding user response:

reference m0_45393514 reply: 3/f
Quote: refer to the second floor m0_45393514 response:
Quote: refer to 1st floor dceacho response:
 for (I=0; I<8; I++) 
{
Dat<=1;
If (bit==1) dat |=1. The else dat&=0 xfe;
}

for(i=0; I<8; I++)
{
If (bit==1) dat |=1. The else dat&=0 xfe;
Dat<=1;
}

You compare the

Look not to understand, who can tell me about it,

Just don't understand why read data to the variable displacement first and then read the data assigned to variables,

Dat is read as a result, the bit is sent "a", is to use dat for sending data through the bit port
In the second case when the end of the cycle, the result is wrong, finally datThere's no need to too care about, actually you use when they see,

CodePudding user response:

reference 4 floor dceacho response:
Quote: reference m0_45393514 reply: 3/f

Quote: refer to the second floor m0_45393514 response:
Quote: refer to 1st floor dceacho response:
 for (I=0; I<8; I++) 
{
Dat<=1;
If (bit==1) dat |=1. The else dat&=0 xfe;
}

for(i=0; I<8; I++)
{
If (bit==1) dat |=1. The else dat&=0 xfe;
Dat<=1;
}

You compare the

Look not to understand, who can tell me about it,

Just don't understand why read data to the variable displacement first and then read the data assigned to variables,

Dat is read as a result, the bit is sent "a", is to use dat for sending data through the bit port
In the second case when the end of the cycle, the result is wrong, finally datThere's no need to pay too much attention, the actual you use when they see,

Understand understand, thank you

CodePudding user response:

Lz seems not suitable for programming, without logical thinking and do programming fail you, cattle will be dead tired

CodePudding user response:

To learn programming is not something we can improve the logical thinking

CodePudding user response:

refer to 6th floor worldy response:
lz seems not suitable for programming, without logical thinking and do programming fail you, cattle will be dead tired

To learn programming is not something we can improve the logical thinking

CodePudding user response:

Say, too, come on

CodePudding user response:

references 9 f worldy response:
say, too, come on

Uh huh, come on. ?? _???? )?

CodePudding user response:

Data side, the size of the big end model, refers to the high byte of the data stored at the lowest memory address, and the low byte of data stored in the memory address, the storage model is a little similar to the data as a string order processing: address from small to big, and the data from high to low; This and our reading habits,
Small end model, refers to the high byte of the data stored in the memory address, and the low byte of data stored in the lowest memory address, the right of discretion and data storage mode will be the address bits effectively combine high address part weight, low address part weight,,
When the agreement, see you write what way to sort data set

CodePudding user response:

11 references about QAQ response:
data side, the size of the big end model, refers to the high byte of the data stored at the lowest memory address, and the low byte of data stored in the memory address, the storage model is a little similar to the data as a string order processing: address from small to big, and the data from high to low; This and our reading habits,
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related