ユーザ用ツール

サイト用ツール


mas1xx_tips:use_msp430_via_i2c:msp430_di:start

以前のリビジョンの文書です


DI 機能

MA-E3xx シリーズでは CPLD により実装していた、チャタリング除去フィルター、カウンター の機能をマイコンで実装しています。
機能は I2C 経由(Bus No.1, I2C-Address 0x4f)で利用します。


アドレスマップ

DI 機能は I2C の下記アドレスにマップされています。

Name Address Bit Reset Value Description
Filtered DI(R/O) 0x06 [7:5] Reserved
[4] OPT-Switch OPT-Switch
[3:0] DI3..0 DI Status
DI Polarity(R/W) 0x0b [7:5] Reserved xxx
[4] OPT-Switch xOPT-Switch
[3:0] DI3..0 Polarity 00000: Rising / 1: Falling
Counter Control (R/W) 0x10 [7:5] Reserved xxx
[4] Counter4 Start (OPT-Switch) 01: Enable
[3] Counter3 Start 0
[2] Counter2 Start 0
[1] Counter1 Start 0
[0] Counter0 Start 0
Counter Match Enable (R/W) 0x11 [7:5] Reserved xxx
[4] Counter4 Match Event Enable 01: Enable
[3] Counter3 Match Event Enable 0
[2] Counter2 Match Event Enable 0
[1] Counter1 Match Event Enable 0
[0] Counter0 Match Event Enable 0
Counter Match Status (R/W1c) 0x12 [7:5] Reserved xxx
[4] Counter4 Match 01: Match / Write 1 to clear
[3] Counter3 Match 0
[2] Counter2 Match 0
[1] Counter1 Match 0
[0] Counter0 Match 0
Counter Compare0 (R/W) 0x13 [7:0] 00000000
Counter Compare1 (R/W) 0x14 [7:0] 00000000
Counter Compare2 (R/W) 0x15 [7:0] 00000000
Counter Compare3 (R/W) 0x16 [7:0] 00000000
Counter Compare4 (R/W) 0x17 [7:0] 00000000
Counter Value0 (R/W) 0x18 [7:0] 00000000
Counter Value1 (R/W) 0x19 [7:0] 00000000
Counter Value2 (R/W) 0x1a [7:0] 00000000
Counter Value3 (R/W) 0x1b [7:0] 00000000
Counter Value4 (R/W) 0x1c [7:0] 00000000


mas1xx_tips/use_msp430_via_i2c/msp430_di/start.1636949819.txt.gz · 最終更新: 2021/11/15 13:16 by admin