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.

CC3200 如何单独修改频率



如题:

在SPI通讯中,需要用到修改SPI频率,使用 ***()修改,导致出错,有单独修改的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)