processor: mimx rt1170
IDE: MCUXpresso IDE v11.6.0 [Build 8187] [2022-07-13]
hi i am interfacing with ethernet slave it can support up to 40mhz but as of now iam generating 1mhz frequency i need to increase this frequency to more than 10mhz
note:i created project not the imported project or exmaple project
so as of now i tried with baudrate changes still its not increasing more than 1mhz the provided structure for lpspi strucure as below
masterConfig.baudRate =500000;
masterConfig.bitsPerFrame=8;
masterConfig.cpol=kLPSPI_ClockPolarityActiveHigh;
masterConfig.cpha = kLPSPI_ClockPhaseFirstEdge;
masterConfig.direction = kLPSPI_MsbFirst;
masterConfig.pcsToSckDelayInNanoSec=1000;
masterConfig.lastSckToPcsDelayInNanoSec=1000;
masterConfig.betweenTransferDelayInNanoSec=1000;
masterConfig.whichPcs = kLPSPI_Pcs0;
masterConfig.pinCfg = kLPSPI_SdiInSdoOut;
masterConfig.dataOutConfig=kLpspiDataOutRetained;
masterConfig.pcsActiveHighOrLow=kLPSPI_SdiInSdoOut;
2) i tried the by with configuring tcr prescale manually by giving 2,4,6,,8 still its not increasing more than 1mhz
Solved! Go to Solution.
Hi @sandeepc,
I believe this is a duplicate case from this previous post: https://community.nxp.com/t5/i-MX-RT/SCK-frequency-from-LPSI4-of-mimxrt1170/td-p/1635442
Please see my latest reply about changing the source clock to a higher frequency on said post.
BR,
Edwin.
Hi @sandeepc,
I believe this is a duplicate case from this previous post: https://community.nxp.com/t5/i-MX-RT/SCK-frequency-from-LPSI4-of-mimxrt1170/td-p/1635442
Please see my latest reply about changing the source clock to a higher frequency on said post.
BR,
Edwin.