aswin p ajayan
Member
hi guys,
can any body post a matlab code that can read an array of data from pic 18f 4550
can any body post a matlab code that can read an array of data from pic 18f 4550
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
int8y = fread (SerPIC,'003','int8'); %-- 003 = 00000011 in binary, so first two LEDs of PIC will light
int8y = fread (SerPIC,'003','int8'); %-- 003 = 00000011 in binary, so first two LEDs of PIC will light
t = 1:10;
plot(y);
this is the code i have entered . it keeps on returning the error, that fread should have a double value . but if i type
y = fread(SerPIC,'003')
y is not filled with any value - i checked it in the variable editor.
my actual problem i guess is to intake a 'double' array so that i can plot a graph . please help me with the input part . i guess i can do the plotting and other things