Jump to main content

# Harmonics Registers

The harmonics registers can be read by means of the HAR command. The metrology library must be configured through the control registers to enable the harmonics computation and to select the harmonic number to be processed. Refer to the “PIC32CXMTx Metrology Reference Guide” (DS50003461) and the “Microchip PIC32CXMTx Metrology User Guide” (DS50003460) for additional information. Examples:

    ; Read all the harmonics registers
    HAR
    000 CH0_m_R         001 CH1_m_R        002 CH2_m_R        003 CH3_m_R
    FFFFD532            FFFFDD2C           FFFFE669           5
    004 CH4_m_R         005 CH5_m_R        006 CH6_m_R        007 CH7_m_R
    FFFFFFFF            FFFFFFFB           7                  FFFFFFE9
    008 CH8_m_R         009 CH9_m_R        010 CH10_m_R       011 CH11_m_R
    0                   0                  0                  0
    012 CH12_m_R        013 CH13_m_R       014 CH14_m_R       015 CH15_m_R
    0                   0                  0                  0
    016 CH16_m_R        017 CH17_m_R       018 CH18_m_R       019 CH19_m_R
    0                   0                  0                  0
    020 CH20_m_R        021 CH21_m_R       022 CH22_m_R       023 CH23_m_R
    0                   0                  0                  0
    024 CH24_m_R        025 CH25_m_R       026 CH26_m_R       027 CH27_m_R
    0                   0                  0                  0
    028 CH28_m_R        029 CH29_m_R       030 CH30_m_R       031 CH31_m_R
    0                   0                  0                  0
    032 CH0_m_I         033 CH1_m_I        034 CH2_m_I        035 CH3_m_I
    AEB                 307                29B                6
    036 CH4_m_I         037 CH5_m_I        038 CH6_m_I        039 CH7_m_I
    0                   FFFFFFFF           13                 FFFFFFF8
    040 CH8_m_I         041 CH9_m_I        042 CH10_m_I       043 CH11_m_I
    0                   0                  0                  0
    044 CH12_m_I        045 CH13_m_I       046 CH14_m_I       047 CH15_m_I
    0                   0                  0                  0
    048 CH16_m_I        049 CH17_m_I       050 CH18_m_I       051 CH19_m_I
    0                   0                  0                  0
    052 CH20_m_I        053 CH21_m_I       054 CH22_m_I       055 CH23_m_I
    0                   0                  0                  0
    056 CH24_m_I        057 CH25_m_I       058 CH26_m_I       059 CH27_m_I
    0                   0                  0                  0
    060 CH28_m_I        061 CH29_m_I       062 CH30_m_I       063 CH31_m_I
    0                   0                  0                  0

Rev: E