Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Output pixel larger than the desired pixel

Status
Not open for further replies.

fatimamaz

Newbie level 5
Newbie level 5
Joined
Jan 29, 2018
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
68
Please answer the following question if it is clear.
I am using Altera FPGA board for saving a snapshot to a frame buffer and to send it serially to Matlab. My problem is that all the parts of my code are right but the received data to Matlab code are 14 bits rather than 8 bits.

I tested each memory alone by defining a specific pixel at its input and output and checking the final output on Matlab, however all the parts seem to be correct.

Would you help me to diagnose the problem?
 

Can you please share the MATLAB code used for receiving the data as well as FPGA code used for sending the data ?
 

How is the data captured by matlab?

Here is my Matlab code.
Code:
clear all;
delete(instrfindall);  
s = serial('COM6');  
info=get(s,{'Type','Name','Port'});
set(s,'BaudRate',115200);  
s.InputBufferSize = 8000;
s.Timeout =200;


fopen(s)
fprintf(s,'%c','a') 
Buffer = fscanf(s,'%c');
fclose(s)
binary_data=dec2bin(Buffer,8);
 
Last edited by a moderator:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top