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
    00 I_A_m_R
    FFCC4FF8           38D                70DD8              4B4
    5EDA7              FFFFFFC1           FFF533C9           27E
    188                1                  FFFB70D9           55
    FFFF9773           23C                B6                 2B9
    FFFFFF60           151                13B                28E
    BB                 FFFFFE54           41                 FA
    113                D                  F3                 FFFFFF46
    1CB                F4                 FFFFFFA2
    217 I_A_m_I
    459A75             FFFFFF10           FFE6FCEF           FFFFFF60
    E7908              FFFFFF12           FFFA6DA8           FFFFFFA5
    3DC                FFFFFE95           6552E              FFFFFF68
    FFFBB10B           98                 FFFFFFD0           FFFFFF88
    94                 B8                 21                 FFFFFBB4
    18E                2CB                FFFFFDA1           39E
    FFFFFF6F           FFFFFED7           4A7                B4
    FFFFFD9B           FFFFFFE9           A2
    031 V_A_m_R
    FE25168A           1507F              FFF7BC47           FFFFE57B
    FFF8EB95           FFFFF68F           BF838              1F3E
    FFFFCBE5           1524               50C73              3DC
    94A5               FFFFF340           3F2D               FFFFF41F
    3DC3               FFFFFDFA           249D               6CB
    331                117A               FFFFE4C5           173D
    FFFFD98D           120D               FFFFE5F0           CB1
    FFFFF912           58E                EF3
    248 V_A_m_I
    27E72F8            FFFF944A           1CF344             3A49
    FFEE4F63           2C6                635C7              FFFFFBA3
    DA4                FFFFE999           FFF8E038           FFFFFD41
    65F7B              FFFFEDD8           1864               F0
    FFFFEBB2           D52                FFFFD4DA           D12
    FFFFCE60           8AA                FFFFE39A           294
    FFFFFC26           FFFFF63C           1594               FFFFF662
    22D8               FFFFF502           1CF7
    062 I_B_m_R
    FFDD69DD           6A                 7070F              FFFFFFF3
    98B15              FFFFFAC4           A3006              12F
    105                78                 7C22F              FFFFFEFA
    3FE48              FFFFFF58           FFFFFF66           FFFFFE5C
    FFFFFE77           1DF                FFFFFE1D           FFFFFE76
    FFFFFF37           FFFFFD4B           FFFFFE94           37
    29                 FFFFFDCB           ED                 9A
    FFFFFF59           21E                FFFFFD3B
    279 I_B_m_I
    FFB03DAD           FFFFFA61           FFE6D6CA           FFFFFD8C
    FFF39B8C           FFFFFF16           FFF95AC3           FFFFFE27
    433                3C                 B319               162
    1C37D              FFFFFF93           FFFFFEC0           9
    17F                FFFFFFAA           FFFFFFC6           FFFFFDDF
    FFFFFF57           FFFFFE81           FFFFFF24           A2
    59                 6E                 59                 FFFFFF53
    FFFFFE01           FFFFFF34           FFFFFFEC
    093 V_B_m_R
    FEC4260D           1A0BC              FFF7DC0E           10683
    FFF4623E           413A               FFF4B663           B7F
    38D                12A                FFF7491C           FFFFFADF
    FFFA35E3           3AC                7A5                5F3
    5F3                90D                19B                1BB
    1E3                3C1                3C8                4AA
    638                62F                727                90E
    B00                2E1                66E
    310 V_B_m_I
    FD25F8EB           11A0               1CFF5F             9869
    F11CE              1D0A               74DDE              1937
    FFFFEDD5           46                 FFFF376E           C28
    FFFD649B           F9                 FFFFFFA9           FFFFFC6B
    204                174                FFFFFCF8           FFFFFFA6
    FFFFFEA6           7E                 FFFFFE8C           FFFFFE3C
    FFFFFD7F           7D                 FFFFFEA5           FFFFFEDF
    FFFFFBCB           A                  FFFFFC9B
    124 I_C_m_R
    55DE20             260                6F72C              FFFFFF4E
    FFF0962C           FFFFFB49           9E9F               FFFFFF42
    FFFFFEE2           FFFFFE56           FFFCBAC0           FFFFFEA6
    FFFC8608           FFFFFF51           FFFFFB6C           FFFFFE49
    FFFFFF9E           101                FFFFFF72           FFFFFE67
    FFFFFFAD           D2                 FFFFFE2B           96
    FFFFFD30           FFFFFCE6           FFFFFF64           FFFFFF9E
    FFFFFA41           FFFFFD49           FFFFFD55
    341 I_C_m_I
    9E267              2E7                FFE703AB           FFFFFDDA
    FFFDF38A           FFFFFD3F           C1534              F2
    341                FFFFFD95           FFF8F9F3           5D
    28204              FFFFFFD5           381                FFFFFF0A
    FFFFFFC9           32                 FFFFFF66           FFFFFFB0
    FFFFFE96           FFFFFDF4           2B1                A1
    FFFFFE96           FFFFFF18           66                 28B
    3F2                207                FFFFFE50
    155 V_C_m_R
    316ECED            FFFF8C30           FFF7C03D           254D
    12C61F             FFFFCD85           FFFF5784           FFFFEEA4
    FFFFF080           FFFFF2EF           39912              FFFFF462
    52729              FFFFF9B5           FFFFF43D           FFFFF2AD
    FFFFF642           FFFFF2F2           FFFFF1AE           FFFFF4D0
    FFFFF30C           FFFFF13D           FFFFEFB7           FFFFF256
    FFFFF334           FFFFF110           FFFFF0BA           FFFFF013
    FFFFF15F           FFFFEEBE           FFFFEF1A
    372 V_C_m_I
    5BD36E             158B1              1D09A7             FFFFF41D
    29624              FFFFECC1           FFF28F51           745
    FFFFED43           91E                7F72A              176C
    FFFC4FC4           FFFFFB02           FFFFFEF6           85
    4F3                487                FFFFFECB           5E6
    29C                FFFFFF95           BC                 368
    397                170                8F                 39F
    438                626                37F
    186 I_N_m_R
    3F4                148                FFFFFFBF           7D
    FFFFFFA4           1E8                84                 1F5
    31                 FFFFFF1A           FFFFFC76           B7
    FFFFFF3B           FFFFFF7C           FFFFFEA0           FFFFFE20
    FFFFFE26           F9                 AB                 1EA
    FFFFFFFA           2A2                8C                 CF
    FFFFFEA4           35                 B8                 11
    296                FFFFFBC8           163
    403 I_N_m_I
    FFFFFFE1           FFFFFE88           FFFFFEC0           56
    CA                 FFFFFFB9           FFFFFF82           317
    FFFFFDD8           FFFFFF7E           1A                 EC
    FFFFFFD2           C4                 FFFFFC78           FFFFFF74
    39                 FFFFFFE7           FFFFFE51           FFFFFDE8
    FFFFFF37           22                 1D4                FFFFFFA3
    FFFFFE0A           FFFFFFAA           11A                69
    FFFFFFF7           41E                FFFFFE8A

It is possible also to read only the register referred to a certain Harmonic, specifying the harmonic index

    ; Read a specific harmonic registers
    HAR 03
    000 I_A_m_R        031 V_A_m_R        062 I_B_m_R        093 V_B_m_R
    0                  0                  0                  0
    124 I_C_m_R        155 V_C_m_R        186 I_N_m_R        217 I_A_m_I
    0                  0                  0                  0
    248 V_A_m_I        279 I_B_m_I        310 V_B_m_I        341 I_C_m_I
    0                  0                  0                  0
    372 V_C_m_I        403 I_N_m_I
    0                  0

Rev: E