- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
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
#include <device.h>
void main()
{
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
uint8 ch;
UART_1_Start();
UART_1_PutString("Testing RS232 :");
/* CyGlobalIntEnable; */ /* Uncomment this line to enable global interrupts. */
for(;;)
{
/* Place your application code here. */
ch = UART_1_GetChar();//UartGetChar();
//printf("test %c \n",ch);
if (0u != ch)
{
UART_1_PutString("got this ="+ch);
}
}
}