No BSD License
1.0
by sachin shivhare
16 Mar 2009
convert c code to matlab code
| Watch this File
c code to matlab conversion. for use in stepper motor
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.
Contact us at files@mathworks.com