This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
请问一下,我想使用msp430f5529lp先将一串01的数据存入flash中,再读取flash中的这串数据通过引脚高低电平输出,请问有相关例程吗,或者有如何读取存储器数据输出的相关资料例程。
您好,假设数据存储在一个byte array中,您可以尝试以下pseudo code:
if (input_pin == high)
{
for (i=0; i<num_bytes; i++)
{
for (b=0; b<8;b++)
{
out_pin = (data[i] & (1<<b));
}
}
}
(Edited to change logical AND to bitwise AND)