小弟在mini2440上编了个裸机SPI程序,单步调试时结果正确,全速运行时,发现会丢失数据,这是为什么啊,江湖救急。。
主要程序如下,SPI0主机,查询方式,SPI1做从机,中断方式
单步时,结果如下
spi1 get data: 0 !!
spi1 has snd the data: 5 !!
spi1 get data: 1 !!
spi1 has snd the data: 6 !!
spi1 get data: 2 !!
spi1 has snd the data: 7 !!
spi1 get data: 3 !!
spi1 has snd the data: 8!!
spi1 get data: 4!!
spi1 has snd the data: 9 !!
全速时,结果如下
spi1 get data: 0 !!
spi1 has snd the data: 6 !!
spi1 get data: 1 !!
spi1 has snd the data: 7 !!
spi1 get data: 2 !!
spi1 has snd the data: 8 !!
spi1 get data: 3 !!
spi1 has snd the data: 9 !!
spi1 get data: 4 !!
spi1 has snd the data: 10 !!
[ 此帖被seligor在2010-12-28 20:54重新编辑 ]