S32K3 FlexIO SPI Clk Cs time control

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

S32K3 FlexIO SPI Clk Cs time control

Jump to solution
1,075 Views
Vandarkholme
Contributor III

hello , I'm using flexio emulate SPI, but there's a problem -> How to control flexio SPI's spitime like Lpspi? like clk2cs/ cs2cs

Vandarkholme_0-1735864655241.pngVandarkholme_1-1735864839095.png

 

0 Kudos
Reply
1 Solution
1,055 Views
RomanVR
NXP Employee
NXP Employee

Hi @Vandarkholme.

Unfortunately, the RTDs do not support to configure timing parameters for SPI protocol emulation with FlexIO. This limitation arises because the RTDs are restricted to use only 2 timers and 2 shift registers. One timer is dedicated to generate CS output signal and the other timer is used for the shift registers control and the SCK generation. In this way, there is no control logic to adjust the timing parameters to generate specific delays neither a register to modify the timers.

Please let me know if you have more doubts.

- RomanVR.

Best Regards!

View solution in original post

0 Kudos
Reply
1 Reply
1,056 Views
RomanVR
NXP Employee
NXP Employee

Hi @Vandarkholme.

Unfortunately, the RTDs do not support to configure timing parameters for SPI protocol emulation with FlexIO. This limitation arises because the RTDs are restricted to use only 2 timers and 2 shift registers. One timer is dedicated to generate CS output signal and the other timer is used for the shift registers control and the SCK generation. In this way, there is no control logic to adjust the timing parameters to generate specific delays neither a register to modify the timers.

Please let me know if you have more doubts.

- RomanVR.

Best Regards!
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2021492%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K3%20FlexIO%20SPI%20Clk%20Cs%20time%20control%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2021492%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehello%20%2C%20I'm%20using%20flexio%20emulate%20SPI%2C%20but%20there's%20a%20problem%20-%26gt%3B%20How%20to%20control%20flexio%20SPI's%20spitime%20like%20Lpspi%3F%20like%20clk2cs%2F%20cs2cs%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Vandarkholme_0-1735864655241.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Vandarkholme_0-1735864655241.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F317924iF360CB7795B12297%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Vandarkholme_0-1735864655241.png%22%20alt%3D%22Vandarkholme_0-1735864655241.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Vandarkholme_1-1735864839095.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Vandarkholme_1-1735864839095.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F317925i75C5C44BB4826EBF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Vandarkholme_1-1735864839095.png%22%20alt%3D%22Vandarkholme_1-1735864839095.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2021993%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K3%20FlexIO%20SPI%20Clk%20Cs%20time%20control%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2021993%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F227912%22%20target%3D%22_blank%22%3E%40Vandarkholme%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EUnfortunately%2C%20the%20RTDs%20do%20not%20support%20to%20configure%20timing%20parameters%20for%20SPI%20protocol%20emulation%20with%20FlexIO.%20This%20limitation%20arises%20because%20the%20RTDs%20are%20restricted%20to%20use%20only%202%20timers%20and%202%20shift%20registers.%20One%20timer%20is%20dedicated%20to%20generate%20CS%20output%20signal%20and%20the%20other%20timer%20is%20used%20for%20the%20shift%20registers%20control%20and%20the%20SCK%20generation.%20In%20this%20way%2C%20there%20is%20no%20control%20logic%20to%20adjust%20the%20timing%20parameters%20to%20generate%20specific%20delays%20neither%20a%20register%20to%20modify%20the%20timers.%3C%2FP%3E%0A%3CP%3EPlease%20let%20me%20know%20if%20you%20have%20more%20doubts.%3C%2FP%3E%0A%3CP%3E-%20RomanVR.%3C%2FP%3E%3C%2FLINGO-BODY%3E