好的,我的坏。我可能在第20.3.2节“在从机模式下配置SPI”中跳过了这一行:
''SPI_CR1寄存器中BR [2:0]位设置的值不会影响数据传输速率。''
所以如果你设置预分频器并不重要。时钟由主设备给出。
我也在第8.1.2章“HSI”中跳过了
''注意:启动时,主时钟源自动选为HSI RC时钟输出除以8(fHSI / 8)。
以上来自于谷歌翻译
以下为原文
Ok, my bad. I might have skipped this line in Chapter 20.3.2 ''Configuring the SPI in slave mode'' :
''The value set in the BR[2:0] bits in the SPI_CR1 register, does not affect the data transfer rate.''
So it doesnt matter if you set the Prescaler or not. The Clock is given by the master.
And i also skipped in Chapter 8.1.2 ''HSI''
''Note: At startup the master clock source is automatically selected as HSI RC clock output divided by 8 (fHSI/8).''
好的,我的坏。我可能在第20.3.2节“在从机模式下配置SPI”中跳过了这一行:
''SPI_CR1寄存器中BR [2:0]位设置的值不会影响数据传输速率。''
所以如果你设置预分频器并不重要。时钟由主设备给出。
我也在第8.1.2章“HSI”中跳过了
''注意:启动时,主时钟源自动选为HSI RC时钟输出除以8(fHSI / 8)。
以上来自于谷歌翻译
以下为原文
Ok, my bad. I might have skipped this line in Chapter 20.3.2 ''Configuring the SPI in slave mode'' :
''The value set in the BR[2:0] bits in the SPI_CR1 register, does not affect the data transfer rate.''
So it doesnt matter if you set the Prescaler or not. The Clock is given by the master.
And i also skipped in Chapter 8.1.2 ''HSI''
''Note: At startup the master clock source is automatically selected as HSI RC clock output divided by 8 (fHSI/8).''
举报