K60 UART FIFO Size Control

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

K60 UART FIFO Size Control

跳至解决方案
2,875 次查看
markccrow
Contributor I

I have researched and hunted for hours trying to find a way to set a UARTs RX and TX FIFO size with no luck whatsoever (even Processor Expert did not seem to generate code which set the FIFO depths).

 

Can anyone point me in the right direction?

 

Thanks

0 项奖励
回复
1 解答
1,685 次查看
ndavies
Contributor V

There isn't any way to change the size of the FIFOs. The sizes are read only. The PFIF0 register only reports the amount of FIFO built into the UART. The control bits in PFIFO only turn on and off the FIFOs.

 

In section 55.3.16 of the \K60P144M150SF3RM.pdf , the subnote states

TXFIFOSIZE bitfield: The reset value depends on whether the specific UART instance supports the FIFO and on the size of
that FIFO. See the Chip Configuration details for more information on the FIFO size supported for
each UART instance.

RXFIFOSIZE bitfield: The reset value depends on whether the specific UART instance supports the FIFO and on the size of
that FIFO. See the Chip Configuration details for more information on the FIFO size supported for
each UART instance.

 

In section 3.9.7.1 States

7. UART0 and UART1 contains 8-entry transmit and 8-entry receive FIFOs
8. All other UARTs contain a 1-entry transmit and receive FIFOs

 

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,685 次查看
sudhanshumehta
Contributor IV

Thanks for correct answer :-)

0 项奖励
回复
1,686 次查看
ndavies
Contributor V

There isn't any way to change the size of the FIFOs. The sizes are read only. The PFIF0 register only reports the amount of FIFO built into the UART. The control bits in PFIFO only turn on and off the FIFOs.

 

In section 55.3.16 of the \K60P144M150SF3RM.pdf , the subnote states

TXFIFOSIZE bitfield: The reset value depends on whether the specific UART instance supports the FIFO and on the size of
that FIFO. See the Chip Configuration details for more information on the FIFO size supported for
each UART instance.

RXFIFOSIZE bitfield: The reset value depends on whether the specific UART instance supports the FIFO and on the size of
that FIFO. See the Chip Configuration details for more information on the FIFO size supported for
each UART instance.

 

In section 3.9.7.1 States

7. UART0 and UART1 contains 8-entry transmit and 8-entry receive FIFOs
8. All other UARTs contain a 1-entry transmit and receive FIFOs

 

 

0 项奖励
回复
1,685 次查看
markccrow
Contributor I

Thank you so very much.  I must have searched that manual 20 times and somehow never saw the key info you pointed out.  Of course, if you search for 'FIFO' you will get 4,567 hits...

0 项奖励
回复