# sample I2C script # set interface mode to i2c fast i i2cfast # set register page to 0 w e0 7f 00 # dir setup is default with audio muted for loss of lock condition and rxcko enabled w e0 0d 00 w e0 0e 09 # pll1 setup for 24.576mhz rxcki p is 2 j is 8 d is 0 w e0 0f 22 w e0 10 00 w e0 11 00 # set gpo1 for dir nonaudio flag w e0 1b 06 # set gpo2 for dir nonvalid flag w e0 1c 07 # set gpo3 for dir emphasis flag w e0 1d 05 # set gpo4 for dir parity error flag w e0 1e 0d # src setup is default with the dir as the input data source # mclk is the ref clock source w e0 2d 02 w e0 2e 00 w e0 2f 00 w e0 30 00 w e0 31 00 # dit setup with the src as the input data source and mclk as master clock # mclk divider is 512 to set the output frame rate # block start is an output and valid audio is indicated # c and u data is sourced from the data buffers in register page 2 w e0 07 7c w e0 08 00 w e0 09 01 # power up all blocks except port a and b w e0 01 27 # disable dit buffer transfers w e0 08 08 # set register page to 2 w e0 7f 02 # set dit channel status data for bytes 0 thru 2 # professional use pcm audio no emphasis locked 48khz sampling freq # all other channel status bytes are set to default 0x00 value w e0 00 81 w e0 01 81 w e0 02 10 w e0 03 10 w e0 04 34 w e0 05 34 # set register page to 0 w e0 7f 00 # enable dit buffer transfers w e0 08 00 b # dit setup for 96k output w e0 07 3c w e0 08 08 w e0 7f 02 w e0 00 80 w e0 01 80 w e0 08 08 w e0 09 08 w e0 7f 00 w e0 08 00 b # dit setup for 192k w e0 07 1c w e0 08 08 w e0 7f 02 w e0 00 80 w e0 01 80 w e0 08 18 w e0 09 18 w e0 7f 00 w e0 08 00