3.1.11 Synthesizer Address

This register allows the user to provide samples to the metrology library, replacing the samples typically received from the ADCs. The register holds a 32-bit address that must point to a descriptor with the following structure.

typedef struct {
    DRV_METROLOGY_SYN_CONTROL control;
    uint32_t *pData;
    void *next;
} DRV_METROLOGY_SYN_DESCRIPTOR;

Where,

  • The pData field is a pointer to a table containing the samples.
  • The next field is a pointer to the next descriptor. If next is set to 0 (NULL), there are no additional descriptors.
  • The control field is a 32-bit value with the following structure.
    typedef struct 
    {
    	unsigned int numSamples : 19;
    	unsigned int channel : 5;
    	unsigned int key : 8;
    } DRV_METROLOGY_SYN_CONTROL;
    

    Where,

    • numSamples is the number of samples in the table
    • channel indicates the physical channel associated with the samples
    • key is a security field that must be set to 0x5A
BitsNameDescription
0-18numSamplesNumber of samples in the table
19-23channelPhysical channel number
24-31keyMust be set to 0x5A

Descriptors are processed once the synthesizer is enabled (bit 13 of FEATURE_CTRL). To modify the descriptors, first disable the synthesizer, make the necessary changes, and then re-enable the synthesizer.

Name: SYNTHESIZER_ADDR
Property: Read-Write

Bit 3130292827262524 
 SYNTHESIZER_ADDR[31:24] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 2322212019181716 
 SYNTHESIZER_ADDR[23:16] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 SYNTHESIZER_ADDR[15:8] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 SYNTHESIZER_ADDR[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 31:0 – SYNTHESIZER_ADDR[31:0]