About S32K1XXX LPSPI FIFO size

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

About S32K1XXX LPSPI FIFO size

跳至解决方案
3,680 次查看
yuegao1996
Contributor II

Hi,

I got few questions about the LPSPI FIFO as follows:

1. through the manual, it says the LPSPI has TX & RX FIFO of 4 words.  does "4 words ' here means the FIFO's depth is  4 and its width is 1 word, which is the FIFO size is 4 words?

 

2. If so,  the PARAM register can config the maximum number of words in the receive FIFO to 2^RXFIFO, which can reach 256? (I think it's kind of unreasonable)

3. FIFO Status Register(FSR) Returns the number of words currently stored in the FIFO, but it only has 3bit( 7 at most), so Is the maximum LPSPI FIFO size  7 words? if not, then what is it?

many thanks for your patience!

标记 (1)
0 项奖励
回复
1 解答
3,659 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@yuegao1996

Parameter Register(PARAM) is read-only register.

Senlent_0-1627614684938.png

The default value is :RXFIFO = 0x02,TXFIFO = 0x02,it’s means the maximum number of words in the receive/transmit FIFO is 4(2^0x02).

Senlent_1-1627614708182.png

Senlent_2-1627614779216.png

best regards!

Jim.

 

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
3,660 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@yuegao1996

Parameter Register(PARAM) is read-only register.

Senlent_0-1627614684938.png

The default value is :RXFIFO = 0x02,TXFIFO = 0x02,it’s means the maximum number of words in the receive/transmit FIFO is 4(2^0x02).

Senlent_1-1627614708182.png

Senlent_2-1627614779216.png

best regards!

Jim.

 

 

0 项奖励
回复
3,662 次查看
yuegao1996
Contributor II

the FIFO size is 4 words, however the PARAM[8-15bir] register can set the max number of words in the fifo, which can reach up to 256. And also the reg is an RO register, so is the description 'set the ...of FIFO'  imprecise?

0 项奖励
回复
3,667 次查看
yuegao1996
Contributor II

i've figured it out

0 项奖励
回复