USB FTDI received data wrong

10 ビュー (過去 30 日間)
Kai Boetzel
Kai Boetzel 2011 年 4 月 16 日
Hi, I am using a virtual USP port with with FTDI USB driver for my atmega 328 microprocessor and I get some 8-bit data from the processor. But, the 3 most significant bits are always 1, so I can use only the 5 least significant bits. This is the code that gets the data:
[data,count,msg] = fread(s, 255, 'uint8')
I changed baud rate and I set the data to be sent as 8 bits and I tried everything else but there seems to be but no way to get real 8-bit data. Can anyone help?? Thanks in advance, Kai
  1 件のコメント
Doug Eastman
Doug Eastman 2011 年 4 月 18 日
If you are using an Arduino board you might want to look at the following: http://www.mathworks.com/academia/arduino-software/

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Support Package for Arduino Hardware についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by