MATLAB: How to use matlab to transmit picture to FPGA via UART

fpgatxtuart

hey guys
recently i have used matlab to convert picture to binary format and written into XXX.txt. Now i am confused that how to transmit binary format data into FPGA via UART? i intend to use UART to transmit data.i know it is necessary to write a HDL module to get the data coming through UART. the other problem is the setup step in PC.Do i need extra tool except for Matlab to complete the work?
i can convert picture into binary format and written into txt now. Thanks

Best Answer

serial() the COM port. Configure its settings. fopen() the serial object. Use fwrite() and fread() to exchange data.
One difficulty is that UART usually refers to TTL levels, but serial port objects are usually RS232 / RS422, or else they are virtual serial ports over USB. You can get USB ports that have TTL connectors.
Related Question