3.5 Enhanced Configuration Mode Enable

Besides the configuration pins, the MTCH9010 supports the Enhanced Configuration mode via serial communication. The serial communication parameters are as follows:
  • 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:

Table 3-4. Enhanced Configuration Settings
Voltage on CFG_EN PinEnhanced Configration Selection
0VEnabled
VDDDisabled

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.

Important: The validation key (ENTER) is represented by the carriage return (\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.

The table below shows the accepted reference value and threshold value.
Table 3-5. Enhanced Configuration Parameters Values Range
ParameterRange
Lower LimitUpper Limit
Reference Value065535
Threshold065535
Note:
  1. 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.
  2. 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.
  3. 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:

Table 3-6. Enhanced Configuration Parameters
ParameterValueConfiguration
Operation Mode0Capacitive
1Conductive
Sleep Time0Wake-up on request
11 second
22 seconds
34 seconds
48 seconds
516 seconds
632 seconds
764 seconds
8128 seconds
9256 seconds
Extended Output Mode0Disabled
1Enabled
Extended Output Format(1)0Delta measurement
1Standard measurement
2Both standard and delta measurements
3MPLAB® Data Visualizer Data Stream protocol format(2)
Capacitive/Conductive Reference Value0Set the standard measurement as Reference Value
1Repeat the capacitive/conductive measurement(3)
2Set custom Reference Value(4)
Capacitive/Conductive Detection Threshold0Set custom Detection Threshold
Note:
  1. These options are only available in the Enhanced Configuration mode if the Extended Output mode is enabled.
  2. Refer to the MPLAB Data Visualizer User's Guide.
  3. Selecting this option triggers a new standard measurement.
  4. Selecting this option must be followed by a user input of the Reference Value.
Important: If any other value than the ones presented in the table above is input to the Enhanced Configuration process, it will be considered invalid and the user will be prompted to input the value again.

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

Note: For examples of enhanced configuration, refer to Enhanced Configuration with Manual Input of Parameters Example and Enhanced Configuration Script Example in the Appendix chapter.