Cs5484, 16 line to sample frequency ratio (epsilon), Page 16, address 49 – Cirrus Logic CS5484 User Manual

Page 47: 17 no-load threshold (load, Page 16, address 58, 18 sample count (samplecount), Page 16, address 51, 19 cycle count (cyclecount), Page 18, address 62

Advertising
background image

CS5484

DS981F3

47

6.6.16 Line to Sample Frequency Ratio (Epsilon)

Page 16, Address 49

Default = 0x01 999A (0.0125 or 50Hz/4.0kHz)

Epsilon is the ratio of the input line frequency to the OWR.

It can either be written by the application program or calculated automatically from the line frequency (from
the voltage channel 1 input) using the AFC bit in the Config2 register. It is a two's complement value in the
range of -1.0

 value  1.0, with the binary point to the right of the MSB. Negative values are not used.

6.6.17 No-Load Threshold (Load

MIN

)

Page 16, Address 58

Default = 0x00 0000

Load

MIN

is used to set the no-load threshold for the anti-creep function.

When the magnitudes of P

SUM

and Q

SUM

are less than Load

MIN

, P

SUM

and Q

SUM

are forced to zero. When

the magnitude of S

SUM

is less than Load

MIN

, S

SUM

is forced to zero.

Load

MIN

is a two’s complement value in the range of -1.0

 value  1.0, with the binary point to the right of the

MSB. Negative values are not used.

6.6.18 Sample Count (SampleCount)

Page 16, Address 51

Default = 0x00 0FA0 (4000)

Determines the number of OWR samples to use in calculating low-rate results.
SampleCount (N) is an integer in the range of 100 to 8,388,607. Values less than 100 should not be used.

6.6.19 Cycle Count (CycleCount)

Page 18, Address 62

Default = 0x00 0064 (100)

Determines the number of half-line cycles to use in calculating low-rate results when the CS5484 is in Line-cy-
cle Synchronized Averaging mode.

CycleCount is an integer in the range of 1 to 8,388,607. Zero should not be used.

MSB

LSB

-(2

0

)

2

-1

2

-2

2

-3

2

-4

2

-5

2

-6

2

-7

.....

2

-17

2

-18

2

-19

2

-20

2

-21

2

-22

2

-23

MSB

LSB

-(2

0

)

2

-1

2

-2

2

-3

2

-4

2

-5

2

-6

2

-7

.....

2

-17

2

-18

2

-19

2

-20

2

-21

2

-22

2

-23

MSB

LSB

0

2

22

2

21

2

20

2

19

2

18

2

17

2

16

.....

2

6

2

5

2

4

2

3

2

2

2

1

2

0

MSB

LSB

0

2

22

2

21

2

20

2

19

2

18

2

17

2

16

.....

2

6

2

5

2

4

2

3

2

2

2

1

2

0

Advertising