文書の過去の版を表示しています。
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 | x | OPT-Switch | ||
[3:0] DI3..0 Polarity | 0000 | 0: Rising / 1: Falling | ||
Counter Control (R/W) | 0x10 | [7:5] Reserved | xxx | |
[4] Counter4 Start (OPT-Switch) | 0 | 1: 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 | 0 | 1: 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 | 0 | 1: 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 |