Simulink interface dspic

Create new topics, add your comment, remark, bugs...
Posts: 1
Joined: Tue Jan 27, 2009 2:23 pm

Simulink interface dspic

Postby zheng » Tue Jan 27, 2009 2:30 pm

Hi Lubin,

Currently I am working on a microcontroller project. I need to transmit real time data from simulink to PIC with RS232. I downloaded "Embedded Target for Microchip dsPIC" toolbox, and added UART configuration, Tx Output, but I failed to send data to pic. I used matlab to send directly and it can work. Is there anything else I should do to get it work?
Really appresicated if you can help.

Zheng jun

Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France

Re: Simulink interface dspic

Postby LubinKerhuel » Thu Jan 29, 2009 12:21 pm

Hi Zheng,

This blockset aims to compile the simulink model for the PIC/dsPIC. i.e. execute the simulink model inside the microcontroller. Thus, the Tx block simulated on a PC platform will have no effect, but once compiled and upload on the microcontroller, it will output data stream on the dsPIC Tx pin.
Anyway, you could use the graphical interface RS232gui to send and receive data through rs232 port in your your matalab environment.

Or you may be interested by a blockset written by Leonardo Daga that can send/receive data from the simulink model : see ... thors/8294
Unfortunatly, it has not been compiled with a recent matlab version...

Return to “General Remark and Questions”

Who is online

Users browsing this forum: No registered users and 1 guest