RS232 Fail test | Cypress Semiconductor
RS232 Fail test
I just received a PSoC 4 unit to evaluate for a potential project/product. I installed creator 2.2 and I have been looking at videos and examples online.
I tried creating a simple rs232 comunication test. Receive something from an external source and then append a little string to it and send it back.
I must be missing something, bacause I can't get it to work. I assigned TX to P0.5 and RxP0.4.
The Rx input pin is set to High Impidance Digital [low(0)]
Tx is set to Resistive pull up. [I tried different options, not sure what to use].
I would appreciate any help I could get. Also any information about training resources.
The C code looks like this
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
UART_1_PutString("Testing RS232 :");
/* CyGlobalIntEnable; */ /* Uncomment this line to enable global interrupts. */
/* Place your application code here. */
ch = UART_1_GetChar();//UartGetChar();
//printf("test %c \n",ch);
if (0u != ch)
UART_1_PutString("got this ="+ch);