4.4.3.2.1.9 DMMA – Demodulator Mode for Path A
This register selects the main operating modes of the demodulator and the data filter. It must only be modified if the block receiving the settings is disabled (RDPR.PRPTA = 1
). Modifying the settings during operation may lead to unstable operation.
Name: | DMMA |
Offset: | 0x0A2 |
Reset: | 0x00 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
DMNEA | DMHA | DMPA | DMATA[4:0] | ||||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit 7 – DMNEA Demodulator NRZ Enable for Path A
Bit 7 | Description |
---|---|
0 | Matched Manchester filter is used for data reception and TMDO output. |
1 | Symbol-based (NRZ) filter is used for data reception and TMDO output. Microchip recommends activating hold mode (DMHA = 1 ) and setting a reasonable amplitude threshold (DMATA) because this is used for noise suppression in the DC removal loop. |
Bit 6 – DMHA Demodulator Hold Mode for Path A
Bit 6 | Description |
---|---|
0 | Hold mode deactivated – To be used for telegrams with up to two identical consecutive symbols. Adapts well to changing signal conditions. Not suitable for longer consecutive high or low symbol sequences because the DC threshold fades over time. |
1 | Hold mode activated – To be used for NRZ or other reception with up to eight identical symbols in sequence. This mode freezes the DC compensation loop after a symbol change until the next signal edge is detected. |
Bit 5 – DMPA Demodulator Received Data Polarity Selection for Path A
Bit 5 | Description |
---|---|
0 | For Manchester coding: Rising edge in the middle of a bit is considered a ‘ For NRZ coding: Higher frequency (FSK) and active carrier (ASK) is considered a ‘ |
1 | For Manchester coding: Falling edge in the middle of a bit is considered a ‘ For NRZ coding: Lower frequency (FSK) and no carrier (ASK) is considered a ‘ |
Bits 4:0 – DMATA[4:0] Demodulator Amplitude Threshold for Path A
1
’ if no error occurred during the symbol check time. The recommended threshold is calculated differently for ASK and FSK modulation.Recommended DMATA Setting for FSK
The maximum useful amplitude threshold for a given FSK signal depends on the expected deviation and the data rate settings:
- Equation parameters:
- MIN_DEVIATION_A: The lowest possible frequency deviation in Hz of the useful signal on path A
- ATSCAL_A: Amplitude threshold scaling on path A. See DMDNA Setting versus Amplitude Threshold Scaling on Path A (ATSCAL_A) in the DMDRA from Related Links.
- MAVFL_A: Moving average filter length on path A. See DMAA Setting versus Moving Average Filter Length and Symbol Rate Factor on Path A (MAVFL_A, SR_F_A) in the DMDRA from Related Links.
- CLK_BB: Baseband clock frequency in Hz. See equation (13) in Bandwidth Scaling. See Bandwidth Scaling in the Channel Filter from Related Links.
- PLL_GAIN_A: FSK PLL gain on path A. See PLL Gain on Path A versus DMPGA Setting in the DMCRA from Related Links.
Using a higher value results in very frequent or a continuous error indication because the modulation amplitude threshold is similar or higher than the minimum deviation (MIN_DEVIATION_A) of the useful signal.
The recommended setting for DMATA is half of the calculated maximum value (DMATA_MAX_FSK),
raising this value increases the severity of this check.Recommended DMATA Setting for ASK
- Equation parameters:
- ATSCAL_A: Amplitude threshold scaling on path A. See DMDNA Setting versus Amplitude Threshold Scaling on Path A (ATSCAL_A) in the DMDRA from Related Links.
- MAVFL_A: Moving average filter length on path A. See DMAA Setting versus Moving Average Filter Length and Symbol Rate Factor on Path A (MAVFL_A, SR_F_A) in the DMDRA from Related Links.
- DMDNA: Down-sampling on path A. See DMDNA Setting versus Amplitude Threshold Scaling on Path A (ATSCAL_A) in the DMDRA from Related Links.