Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHello canokcelik,
I'm studying the audio codec and if you take a look in another part of this code (clock_500.v block) you will observe that this address is fixed: wire [23:0]DATA={8'h34,DATA_A}; I dont know what 34h means, I just know that is the slave address. 35h means another address, but I forgot what it means... =/ Sub address is the address of the registers, as you said, for example: ROM[0] = 16'h0c00; //power down => (0000 110)(0 0000 0000) it means register 6 (R6), take a look in the datasheet. sub_addr binary settings ROM[1] = 16'h0ec2; //master => (0000 111)(0 1100 0010) it means register 7 (R7) I hope I have helped you and sorry for the bad english.