- 论坛徽章:
- 0
|
9.28
今天,我们小组和其他组一起做spi,spi的初始化流程按照
1. Set Transfer Type. (CPOL & CPHA set )
2. Set Clock configuration register.
3. Set SPI MODE configuration register.
4. Set SPI INT_EN register.
5. Set Packet Count configuration register if necessary.
6. Set Tx or Rx Channel on.
7. Set NSSOUT low to start Tx or Rx operation.
A. Set NSSOUT Bit to low, then start TX data writing.
B. If auto chip selection bit is set, should not control NSSOUT.
因为我们是用手动方式选择slave设备(Norflash),所以第5步没有做,第一步时钟的选择由原来的epll改为Pclk(133MHZ),但奇怪的时在板子上引导内核时,PCLK显示为66.5MHZ,另外,我们第七步按手动方式设置片选,测试时没有成功,我觉得是norflash的读时序流程写错了,接着调试 |
|