MIMXRT1175DVMAA, LPSPI clock duty cycle is not 50%

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

MIMXRT1175DVMAA, LPSPI clock duty cycle is not 50%

Jump to solution
969 Views
TCL_1
Contributor II

Hello,

On my custom board based on MIMXRT1175DVMAA, I use the LPSPI_4 as host to communication with a SPI EEPROM. But I found that the SPI serial clock duty cycle is not around 50%, whatever in mode 0 or mode 3 (see following waveform). In condition of operating frequency less than 5Mhz, it also violated the clock high/low duration requirement of EEPROM, due to the asymmetrical clock waveform.

My questions are:

1. Is it normal for the MIMXRT1175DVMAA LPSPI controller to generate asymmetric clock waveforms?

2. Is there a method to adjust the duty cycle of LPSPI clock? then the SPI bus can meet chip's Timing requirements without decrease operating frequency.

Thanks!

Tyrone

TCL_1_1-1659002039773.png

TCL_1_0-1659001569819.pngSPI4_Mode3_SCK_Thigh.pngSPI4_Mode0_SCK_Thigh.png

 

0 Kudos
Reply
1 Solution
959 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @TCL_1 ,

This is because CCR[SCKDIV] is set an odd number.

jingpan_0-1659075904608.png

I tried to set it to an even number, then its duty come back to 50%.

jingpan_1-1659076053771.png

 

Regards,

Jing

 

View solution in original post

1 Reply
960 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @TCL_1 ,

This is because CCR[SCKDIV] is set an odd number.

jingpan_0-1659075904608.png

I tried to set it to an even number, then its duty come back to 50%.

jingpan_1-1659076053771.png

 

Regards,

Jing