CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

MATLAB to PIC

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
3l3ctr0



Joined: 18 Mar 2010
Posts: 5

View user's profile Send private message

MATLAB to PIC
PostPosted: Thu Mar 18, 2010 10:22 am     Reply with quote

Hello Everyone !!

I've a problem with matlab and pic.

I want to send 8 bit hex data from matlab to pic.

Can anyone help me for this problem.
Hicham



Joined: 09 Feb 2010
Posts: 17

View user's profile Send private message

PostPosted: Fri Mar 19, 2010 3:54 am     Reply with quote

I don't think if it is possible, the have added dspic blocks in matlab, but for pic I have no idea..but this will be great to have this option.
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Fri Mar 19, 2010 7:02 am     Reply with quote

The PIC end is easy, just read a byte. But I don't know much about MATLAB. Maybe you should ask on a MATLAB forum?
_________________
The search for better is endless. Instead simply find very good and get the job done.
Rohit de Sa



Joined: 09 Nov 2007
Posts: 282
Location: India

View user's profile Send private message Visit poster's website

PostPosted: Fri Mar 19, 2010 7:40 am     Reply with quote

What sort of communication are you looking to implement? Asynchronous serial? That's easy enough in MATLAB.

A little bit of google gave me these:
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f105659.html
http://en.wikibooks.org/wiki/MATLAB_Programming/Writing_and_Reading_to_A_Serial_Port
http://cnx.org/content/m12062/latest/
http://webscripts.softpedia.com/script/Scientific-Engineering-Ruby/Test-and-Measurement/MATLAB-serial-36068.html
http://www.instructables.com/id/MATLAB-to-PIC-serial-interface/

The first two are good, and the last one is exactly what you need.

Rohit
3l3ctr0



Joined: 18 Mar 2010
Posts: 5

View user's profile Send private message

PostPosted: Fri Mar 19, 2010 2:40 pm     Reply with quote

Thank you for your answers

all of them are very useful
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group