Search found 5 matches

by dsp28x
Wed Jul 14, 2010 8:24 am
Forum: SUB-20 General Discussion
Topic: SPI configuration
Replies: 2
Views: 12668

Re: SPI configuration

Thanks serg, it helps :) .

Regards
dsp28x
by dsp28x
Tue Jul 13, 2010 10:19 am
Forum: SUB-20 General Discussion
Topic: SPI configuration
Replies: 2
Views: 12668

SPI configuration

Hi, Does sub20 SPI_read and SPI_FIFO_Read have supports in Matlab? Because this 2 function does not work. % SPI data read if ~ sub20.SPI_Read(Data, Arr) break; end % SPI FIFO read data if ~ sub20.FIFO_Read(Data,10,64,10000) break; end There is error all the time. ??? No method 'SPI_Read' with matchi...
by dsp28x
Thu Jul 08, 2010 1:54 pm
Forum: SUB-20 General Discussion
Topic: SPI transfer config in Matlab
Replies: 6
Views: 22159

Re: SPI transfer config in Matlab

Hi xol I've tried to read data via SPI slave mode. It reads reads the last byte (Eg. 1234 will return as 3412). By the way are spi_read() and fifo_Read() does not support in Matlab? Error: No method 'SPI_Read' with matching signature found for class 'Xdimax.Sub20' . Here is my code (in MATLAB) if I'...
by dsp28x
Wed Jul 07, 2010 9:17 am
Forum: SUB-20 General Discussion
Topic: SPI transfer config in Matlab
Replies: 6
Views: 22159

Re: SPI transfer config in Matlab

Hi serg, I've intialized the TransferSiZe to 10. but the question is if SPI modul is slave, is there any way to intialize my code in MATLAB, so that I can automatically retrieve my data. The example code in matlab code the values are constants. % Create .NET data array Data = NET.createArray('System...
by dsp28x
Tue Jul 06, 2010 12:26 pm
Forum: SUB-20 General Discussion
Topic: SPI transfer config in Matlab
Replies: 6
Views: 22159

SPI transfer config in Matlab

Hi, I'm new to SUB-20. I want to use the SUB-20 SPI interface to read from another SPI modul, Using SUB-20 tool works OK, even though its only read a byte. The problem is in MATLAB, how to configure so that the SUB-20 can read data via MATLAB setup. Here is my configuration /* Configure SPI */ sub_s...