Yes, in CY3210-PSoC Eval board, you can use J13 header to connect TX and RX lines to any IO pin of PSoC device on the board. Remember to remove JP1 and JP2 jumpers, which when placed, connects specific pins of PSoC to RX and TX.
In UART_CPutString API, the string has to reside in flash, whereas, in UART_PutString API, string has to be in RAM. For more details, please see the user module datasheet of UART.
Just to be clear, J13 is the TTL/CMOS side of RS232 physical layer. So if
you connect to another TTL/CMOS device, you are good to go. But if you
are trying to connect to full RS232 signaling spec device, that has to be done
on the DB9 side of the translator.
With respect to the 2 LCD printing f()'s keep in mind either string, ROM or RAM,
must be null terminated with a '\0'. When you enclose a string in ""initiating a
variable, compiler adds the null for you, as in
unsigned char pString [ 20 ] = "This is a test"
but RAM based string you have to specifically add the null character after you
load string, unless you are using some of the string functions in extended library.
So for example I wanna send hexa 01 , I'm going to put the code like this below :
//start UART begin
mov A, UART_PARITY_NONE
lcall UART_1_Start ; Enable UART
mov A, >sRomString3
mov X, <sRomString3
lcall UART_1_CPutString ; Display example string
or should I put DB 01 ?
And how can I read from RX ?
Did you consider to write your program in "c" which will make it more readable (fewer overlooked errors) no prolemds with definitions (0x01 will always be the same). The APIs are shown in C as well as in assembly.
How can I use this one :
mov [bRxData],A How can I define [bRxData] ? and display the character into LCD ? thanks
UART_1_Start(UART_PARITY_NONE); /* Enable UART */
UART_1_CPutString("Read from RX"); // Example string */
LCD_1_Start(); /* Init the LCD */
c = UART_1_cGetChar();
Before calling UART_GetChar() you have to check if there is a character already received. Check the Rx-Status first.