3.5 Enhanced Configuration Mode Enable
- Baud rate of 38400 bits/second
- Eight data bits
- No parity bit
- One stop bit
The configuration provided by the user through this configuration mode is stored in the Nonvolatile Memory (NVM), making it invulnerable to Power-on Reset (POR).
The CFG_EN digital input pin controls the usage of the Enhanced Configuration mode. The following table shows the correspondence between the CFG_EN pin voltage and Enhanced Configuration options:
Voltage on CFG_EN Pin | Enhanced Configration Selection |
---|---|
0V | Enabled |
VDD | Disabled |
When it comes to setting parameters using a serial communication interface, this configuration mode provides flexibility. The parameters are sent sequentially by transmitting the required data series through the serial communication channel. After each parameter is sent individually, a validation key (ENTER key) is required.
\r
) with the ASCII code equal to 0x0D
in
the hexadecimal system or 13
in the decimal system.After receiving a parameter, the device sends back an ACK or a NACK character, depending on the outcome of the parameter validation process.
The ACK signal is a byte sent on the same serial communication with a value equal to
0x06
in the hexadecimal system or 6
in the decimal system.
The NACK signal is a byte long with a value equal to 0x15
in the hexadecimal
system or 21
in the decimal system.
Parameter | Range | |
---|---|---|
Lower Limit | Upper Limit | |
Reference Value | 0 | 65535 |
Threshold | 0 | 65535 |
- According to the sensor characteristics, the reference value and the threshold parameters must be carefully chosen. It is advisable to conduct an initial testing phase and measure the sensor's Reference Value in the actual operating environment to ensure optimal functionality.
- Selecting a threshold value of zero will be accepted by MTCH9010, but a liquid detection alert will only happen if the delta is greater than 1.
- Setting a low threshold value can result in false triggers. It is recommended to tune the threshold level according to the application requirements and environment characteristics.
The following table describes the available options when it comes to configuring application parameters through the Enhanced Configuration mode:
Parameter | Value | Configuration |
---|---|---|
Operation Mode | 0 | Capacitive |
1 | Conductive | |
Sleep Time | 0 | Wake-up on request |
1 | 1 second | |
2 | 2 seconds | |
3 | 4 seconds | |
4 | 8 seconds | |
5 | 16 seconds | |
6 | 32 seconds | |
7 | 64 seconds | |
8 | 128 seconds | |
9 | 256 seconds | |
Extended Output Mode | 0 | Disabled |
1 | Enabled | |
Extended Output Format(1) | 0 | Delta measurement |
1 | Standard measurement | |
2 | Both standard and delta measurements | |
3 | MPLAB® Data Visualizer Data Stream protocol format(2) | |
Capacitive/Conductive Reference Value | 0 | Set the standard measurement as Reference Value |
1 | Repeat the capacitive/conductive measurement(3) | |
2 | Set custom Reference Value(4) | |
Capacitive/Conductive Detection Threshold | 0 | Set custom Detection Threshold |
- These options are only available in the Enhanced Configuration mode if the Extended Output mode is enabled.
- Refer to the MPLAB Data Visualizer User's Guide.
- Selecting this option triggers a new standard measurement.
- Selecting this option must be followed by a user input of the Reference Value.
Send the configuration parameters to the MTCH9010 following the procedure shown in the
example below. Use the ENTER Key
after each parameter. The example showcases
a configuration for using the Capacitive mode, with four seconds of sleep time, Extended
Output mode enabled for standard measurement only, and with custom reference value and
threshold:
-
0 + ENTER key
- selecting Capacitive Mode -
3 + ENTER key
- selecting four second period for Sleep -
1 + ENTER key
- Extended Output Mode is enabled -
1 + ENTER key
- the Extended Output Mode is configured to output standard measurement only -
2 + ENTER key
- selecting a custom reference value usage -
REFERENCE VALUE + ENTER key
- setting a custom reference value -
THRESHOLD VALUE + ENTER key
- setting a custom detection threshold