Spi macros question

Status
Not open for further replies.

renasis

Active member
Hello,

Still a little bit new to the bitmath stuff. Just trying to find out how the following macros(from mk20dx128.h) correlate to the attached datasheet for the Teensy 3.0 chip. These are the questions I am trying to answer:

If I set SPI_CTAR_PBR(0) the Baud rate prescaler will be ?
If I set SPI_CTAR_PBR(1) the Baud rate prescaler will be ?
If I set SPI_CTAR_PBR(2) the Baud rate prescaler will be ?
If I set SPI_CTAR_BR(0) the the Baud rate scaler will be?
If I set SPI_CTAR_BR(1) the the Baud rate scaler will be?
If I set SPI_CTAR_BR(2) the the Baud rate scaler will be?

Can anyone let me know? Or let me know where I could learn about how these are set?

Thanks,

-ren


spidatasheet.jpg
 
You may find the answer easier when looking at this file.

I can post a functioning W5100.cpp without all the FAT DMA "stuff" in the linked file that easiliy allows you to change the SPI frequency. As I've mentioned before this works without a hitch on Teensy3
 
Status
Not open for further replies.
Back
Top