Recive Multiple Data from the same UART

Post Reply
Vladimir Dvorkin
Posts: 1
Joined: Fri Jan 13, 2012 12:36 pm

Recive Multiple Data from the same UART

Post by Vladimir Dvorkin » Fri Jan 13, 2012 1:50 pm

Hello,

I am using dsPic 30F4011 microcontroller.
I am commuincating with the dsPIC using Xbee Pro series 1 modules, and using Simulink's Real Time Workshop.

I am trying to send multiple data from my RTW model (see attachment) using mux function and sending threw Packet output.
I can't split the recieved data vector using demux, since the UART Rx Block produce 1 output uint 8 signal, and matlab wont let me compile my program!

How can I recieve multiple data from the same UART port? (e.g. turn on LED with PORTB0, and conrol PWM)

Thanks

Vladimir
Attachments
rtw.mdl
(35.1 KiB) Downloaded 528 times
LED_PWM.mdl
(31.96 KiB) Downloaded 551 times

resodad
Posts: 71
Joined: Tue Jul 07, 2009 1:06 pm
Location: West Point, New York

Re: Recive Multiple Data from the same UART

Post by resodad » Fri Jan 13, 2012 5:07 pm

Vladimir,
You want to parse incoming data (UART Rx). I did similar for Tx. See the post "Rx Interrupt buffer size" linked here: http://www.kerhuel.eu/forum/viewtopic.p ... +uart#p453.

You might get some ideas that will work for you.
Regards,
John

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests