I'm encountering a bit of a head-scratcher on the aic3204. The following code puts data on the DOUT pin until I try to set Register 27 D7-D6 to DSP mode (01).
I2S(00), RJF(10) and LJF(11) all put data on DOUT, and BCLK and WCLK appear normal in all 4 modes.
This code is not derived from the CS program, so it's entirely possible some registers are being loaded out of sequence. Being that DSP is the mode I'd like to use, it's a little inconvenient. :)
What am I missing?
# clockin = 16.384MHz # page 0 30 00 00 30 01 01 # page 0, reset 30 0B 81 30 0C 81 # ndac, mdac 30 0D 00 30 0E 40 # dosr 30 12 82 30 13 82 # nadc, madc 30 1B 7C # <-- herein lies the problem? FC, BC and 3C all work 30 1C 00 30 1D 00 # not sure if I need these anymore, but... 30 1E 84 # bclk N 30 3C 08 $ prb_p8 30 14 40 # aosr 30 34 1C # pin 32 is WCLK 30 35 12 # may or may not be necessary 30 3D 0D # prb_r13 # page 1 30 00 01 30 01 08 # disable weak avdd/dvdd 30 02 A1 # vdd's = 1.77 30 7B 01 # vref 40ms 30 09 0C # LOL/LOR 30 12 3A 30 13 3A # set gain 30 0E 08 30 0F 08 # set routing 30 0A 08 # common mode 30 34 C0 30 36 C0 30 37 C0 # input routing 30 39 F0 # page 0, unmute, bring online 30 51 C0 30 52 00 30 53 28 30 54 28 30 41 21 30 42 21 30 3F D6 30 40 00