comunication rs232 mcp39f501

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
tello
Posts: 94
Joined: Wed Jan 16, 2013 11:37 am
Has thanked: 56 times
Been thanked: 16 times
Contact:

comunication rs232 mcp39f501

Post 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.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: comunication rs232 mcp39f501

Post 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.

tello
Posts: 94
Joined: Wed Jan 16, 2013 11:37 am
Has thanked: 56 times
Been thanked: 16 times
Contact:

Re: comunication rs232 mcp39f501

Post 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
Attachments
page13.JPG
page 13 of datasheet
(2.06 MiB) Downloaded 1196 times
this is the screen microchip software
this is the screen microchip software
MCP35f501_caprtura_1.JPG (147.77 KiB) Viewed 4814 times

tello
Posts: 94
Joined: Wed Jan 16, 2013 11:37 am
Has thanked: 56 times
Been thanked: 16 times
Contact:

Re: comunication rs232 mcp39f501

Post by tello »

Hello,
I'm trying to capture the frame the software returns IC microchip.
This is the program I'm doing wrong?
thanks
Attachments
UARTREAD_R7.fcf
(14.49 KiB) Downloaded 252 times

tello
Posts: 94
Joined: Wed Jan 16, 2013 11:37 am
Has thanked: 56 times
Been thanked: 16 times
Contact:

Re: comunication rs232 mcp39f501

Post 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

tello
Posts: 94
Joined: Wed Jan 16, 2013 11:37 am
Has thanked: 56 times
Been thanked: 16 times
Contact:

Re: comunication rs232 mcp39f501

Post 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

Post Reply