Maximm UART channels on "CY8C5467LTI-LP003" ?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JaVa_4525396
Level 2
Level 2
5 likes given First like given

"CY8C5467LTI-LP003" in the datasheet i can not find the max number of UART channels, which specific pins i can use as UART on this chip? and how much the maximum baudrate i can get? is it related to crystal?

0 Likes
1 Solution
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

Hi

1: Open the uart datasheet, we could find the resources component occupy, like the below screenshot:

pastedImage_0.png

2: Open the corresponding chip project in creator: then programming the project, open the result--> .rpt file. You could find the resource type:

pastedImage_1.png

3:  So if you use the full uart (RX+TX), the max number is seven. But if you use RX only or Tx only it will more than 7 seven.

4:  Yes the baud-rate it related to crystal. uart clock = baud-rate*oversample*data bits

5: More information about the UDB uart, you could refer to the component datasheet.

6: Hope it is helpful for you.

View solution in original post

8 Replies
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I could generate application with 7 UARTs.

But failed with 8 UARTs.

So I suppose 7 is the maximum number.

002-7UART.JPG

003-8UART_failed.JPG

moto

LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

Hi

1: Open the uart datasheet, we could find the resources component occupy, like the below screenshot:

pastedImage_0.png

2: Open the corresponding chip project in creator: then programming the project, open the result--> .rpt file. You could find the resource type:

pastedImage_1.png

3:  So if you use the full uart (RX+TX), the max number is seven. But if you use RX only or Tx only it will more than 7 seven.

4:  Yes the baud-rate it related to crystal. uart clock = baud-rate*oversample*data bits

5: More information about the UDB uart, you could refer to the component datasheet.

6: Hope it is helpful for you.

Thanks for this information, is there any dedicated UART pins for this chip or i can use any as per PSoC creator suggested pins for UART?

0 Likes

PSoC5LP: The UDB UART has no dedicated UART pins. You can use any pin which PSoC Creator suggested.

Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

JaVa,

How many UARTs do you need?

It appears from the experiments performed by our friends responding to your post, that 7 UDB UARTs is the limit.  This limitation is because of the UDB resources available.

There are three additional options open to you to potential increase the UART port functions.

Option 1:

If one or more of your UARTs are used for Transmit-only functions, there is a Software Transmit UART component that doesn't directly use any UDB cells.  It requires some FLASH and RAM and may be a little performance limited.  But since UARTs by it nature can be Asynchronous (hence the 'A' in UART), slight delays between transmitted byte can usually be tolerated.

Option 2:

Using the USBUART component in USBFS mode, you can perform UART functions on a host with an on-board USB circuit on the PSoC 5LP.

Option 3:

If you can guarantee that all UART ports are not in operation at the same time. you should be able to multiplex the Rx inputs and Tx outputs using a common UART or UARTs.

Len

Len
"Engineering is an Art. The Art of Compromise."

Hello LePo,

thanks for the information, i will use 3 UART maximum in my application at the same time. in full duplex mode. i was just confused about the baudrate, as i can not find any specific hardware reference design for this chip "CY8C5467LTI-LP003" , with internal clock how much max baudrate i will gate? do i really need an external crystal?

0 Likes

Internal and external clock for the UART component does not refer to a crystal. The choice refers to an automatic tuned clock for your desired baud rate or a provided clock component that is configured by you.

Bob

0 Likes

JaVa,

Most people use the internal clock for UARTs.  It's cheaper (of course).  The standard rule-of-thumb is that the baud rate tolerance at either end should be no more than +/-4%.  If one end varies more than that, you might start getting framing errors.

If you do go with the internal clock, select one of following IMO frequencies in the Clock tab of the DWR:

  • 3MHz +/-1%.
  • 6 MHz +/-2%
  • 24MHz with the USB Clock Enabled and the ILO set to 100KHz.  This has the tightest tolerance of +/- 0.25%

Using a Crystal for the ECO is more accurate but is overkill if not needed for other reasons.

About maximum baudrate:

Here's a clip from the UART datasheet.  Depending on your use, you can achieve different frequencies.

pastedImage_0.png

The chart above is in UART clocking frequencies.  To obtain baudrate possible take the max frequency that applies for you and divide by 8 (oversampling).

Doe this help?

Len

Len
"Engineering is an Art. The Art of Compromise."
0 Likes