beautypg.com

Cs5490 – Cirrus Logic CS5490 User Manual

Page 41

background image

CS5490

DS982F3

41

6.6.15 Chip Status 2 (Status2) – Page 0, Address 25

Default = 0x00 0000

This register indicates a variety of conditions within the chip.

[23:6]

Reserved.

QSUM_SIGN

Indicates the sign of the value contained in Q

SUM

.

0 = positive value
1 = negative value

[4]

Reserved.

Q_SIGN

Indicates the sign of the value contained in Q

AVG

.

0 = positive value
1 = negative value

PSUM_SIGN

Indicates the sign of the value contained in P

SUM

.

0 = positive value
1 = negative value

[1]

Reserved.

P_SIGN

Indicates the sign of the value contained in P

AVG

.

0 = positive value
1 = negative value

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 output word rate (OWR).

It can either be written by the application program or calculated automatically from the line frequency (from
the voltage channel 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.

23

22

21

20

19

18

17

16

-

-

-

-

-

-

-

-

15

14

13

12

11

10

9

8

-

-

-

-

-

-

-

-

7

6

5

4

3

2

1

0

-

-

QSUM_SIGN

-

Q_SIGN

PSUM_SIGN

-

P_SIGN

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