PSoC CY8CKIT-049-42xx Serial Communication

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello people:

   

I am Martin Ortuño from Mexico, I'm new in this PSoC Community.

   

Well... righ now I have problems with my recent acquisition, the PSoC CY8CKIT-049-42xx,  I've been trying some tutorials here and in other communities, in this moments I'm trying to probe the UART Communication by sending a char from a Serial Monitor ( 232Analyzer)  in my computer and then sending a char from the PSoC Prototyping kit to the Computer. I am using the UART  v2.30 from the Creator 3.1, a digital output for a LED, and my bootloadable module.

   

Then I set the pin for the serial communication and for the LED in the board. Finally I Build the Project, then write the following code:

   

#include <project.h>

   

char datoRecibido;

   

CY_ISR(InteruptRx)

   

{

   

    datoRecibido = UART_GetChar();

   

}

   

int main()

   

{

   

    CyGlobalIntEnable;

   

    UART_Start();

   

    isrRx_StartEx(InteruptRx);

   

    

   

    for(;;)

   

    {

   

        if(datoRecibido == '1')

   

        {

   

            LED_Write(1);

   

            UART_PutChar('H');

   

        }

   

        if(datoRecibido == '0')

   

        {

   

            LED_Write(0);

   

        }

   

    }

   

}

   

This code is downloaded to the PSoC just fine; however, when I try to put a "1" from  the 232Analyzer, the PSoC doesn't  send the message back.

   

I will appreciate all your help.

   

Thanks.

0 Likes
8 Replies