serial clock sclk frequency of lpspi4 of rt1170

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

serial clock sclk frequency of lpspi4 of rt1170

Jump to solution
353 Views
sandeepc
Contributor III

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

sandeepc_0-1681988822521.png

@RT 

Labels (1)
0 Kudos
1 Solution
339 Views
EdwinHz
NXP TechSupport
NXP TechSupport

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.

View solution in original post

0 Kudos
1 Reply
340 Views
EdwinHz
NXP TechSupport
NXP TechSupport

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.

0 Kudos