フィルターのクリア

Accessing Arduino registers like DDRX and PINX

3 ビュー (過去 30 日間)
Tarik Zengin
Tarik Zengin 2018 年 2 月 14 日
Hi everyone. Trying to access some registers like PORTX, PINX, etc. on Arduino.
A practical example why;
To set multiple digital pins at once using PORTX, or
To get multiple digital pins' values at once by reading PINX.
For instance, I have an external 8bits counter and want to get that 8 bits data all at once, not just reading 8 bits one by one and do maths to combine them.
Normally I would get this just by reading PIND register for ex. How could I do this in Matlab and/or Simulink?
Thanks

回答 (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