- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am a newbie to the Cypress I have learned how to use the UART But need to use the Unconfigured SCB Component for my project. While Transmitiing I can't Transmit the entire string using SCB_1_UartPutString() command so I split the string into datas and then checked by transmitting I got the output. But while receiving I am not getiing the desired output.
In the output code the command used to receive the data is s=SCB_1_UartGetChar() and then Again for retransmitting the data to see the output using tera term is SCB_1_UartPutChar(s)
- Labels:
-
PSoC 4 Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you please post your complete project or a shortened version that shows the error so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am assuming you are using a CY8CKIT-042 Pioneer Kit. Is that right?
Did you make the required connections as shown on page 71 in the kit guide?
You should use the #defined constants for the initialization. I started to put them into your struct but found a wrong value for oversampling. should be 16, but is 13. can you continue replacing your struct values?
SCB_1_UART_INIT_STRUCT config=
{
SCB_1_UART_MODE_STD,SCB_1_UART_TX_RX,0x08u,SCB_1_UART_PARITY_EVEN,
SCB_1_UART_STOP_BITS_2,13u,0u,0u,0u,0u,0u,0u,0u,UART_RX_BUFFER_SIZE,
UART_RX_BUFER_PTR,UART_TX_BUFFER_SIZE,UART_TX_BUFER_PTR,0u,0u,
0u,0u,1u,UART_RX_INTR_MASK,0u,0u,0u,0u,0u,0u,0u,0u
};
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bob,
I am not Using CY8CKIT-042. Its a development Board designed outside using Cypress IC. However while using the Sampling Rate as 13 if I am Passing a string I am getting the desired Output and works fine on passing whatever the string is. However the problem is in the receiver part.
When I go through the design of Cy8CKIT-030 on the receiver end there is 100 ohm connected to it (i.e. from Rx Pin In development kit to Max232.). Can I know the purpose of using 100Ohm on receiver part alone?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yep,
Finally got the Output. The issue is while using the baud rates of 9600 & 14400, but when I use baud rates above 14400 I can transmit and receive properly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If any one can help me in the Unconfigured SCB using Rx Interrupt.
I need to know how to set the interrupt as SCB_INTR_RX_NOT_EMPTY and when received any data need to transmit
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is simple example of using Fixed Fiction UART Rx port ( PSoC4 ) for receiving control messages from terminal. Check if it fits
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That doesn't fits the case. In that Example the UART(SCB) had been used, but I need help in using Interrupt in unconfigured Mode.
Thanks for the reply.