Hello, I hope someone can help me program the tlc320ad50 registers. I think I'm doing all that's necessary but it simply doesn't work. That's the code I use to program register 1: ;********************************************************************* writeReg1: call XSR_RDY ;wait until last transmition is over mmr(dxr1_1) = #0 ;primary communication dummy write call XSR_RDY port(cntl2)= #08 ; set FC=1, cntl2 = 4 nop mmr(dxr1_1) = #101h call XSR_RDY return ;********************************************************************* XSR_RDY: mmr(spsa1) = #spcr2 ; SPCR21 TC = bitf(@McBSPdataReg,#1h) ; poll XRDY flag, TC = XRDY ; McBSPdataReg= 49h if (NTC) goto XSR_RDY ; branch to XSR_RDY if TC=0, port(cntl2) = #0 ; clear FC=0 (write to I/O port 4=cntl2) return ;********************************************************************* Can anyone tell me what's wrong? Thank You. |
Codec problems.
Started by ●November 30, 2001