Page 1 of 1

comunication rs232 mcp39f501

Posted: Wed Jun 18, 2014 8:06 am
by tello
Good morning guys.
I am with a new project monitoring electrical equipment at home with a microchip circuit mcp39f501.
This communicates via SSI (Simple Sensor Interface) but I can not send or receive data through rs232.
Anyone know how to help to communicate by UART. I've been trying to communicate in various ways and have no answer for a week. I do not know what I'm doing wrong.

In datasheet "The default baud rate is 4.8kbps. The UART operates in 8-bit mode, plus one start bit and one stop bit, for a total of 10 bits per byte."

Many thank you very much.

Re: comunication rs232 mcp39f501

Posted: Wed Jun 18, 2014 9:26 am
by Benj
Hello,

The RS232 component interfaces the UART and sends out the 10-bit packets as you described. Can you attach your program so we can see what you've tried so far.

Re: comunication rs232 mcp39f501

Posted: Wed Jun 18, 2014 11:41 am
by tello
Hello again Benj.

It's the first time I use UART, I need to send a data frame for the MCP39f501 respond.

The development board is that I have to send frame and the IC responds.

I think the problem is not like sending a frame by uart and then not know how to configure the RS232 macro to send, received and save data.

For testing I'm using a 16lf1939.

thanks

Re: comunication rs232 mcp39f501

Posted: Wed Jun 18, 2014 12:55 pm
by tello
Hello,
I'm trying to capture the frame the software returns IC microchip.
This is the program I'm doing wrong?
thanks

Re: comunication rs232 mcp39f501

Posted: Fri Jun 20, 2014 9:52 am
by tello
Hello guys.
I've been doing more tests and only get the first record read "header byte" = 6, it´s ok but the rest gives me random values.
Has anyone managed to get a complete frame in RS232?, Could you help me?
thanks

Re: comunication rs232 mcp39f501

Posted: Mon Jun 23, 2014 8:20 am
by tello
Hey guys.
I've been doing this weekend many tests. Now I get to read all the data frame correctly.
I look forward to this part of the program list shortly.

A greeting and thanks