微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI WIFI设计交流 > CC3200 如何单独修改频率

CC3200 如何单独修改频率

时间:10-02 整理:3721RD 点击:

如题:

在SPI通讯中,需要用到修改SPI频率,使用 SPIConfigSetExpClk()修改,导致出错,有单独修改的API?或者修改需要怎么设置?谢谢

void SPI_BATE_SET(unsigned long rate)
{
MAP_SPIReset(SPI_BASE);

//
// Configure SPI interface
//
MAP_SPIConfigSetExpClk(SPI_BASE,MAP_PRCMPeripheralClockGet(SPI_PRCM),
rate,SPI_MODE_MASTER,SPI_SUB_MODE_0,
(SPI_HW_CTRL_CS |
SPI_4PIN_MODE |
SPI_TURBO_OFF |
SPI_CS_ACTIVELOW |
SPI_WL_8));
//
// Enable SPI for communication
//
MAP_SPIEnable(SPI_BASE);
}

邮件中提到需要通过修改SPI频率:

After reset, wait for DREQ to be high, set your SPI to around 1.7MHz (12.288/7 = 1.755), then write 0xe000 to SCI_CLOCKF (5.0x 12.288MHz). The CLOCKF value sets 61.44MHz clock, and when DREQ is high again, then you can use 8.5Mbit/sec for SCI reads. (61.44/7 = 8.77)

邮件中提到需要要修改SPI频率

After reset, wait for DREQ to be high, set your SPI to around 1.7MHz (12.288/7 = 1.755), then write 0xe000 to SCI_CLOCKF (5.0x 12.288MHz). The CLOCKF value sets 61.44MHz clock, and when DREQ is high again, then you can use 8.5Mbit/sec for SCI reads. (61.44/7 = 8.77)

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top