PSoC4L : How to switch UART stop bit ( SCB mode and UDB mode )

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

cross mob
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

Hi,

We are considering using UART of CY8C4248LTI-L485.

WeI would like to swich the stop bit setting by software.

In UART of SCB mode, the data sheet describes how to switch by structure.

However, there seems to be no way to switch the stop bit setting in UART of UDB mode.

I confirm for TRM(architecture and register) but couldn't find a way to switch by software.
Is there a way to switch the stop bit in UART of UDB mode?

Regards,

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Mineda-san,

In the current UDB UART component, we can either select one or two stop bits. Its not firmware controlled. The attached project contains modified UART with firmware controlled stop bits.

The verilog was correspondingly modified to take care of this condition. All the modifications in the verilog has been commented with “Keerthi”. So, find this key word for modifications.

View solution in original post

0 Likes
4 Replies
lock attach
Attachments are accessible only for community members.
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Mineda-san,

In the current UDB UART component, we can either select one or two stop bits. Its not firmware controlled. The attached project contains modified UART with firmware controlled stop bits.

The verilog was correspondingly modified to take care of this condition. All the modifications in the verilog has been commented with “Keerthi”. So, find this key word for modifications.

0 Likes
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

RuzheZ-san,

Thank you for attaching the project.
We will run the project and check it.

And we searched for "Keerthi" of keywords but did not find.

Please let us know only the changed part of the UART component.

Because the version of this UART component is old.
We would like to support new UART components.

Regards,

0 Likes
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Mineda-san,

The modification is in Components -> B_UART_v2_30.v

It is the verilog code of the component. Please check like the following:

pastedImage_1.png

If you want to use the latest version component, in Tab-Components, right-click the Project name and select Import Component, then you can import components from project/library and can find v2_50 from CyComponentLibrary. Then do the similar modification in B_UART_v2_50.v

pastedImage_0.png

0 Likes
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

RuzheZ-san,

Sorry, we were searching in this Cypress community.

I understood by checking inside the component in PSoC Creator.

Thank you.

0 Likes