for LPC1769, is there a time delay needed when configuring SSP/SPI channels to transition between 16 and 8 bit transfer modes?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

for LPC1769, is there a time delay needed when configuring SSP/SPI channels to transition between 16 and 8 bit transfer modes?

836件の閲覧回数
pgenerale
Contributor I

We have 2 devices on the SSP0 but, one needs the usual 8 bit (byte) data transfers, but the other needs a 12 bit transfer (for which we configure SSP0 to send 16 bits). Since we talk to one device followed by talking to the other, we are constantly re-configuring. The device that used the 16 bits seems to be dropping data sometimes. When I inserted a delay before reconfigure to 16 bits, the data seems to have cleaned up. But the delay was 3 instructions. I wanted to find out if this is an issue and the proper way to address it is a delay. 

Thanks for any advice.

ラベル(1)
0 件の賞賛
返信
1 返信

737件の閲覧回数
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Piero Generale,

Could you please share your code on how are making the re-configuration of the peripheral? Also, may I ask why are you sending 16 bits if the device needs 12 bit transfer? As you can see in the following table, you can select a data size of 12-bit.

pastedImage_1.png

Best Regard, 

Victor.

0 件の賞賛
返信