1.0

1.0 | 1 rating Rate this file 20 downloads (last 30 days) File Size: 663 Bytes File ID: #23305

image processing

by sachin shivhare

 

16 Mar 2009

No BSD License  

convert c code to matlab code

Download Now | Watch this File

File Information
Description

c code to matlab conversion. for use in stepper motor

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
18 Mar 2009 Wolfgang Schwanghart

This is what you find in the downloaded txt-file

**********************************************************
%include<stdio.h>
 %include<conio.h>
 define comx 0x378

int transmit(int *t)
{
    int c,cl1,ch1; %configure comx
    outportb(comx + 1,0x00); %disable UART onterrupts
    outportb(comx + 3,0x80); %to write into DLAB
    outportb(comx + 0,0x0c); %write divisor latch low byte 9600 baud
    outportb(comx + 1,0x00); %write divisor latch high byte
    outportb(comx + 3,0x03); %set LCR 8 bit,1 stop bit,no parity
    outportb(comx + 2,0xc7); %set FCR FIFO control register
    outportb(comx + 4,0x0b); %set MCR turn on DTR,RTS,OUT2
    
  }

  clrscr();
  c=*t;
  
  outportb(comx + 0,c); %sent to comx
  **********************************************************

I have no idea of what this function does. But it certainly doesn't have anything to do with image processing or c code to matlab conversion.

Please remove.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
stepper motor Cristina McIntire 17 Mar 2009 14:38:16
image sachin shivhare 17 Mar 2009 14:38:25
image Hemant 27 Apr 2009 02:35:46
stepper motor Hemant 27 Apr 2009 02:35:57
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com