フィルターのクリア

Why my uC receives values in the 65..127 range only(simulink model, RS232 communication)

1 回表示 (過去 30 日間)
Zoltan
Zoltan 2012 年 12 月 12 日
Hi,
I want to send values to my PIC microcontroller via RS-232, but if i send something different than numbers in the 65..127 range, it gives me weird values. For example, Send 0, receive -192. send 65 receive 65
I'm using Matlab&Simulink R2009b, the serial setup is 9600 baud rate, little endian order, 8-bit, parity none. Using the 'Constant' block to send value(type of uint8, double, - tried them all)
What is the problem?
Thank you, Zoltan

回答 (0 件)

カテゴリ

Help Center および File ExchangeString についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by