ユーザ用ツール

サイト用ツール


mas1xx_tips:use_msp430_via_i2c:msp430_di:start

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
mas1xx_tips:use_msp430_via_i2c:msp430_di:start [2021/11/15 13:35] adminmas1xx_tips:use_msp430_via_i2c:msp430_di:start [2025/02/28 15:31] (現在) admin
行 13: 行 13:
 |Filtered DI(R/O)|  0x06  |[7:5] Reserved| | | |Filtered DI(R/O)|  0x06  |[7:5] Reserved| | |
 |:::|:::|[4] OPT-Switch| |OPT-Switch| |:::|:::|[4] OPT-Switch| |OPT-Switch|
-|:::|:::|[3:0] DI3..0| |DI Status|+|:::|:::|[3:0] DI3..0| |DI Status((DI を 64Hz 2bit shift register でフィルタ処理(チャタリング除去)した状態を取得できます))| 
 +|Raw DI(R/O)|  0x07  |[7:5] Reserved| | | 
 +|:::|:::|[4] OPT-Switch| |OPT-Switch| 
 +|:::|:::|[3:0] DI3..0| |DI Status(チャタリング除去フィルタなし)| 
 +|DI Event Enable(R/W)|  0x0a  |[7:5] Reserved|  xxx| | 
 +|:::|:::|[4] OPT-Switch|  x|OPT-Switch((USBのコンソール横の Option Switch))| 
 +|:::|:::|[3:0] DI3..0 Enable|  0000|1: Enable|
 |DI Polarity(R/W)|  0x0b  |[7:5] Reserved|  xxx| | |DI Polarity(R/W)|  0x0b  |[7:5] Reserved|  xxx| |
-|:::|:::|[4] OPT-Switch|  x|OPT-Switch|+|:::|:::|[4] OPT-Switch|  x|OPT-Switch((USBのコンソール横の Option Switch))|
 |:::|:::|[3:0] DI3..0 Polarity|  0000|0: Rising / 1: Falling| |:::|:::|[3:0] DI3..0 Polarity|  0000|0: Rising / 1: Falling|
 |Counter Control (R/W)|  0x10  |[7:5] Reserved|  xxx| | |Counter Control (R/W)|  0x10  |[7:5] Reserved|  xxx| |
行 55: 行 61:
 \\ \\
  
-<file nim di_sample.nim>+<codify nim>
 import std/options import std/options
 import std/strformat import std/strformat
行 96: 行 102:
 when isMainModule: when isMainModule:
   main()   main()
-</file>+</codify>
  
 \\ \\
mas1xx_tips/use_msp430_via_i2c/msp430_di/start.1636950932.txt.gz · 最終更新: 2021/11/15 13:35 by admin