Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FastPWM GMD_template_lib mbed
You are viewing an older revision! See the latest version
GMD
このプログラムが動作しているMD(モータドライバ)(以下「GMD」とする)の使用方法を説明します。
インターフェース¶
GMDはインターフェースとしてI2Cを備えていて、スレーブとして動作します。また、I2Cで使うアドレスを決定するために4PのDIPスイッチがあり、起動時にこのスイッチの値を読み取りアドレスを決定します。
I2Cのアドレス¶
I2Cのアドレスには
*出典:UM10204 I
2C バス仕様およびユーザーマニュアル Rev. 5.0J — 2012 年 10 月 9 日 (日本語翻訳 11 月 2 日)
http://www.nxp.com/documents/user_manual/UM10204_JA.pdf
I2C¶
I2Cのデータ長は1Byteです。この1Byteが8bitの符号付き整数型として評価され、