Home > other >  STM32F1 ordinary IO continuous read data
STM32F1 ordinary IO continuous read data

Time:10-26

Send a piece of data, in the free state level is very disorder, only when sending data is relatively complete, now the receiver using ordinary IO read level way to read the data, trouble ask who has more reliable way of reading data, receiving level is error, a high level is 200 us, send me the error in 200 + - 20 around us, what is more reliable and efficient way to read data

CodePudding user response:

IO input capture or interrupt start the timer, obtaining high and low level of time, and then compare time into data;
Data sent by lead code plus the tail checking, a frame data several times to send, through the lead code to judge whether the real data, data integrity check code, sent to ensure received accuracy for many times,
  • Related